:root {
  --ink: #201712;
  --muted: #6d625a;
  --paper: #fff8ea;
  --surface: #fffdf7;
  --terracotta: #bd5634;
  --gold: #d8a13d;
  --leaf: #3d7d5a;
  --blue: #214c68;
  --plum: #6f3d62;
  --line: rgba(32, 23, 18, 0.14);
  --shadow: 0 22px 70px rgba(32, 23, 18, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  color: #fff;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(32, 23, 18, 0.94);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.2);
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: "Playfair Display", serif;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.94rem;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
}

.hero {
  position: relative;
  display: grid;
  box-sizing: border-box;
  min-height: 0;
  height: 100svh;
  align-items: center;
  overflow: hidden;
  margin: 0;
  padding: 126px clamp(20px, 6vw, 84px) 58px;
  color: #fff;
}

@supports (height: 100dvh) {
  .hero {
    height: 100dvh;
  }
}

@media (max-height: 820px) and (min-width: 621px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 46px;
  }

  .hero-content {
    gap: clamp(12px, 2vh, 20px);
  }

  .hero h1 {
    font-size: clamp(2.35rem, 4.8vw, 4.5rem);
    line-height: 1.02;
  }

  .hero-content p:not(.eyebrow) {
    max-width: 590px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 0;
  }

  .hero-card {
    bottom: 22px;
    padding: 16px 18px;
  }
}

@media (max-height: 680px) and (min-width: 621px) {
  .hero {
    padding-top: 86px;
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 4.35vw, 3.8rem);
  }

  .hero-card {
    display: none;
  }
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(32, 23, 18, 0.76), rgba(32, 23, 18, 0.24)),
    url("assets/hero-boisbelle-test.png") center / cover;
  transform: scale(1.04);
}

.hero-overlay {
  background:
    radial-gradient(circle at 20% 22%, rgba(216, 161, 61, 0.28), transparent 30%),
    linear-gradient(0deg, rgba(32, 23, 18, 0.72), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(16px, 2.2vw, 26px);
  align-content: center;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin: 0;
  color: #ffd78b;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.04;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 7vw, 6.8rem);
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.45rem, 5.5vw, 5.35rem);
  line-height: 1;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
}

h3 {
  margin: 0;
  font-size: 1.18rem;
}

.hero-content p:not(.eyebrow) {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.62;
}

.hero-artist-credit {
  position: absolute;
  right: clamp(12px, 2.4vw, 34px);
  bottom: 20px;
  z-index: 4;
  margin: 0;
  border: 1px solid rgba(255, 248, 234, 0.2);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(32, 23, 18, 0.34);
  color: rgba(255, 248, 234, 0.74);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  backdrop-filter: blur(10px);
}

.hero-actions,
.agenda-toolbar,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 4px;
}

.button,
.filter-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  background: var(--terracotta);
  color: #fff;
}

.button.secondary,
.filter-button.active {
  background: var(--blue);
  color: #fff;
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

.hero-card {
  position: absolute;
  right: clamp(20px, 6vw, 84px);
  bottom: 34px;
  z-index: 1;
  width: min(330px, calc(100% - 40px));
  border-left: 5px solid var(--gold);
  background: rgba(255, 248, 234, 0.92);
  color: var(--ink);
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card strong {
  font-size: 1.4rem;
}

.hero-card span {
  margin-top: 5px;
  color: var(--muted);
}

section {
  padding: 88px clamp(20px, 6vw, 84px);
}

.intro-band {
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.96), rgba(243, 239, 226, 0.96)),
    url("assets/hero-boisbelle-test.png") center / cover;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 38px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.archive-grid article,
.login-card,
.mini-calendar,
.event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(32, 23, 18, 0.07);
}

.identity-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}

.identity-card {
  display: grid;
  align-content: end;
  min-height: 560px;
  border-radius: var(--radius);
  background:
    linear-gradient(0deg, rgba(32, 23, 18, 0.88), rgba(32, 23, 18, 0.18)),
    url("assets/hero-boisbelle-test.png") center / cover;
  color: #fff;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.identity-card .eyebrow {
  color: #ffd78b;
}

.identity-card h2 {
  font-size: clamp(2rem, 4.2vw, 4.4rem);
}

