/* public/css/styles.css: site stylesheet (naturalist plate identity)
   Revision two: fluid editorial type scale (mobile sizes preserved,
   desktop substantially larger), plates presented as printed objects
   rather than boxed thumbnails, open editorial composition in place of
   numbered panels. */

/* Self-hosted faces, SIL Open Font License; license texts ship in /fonts. */
@font-face {
  font-family: 'Pinyon Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/pinyon-script-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin-400-italic.woff2') format('woff2');
}

/* Palette tokens per the decisions record. */
:root {
  --paper: #F5EBD8;
  --paper-panel: #EFE3C9;
  --ivory: #F8F4E8;
  --ink: #2B2A24;
  --sage: #8C9B7A;
  --moss: #4A6A45;
  --olive: #33502F;
  --forest: #22351F;
  --caramel: #A87C3F;
  --bronze-deep: #7E5A2B; /* accessible text variant of caramel (5.25 to 1 on paper) */
  --sand: #D8C7A1;

  /* Fluid type scale: the lower bound holds at a 390px viewport, the
     upper bound arrives by roughly 1440px. */
  --t-body: clamp(17px, 15.9px + 0.29vw, 20px);
  --t-display: clamp(27px, 21.4px + 1.43vw, 42px);
  --t-names: clamp(36px, 22.6px + 3.43vw, 72px);
  --t-label: clamp(14px, 13.3px + 0.19vw, 16px);
  --t-names-and: clamp(20px, 16.7px + 0.86vw, 29px);
  --t-script-sub: clamp(22px, 18.3px + 0.95vw, 32px);
  --t-kicker: clamp(12px, 11.3px + 0.19vw, 14px);
  --t-section: clamp(15px, 13.5px + 0.38vw, 19px);
  --t-nav: clamp(12px, 11.3px + 0.19vw, 14px);
  --t-wordmark: clamp(30px, 24.1px + 1.52vw, 46px);
  --t-date: clamp(13px, 11.5px + 0.38vw, 17px);
  --t-place: clamp(12px, 10.9px + 0.29vw, 15px);
  --t-band: clamp(13px, 11.9px + 0.29vw, 16px);
  --t-band-sub: clamp(11px, 10.3px + 0.19vw, 13px);
  --t-button: clamp(14px, 13.3px + 0.19vw, 16px);
  --t-small: clamp(15px, 14.3px + 0.19vw, 17px);
  --t-input: clamp(16px, 15.3px + 0.19vw, 18px);
  --t-card-heading: clamp(18px, 16.5px + 0.38vw, 22px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--moss); }
a:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ivory);
  color: var(--forest);
  padding: 10px 18px;
  z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Wordmark and navigation */
.wordmark { text-align: center; padding: clamp(18px, 1.5vw, 30px) 16px 0; }
.wordmark a {
  font-family: 'Pinyon Script', 'Snell Roundhand', cursive;
  font-size: var(--t-wordmark);
  color: var(--forest);
  text-decoration: none;
}
.wordmark-and { font-size: 0.62em; color: var(--moss); }
.wordmark a:hover { color: var(--moss); }
.wordmark a:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px clamp(20px, 2.4vw, 36px);
  padding: clamp(10px, 1vw, 16px) 16px clamp(16px, 1.4vw, 22px);
}
.nav a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-nav);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover { color: var(--moss); border-bottom-color: var(--moss); }
.nav a[aria-current="page"] { color: var(--moss); border-bottom-color: var(--moss); }
.nav a:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

/* Five items must hold one line at 390px: tighter tracking and gaps. */
@media (max-width: 480px) {
  .nav { gap: 6px 14px; padding: 10px 10px 16px; }
  .nav a { letter-spacing: 0.16em; padding: 8px 4px; }
}

/* Bookcloth bands */
.band {
  background: var(--forest);
  color: var(--ivory);
  text-align: center;
  padding: clamp(16px, 1.4vw, 22px) 16px;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}
.band-inner {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-band);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.band .diamond {
  width: 7px;
  height: 7px;
  background: var(--caramel);
  transform: rotate(45deg);
  flex: none;
}
.band.footer-band { padding: clamp(22px, 1.8vw, 30px) 16px; }
.band.footer-band .band-inner { letter-spacing: 0.28em; }
.band-sub {
  display: block;
  margin-top: 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-band-sub);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(248, 244, 232, 0.78);
}

/* Page scaffolding */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(34px, 3.4vw, 56px) 20px clamp(46px, 4.2vw, 72px);
}
.page.wide { max-width: 1080px; }
.page.narrow { max-width: 680px; }
.centered-page { text-align: center; }
.centered { text-align: center; }

/* Display headings with a small-caps kicker above */
.kicker {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-kicker);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  text-align: center;
}
.page-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-display);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  text-align: center;
  margin: 10px 0 8px;
  line-height: 1.18;
}
.script-sub {
  font-family: 'Pinyon Script', 'Snell Roundhand', cursive;
  font-size: var(--t-script-sub);
  color: var(--moss);
  text-align: center;
  margin-bottom: 6px;
}
.page-intro { margin: clamp(26px, 3vw, 44px) 0 clamp(18px, 2vw, 26px); }

