@font-face {
  font-family: "Fell English";
  src: url("assets/fonts/IMFellEnglish-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Fell English";
  src: url("assets/fonts/IMFellEnglish-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Fell Pica";
  src: url("assets/fonts/IMFellDWPica-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #18241d;
  --ink-soft: #3d493f;
  --paper: #f1ead6;
  --paper-pale: #fbf7eb;
  --paper-deep: #ded0ad;
  --persimmon: #b7462e;
  --persimmon-dark: #823222;
  --mineral: #315949;
  --blue: #263e63;
  --brass: #b18a45;
  --line: rgba(24, 36, 29, .3);
  --shadow: 0 22px 60px rgba(23, 19, 12, .16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(82, 60, 31, .025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 7px;
  font-family: "Fell English", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: .7rem 1rem;
  color: white;
  background: var(--ink);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: clamp(1rem, 2.5vw, 2.25rem) clamp(1rem, 5vw, 4.5rem);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--paper-pale);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  text-decoration: none;
  letter-spacing: -.05em;
}
.wordmark i { margin-inline: .08em; color: #e1b369; font-size: .8em; }

.site-header nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 2.4rem); }
.site-header nav a {
  color: var(--paper-pale);
  font-size: .82rem;
  text-decoration: none;
  letter-spacing: .06em;
}
.site-header nav a:not(.nav-rsvp):hover { text-decoration: underline; text-underline-offset: .35em; }
.site-header .nav-rsvp {
  padding: .55rem 1rem .45rem;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(400px, 1.18fr);
  align-items: center;
  min-height: min(940px, 100svh);
  padding: 8rem clamp(1.2rem, 7vw, 7rem) 6rem;
  overflow: hidden;
  color: var(--paper-pale);
  background:
    radial-gradient(circle at 72% 42%, rgba(187, 124, 60, .18), transparent 32%),
    linear-gradient(120deg, #14241c 0%, #1b3126 58%, #0f1b16 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .19;
  background: url("assets/materials/continuous-walnut.webp") center / cover;
  mix-blend-mode: luminosity;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 7.5vw 100%;
}
.hero-copy, .atlas-orbit, .hero-note { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 .9rem;
  color: var(--persimmon);
  font-family: "Fell Pica", Georgia, serif;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #e4b36b; }
.hero h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: clamp(4.5rem, 10vw, 9.5rem);
  font-weight: 400;
  line-height: .65;
  letter-spacing: -.055em;
}
.hero h1 span:last-child { margin-left: clamp(2.5rem, 8vw, 7rem); }
.hero h1 i {
  z-index: 1;
  margin: -.02em 0 -.05em 38%;
  color: #e2b062;
  font-size: .42em;
  font-weight: 400;
}
.hero-date {
  margin: 2.8rem 0 .2rem;
  color: #edc887;
  font-family: "Fell Pica", Georgia, serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-place { margin: 0 0 2rem; color: rgba(255,255,255,.82); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .7rem 1.2rem .6rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.button-primary { color: var(--ink); background: #e4bb73; border-color: #e4bb73; }
.button-primary:hover { background: #f2d292; }

.atlas-orbit {
  width: min(56vw, 670px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
}
.plate-window {
  width: 70%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 12px solid rgba(229, 207, 157, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #c39a56, 0 25px 60px rgba(0,0,0,.45), inset 0 0 30px rgba(0,0,0,.5);
  transform: rotate(-3deg);
}
.plate-window img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.22) saturate(.82) contrast(1.08); }
.orbit { position: absolute; border: 1px solid rgba(225, 186, 112, .52); border-radius: 50%; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #e2b062; box-shadow: 0 0 15px rgba(226,176,98,.8); }
.orbit-one { inset: 4%; transform: rotate(16deg) scaleY(.62); }
.orbit-one::before { left: 12%; top: 46%; }
.orbit-one::after { right: 8%; top: 42%; }
.orbit-two { inset: 11%; transform: rotate(-54deg) scaleY(.78); border-style: dashed; }
.orbit-two::before { left: 34%; top: -4px; }
.orbit-two::after { display: none; }
.atlas-orbit figcaption {
  position: absolute;
  right: 2%;
  bottom: 8%;
  padding: .45rem .8rem .35rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 3px 5px 15px rgba(0,0,0,.28);
  font-size: .82rem;
  transform: rotate(1.5deg);
}
.atlas-orbit figcaption span { color: var(--persimmon); }
.hero-note {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  bottom: 2rem;
  margin: 0;
  color: rgba(255,255,255,.45);
  font-size: .78rem;
  font-style: italic;
  text-align: right;
}

.facts-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper-pale);
}
.facts-band p { margin: 0; padding: 1.4rem clamp(1rem, 3vw, 3rem); border-right: 1px solid var(--line); }
.facts-band p:last-child { border-right: 0; }
.facts-band span, .facts-band strong { display: block; }
.facts-band span { margin-bottom: .2rem; color: var(--persimmon); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.facts-band strong { font-size: clamp(.95rem, 1.4vw, 1.2rem); font-weight: 400; }

.section { position: relative; padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 8vw, 8rem); }
.section-marker { position: absolute; top: 5rem; left: 2.5vw; color: rgba(24,36,29,.14); font-size: clamp(4rem, 9vw, 8rem); line-height: 1; }
.section-heading { display: grid; grid-template-columns: .75fr 1fr; gap: 1rem 8vw; max-width: 1050px; margin: 0 auto 4rem; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section h2, .rsvp-section h2, .contact-section h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.04em;
}
.section-heading > p:last-child { margin: .2rem 0 0; color: var(--ink-soft); }

.fact-ledger { max-width: 1050px; margin: auto; border-top: 1px solid var(--line); }
.fact-ledger article { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.ledger-number { color: var(--persimmon); font-size: 1.1rem; }
.ledger-label { margin: 0 0 .4rem; color: var(--mineral); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.fact-ledger h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 400; }
.fact-ledger article p:last-child { margin: .4rem 0 0; color: var(--ink-soft); }
.fact-ledger .pending { color: #605a4e; }

.travel-section {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
  background: #d9c89f;
}
.travel-plate { margin: 0; }
.travel-plate img { width: 100%; max-height: 670px; object-fit: cover; object-position: center; border: 12px solid var(--paper-pale); box-shadow: var(--shadow); filter: sepia(.1); transform: rotate(-1deg); }
.travel-plate > p { margin: 1rem 0 0; font-size: .78rem; font-style: italic; }
.travel-plate span { color: var(--persimmon); font-style: normal; }
.travel-copy .lead { margin: 1rem 0 1.6rem; color: var(--persimmon-dark); font-size: 1.35rem; }
.travel-copy > p:not(.eyebrow, .lead) { max-width: 600px; }
.not-yet { display: flex; gap: 1rem; margin-top: 2rem; padding: 1.2rem; border: 1px solid rgba(24,36,29,.35); background: rgba(255,255,255,.22); }
.not-yet > span { color: var(--persimmon); font-size: 1.4rem; }
.not-yet p { margin: 0; }
.not-yet strong { display: block; }

.rsvp-section {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(480px, 1.28fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 7vw, 7rem);
  color: var(--paper-pale);
  background: var(--ink);
}
.rsvp-intro { position: sticky; top: 2rem; }
.rsvp-intro > p:nth-of-type(2) { max-width: 550px; color: rgba(255,255,255,.72); }
.rsvp-intro figure { margin: 3rem 0 0; transform: rotate(-1deg); }
.rsvp-intro figure img { width: 100%; max-height: 340px; object-fit: cover; border: 9px solid #ded0ad; filter: sepia(.16); }
.rsvp-intro figcaption { margin-top: .7rem; color: rgba(255,255,255,.55); font-size: .72rem; font-style: italic; }

.form-sheet { position: relative; padding: clamp(1.3rem, 4vw, 3.5rem); color: var(--ink); background: var(--paper-pale); box-shadow: 0 32px 80px rgba(0,0,0,.34); }
.form-sheet::before { content: ""; position: absolute; inset: 12px; pointer-events: none; border: 1px solid rgba(130,50,34,.28); }
.form-heading, #rsvp-form, .success-panel, .noscript-note, .error-summary { position: relative; z-index: 1; }
.form-heading { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); font-size: .72rem; }
.form-heading > span { color: var(--persimmon); letter-spacing: .08em; text-transform: uppercase; }
.form-heading p { margin: 0; }
.form-sheet b { color: var(--persimmon-dark); }

#rsvp-form > fieldset { margin: 0; padding: 2rem 0; border: 0; border-bottom: 1px solid var(--line); }
#rsvp-form > fieldset > legend { padding: 0; font-size: 1.5rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: .35rem; }
.field > span, .attendance-field > legend { font-size: .82rem; }
.field small { color: #6f7069; font-size: .72rem; font-style: italic; }
input, textarea {
  width: 100%;
  min-height: 48px;
  padding: .65rem .75rem;
  color: var(--ink);
  border: 1px solid rgba(24,36,29,.42);
  border-radius: 0;
  background: rgba(255,255,255,.56);
}
textarea { resize: vertical; }
input:hover, textarea:hover { border-color: var(--ink); }
input:user-invalid, textarea:user-invalid { border-color: #a31d15; box-shadow: inset 4px 0 #a31d15; }
.field-help { margin: .3rem 0 1rem; color: var(--ink-soft); font-size: .88rem; }

.guest-card { margin: 0 0 1rem; padding: 1.1rem; border: 1px solid var(--line); background: #eee4ca; }
.guest-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.guest-card-header h3 { margin: 0; color: var(--persimmon-dark); font-size: 1rem; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }
.remove-guest { min-height: 44px; padding: .2rem .5rem; border: 0; background: transparent; color: #6f3329; text-decoration: underline; cursor: pointer; }
.attendance-field { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: 1rem 0 0; padding: 0; border: 0; }
.attendance-field legend { grid-column: 1 / -1; margin-bottom: .3rem; }
.attendance-field label { display: flex; align-items: center; min-height: 48px; padding: .5rem .65rem; border: 1px solid rgba(24,36,29,.35); cursor: pointer; }
.attendance-field input { width: 20px; min-height: 20px; margin: 0 .55rem 0 0; }
.attendance-field label:has(input:checked) { border-color: var(--mineral); background: rgba(49,89,73,.12); box-shadow: inset 3px 0 var(--mineral); }
.guest-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.button-secondary { margin-top: .4rem; color: var(--mineral); }
.button-secondary:hover { background: rgba(49,89,73,.08); }
.privacy-note { display: flex; gap: 1rem; margin: 1.5rem 0; padding: 1rem; color: var(--ink-soft); background: #e7dcc0; font-size: .82rem; }
.privacy-note span { color: var(--persimmon); }
.privacy-note p { margin: 0; }
.captcha-wrap { min-height: 88px; margin: 1.5rem 0; }
.captcha-status { margin: .4rem 0 0; color: var(--ink-soft); font-size: .76rem; }
.button-submit { width: 100%; justify-content: space-between; padding: .9rem 1.1rem; color: white; border-color: var(--persimmon); background: var(--persimmon); }
.button-submit:hover { background: var(--persimmon-dark); }
.button-submit:disabled { cursor: wait; opacity: .65; }
.button-submit i { font-size: 1.4rem; font-style: normal; }
.error-summary { margin: 1rem 0 0; padding: 1rem; border: 2px solid #9e251b; background: #fff3e7; }
.error-summary h3, .error-summary p { margin: 0; }
.error-summary h3 { color: #7d1d16; font-size: 1.05rem; }
.success-panel { padding: 4rem 1rem; text-align: center; }
.success-panel h3 { margin: 0; font-size: 3rem; font-weight: 400; }
.success-panel p:not(.eyebrow) { max-width: 440px; margin: 1rem auto; }
.success-panel a { color: var(--persimmon-dark); }
.noscript-note { padding: 1rem; border: 2px solid var(--persimmon); }

.contact-section { padding: clamp(5rem, 8vw, 8rem) 1.2rem; text-align: center; background: var(--paper-pale); }
.contact-section p:last-child { max-width: 620px; margin: 1.5rem auto 0; color: var(--ink-soft); }

footer { padding: 3rem 1.2rem; color: var(--paper-pale); background: #101a15; text-align: center; }
.footer-names { margin: 0; color: #e1b369; font-size: 1.5rem; }
footer > p:nth-child(2) { margin: .25rem 0 1rem; color: rgba(255,255,255,.58); font-size: .78rem; }
footer details { max-width: 660px; margin: auto; color: rgba(255,255,255,.65); font-size: .78rem; }
footer summary { cursor: pointer; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 9rem; text-align: center; }
  .hero h1 { align-items: center; }
  .hero h1 span:last-child, .hero h1 i { margin-left: 0; }
  .atlas-orbit { width: min(86vw, 590px); margin-top: 2rem; }
  .facts-band { grid-template-columns: 1fr; }
  .facts-band p { border-right: 0; border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; }
  .travel-section, .rsvp-section { grid-template-columns: 1fr; }
  .rsvp-intro { position: static; }
  .rsvp-intro figure { max-width: 620px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header { align-items: flex-start; }
  .wordmark { width: 48px; height: 48px; }
  .site-header nav { gap: .7rem; }
  .site-header nav a { font-size: .72rem; }
  .site-header nav a:first-child { display: none; }
  .hero { min-height: auto; padding: 8.5rem 1.1rem 4rem; }
  .hero h1 { font-size: clamp(4.2rem, 26vw, 7rem); }
  .hero-note { display: none; }
  .atlas-orbit { width: 92vw; }
  .atlas-orbit figcaption { right: 8%; bottom: 3%; }
  .section-marker { display: none; }
  .section { padding-inline: 1.1rem; }
  .fact-ledger article { grid-template-columns: 48px 1fr; }
  .travel-section, .rsvp-section { padding-inline: 1rem; }
  .form-sheet { margin-inline: -.25rem; padding: 1.35rem 1rem; }
  .form-heading { display: block; }
  .field-grid, .guest-details { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .attendance-field { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .hero::before, .hero::after, .orbit { display: none; }
  .button, .guest-card, .attendance-field label, .not-yet, .form-sheet { border: 1px solid CanvasText; }
}