.identity-card p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.identity-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.identity-stats span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  padding: 16px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.identity-stats strong {
  display: block;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.artist-credit {
  margin: 18px 0 0;
  max-width: 620px;
  border-left: 3px solid rgba(255, 215, 139, 0.78);
  padding-left: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

.identity-path {
  display: grid;
  align-content: center;
  gap: 0;
}

.identity-path article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  position: relative;
  padding: 28px 0;
}

.identity-path article + article {
  border-top: 1px solid var(--line);
}

.path-number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-weight: 900;
}

.path-photo {
  display: block;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(32, 23, 18, 0.18);
}

.path-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity-path article:nth-child(2) .path-number {
  background: var(--blue);
}

.identity-path article:nth-child(3) .path-number {
  background: var(--leaf);
}

.identity-path h3 {
  margin-bottom: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}

.identity-path p {
  margin: 0;
  max-width: 650px;
  color: var(--muted);
  line-height: 1.75;
}

.latest-section,
.home-practical-section {
  background: var(--surface);
}

.home-practical-section {
  background: var(--paper);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.75fr));
  gap: 18px;
}

.news-main,
.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(32, 23, 18, 0.07);
}

.news-main {
  display: grid;
  gap: 16px;
  align-content: end;
  min-height: 360px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(0deg, rgba(32, 23, 18, 0.84), rgba(32, 23, 18, 0.28)),
    var(--news-cover, url("assets/boisbelle-archive.jpg")) center / cover;
  color: #fff;
}

.news-main p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.news-main .button {
  justify-self: start;
}

.news-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}

.news-card span {
  color: var(--terracotta);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card time,
.news-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.news-main .news-meta {
  color: rgba(255, 255, 255, 0.72);
  margin: -8px 0 0;
}

.news-event-card strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.news-card p {
  color: var(--muted);
  line-height: 1.65;
}

.news-card a {
  color: var(--blue);
  font-weight: 900;
}

.home-practical-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.next-activity-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 52px);
  align-items: end;
  border-radius: var(--radius);
  border: 1px solid rgba(157, 75, 43, 0.2);
  background:
    linear-gradient(115deg, rgba(255, 253, 247, 0.96) 0%, rgba(255, 248, 234, 0.9) 56%, rgba(244, 231, 207, 0.82) 100%),
    url("assets/hero-boisbelle-test.png") right center / cover;
  color: var(--ink);
  padding: clamp(26px, 5vw, 54px);
  box-shadow: 0 22px 70px rgba(32, 23, 18, 0.12);
}

.home-practical-layout .next-activity-card {
  min-height: 100%;
}

.next-activity-card.has-event {
  grid-template-columns: minmax(98px, 0.18fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(24px, 4vw, 42px);
}

.next-activity-card.has-event .next-activity-copy,
.next-activity-card.has-event .next-activity-date {
  align-self: center;
}

.next-activity-card.is-empty {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 20px;
}

.next-activity-card.is-empty > div:first-child {
  align-self: center;
}

.next-activity-card.is-empty .next-activity-actions {
  align-self: center;
  justify-content: flex-start;
}

.next-activity-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--terracotta), var(--gold));
}