.section-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-section);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 10px;
}

.lede { max-width: 62ch; margin: 0 auto 24px; text-align: center; }

/* Artwork presentation. The plates carry their own aged-paper sheets,
   deckled edges, and engraved captions, so the site never frames them:
   a sheet is laid on the page with only a faint object lift, and an
   isolated portrait melts into the paper through a feathered mask. */
.art { margin: 0 auto clamp(26px, 3vw, 42px); }
.art img { display: block; width: 100%; height: auto; }
.art--sheet img {
  box-shadow: 0 1px 2px rgba(43, 42, 36, 0.10), 0 18px 44px -18px rgba(43, 42, 36, 0.30);
}
/* Isolated portraits (no drawn sheet of their own) carry a feathered
   fade to the exact page paper color baked into the derivative itself,
   so they print onto the page with no frame, shadow, or CSS effect. */
.art--vignette img { box-shadow: none; }
.wide-art { max-width: 1080px; }
.hero-art { width: min(84vw, 340px); }

/* Editorial duet: a wide plate beside a tall plate, offset, on desktop;
   a simple stack on mobile. */
.duet { margin: clamp(26px, 3vw, 46px) 0; }
.duet .art { margin-bottom: 22px; }
@media (min-width: 880px) {
  .duet {
    display: grid;
    grid-template-columns: 7fr 4fr;
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
  }
  .duet .art { margin-bottom: 0; }
  .duet-side { margin-top: clamp(30px, 4vw, 64px); }
}

/* Prose beside a portrait on desktop (FAQ attire, similar moments). */
.prose-and-art { margin: 0 0 8px; }
.prose-and-art .art { max-width: 320px; margin: 18px auto 8px; }
@media (min-width: 880px) {
  .prose-and-art {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: clamp(28px, 3.4vw, 52px);
    align-items: center;
  }
  .prose-and-art .art { margin: 0; max-width: 360px; }
}

/* Formal centered block (ceremony details) */
.formal-block { text-align: center; max-width: 60ch; margin: 0 auto; }
.formal-block p { margin-bottom: 14px; }
.formal-line { font-size: clamp(18px, 16.5px + 0.38vw, 22px); }

/* Divider vine */
.vine { width: min(70vw, 250px); height: 26px; margin: 26px auto 22px; display: block; }
.vine-divider { margin: clamp(28px, 3vw, 44px) auto; }

/* Content panels (retained for the RSVP form; everywhere else the
   composition is open) */
.panel {
  border: 1px solid var(--sand);
  background: var(--ivory);
  padding: clamp(22px, 2.4vw, 34px) clamp(22px, 2.4vw, 34px) clamp(20px, 2.2vw, 30px);
  margin: 0 0 22px;
}
.panel p { margin-bottom: 12px; }
.panel p:last-child { margin-bottom: 0; }

/* Frontispiece (landing): a centered stack on mobile; an editorial
   split (portrait beside the announcement) from 1024px up. */
.frontispiece {
  min-height: 74svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(38px, 4vw, 64px) 22px clamp(52px, 5vw, 84px);
}
.hero-art { margin-bottom: 4px; }
.front-announce {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 1024px) {
  .frontispiece {
    display: grid;
    grid-template-columns: minmax(0, 470px) minmax(0, 560px);
    gap: clamp(40px, 6vw, 96px);
    justify-content: center;
    align-items: center;
  }
  .hero-art { width: 100%; margin-bottom: 0; }
}

.names { font-family: 'Pinyon Script', 'Snell Roundhand', cursive; font-weight: 400; }
.names .line { display: block; font-size: var(--t-names); line-height: 1.22; color: var(--forest); }
.names .and { display: block; font-size: var(--t-names-and); color: var(--moss); margin: 1px 0; }

.date {
  margin-top: clamp(22px, 2vw, 30px);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-date);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 2.1;
  text-wrap: balance;
}
.place {
  margin-top: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-place);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--moss);
}

/* Buttons */
.button {
  display: inline-block;
  margin-top: 30px;
  min-height: 48px;
  min-width: 190px;
  padding: clamp(14px, 1.2vw, 17px) clamp(46px, 4vw, 60px);
  background: var(--olive);
  color: var(--ivory);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-button);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--forest);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.button:hover { background: var(--forest); color: var(--ivory); }
.button:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.deadline {
  margin-top: 16px;
  font-style: italic;
  font-size: var(--t-small);
  color: var(--ink);
}
.deadline.centered { margin-top: 0; margin-bottom: 22px; }

/* Quiet outlined secondary controls: forest text and a visible rule so
   they read clearly on the paper ground. */
.quiet-link,
.contact-button {
  display: inline-block;
  padding: 10px 26px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-nav);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--olive);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.quiet-link { margin-top: 14px; }
