/* Rivercane Publishing
   Editorial layout: a serif display face, a quiet sans for reading, parchment and forest green,
   hairline rules, and one restrained woven motif. Mobile first; breakpoints at 640, 900 and 1100px. */

/* Self-hosted fonts (Latin subsets, SIL Open Font License; see assets/fonts) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("fonts/cormorant-garamond-latin.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/jost-latin.woff2") format("woff2"); }

:root {
  --forest: #1d3a29;
  --forest-deep: #132a1c;
  --forest-ink: #24452f;
  --parchment: #f4eee2;
  --paper: #fbf8f1;
  --wheat: #c8a86a;      /* decoration only: rules and the woven band */
  --gold-ink: #7a5c20;   /* text-safe gold, 5.6:1 on parchment */
  --copper: #9c4d18;     /* from the logo; links and accents, 5.5:1 on parchment */
  --charcoal: #23221e;
  --muted: #57534a;      /* 7:1 on parchment */
  --rule: #d9cfbb;
  --on-dark: #f4eee2;
  --on-dark-muted: #c9d3c9;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;

  --r-sm: 3px; --r-md: 6px;
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 40px; --s-5: 64px; --s-6: 104px;
  --wrap: 1180px;
  --shadow-print: 0 1px 0 rgba(35, 34, 30, .06), 0 14px 30px -12px rgba(35, 34, 30, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--parchment); color: var(--charcoal); font: 400 1.125rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: var(--r-sm); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.06; letter-spacing: -.005em; color: var(--forest-deep); margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.55rem + 4.4vw, 5.1rem); }
h2 { font-size: clamp(2.05rem, 1.45rem + 2.3vw, 3.25rem); }
h3 { font-size: clamp(1.45rem, 1.25rem + .7vw, 1.8rem); line-height: 1.15; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--copper); }
p, ul, ol, dl { margin: 0 0 1em; }
p { max-width: 68ch; text-wrap: pretty; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Labels and small type */
.eyebrow { display: block; font: 600 .8125rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 var(--s-2); }
.lede { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); line-height: 1.6; color: #3b3830; max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 1rem; }
.folio { font: italic 500 1.2rem/1 var(--serif); color: var(--gold-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: var(--r-sm);
  font: 500 1.0625rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--forest); color: var(--on-dark); }
.btn-primary:hover { background: var(--forest-deep); color: #fff; }
.btn-ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--forest); color: var(--on-dark); }
.btn-light { background: var(--parchment); color: var(--forest-deep); }
.btn-light:hover { background: #fff; color: var(--forest-deep); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-3); }
.text-link { font-weight: 500; color: var(--forest); text-decoration: none; border-bottom: 1.5px solid var(--wheat); padding-bottom: 2px; display: inline-flex; min-height: 44px; align-items: center; }
.text-link:hover { color: var(--copper); border-bottom-color: var(--copper); }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(244, 238, 226, .96); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(6px)) { .masthead { background: rgba(244, 238, 226, .88); backdrop-filter: blur(6px); } }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest-deep); min-height: 48px; }
.brand img { width: 40px; height: 40px; }
.brand-name { display: flex; flex-direction: column; font: 700 1.55rem/1 var(--serif); letter-spacing: .01em; }
.brand-name span { font: 600 .66rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-ink); margin-top: 5px; }
.nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--forest); border-radius: var(--r-sm);
  background: transparent; color: var(--forest); font: 500 1rem var(--sans); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s, opacity .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
#site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -18px rgba(0,0,0,.25); }
#site-nav.open { display: block; }
#site-nav ul { list-style: none; margin: 0; padding: 8px 20px 20px; }
#site-nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--charcoal); font-size: 1.125rem; }
#site-nav a[aria-current="page"] { color: var(--copper); font-weight: 500; }
#site-nav .nav-cta a { border: 0; margin-top: 14px; justify-content: center; background: var(--forest); color: var(--on-dark); border-radius: var(--r-sm); }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  #site-nav, #site-nav.open { display: block; position: static; background: none; border: 0; box-shadow: none; }
  #site-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  #site-nav a { border: 0; min-height: 48px; padding: 0 14px; font-size: 1rem; letter-spacing: .02em; }
  #site-nav a:hover { color: var(--copper); }
  #site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--copper); }
  #site-nav .nav-cta a { margin: 0 0 0 10px; padding: 0 20px; }
  #site-nav .nav-cta a:hover { background: var(--forest-deep); color: #fff; }
}