.next-activity-card::after {
  content: "";
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(14px, 3vw, 30px);
  width: clamp(120px, 18vw, 220px);
  aspect-ratio: 1;
  border: 1px solid rgba(157, 75, 43, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.next-activity-card > * {
  position: relative;
  z-index: 1;
}

.next-activity-date {
  display: grid;
  place-items: center;
  min-height: 148px;
  border: 1px solid rgba(157, 75, 43, 0.2);
  border-radius: var(--radius);
  padding: 18px 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(255, 243, 223, 0.9));
  color: #7d3e25;
  text-align: center;
  box-shadow: 0 16px 36px rgba(32, 23, 18, 0.08);
}

.next-activity-date strong {
  color: var(--terracotta);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.9;
}

.next-activity-date span {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-activity-date small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.next-activity-copy {
  display: grid;
  gap: 13px;
  align-content: center;
}

.next-activity-card .eyebrow {
  color: var(--terracotta);
}

.next-activity-card h2 {
  max-width: 880px;
  color: var(--ink);
}

.next-activity-card p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.next-activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.next-activity-meta span,
.next-activity-meta time {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(157, 75, 43, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.62);
  color: #7d3e25;
  font-size: 0.88rem;
  font-weight: 900;
}

.next-activity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 5px;
}

.next-activity-actions .button.secondary {
  border-color: rgba(157, 75, 43, 0.3);
  background: rgba(255, 255, 255, 0.62);
  color: #7d3e25;
}

.next-activity-actions .button.secondary:hover,
.next-activity-actions .button.secondary:focus-visible {
  background: #fff3df;
  color: #7d3e25;
}

.section-teasers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.section-teasers article {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 26px;
}

.section-teasers p {
  color: var(--muted);
  line-height: 1.75;
}

.section-teasers .button {
  justify-self: start;
  margin-top: 8px;
}

.home-access-cards {
  grid-template-columns: 1fr;
}

.home-access-cards article {
  min-height: 0;
}

.archive-grid p,
.content-panel p,
.member-copy p,
.event-card p {
  color: var(--muted);
  line-height: 1.7;
}

.split-section,
.member-section,
.agenda-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

.image-panel {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: min(580px, 72vw);
  object-fit: cover;
}

.content-panel {
  max-width: 660px;
}

.feature-list span,
.feature-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 10px 14px;
  color: var(--blue);
  font-weight: 800;
}

.page-shell {
  padding-top: 112px;
}

.page-hero,
.articles-hero {
  box-sizing: border-box;
  display: grid;
  gap: 18px;
  height: clamp(420px, 72vh, 520px);
  min-height: 0;
  align-items: end;
  padding: 150px clamp(20px, 6vw, 84px) 56px;
  background:
    linear-gradient(90deg, rgba(32, 23, 18, 0.74), rgba(32, 23, 18, 0.22)),
    url("assets/hero-boisbelle-test.png") center / cover;
  color: #fff;
}

.page-hero h1,
.articles-hero h1 {
  max-width: 940px;
  font-size: clamp(2.6rem, 5.2vw, 5.4rem);
}

.association-hero h1 {
  max-width: min(1120px, 100%);
  font-size: clamp(2.35rem, 4.6vw, 4.85rem);
  line-height: 1.02;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.7;
}

.page-hero .eyebrow {
  color: #ffd78b;
}

.articles-preview {
  background: #f3efe2;
}

.article-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  box-shadow: 0 12px 30px rgba(32, 23, 18, 0.07);
}

.article-card.featured {
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(255, 253, 247, 0.86)),
    url("assets/boisbelle-archive.jpg") center / cover;
}

.article-card h3 {
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
}

.article-card p,
.article-meta,
.article-body p,
.article-body li {
  color: var(--muted);
  line-height: 1.75;
}

.article-card a,
.article-body a,
.text-link {
  color: var(--terracotta);
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: var(--paper);
}

.info-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 12px 30px rgba(32, 23, 18, 0.07);
}

.info-panel.wide {
  grid-column: 1 / -1;
}

.info-panel h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.info-panel p,
.info-panel span,
.history-block p {
  color: var(--muted);
  line-height: 1.75;
}

.info-panel .button {
  justify-self: start;
}

.accent-panel {
  align-content: center;
  background:
    linear-gradient(135deg, rgba(33, 76, 104, 0.94), rgba(111, 61, 98, 0.9)),
    url("assets/hero-boisbelle-test.png") center / cover;
  color: #fff;
}

.accent-panel strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.accent-panel span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.history-page-hero {
  background:
    linear-gradient(90deg, rgba(32, 23, 18, 0.78), rgba(32, 23, 18, 0.26)),
    url("assets/hero-boisbelle-test.png") center / cover;
}

.history-overview,
.history-places {
  padding-inline: clamp(20px, 6vw, 84px);
}

.history-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background:
    linear-gradient(115deg, rgba(255, 253, 247, 0.98), rgba(255, 248, 234, 0.86)),
    url("assets/boisbelle-carte.jpg") center / cover;
}

.history-overview-map {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(32, 23, 18, 0.16);
  border-radius: var(--radius);
  background: #eadfcf;
  box-shadow: var(--shadow);
}

.history-overview-map img {
  width: 100%;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
}