.quiet-link:hover,
.contact-button:hover { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.quiet-link:focus-visible,
.contact-button:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.contact { text-align: center; padding: 8px 20px clamp(40px, 4vw, 58px); }
.contact-button { min-height: 46px; padding: 12px 30px; }
.contact-note {
  font-family: 'Pinyon Script', 'Snell Roundhand', cursive;
  font-size: clamp(21px, 18px + 0.76vw, 29px);
  color: var(--forest);
  margin-bottom: 12px;
}

/* Cross links (elegant closing line on content pages) */
.cross-links {
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-section);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: clamp(26px, 3vw, 42px);
}
.cross-links a { color: var(--forest); text-decoration-color: var(--caramel); }
.cross-links .sep { color: var(--caramel); padding: 0 10px; }

/* Lodging: open editorial entries in a two-column desktop grid. */
.cards { display: grid; grid-template-columns: 1fr; gap: clamp(22px, 2.6vw, 40px) clamp(28px, 3vw, 48px); margin: clamp(26px, 3vw, 40px) 0 26px; }
.card { border-top: 1px solid var(--sand); padding-top: 18px; }
.card-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-card-heading);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--forest);
  margin-bottom: 6px;
}
.card-line { font-style: italic; margin-bottom: 8px; }
.card-detail { line-height: 1.9; }
.card .quiet-link { margin-top: 12px; }

@media (min-width: 760px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.travel-notes { max-width: 66ch; margin: 0 auto; border-top: 1px solid var(--sand); padding-top: clamp(24px, 2.6vw, 38px); }
.travel-notes .section-heading { text-align: center; }
.travel-notes p { text-align: center; }

/* FAQ */
.qa-list { max-width: 72ch; margin: 0 auto; }
.qa { border-top: 1px solid var(--sand); padding: clamp(24px, 2.6vw, 38px) 0 clamp(10px, 1.2vw, 18px); }
.qa:first-of-type { border-top: 0; padding-top: clamp(8px, 1vw, 14px); }
.qa-q {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(20px, 17.8px + 0.57vw, 26px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--forest);
  margin-bottom: 12px;
}
.qa-a p { margin-bottom: 14px; max-width: 66ch; }
.qa .art { margin-top: 20px; }

/* RSVP form */
.rsvp-art { width: min(56vw, 280px); }
.rsvp-form { padding: clamp(26px, 2.8vw, 40px) clamp(22px, 2.4vw, 36px); }
.field { margin-bottom: 24px; }
.field:last-of-type { margin-bottom: 18px; }
fieldset.field { border: 0; }
.field label,
.field legend {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 8px;
}
.legend-name { text-transform: none; letter-spacing: 0.02em; font-weight: 500; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: var(--t-input);
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--moss);
  padding: 12px 14px;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
  border-color: var(--olive);
}
.field-help { font-size: var(--t-small); font-style: italic; margin-bottom: 8px; }
.field-error {
  margin-top: 6px;
  font-size: var(--t-small);
  color: var(--forest);
  border-left: 3px solid var(--caramel);
  padding-left: 10px;
}
.has-error input,
.has-error textarea { border-color: var(--caramel); }
.form-error-banner {
  border: 1px solid var(--caramel);
  background: var(--ivory);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.radio-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  font-size: var(--t-body);
}
.radio-line span { font-family: 'EB Garamond', Georgia, serif; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); }
.radio-line input { accent-color: var(--olive); width: 18px; height: 18px; flex: none; }
.radio-line input:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }

/* Party size cards: full-width tappable cards; the selected state shows
   through border, background, and a check mark together, never color alone. */
.party-card { display: block; margin-bottom: 10px; cursor: pointer; }
.party-card input {
  position: absolute;
  opacity: 0.0001;
}
.party-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--moss);
}
.party-card-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: var(--t-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink);
}
.party-card-check {
  visibility: hidden;
  color: var(--olive);
  font-size: 18px;
  font-weight: 700;
}
.party-card input:checked + .party-card-body {
  border: 2px solid var(--olive);
  background: var(--paper-panel);
  padding: 13px 17px;
}
.party-card input:checked + .party-card-body .party-card-check { visibility: visible; }
.party-card input:focus-visible + .party-card-body { outline: 2px solid var(--olive); outline-offset: 2px; }

/* Honeypot: removed from the visual page and the accessibility tree; bots
   that fill every field reveal themselves. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  overflow: hidden;
}

.turnstile-field { min-height: 66px; }

.rsvp-form .button { margin-top: 8px; width: 100%; }

.registry-line { text-align: center; font-style: italic; margin-top: 20px; }
.registry-invite { text-align: center; margin: 4px 0 26px; }
.registry-invite .button { margin-top: 10px; }
.registry-note { max-width: 58ch; margin: 0 auto 10px; text-align: center; }
.registry-art { max-width: 460px; }

/* Confirmation table */
.confirmation-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.confirmation-table th,
.confirmation-table td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--sand);
  vertical-align: top;
}
.confirmation-table th {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--t-kicker);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  width: 44%;
}

/* Cat plates on the confirmation page */
.cat-plates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(18px, 2.4vw, 34px);
  margin-top: 34px;
}
.cat-plates .art { margin-bottom: 0; }
.cat-wide { width: min(84vw, 380px); }
.cat-tall { width: min(60vw, 250px); }

@media (min-width: 768px) {
  .frontispiece { padding-top: 48px; }
  .vine { margin: 32px auto 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
