/* The Long Field — base: tokens, type, chrome, cards, art */

:root {
  --paper: #F6F1E7;
  --paper-2: #EDE5D4;
  --ink: #1B1A17;
  --rule: #CFC6B4;
  --mute: #6D675C;
  --mute-2: #5E584E;      /* mute on --paper-2 surfaces, keeps 4.5:1 */

  --soil: #7A5C3E;
  --sea: #2F5D73;
  --kitchen: #A23B2A;
  --policy: #3E5A3A;
  --photo: #4A463F;
  --section: var(--ink);
  --on-image: #F6F1E7;

  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-text: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --g: 16px;
  --gutter: 20px;
  --maxw: 1320px;

  --fs-label: clamp(0.75rem, 0.7rem + 0.16vw, 0.875rem);
  --fs-headline: clamp(2.5rem, 1.34rem + 5.16vw, 6.5rem);
  --fs-dek: clamp(1.25rem, 1.105rem + 0.645vw, 1.75rem);
  --fs-body: 18px;
  --fs-pull: 28px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}
@media (min-width: 768px)  { :root { --g: 20px; --gutter: 32px; --fs-body: 19px; --fs-pull: 36px; } }
@media (min-width: 1100px) { :root { --g: 24px; --gutter: 40px; --fs-body: 21px; --fs-pull: 48px; } }
@media (min-width: 1500px) { :root { --maxw: 1440px; } }

[data-section="soil"]    { --section: var(--soil); }
[data-section="sea"]     { --section: var(--sea); }
[data-section="kitchen"] { --section: var(--kitchen); }
[data-section="policy"]  { --section: var(--policy); }
[data-section="photo"]   { --section: var(--photo); }

/* ---------- reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--section); }
:focus-visible { outline: 2px solid var(--section, var(--ink)); outline-offset: 3px; border-radius: 1px; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--section) 22%, transparent); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; font: 600 14px/1 var(--f-sans); text-decoration: none; }
.skip:focus { top: 12px; color: var(--paper); }

.label, .kicker, .card-meta, .byline, .op-meta, .mast-meta, .mast-tag, .foot-h {
  font-family: var(--f-sans);
  font-size: var(--fs-label);
  line-height: 1.35;
}
.label { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.mute { color: var(--mute); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .875rem/1 var(--f-sans); letter-spacing: .04em;
  padding: .95em 1.5em; min-height: 44px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 0; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--section); border-color: var(--section); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--small { padding: .6em 1em; min-height: 36px; font-size: .8125rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- masthead */
.masthead { background: var(--paper); }
.mast-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; border-bottom: 1px solid var(--rule); }
.mast-tag { margin: 0; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.util { display: flex; align-items: center; gap: 1.25rem; font-family: var(--f-sans); font-size: var(--fs-label); }
.util a:not(.btn) { text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: .4em; min-height: 36px; }
.util a:not(.btn):hover { text-decoration: underline; }
.util .btn:hover { color: var(--paper); }
.util .btn { white-space: nowrap; }
.util-show-sm { display: none; }
.mast-title { white-space: nowrap; }

.mast-main { text-align: center; padding-block: clamp(1.25rem, 3vw, 2.25rem) 0; }
.mast-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.9rem, 1.1rem + 7.8vw, 9rem);
  line-height: .92;
  letter-spacing: -0.028em;
  font-variation-settings: "opsz" 144;
  margin: 0;
}
.mast-title a { text-decoration: none; color: inherit; }
.mast-title a:hover { color: inherit; }
.mast-meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 0;
  margin: 1rem 0 0; padding-bottom: .8rem;
  border-bottom: 3px double var(--ink);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
}
.mast-meta span + span::before { content: ""; display: inline-block; width: 1px; height: .9em; background: var(--rule); margin: 0 1rem; vertical-align: -0.1em; }

.secnav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 0 clamp(1.25rem, 3vw, 2.75rem); }
.secnav a {
  display: block; padding: .85rem 0 .75rem;
  font: 600 var(--fs-label)/1 var(--f-sans); text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; border-bottom: 2px solid transparent;
}
.secnav a:hover, .secnav a[aria-current="page"] { color: var(--section); border-bottom-color: currentColor; }
.masthead--cover .secnav { border-bottom: 1px solid var(--rule); }