.history-overview-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(32, 23, 18, 0.18), transparent 45%),
    radial-gradient(circle at 70% 28%, rgba(216, 161, 61, 0.18), transparent 32%);
  pointer-events: none;
}

.history-map-point {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 248, 234, 0.56);
  border-radius: 999px;
  padding: 7px 10px 7px 7px;
  background: rgba(32, 23, 18, 0.72);
  color: #fff8ea;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(32, 23, 18, 0.2);
  transform: translate(-50%, -50%);
  transition:
    background-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
  backdrop-filter: blur(10px);
}

.history-map-point:hover,
.history-map-point:focus-visible {
  background: rgba(80, 44, 30, 0.9);
  transform: translate(-50%, -53%);
  box-shadow: 0 16px 30px rgba(32, 23, 18, 0.25);
}

.history-map-point img {
  width: 30px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(32, 23, 18, 0.22));
}

.history-map-point span:not(.history-no-arms) {
  display: grid;
  gap: 2px;
}

.history-map-point strong {
  color: #fff8ea;
  font-size: .78rem;
  line-height: 1.05;
}

.history-map-point small {
  color: rgba(255, 248, 234, .72);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}

.history-no-arms {
  display: grid;
  width: 40px;
  min-height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 248, 234, .34);
  border-radius: 8px;
  background: rgba(255, 248, 234, .12);
  color: rgba(255, 248, 234, .84);
  font-size: .52rem;
  line-height: 1.05;
  text-align: center;
}

.history-map-point.is-henrichemont {
  left: 66%;
  top: 30%;
}

.history-map-point.is-acheres {
  left: 27%;
  top: 30%;
}

.history-map-point.is-menetou {
  left: 45%;
  top: 70%;
}

.history-map-point.is-quantilly {
  left: 9%;
  top: 83%;
}

.history-overview-content {
  max-width: 680px;
}

.history-overview-content h2,
.history-section-heading h2,
.history-feature-content h2 {
  color: var(--ink);
}

.history-overview-content p,
.history-section-heading p,
.history-feature-content p,
.history-route-content p,
.history-map-section p {
  color: var(--muted);
  line-height: 1.75;
}

.history-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.history-facts span {
  border: 1px solid rgba(157, 75, 43, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.78);
  padding: 15px;
  color: var(--muted);
  box-shadow: 0 10px 24px rgba(32, 23, 18, 0.06);
}

.history-facts strong {
  display: block;
  margin-bottom: 6px;
  color: var(--terracotta);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1;
}

.history-places {
  background: var(--surface);
}

.history-section-heading {
  display: grid;
  max-width: 800px;
  gap: 12px;
  margin-bottom: 34px;
}

.history-feature-place {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(32, 23, 18, 0.14);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 20px 58px rgba(32, 23, 18, 0.12);
}

.history-feature-image {
  min-height: clamp(320px, 35vw, 440px);
}

.history-feature-image img,
.history-route-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-feature-content {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(28px, 5vw, 52px);
}

.history-step {
  display: grid;
  width: 58px;
  height: 66px;
  place-items: center;
  border-radius: 8px 8px 14px 14px;
  background: var(--terracotta);
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(157, 75, 43, 0.22);
  clip-path: polygon(50% 100%, 10% 78%, 10% 8%, 90% 8%, 90% 78%);
}

.history-armorial {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.history-armorial img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(32, 23, 18, .15));
}

.history-armorial-missing {
  min-width: 62px;
  padding: 0 8px;
  border: 1px solid rgba(35, 71, 51, .18);
  background: #fff8ea;
  color: #6b3a25;
  font-family: Inter, system-ui, sans-serif;
  font-size: .58rem;
  line-height: 1.05;
  text-align: center;
  clip-path: none;
}

.history-feature-content .eyebrow,
.history-route-content .eyebrow {
  margin-bottom: 0;
}

.history-feature-content h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.history-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.history-card-actions .button.secondary {
  background: #6b3a25;
  color: #fff;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.history-card-actions .button.primary {
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.history-card-actions .button.secondary:hover,
.history-card-actions .button.secondary:focus-visible {
  background: #4f2c1e;
  color: #fff;
  transform: translateY(-1px);
}

.history-route {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  gap: 22px 24px;
  margin-top: 26px;
}

.history-route::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 34px;
  bottom: 34px;
  width: 2px;
  transform: translateX(-1px);
  background: linear-gradient(180deg, rgba(157, 75, 43, 0.18), rgba(216, 161, 61, 0.8), rgba(157, 75, 43, 0.18));
}

