/* Maumee River Collective — design tokens & base */

:root {
  /* Neutrals — warm paper / ink */
  --paper:        #F7F4ED;
  --paper-2:      #EFEAE0;
  --paper-3:      #E4DDD0;
  --rule:         #D6CDBD;
  --ink:          #1A1917;
  --ink-2:        #3D3A34;
  --ink-3:        #6B6659;

  /* Program accents */
  --river:        #2E4A3B;
  --river-lift:   #3F6350;
  --brass:        #8A6A2F;
  --brass-lift:   #A5822F;
  --clay:         #8A5236;

  /* Active accent — overridden per program */
  --accent:       var(--river);
  --accent-lift:  var(--river-lift);
  --accent-soft:  rgba(46, 74, 59, 0.09);

  /* Type */
  --display: 'Gambetta', 'Iowan Old Style', Georgia, serif;
  --body:    'Satoshi', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  clamp(2.1rem, 4.4vw, 3.4rem);
  --text-hero: clamp(2.6rem, 7vw, 5.1rem);

  /* Space */
  --s1: 0.25rem; --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;    --s7: 3rem;    --s8: 4rem;
  --s9: 6rem;    --s10: 8rem;

  --wide:   1240px;
  --measure: 68ch;
  --radius: 3px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --paper:   #12140F;
  --paper-2: #191C16;
  --paper-3: #22261E;
  --rule:    #333828;
  --ink:     #EDEAE0;
  --ink-2:   #CBC7B9;
  --ink-3:   #918C7C;

  --river:      #8FB39B;
  --river-lift: #A8C7B3;
  --brass:      #D2AC5F;
  --brass-lift: #E3C179;
  --clay:       #C98A66;

  --accent:      var(--river);
  --accent-lift: var(--river-lift);
  --accent-soft: rgba(143, 179, 155, 0.12);
}

/* Program scopes */
.t-press  { --accent: var(--brass); --accent-lift: var(--brass-lift); --accent-soft: rgba(138,106,47,0.10); }
[data-theme="dark"] .t-press { --accent-soft: rgba(210,172,95,0.13); }
.t-archive { --accent: var(--clay); --accent-lift: var(--clay); --accent-soft: rgba(138,82,54,0.09); }
[data-theme="dark"] .t-archive { --accent-soft: rgba(201,138,102,0.13); }
.t-lake { --accent: #2A5B6E; --accent-lift: #1F4655; --accent-soft: rgba(42,91,110,0.09); }
[data-theme="dark"] .t-lake { --accent: #7FB6C9; --accent-lift: #9BCADB; --accent-soft: rgba(127,182,201,0.13); }

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
p  { margin: 0 0 var(--s4); text-wrap: pretty; }

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-lift); }

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

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--s5); }
.measure { max-width: var(--measure); }
.section { padding: var(--s9) 0; }
.section--tight { padding: var(--s8) 0; }
.section + .section { border-top: 1px solid var(--rule); }

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 var(--s4);
}

.lede { font-size: var(--text-lg); color: var(--ink-2); }
.small { font-size: var(--text-sm); color: var(--ink-3); }

.grid { display: grid; gap: var(--s6); }
@media (min-width: 800px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s8); align-items: start; }
  .grid--aside { grid-template-columns: 200px minmax(0, 1fr); gap: var(--s8); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--body); font-size: var(--text-sm); font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.85em 1.5em;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent); color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--accent-lift); border-color: var(--accent-lift); color: var(--paper); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-lift); }
.btn--light { background: #F7F4ED; border-color: #F7F4ED; color: #1A1917; }
.btn--light:hover { background: #fff; border-color: #fff; color: #1A1917; }
.btn--outline-light { background: transparent; border-color: rgba(247,244,237,0.55); color: #F7F4ED; }
.btn--outline-light:hover { background: rgba(247,244,237,0.14); border-color: #F7F4ED; color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent); text-decoration: none;
}
.arrow-link svg { transition: transform 0.2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand__name {
  font-family: var(--display); font-size: 1.02rem; font-weight: 600;
  line-height: 1.15; letter-spacing: -0.01em;
}
.brand__name span { display: block; font-family: var(--body); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a {
  font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--ink-2);
  padding: 0.3em 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.head-actions { display: flex; align-items: center; gap: var(--s3); }

.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--ink-2); cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--s4) var(--s5) var(--s6);
    background: var(--paper); border-bottom: 1px solid var(--rule);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 0.85em 0; border-bottom: 1px solid var(--rule); font-size: var(--text-lg); }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: grid; }
}

/* ---------- Hero ---------- */

.hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,16,12,0.90) 0%, rgba(12,16,12,0.58) 42%, rgba(12,16,12,0.20) 100%);
}
.hero__body { position: relative; padding: var(--s9) 0 var(--s7); color: #F7F4ED; }
.hero__body .eyebrow { color: #D8CCA8; }
.hero h1 { font-size: var(--text-hero); max-width: 22ch; margin-bottom: var(--s5); color: #fff; }
.hero p { max-width: 54ch; font-size: var(--text-lg); color: rgba(247,244,237,0.88); }
.hero__meta {
  margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid rgba(247,244,237,0.22);
  display: flex; flex-wrap: wrap; gap: var(--s6);
  font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(247,244,237,0.72); font-weight: 700;
}

/* ---------- Page header (interior pages) ---------- */

.page-head { padding: var(--s8) 0 var(--s7); border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.page-head h1 { max-width: 26ch; }
.page-head .lede { max-width: 60ch; margin-bottom: 0; }

/* ---------- Cards ---------- */

.card {
  display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}
a.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
a.card:hover .card__media img { transform: scale(1.035); }
.card__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { margin: 0; color: var(--ink-2); font-size: var(--text-sm); }
.card__foot { margin-top: auto; padding-top: var(--s2); }

/* ---------- Numbered / stat rows ---------- */

.stats { display: grid; gap: var(--s6); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat__num { font-family: var(--display); font-size: var(--text-3xl); color: var(--accent); line-height: 1; margin-bottom: var(--s2); }
.stat__label { font-size: var(--text-sm); color: var(--ink-2); }

/* ---------- Program band (alternating full-bleed) ---------- */

.band { padding: var(--s9) 0; border-top: 1px solid var(--rule); }
.band--fill { background: var(--paper-2); }
.band__figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.band__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 800px) {
  .band--flip .band__figure { order: 2; }
  .band__figure { position: sticky; top: 96px; }
}

.fullbleed { position: relative; }
.fullbleed img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: center 62%; }
.fullbleed figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s7) var(--s5) var(--s5);
  background: linear-gradient(to top, rgba(12,16,12,0.82), rgba(12,16,12,0));
  color: rgba(247,244,237,0.9); font-size: var(--text-sm);
}
.fullbleed figcaption span { display: block; max-width: var(--wide); margin: 0 auto; }

.notes { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s3); }
.notes li { position: relative; padding-left: 1.5rem; font-size: var(--text-sm); color: var(--ink-2); }
.notes li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 1px; background: var(--accent);
}

/* ---------- Tiers ---------- */

.tiers { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier {
  display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s5); background: var(--paper-2);
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.tier--feature { border-color: var(--accent); background: var(--accent-soft); }
.tier__name { font-family: var(--display); font-size: var(--text-xl); margin: 0; }
.tier__price { font-family: var(--display); font-size: var(--text-2xl); color: var(--accent); line-height: 1; }
.tier__price small { font-family: var(--body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); display: block; margin-top: var(--s2); }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); font-size: var(--text-sm); color: var(--ink-2); }
.tier li { position: relative; padding-left: 1.35rem; }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.55; }
.tier .btn { margin-top: auto; justify-content: center; }

/* ---------- Events ---------- */

.event {
  display: grid; gap: var(--s4) var(--s6); padding: var(--s6) 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 760px) { .event { grid-template-columns: 130px minmax(0, 1fr) auto; align-items: start; } }
.event__date { font-family: var(--display); line-height: 1.05; }
.event__date b { display: block; font-size: var(--text-2xl); font-weight: 500; }
.event__date span { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--body); font-weight: 700; color: var(--ink-3); }
.event h3 { margin: 0 0 var(--s2); font-size: var(--text-lg); }
.event p { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.event:last-of-type { border-bottom: 1px solid var(--rule); }
.event__where { margin-top: var(--s2); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--accent); }

.tag {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35em 0.7em; border: 1px solid var(--rule); border-radius: 100px;
  color: var(--ink-3); background: var(--paper);
}

/* ---------- Callout / notice ---------- */

.notice {
  padding: var(--s5); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--paper-2);
  font-size: var(--text-sm); color: var(--ink-2);
}
.notice strong { color: var(--ink); }
.notice p:last-child { margin-bottom: 0; }

.pull {
  font-family: var(--display); font-size: var(--text-2xl); line-height: 1.28;
  color: var(--ink); border-left: 2px solid var(--accent);
  padding-left: var(--s5); margin: var(--s7) 0; max-width: 34ch;
}
.pull cite { display: block; font-family: var(--body); font-size: var(--text-sm); font-style: normal; color: var(--ink-3); margin-top: var(--s4); }

/* ---------- CTA strip ---------- */

.cta {
  position: relative; overflow: hidden;
  padding: var(--s9) 0; color: #F7F4ED;
  background: #1B2A21;
}
[data-theme="dark"] .cta { background: #1E2B22; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(247,244,237,0.10) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.5;
}
.cta__inner { position: relative; }
.cta h2 { color: #fff; max-width: 26ch; }
.cta p { color: rgba(247,244,237,0.82); max-width: 52ch; }

/* ---------- Footer ---------- */

.site-foot { border-top: 1px solid var(--rule); background: var(--paper-2); padding: var(--s8) 0 var(--s6); }
.foot-grid { display: grid; gap: var(--s7); }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: var(--s5); } }
.foot-grid h4 { font-family: var(--body); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s4); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); font-size: var(--text-sm); }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); justify-content: space-between;
  font-size: var(--text-xs); color: var(--ink-3);
}

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .card__media img { transition: none; }
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--paper); padding: 0.7em 1.2em; border-radius: 0 0 var(--radius) 0;
  font-size: var(--text-sm); font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- Publishing division ---------- */

.imprint-tag {
  font-family: var(--display); font-style: italic;
  font-size: var(--text-lg); color: var(--accent);
  margin: 0 0 var(--s4); max-width: 34ch; line-height: 1.35;
}
.mini-head {
  font-family: var(--body); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  margin: var(--s6) 0 0;
}
.status-line {
  margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 1px solid var(--rule);
  font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.card:has(.status-line) { display: flex; flex-direction: column; }
.card:has(.status-line) .status-line { margin-top: auto; }
@media (min-width: 760px) { .tiers--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .tiers--3 { grid-template-columns: repeat(3, 1fr); } }
.tier__alt { margin: -0.4rem 0 0; font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 700px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.grid--4 .card__body { padding: var(--s5); }