.masthead--compact .mast-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; border-bottom: 3px double var(--ink); }
.masthead--compact .mast-title { font-size: clamp(1.45rem, 1rem + 1.5vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.masthead--compact .secnav { border-bottom: 1px solid var(--rule); }
.masthead--compact .secnav ul { justify-content: flex-start; }

@media (max-width: 767px) {
  .mast-tag { display: none; }
  .mast-top { justify-content: flex-end; }
  .masthead--cover .mast-main { text-align: left; }
  .mast-meta { justify-content: flex-start; }
  .mast-date { display: none; }
  .mast-meta span.mast-date + span::before { display: none; }
  .mast-meta span:nth-child(2)::before { display: none; }
  .util { gap: .9rem; }
  .util-hide-sm { display: none !important; }
  .util-show-sm { display: inline; }
  .secnav ul { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 0 1.35rem; padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); }
  .secnav ul::-webkit-scrollbar { display: none; }
  .secnav li { flex: none; }
  .masthead--compact .util-search { font-size: 0; gap: 0; }
  .masthead--compact .util-search svg { width: 20px; height: 20px; }
}

/* ---------- footer */
.site-footer { margin-top: clamp(3rem, 8vw, 6rem); border-top: 3px double var(--ink); padding-top: 2.5rem; font-family: var(--f-sans); font-size: .9375rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.foot-mast { font-family: var(--f-display); font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin-bottom: .75rem; }
.foot-mast a { text-decoration: none; }
.foot-brand p:last-child { color: var(--mute); max-width: 32ch; line-height: 1.5; }
.foot-h { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin: 0 0 .75rem; color: var(--mute); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.site-footer nav a { text-decoration: none; display: inline-block; padding: .3rem 0; }
.site-footer nav a:hover { text-decoration: underline; color: inherit; }
.foot-base { margin-top: 2.5rem; padding-block: 1.25rem 2rem; border-top: 1px solid var(--rule); color: var(--mute); font-size: .8125rem; }
.foot-base p { margin: 0; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- art */
.art { position: relative; aspect-ratio: var(--ratio, 3/2); background: var(--paper-2); overflow: hidden; }
.art > svg, .art > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.js .art > svg, .js .art > img { opacity: 0; transition: opacity .3s ease; }
.art.is-in > svg, .art.is-in > img { opacity: 1; }
.art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px; mix-blend-mode: multiply; opacity: .28;
}
.reveal { transition: opacity .6s ease, transform .6s var(--ease); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  .js .art > svg, .js .art > img, .reveal { transition: none; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
}

/* ---------- cards */
.kicker { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--section); }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; color: inherit; }
.kicker .kind { color: var(--mute); font-weight: 500; }
.card { display: flex; flex-direction: column; gap: .9rem; }
.card-media { display: block; }
.card-title { font-size: clamp(1.45rem, 1.2rem + .7vw, 1.85rem); font-weight: 450; letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 .55rem; font-variation-settings: "opsz" 72; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; color: inherit; }
.card-title em { color: var(--section); }
.card-dek { font-size: 1.0625rem; line-height: 1.5; margin: 0 0 .7rem; color: var(--ink); }
.card-meta { color: var(--mute); margin: 0; letter-spacing: .02em; }
.card--big .card-title { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem); font-weight: 400; line-height: 1.02; }
.card--big .card-dek { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; line-height: 1.4; }
.card--small .card-title { font-size: 1.3rem; }
.card--small .card-dek { font-size: 1rem; }

/* ---------- membership band */
.member-band { background: var(--paper-2); --mute: var(--mute-2); padding-block: clamp(2.5rem, 6vw, 4.5rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.member-inner { text-align: center; max-width: 46rem; }
.member-kicker { color: var(--mute); margin-bottom: .75rem; }
.member-title { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-style: italic; font-weight: 400; margin-bottom: .75rem; }
.member-copy { color: var(--ink); margin-inline: auto; max-width: 36rem; font-size: 1.0625rem; }
.member-inner .btn { margin: .25rem .25rem 0; }

/* ---------- misc */
.rule-title { display: flex; align-items: baseline; gap: 1rem; margin: 0 0 1.5rem; padding-top: .6rem; border-top: 1px solid var(--ink); }
.rule-title h2 { font: 600 var(--fs-label)/1.3 var(--f-sans); text-transform: uppercase; letter-spacing: .08em; }
.rule-title a { margin-left: auto; font: 500 var(--fs-label)/1.3 var(--f-sans); text-decoration: none; }
.rule-title a:hover { text-decoration: underline; }
.notice { font-family: var(--f-sans); font-size: .9375rem; line-height: 1.5; padding: .8rem 1rem; border: 1px solid var(--rule); background: var(--paper-2); --mute: var(--mute-2); }
main:has(> .member-band:last-child) + .site-footer { margin-top: 0; }
main:has(> .member-band:last-child) > .member-band { border-bottom: 0; }