.history-route-item {
  position: relative;
  display: grid;
  grid-column: 1 / 3;
  grid-template-columns: minmax(190px, 0.44fr) minmax(0, 1fr) 64px;
  gap: 20px;
  align-items: stretch;
  border: 1px solid rgba(32, 23, 18, 0.12);
  border-radius: var(--radius);
  background: #fffdf7;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(32, 23, 18, 0.07);
}

.history-route-item:nth-child(even) {
  grid-column: 2 / 4;
  grid-template-columns: 64px minmax(190px, 0.44fr) minmax(0, 1fr);
  margin-top: 24px;
  margin-bottom: 10px;
}

.history-route-item:nth-child(odd) .history-route-marker {
  grid-column: 3;
}

.history-route-item:nth-child(even) .history-route-marker {
  grid-column: 1;
}

.history-route-item:nth-child(odd) .history-route-image {
  grid-column: 1;
}

.history-route-item:nth-child(even) .history-route-image {
  grid-column: 2;
}

.history-route-item:nth-child(odd) .history-route-content {
  grid-column: 2;
}

.history-route-item:nth-child(even) .history-route-content {
  grid-column: 3;
}

.history-route-marker {
  z-index: 1;
  display: grid;
  width: 62px;
  height: 70px;
  place-items: center;
  border: 0;
  border-radius: 8px 8px 14px 14px;
  background: var(--leaf);
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(32, 23, 18, 0.12);
  clip-path: polygon(50% 100%, 10% 78%, 10% 8%, 90% 8%, 90% 78%);
}

.history-route-item:nth-child(even) .history-route-marker {
  background: var(--terracotta);
}

.history-route-image {
  overflow: hidden;
  min-height: 220px;
  border-radius: var(--radius);
  background: #eadfcf;
}

.history-route-content {
  display: grid;
  align-content: center;
  gap: 9px;
}

.history-route-content h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.history-feature-place,
.history-route-item {
  scroll-margin-top: 104px;
}

.vestige-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.vestige-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 9px 12px;
  color: var(--blue);
  font-weight: 900;
}

.history-map-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  background:
    linear-gradient(115deg, rgba(255, 248, 234, 0.98), rgba(247, 239, 226, 0.94)),
    url("assets/boisbelle-carte.jpg") center / cover;
}

.artist-panel {
  position: relative;
}

.artist-panel h2 {
  max-width: 720px;
}

.artist-panel p:not(.eyebrow) {
  max-width: 690px;
}

.map-artist-credit {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  border: 1px solid rgba(157, 75, 43, 0.18);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: rgba(255, 250, 243, 0.72);
}

