:root {
  --ink: #142018;
  --ink-soft: #3a4a3f;
  --paper: #f3efe6;
  --paper-deep: #e7e0d2;
  --accent: #1f4d35;
  --accent-deep: #123525;
  --accent-soft: #3f8f5f;
  --mist: rgba(243, 239, 230, 0.9);
  --line: rgba(20, 32, 24, 0.12);
  --shadow: 0 24px 60px rgba(18, 53, 37, 0.16);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Literata", Georgia, serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-aspona {
  --accent: #00bfff;
  --accent-deep: #0090bf;
  --accent-soft: #ffd700;
  --ink: #0a2433;
  --ink-soft: #3a5a6e;
  --paper: #eef8fc;
  --paper-deep: #d5eef8;
  --mist: rgba(238, 248, 252, 0.92);
  --line: rgba(10, 36, 51, 0.12);
  --shadow: 0 24px 60px rgba(0, 144, 191, 0.18);
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(0, 191, 255, 0.2), transparent 55%),
    radial-gradient(700px 380px at 95% 0%, rgba(255, 215, 0, 0.12), transparent 50%),
    linear-gradient(180deg, #f2fbff 0%, var(--paper) 42%, #d5eef8 100%);
}

.theme-loire {
  --accent: #ffa500;
  --accent-deep: #000000;
  --accent-soft: #ffffff;
  --ink: #000000;
  --ink-soft: #3d3d3d;
  --paper: #ffffff;
  --paper-deep: #f0f0f0;
  --mist: rgba(255, 255, 255, 0.92);
  --line: rgba(0, 0, 0, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  background:
    radial-gradient(1000px 520px at 92% -8%, rgba(255, 165, 0, 0.18), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f7 45%, #eeeeee 100%);
}

.theme-gate {
  --accent: #1f4d35;
  background:
    linear-gradient(135deg, #d9e8f2 0%, #f3efe6 48%, #f3dcc8 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
}

h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  height: 3rem;
  min-height: 3rem;
  max-height: 3rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  box-sizing: border-box;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-nav.is-scrolled {
  height: 3rem;
  min-height: 3rem;
  max-height: 3rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: var(--mist);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-logo {
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  margin-right: 0.2rem;
  overflow: hidden;
}

.nav-logo img,
.site-nav.is-scrolled .nav-logo img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  object-fit: contain;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-right: auto;
}

.brand-sub,
.brand-ipa {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.brand-ipa {
  font-family: var(--font-body);
  font-style: italic;
  text-transform: none;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.85;
}

.nav-links a:hover,
.nav-switch:hover {
  color: var(--accent);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #f7f3eb;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 22, 0.28) 0%, rgba(8, 16, 22, 0.16) 35%, rgba(8, 16, 22, 0.78) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--accent-deep) 45%, transparent), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 8vh, 5.5rem);
  animation: rise 0.9s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  margin-bottom: 0.45rem;
  color: var(--accent-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: baseline;
}

.theme-loire .hero__brand {
  color: #ffa500;
}

.theme-loire .hero__content {
  color: #ffffff;
}

.theme-loire .hero__veil {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(255, 165, 0, 0.35), transparent 55%);
}

.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  opacity: 0.92;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero__actions .btn {
  padding: 0.75rem 1.15rem;
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--accent);
  color: #fff8f2;
}

.theme-loire .btn--solid {
  color: #000000;
}

.theme-loire .btn--ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.theme-loire h1,
.theme-loire h2 {
  color: var(--accent);
}

.theme-loire .hero__content h1,
.theme-loire .hero__content h2 {
  color: inherit;
}

.theme-aspona .btn--solid {
  color: #042433;
}

.btn--ghost {
  border: 1.5px solid rgba(247, 243, 235, 0.55);
  color: #f7f3eb;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tight {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-head p,
.page-hero p {
  color: var(--ink-soft);
}

.section-more {
  margin-top: 2rem;
}

.post-list {
  display: grid;
  gap: 2.4rem;
}

.post-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.post-teaser__media {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.post-teaser__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.post-teaser:hover .post-teaser__media img {
  transform: scale(1.04);
}

.post-teaser__body h3 a {
  text-decoration: none;
}

.meta,
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.text-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.page-hero {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(6.5rem, 14vw, 8.5rem) 0 0.5rem;
}

.article {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(6.5rem, 14vw, 8.5rem) 0 4rem;
}

.article__lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.article__cover {
  margin: 1.6rem 0 2rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article__cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article__back {
  margin-top: 2.5rem;
}

.prose {
  font-size: 1.08rem;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.prose img,
.post-figure img {
  margin: 1.2rem 0 0.4rem;
  border-radius: 4px;
}

.post-figure {
  margin: 1.6rem 0;
}

.post-figure figcaption {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.prose a {
  color: var(--accent-deep);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}

.person-card {
  text-align: center;
}

.person-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow);
}

.person-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.person-card .nick {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.person-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  gap: 0.2rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.footer-links a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.gate {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) 0 3rem;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 1.8rem;
}

.gate__intro {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto;
}

.gate__kicker {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #8f3010;
}

.gate__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.choice {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  text-decoration: none;
  color: #f7f3eb;
  min-height: min(42vh, 360px);
  display: grid;
  grid-template-rows: 1fr auto;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.choice:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(18, 28, 36, 0.28);
}

.choice--logo {
  align-items: stretch;
}

.choice__mark {
  display: grid;
  place-items: center;
  padding: clamp(1.4rem, 4vw, 2.2rem) 1.2rem 0.6rem;
}

.choice__logo {
  width: min(160px, 46%);
  height: auto;
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
  transition: transform 0.45s var(--ease);
}

.choice:hover .choice__logo {
  transform: scale(1.04);
}

.choice__copy {
  position: relative;
  z-index: 1;
  padding: 1.2rem 1.5rem 1.5rem;
}

.choice--aspona {
  background: linear-gradient(165deg, #ffd700 0%, #00bfff 100%);
}

.choice--loire {
  color: #ffffff;
  background: linear-gradient(165deg, #ffffff 0%, #ffa500 100%);
}

.choice--aspona .choice__copy,
.choice--loire .choice__copy {
  background: transparent;
}

.choice__domain {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.45rem;
}

.choice__ipa {
  font-style: italic;
  font-size: 1.15rem;
  margin: 0.2rem 0 0.7rem;
  color: #ffd2b3;
}

.choice__lead {
  opacity: 0.92;
}

.choice__cta {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .gate__choices,
  .post-teaser {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
  }

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

.event-archive {
  display: grid;
  gap: 2.4rem;
}

.event-year h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.9rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.event-list li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.event-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
}

.event-list__date {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 8.5rem;
}

.event-list__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.event-list a:hover .event-list__name {
  color: var(--accent-deep);
}

.event-list__meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.article__participants {
  margin: 2.2rem 0 1.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.article__participants h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.9rem;
}

.participant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.participant-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}

.participant-list img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero__content {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