/* The woven band: thin diagonal strips in wheat, after rivercane basket twill. Decorative only. */
.weave-band { height: 12px; background-color: var(--forest); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cg fill='%23c8a86a'%3E%3Cpath d='M0 0h4l6 6-6 6H0l6-6z' opacity='.85'/%3E%3Cpath d='M12 0h4l6 6-6 6h-4l6-6z' opacity='.5'/%3E%3C/g%3E%3C/svg%3E"); background-size: 24px 12px; }

/* Sections */
.section { padding: var(--s-5) 0; }
@media (min-width: 900px) { .section { padding: var(--s-6) 0; } }
.section + .section { border-top: 1px solid var(--rule); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--forest); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--wheat); }
.section-dark .lede, .section-dark p { color: var(--on-dark-muted); }
.section-dark a:not(.btn) { color: #f1d6a8; }
.section-head { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 5fr 6fr; gap: var(--s-5); align-items: end; }
  .section-head.split p { margin-bottom: .5em; }
}

/* Home hero */
.hero { padding: var(--s-5) 0 var(--s-5); }
.hero-grid { display: grid; gap: var(--s-5); align-items: center; }
.hero h1 { max-width: 13ch; }
@media (min-width: 900px) { .hero { padding: 88px 0 96px; } .hero-grid { grid-template-columns: 6fr 5fr; } }
.shelf { position: relative; margin: 0; }
.shelf-stack { position: relative; aspect-ratio: 1 / 1.12; max-width: 520px; margin: 0 auto; }
.shelf-stack img { position: absolute; width: 50%; border-radius: 2px; box-shadow: var(--shadow-print); background: #fff; }
.shelf-stack .s1 { left: 0; top: 14%; width: 66%; transform: rotate(-4deg); z-index: 1; }
.shelf-stack .s2 { left: 40%; top: 0; transform: rotate(5deg); z-index: 2; }
.shelf-stack .s3 { left: 6%; top: 46%; transform: rotate(3deg); z-index: 3; width: 44%; }
.shelf-stack .s4 { left: 48%; top: 40%; transform: rotate(-3deg); z-index: 4; width: 46%; }
.shelf figcaption { margin-top: var(--s-3); text-align: center; font-size: .95rem; color: var(--muted); }
.shelf figcaption strong { color: var(--gold-ink); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; display: block; }

/* Facts row: three short definitions set like a colophon */
.facts { display: grid; gap: 0; border-top: 2px solid var(--forest); margin: var(--s-4) 0 0; }
.facts > div { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 600 .8125rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.facts dd { margin: 0; font: 600 1.45rem/1.25 var(--serif); color: var(--forest-deep); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, 1fr); } .facts > div { padding: var(--s-3) var(--s-3) var(--s-3) 0; } .facts > div + div { padding-left: var(--s-3); border-left: 1px solid var(--rule); } }

/* Numbered process, as a ruled list */
.process { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; }
.process li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 0 var(--s-2); padding: var(--s-3) 0; border-top: 1px solid var(--rule); }
.process li:last-child { border-bottom: 1px solid var(--rule); }
.process li::before { content: counter(step, decimal-leading-zero); font: italic 500 2rem/1 var(--serif); color: var(--copper); padding-top: 4px; }
.process li > * { grid-column: 2; }
.process h3 { margin-bottom: .25em; }
.process p { margin: 0; color: #3b3830; }
.process .who { display: block; font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
@media (min-width: 900px) {
  .process.row { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .process.row li { grid-template-columns: 1fr; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--rule); }
  .process.row li + li { padding-left: var(--s-3); border-left: 1px solid var(--rule); }
  .process.row li::before { margin-bottom: var(--s-2); }
  .process.row li > * { grid-column: 1; }
  .process.wide li { grid-template-columns: 96px 1fr 1fr; gap: var(--s-4); align-items: start; }
  .process.wide li::before { font-size: 2.6rem; }
  .process.wide li > div { grid-column: 3; }
}
.section-dark .process li { border-color: rgba(244, 238, 226, .2); }
.section-dark .process li::before { color: var(--wheat); }
.section-dark .process p { color: var(--on-dark-muted); }
.section-dark .process .who { color: var(--wheat); }

/* Sample cards */
.samples { display: grid; gap: var(--s-4) var(--s-3); }
@media (min-width: 640px) { .samples { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .samples.four { grid-template-columns: repeat(4, 1fr); } }
.sample-card { display: flex; flex-direction: column; position: relative; }
/* Fixed square frame; contain: size keeps a tall cover from stretching it */
.sample-card .cover { background: var(--paper); border: 1px solid var(--rule); padding: 22px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; contain: size; transition: border-color .2s; }
.sample-card .cover img { max-height: 100%; max-width: 100%; width: auto; height: auto; box-shadow: var(--shadow-print); }
.sample-card:hover .cover { border-color: var(--wheat); }
.sample-card .cat { font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: var(--s-2) 0 6px; }
.sample-card h3 { margin-bottom: .3em; }
.sample-card h3 a { color: inherit; text-decoration: none; }
.sample-card h3 a::after { content: ""; position: absolute; inset: 0; }
.sample-card h3 a:hover { color: var(--copper); }
.sample-card p { font-size: 1rem; color: var(--muted); margin: 0; }
.concept-tag { display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); border: 1px solid var(--forest); padding: 6px 9px; border-radius: var(--r-sm); }

/* Sample Work gallery: larger alternating rows */
.work-list { display: grid; gap: var(--s-5); }
.work-item { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--rule); position: relative; }
.work-item:first-child { border-top: 0; padding-top: 0; }
.work-item .cover { background: var(--paper); border: 1px solid var(--rule); padding: clamp(20px, 4vw, 44px); display: grid; place-items: center; }
.work-item .cover img { box-shadow: var(--shadow-print); max-height: 520px; width: auto; }
.work-item .cover.landscape img { width: 100%; height: auto; }
.work-item h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); }
.work-item h2 a { color: inherit; text-decoration: none; }
.work-item h2 a:hover { color: var(--copper); }
.work-item .num { font: italic 500 1.2rem var(--serif); color: var(--gold-ink); display: block; margin-bottom: 8px; }
.work-item dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 1rem; margin: var(--s-2) 0; }
.work-item dt { font-weight: 600; color: var(--forest-deep); }
.work-item dd { margin: 0; color: #3b3830; }
.ticks { list-style: none; padding: 0; margin: 0 0 var(--s-2); }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--wheat); transform: rotate(45deg); }
@media (min-width: 900px) {
  .work-item { grid-template-columns: 5fr 6fr; gap: var(--s-5); align-items: center; }
  .work-item:nth-child(even) .cover { order: 2; }
}