.map-artist-credit span {
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-artist-credit p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.artist-source-note {
  margin-top: 14px;
  color: #7d7066 !important;
  font-size: .8rem;
  line-height: 1.55 !important;
}

.artist-source-note a {
  color: #9d4b2b;
  font-weight: 900;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.link-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(32, 23, 18, 0.07);
}

.link-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.link-card > div {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 24px;
}

.link-card p {
  color: var(--muted);
  line-height: 1.7;
}

.link-card a {
  color: var(--terracotta);
  font-weight: 900;
}

.photo-credits {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.article-body {
  max-width: 820px;
}

.article-body h2 {
  margin-top: 42px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.article-aside {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.article-aside dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.article-aside dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-aside dd {
  margin: 0;
  font-weight: 800;
}

.editor-note {
  border-left: 5px solid var(--gold);
  background: #fff;
  padding: 18px;
}

.articles-hero {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 5vw, 70px);
  background:
    linear-gradient(90deg, rgba(32, 23, 18, 0.74), rgba(32, 23, 18, 0.2)),
    url("assets/hero-boisbelle-test.png") center / cover;
}

.articles-hero h1 {
  max-width: 940px;
}

.articles-hero p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.7;
}

.articles-hero .eyebrow {
  color: #ffd78b;
}

@media (max-width: 620px) {
  .page-hero,
  .articles-hero {
    height: auto;
    min-height: 420px;
    padding: 150px 20px 56px;
  }

  .association-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }
}

.editorial-panel {
  border: 1px solid rgba(255, 215, 139, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 248, 234, 0.14);
  padding: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.editorial-panel strong,
.editorial-panel span {
  display: block;
}

.editorial-panel span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.articles-board {
  background: var(--paper);
}

.articles-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.lead-article {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: stretch;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lead-article img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.lead-article > div {
  display: grid;
  gap: 16px;
  align-content: center;
  padding: clamp(24px, 5vw, 48px);
}

.lead-article h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.lead-article p {
  color: var(--muted);
  line-height: 1.75;
}

.lead-article .button {
  justify-self: start;
}

.article-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story {
  background: var(--surface);
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: end;
  min-height: 78vh;
  padding: 145px clamp(20px, 6vw, 84px) 58px;
  background:
    linear-gradient(115deg, rgba(255, 248, 234, 0.98), rgba(255, 253, 247, 0.9) 55%, rgba(216, 161, 61, 0.2));
}

.back-link {
  display: inline-flex;
  width: max-content;
  margin-bottom: 22px;
  color: var(--terracotta);
  font-weight: 900;
}

.story-hero h1 {
  max-width: 920px;
  color: var(--ink);
  font-size: clamp(2.9rem, 7vw, 7.3rem);
}

.story-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.75;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.story-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 12px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
}

.story-hero-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-hero-image img {
  width: 100%;
  height: min(610px, 62vw);
  object-fit: cover;
}

figcaption {
  background: rgba(32, 23, 18, 0.92);
  color: rgba(255, 255, 255, 0.76);
  padding: 10px 12px;
  font-size: 0.82rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 820px);
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
  justify-content: center;
  padding: 70px clamp(20px, 6vw, 84px);
}

.story-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.side-box {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px;
}

.side-box a {
  color: var(--blue);
  font-weight: 900;
}

.side-box strong {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.side-box span {
  font-weight: 800;
}

.muted-box {
  background: #fff;
}

.story-content {
  min-width: 0;
}

.story-content p,
.story-content li {
  color: #4f463f;
  font-size: 1.06rem;
  line-height: 1.9;
}

.dropcap::first-letter {
  float: left;
  padding: 9px 10px 0 0;
  color: var(--terracotta);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 5.3rem;
  line-height: 0.78;
}

.story-section {
  margin-top: 44px;
}

.story-section h2,
.sources-box h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.story-quote {
  margin: 46px 0;
  border: 0;
  border-left: 6px solid var(--gold);
  background: var(--paper);
  padding: 28px;
}

.story-quote p {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.18;
}

.inline-figure {
  margin: 34px 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(32, 23, 18, 0.12);
}

.inline-figure img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.sources-box {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 28px;
}

.related-section {
  background: #f3efe2;
}

.agenda-section {
  background: #f3efe2;
}

.agenda-toolbar {
  margin-bottom: 22px;
}

.activity-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.activity-links a,
.activity-filter {
  display: grid;
  min-height: 92px;
  align-items: end;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: #7d3e25;
  padding: 18px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(32, 23, 18, 0.07);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.activity-filter:hover,
.activity-filter:focus-visible {
  border-color: rgba(157, 75, 43, 0.32);
  background: #fff3df;
  color: #6b3a25;
  outline: none;
  transform: translateY(-1px);
}

.activity-filter.active {
  background: #9d4b2b;
  color: #fff;
}

.activity-links a:nth-child(1),
.activity-filter:nth-child(1) {
  border-top: 5px solid var(--terracotta);
}

.activity-links a:nth-child(2),
.activity-filter:nth-child(2) {
  border-top: 5px solid var(--leaf);
}

.activity-links a:nth-child(3),
.activity-filter:nth-child(3) {
  border-top: 5px solid var(--gold);
}

.activity-links a:nth-child(4),
.activity-filter:nth-child(4) {
  border-top: 5px solid var(--plum);
}

.filter-button {
  background: #fff;
  color: var(--ink);
}

.agenda-layout {
  align-items: start;
  grid-template-columns: 330px minmax(0, 1fr);
}

.mini-calendar {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.calendar-day {
  display: grid;
  min-height: 36px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.calendar-day.label {
  color: var(--ink);
}

.calendar-day.has-event {
  background: rgba(189, 86, 52, 0.13);
  color: var(--terracotta);
}

.calendar-day.today {
  outline: 2px solid var(--blue);
  color: var(--blue);
}

.events-list {
  display: grid;
  gap: 14px;
}

.event-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.event-card:hover,
.event-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  outline: none;
}

.empty-state {
  border: 1px dashed rgba(32, 23, 18, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.72);
  padding: 28px;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.7;
}

.event-date {
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  padding: 12px;
  text-align: center;
}

.event-date strong,
.event-date span {
  display: block;
}

.event-date strong {
  font-size: 1.75rem;
}

.event-type {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(61, 125, 90, 0.13);
  color: var(--leaf);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.event-card time {
  max-width: 190px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.event-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--terracotta);
  font-weight: 900;
}

.event-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--terracotta);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
}

.event-detail h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.event-detail p {
  color: var(--muted);
  line-height: 1.75;
}

.archives-section {
  background: var(--surface);
}

.archive-grid article {
  padding: 28px;
}

.archive-grid a {
  color: var(--terracotta);
  font-weight: 900;
}

.member-section {
  background: linear-gradient(135deg, var(--blue), var(--plum));
  color: #fff;
}

.member-section .eyebrow {
  color: #ffd78b;
}

.member-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.login-card {
  background: #fffdf7;
  color: var(--ink);
  padding: 26px;
}

.login-form,
.member-dashboard {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  color: var(--ink);
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(33, 76, 104, 0.15);
}

.character-limit-field {
  position: relative;
}

.character-limit-field input,
.character-limit-field textarea {
  transition: border-color .2s ease, box-shadow .2s ease;
}

.character-limit-hint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  max-width: min(320px, calc(100% - 24px));
  border: 1px solid rgba(157, 75, 43, .22);
  border-radius: 999px;
  background: #fff8ec;
  box-shadow: 0 14px 30px rgba(61, 43, 30, .16);
  color: #7b351f;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 7px 10px;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.character-limit-hint[hidden] {
  display: block;
  opacity: 0;
  transform: translateY(10px);
}

.character-limit-field.is-character-limit-close input,
.character-limit-field.is-character-limit-close textarea {
  border-color: rgba(157, 75, 43, .46);
  box-shadow: 0 0 0 3px rgba(157, 75, 43, .09);
}

.character-limit-field.is-character-limit-over input,
.character-limit-field.is-character-limit-over textarea {
  border-color: rgba(168, 48, 28, .78);
  box-shadow: 0 0 0 3px rgba(168, 48, 28, .13);
}

.character-limit-field.is-character-limit-over .character-limit-hint {
  border-color: rgba(168, 48, 28, .32);
  background: #fff0e8;
  color: #8d2414;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.member-dashboard ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(160px, 0.8fr));
  gap: clamp(24px, 4vw, 54px);
  padding: 54px clamp(20px, 6vw, 84px) 38px;
}

.footer-brand,
.footer-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-brand .brand-mark {
  border-color: rgba(255, 255, 255, 0.18);
}

.footer-brand strong,
.footer-column strong {
  color: #fff;
}

.footer-brand p,
.footer-column p {
  margin: 0;
  line-height: 1.7;
}

.footer-column a,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.footer-column a:hover,
.footer-bottom a:hover {
  color: #ffd78b;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px clamp(20px, 6vw, 84px);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.legal-hero {
  display: grid;
  gap: 16px;
  min-height: 45vh;
  align-content: end;
  padding: 150px clamp(20px, 6vw, 84px) 58px;
  background:
    linear-gradient(90deg, rgba(32, 23, 18, 0.78), rgba(32, 23, 18, 0.24)),
    url("assets/hero-boisbelle-test.png") center / cover;
  color: #fff;
}

.legal-hero .eyebrow {
  color: #ffd78b;
}

.legal-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
  line-height: 1.75;
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 900px);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  background: var(--paper);
}

.legal-summary {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(32, 23, 18, 0.07);
}

.legal-summary strong {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.legal-summary strong:first-child {
  margin-top: 0;
}

.legal-summary span,
.legal-summary a {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.5;
}

.legal-stack {
  display: grid;
  gap: 18px;
}

.legal-stack article {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 12px 30px rgba(32, 23, 18, 0.07);
}

.legal-stack article > span {
  color: var(--terracotta);
  font-weight: 900;
}

.legal-stack p,
.legal-stack li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-stack ul {
  display: grid;
  gap: 8px;
  list-style: disc;
  padding-left: 22px;
}

.legal-stack li {
  padding-left: 2px;
}

.legal-stack a,
.legal-nav a,
.legal-summary a {
  color: var(--terracotta);
  font-weight: 900;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 10px 14px;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: rgba(32, 23, 18, 0.96);
  }

  .main-nav.is-open {
    display: flex;
  }

  .section-heading,
  .section-teasers,
  .news-layout,
  .home-practical-layout,
  .next-activity-card,
  .identity-layout,
  .article-grid,
  .article-layout,
  .articles-hero,
  .lead-article,
  .article-masonry,
  .activity-links,
  .info-grid,
  .history-overview,
  .history-feature-place,
  .history-map-section,
  .legal-layout,
  .link-grid,
  .link-card,
  .story-hero,
  .story-grid,
  .archive-grid,
  .split-section,
  .member-section,
  .agenda-layout {
    grid-template-columns: 1fr;
  }

  .next-activity-actions {
    justify-content: flex-start;
  }

  .mini-calendar {
    position: static;
  }

  .story-side {
    position: static;
    order: 2;
  }

  .legal-summary {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 32px;
  }

  .identity-card {
    min-height: 460px;
  }

  .history-facts {
    grid-template-columns: 1fr;
  }

  .history-route {
    grid-template-columns: 1fr;
  }

  .history-route::before {
    left: 29px;
  }

  .history-route-item,
  .history-route-item:nth-child(even) {
    grid-column: 1;
    grid-template-columns: 58px minmax(0, 1fr);
    margin-top: 0;
    margin-bottom: 0;
  }

  .history-route-marker {
    width: 56px;
    height: 64px;
    font-size: 1rem;
  }

  .history-route-item:nth-child(odd) .history-route-marker,
  .history-route-item:nth-child(even) .history-route-marker {
    grid-column: 1;
  }

  .history-route-image,
  .history-route-content,
  .history-route-item:nth-child(odd) .history-route-image,
  .history-route-item:nth-child(even) .history-route-image,
  .history-route-item:nth-child(odd) .history-route-content,
  .history-route-item:nth-child(even) .history-route-content {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  .hero {
    min-height: 0;
    height: 100svh;
    padding: 92px 20px max(28px, env(safe-area-inset-bottom));
  }

  .hero-content {
    gap: 18px;
  }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.02;
  }

  .hero-content p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.52;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-artist-credit {
    right: 20px;
    bottom: max(10px, env(safe-area-inset-bottom));
    max-width: calc(100% - 40px);
    font-size: 0.68rem;
  }

  @supports (height: 100dvh) {
    .hero {
      height: 100dvh;
    }
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card time {
    max-width: none;
    text-align: left;
  }

  .event-date {
    width: 92px;
  }

  .identity-stats,
  .identity-path article {
    grid-template-columns: 1fr;
  }

  .identity-path article {
    gap: 14px;
  }

  .history-overview,
  .history-places,
  .history-map-section {
    padding-inline: 20px;
  }

  .history-map-points {
    display: none;
  }

  .history-feature-image,
  .history-route-image {
    min-height: 230px;
  }

  .history-feature-content {
    padding: 24px;
  }

  .history-feature-content h2 {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
  }

  .history-route::before {
    display: none;
  }

  .history-route-item {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .history-route-marker,
  .history-route-image,
  .history-route-content {
    grid-column: auto;
  }

  .history-route-marker {
    width: 50px;
    height: 58px;
    font-size: .95rem;
  }

  .history-card-actions .button {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding-block: 42px 30px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  section {
    padding-block: 64px;
  }
}

@media (max-width: 620px) and (max-height: 760px) {
  .hero {
    padding-top: 78px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .hero-content {
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.55rem);
    line-height: 1.03;
  }

  .hero-content p:not(.eyebrow) {
    font-size: 0.96rem;
    line-height: 1.42;
  }

  .hero-actions .button {
    min-height: 42px;
    padding-block: 9px;
  }
}