/* Notice box */
.notice { border-left: 3px solid var(--copper); background: var(--paper); padding: 16px 20px; font-size: 1rem; color: #3b3830; max-width: 760px; }
.notice p:last-child { margin-bottom: 0; }

/* Sample detail page */
.crumbs { font-size: .95rem; margin-bottom: var(--s-3); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { display: flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.crumbs a { display: inline-flex; min-height: 44px; align-items: center; }
.detail-head { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .detail-head { grid-template-columns: 6fr 5fr; align-items: start; } }
.spec { border-top: 2px solid var(--forest); margin: 0; }
.spec > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.spec dd { margin: 0; }
.two-col { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery.landscape { grid-template-columns: repeat(2, 1fr); } }
.gallery a { display: block; text-decoration: none; color: var(--charcoal); }
.gallery .frame { background: var(--paper); border: 1px solid var(--rule); padding: 14px; transition: border-color .2s; }
.gallery img { box-shadow: var(--shadow-print); width: 100%; }
.gallery a:hover .frame { border-color: var(--wheat); }
.gallery .cap { display: flex; justify-content: space-between; gap: 8px; font-size: .95rem; margin-top: 10px; }
.gallery .cap span:last-child { color: var(--copper); }

/* Lightbox (native dialog) */
.lightbox { width: min(1180px, 100vw); max-width: 100vw; max-height: 100vh; height: 100vh; margin: 0 auto; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(14, 22, 16, .97); }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.lb-bar p { margin: 0; font-size: 1rem; color: #e9e4d8; }
.lb-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 12px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; background: #fff; }
.lb-nav { display: flex; justify-content: center; gap: 12px; padding: 12px; }
.lb-btn { min-width: 48px; min-height: 48px; padding: 0 16px; border: 1.5px solid rgba(255,255,255,.6); border-radius: var(--r-sm); background: rgba(0,0,0,.25); color: #fff; font: 500 1rem var(--sans); cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.15); }

/* Editorial index of product formats */
.formats { list-style: none; padding: 0; margin: 0; columns: 1; column-gap: var(--s-4); }
.formats li { break-inside: avoid; display: grid; grid-template-columns: 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.formats b { font: 600 1.45rem/1.2 var(--serif); color: var(--forest-deep); }
.formats span { font-size: 1rem; color: var(--muted); }
@media (min-width: 640px) { .formats { columns: 2; } }
@media (min-width: 1100px) { .formats { columns: 3; } }

/* Founder note */
.founder { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .founder { grid-template-columns: 4fr 7fr; gap: var(--s-5); } }
.founder blockquote { margin: 0; font: italic 500 clamp(1.5rem, 1.2rem + 1vw, 2.05rem)/1.35 var(--serif); color: var(--forest-deep); border-left: 2px solid var(--wheat); padding-left: var(--s-3); }
.founder .sig { margin-top: var(--s-2); font-size: 1rem; color: var(--muted); }
.creds { list-style: none; padding: 0; margin: var(--s-3) 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.creds li { padding: 12px 0; border-bottom: 1px solid var(--rule); }

/* Roles table: who does what */
.roles { display: grid; gap: var(--s-3); }
@media (min-width: 900px) { .roles { grid-template-columns: 1fr 1fr; gap: 0; } .roles > div + div { border-left: 1px solid var(--rule); padding-left: var(--s-4); } .roles > div:first-child { padding-right: var(--s-4); } }
.roles h3 { padding-bottom: 12px; border-bottom: 2px solid var(--forest); }

/* Terms panel for the proposed arrangement */
.terms-panel { background: var(--paper); border: 1px solid var(--rule); padding: clamp(24px, 4vw, 48px); display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .terms-panel { grid-template-columns: 1fr 1fr; } }
.big-figure { font: 600 clamp(3.4rem, 2.4rem + 4vw, 5.6rem)/1 var(--serif); color: var(--forest-deep); display: block; }
.big-figure small { display: block; font: 600 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-top: 10px; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }

/* FAQ */
.faq { border-top: 1px solid var(--rule); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0;
  font: 600 1.4rem/1.25 var(--serif); color: var(--forest-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--copper); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 var(--s-3); }
.faq details p:last-child { margin-bottom: 0; }

/* Call to action band */
.cta { display: grid; gap: var(--s-3); align-items: center; }
@media (min-width: 900px) { .cta { grid-template-columns: 7fr 4fr; } .cta .actions { justify-content: flex-end; margin: 0; } }
.cta h2 { margin-bottom: .25em; }

/* Contact */
.contact-grid { display: grid; gap: var(--s-5); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 7fr 4fr; } }
.form { background: var(--paper); border: 1px solid var(--rule); padding: clamp(22px, 4vw, 40px); }
.form fieldset { border: 0; padding: 0; margin: 0 0 var(--s-3); }
.form legend { font: 600 1.5rem var(--serif); color: var(--forest-deep); padding: 0; margin-bottom: var(--s-2); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field .req { color: var(--copper); }
.field .hint { display: block; font-size: .95rem; color: var(--muted); margin: -2px 0 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 11px 14px; font: 400 1.0625rem/1.4 var(--sans); color: var(--charcoal);
  background: #fff; border: 1.5px solid #8d8574; border-radius: var(--r-sm); }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231d3a29' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); outline: 3px solid rgba(156, 77, 24, .35); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #a12a1f; }
.field .error { display: none; color: #a12a1f; font-size: .95rem; margin-top: 6px; }
.field .error.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .95rem; color: var(--muted); margin-top: var(--s-2); }
.form-status { display: none; margin-top: var(--s-3); padding: 16px 18px; border-radius: var(--r-md); background: #e9f0e6; border: 1px solid #b6cab0; }
.form-status.show { display: block; }
.form-status.is-error { background: #fbeceb; border-color: #e0aca6; color: #6f1c15; }
.form-status strong { display: block; }
.directory { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--forest); }
.directory li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.directory b { display: block; font: 600 1.3rem/1.2 var(--serif); color: var(--forest-deep); }
.directory span { display: block; font-size: 1rem; color: var(--muted); }
.directory a { display: inline-flex; min-height: 44px; align-items: center; word-break: break-word; }

/* Long-form legal pages */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-size: 1rem; }

/* Page header for inner pages */
.page-head { padding: var(--s-5) 0 var(--s-4); }
@media (min-width: 900px) { .page-head { padding: 88px 0 var(--s-5); } }
.page-head h1 { max-width: 17ch; }

/* Footer */
.site-footer { background: var(--forest-deep); color: var(--on-dark-muted); padding: var(--s-5) 0 var(--s-4); font-size: 1rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.site-footer a:hover { color: var(--wheat); text-decoration: underline; }
.foot-grid { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 5fr 3fr 4fr 3fr; } }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand-name span { color: var(--wheat); }
.site-footer h2 { font: 600 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--wheat); margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer p { color: var(--on-dark-muted); }
.foot-base { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid rgba(244, 238, 226, .16); display: grid; gap: 8px; font-size: .95rem; }
@media (min-width: 900px) { .foot-base { grid-template-columns: 1fr auto; } }
.foot-base p { margin: 0; max-width: none; }

/* Whop product block (shown only for products with a live Whop link; see src/content/products.mjs) */
.product-card { border: 1px solid var(--rule); background: var(--paper); padding: var(--s-3); display: grid; gap: var(--s-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print { .masthead, .site-footer, .weave-band, .nav-toggle { display: none; } body { background: #fff; } }
