:root {
  color-scheme: light;
  --paper: #f3f0e9;
  --ink: #102116;
  --wine: #5a2830;
  --line: rgba(16, 33, 22, .22);
  --shadow: 0 18px 50px rgba(35, 31, 25, .16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.cover {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 18%, rgba(255,255,255,.9), transparent 28%),
    repeating-linear-gradient(112deg, rgba(78,62,43,.035) 0 1px, transparent 1px 5px),
    #eee9df;
}
.cover::before, .cover::after, .cover__flap {
  content: "";
  position: absolute;
  inset: auto -16% -21%;
  height: 62%;
  background: #f7f3ea;
  border: 1px solid rgba(90, 76, 55, .15);
  transform: rotate(26deg);
  box-shadow: var(--shadow);
  z-index: -1;
}
.cover::after { transform: rotate(-26deg); }
.cover__flap { inset: -33% -12% auto; transform: rotate(45deg); height: 64%; }
.cover__open {
  width: min(86vw, 430px);
  min-height: 440px;
  padding: 48px 34px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 46px;
}
.cover__question { font-size: clamp(1.05rem, 4.4vw, 1.45rem); line-height: 1.85; letter-spacing: .36em; text-transform: uppercase; }
.cover__seal { display: grid; place-items: center; width: 112px; height: 76px; background: #f6f2e9; box-shadow: 0 5px 16px rgba(45,38,28,.2); border: 1px solid rgba(255,255,255,.9); font: 2.2rem Georgia, serif; color: rgba(16,33,22,.62); }
.cover__hint { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; }
.cover__open:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #a66c43; outline-offset: 4px; }

.masthead, .paper-section, .footer { width: min(100%, 1000px); margin-inline: auto; }
.masthead { min-height: 100svh; padding: 28px 20px 38px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.masthead__meta { display: flex; justify-content: space-between; gap: 18px; font: .68rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .3em; text-transform: uppercase; }
.masthead__intro { position: relative; min-width: 0; }
.masthead h1, .paper-section h2 { margin: 0; font-family: Arial Black, Arial, sans-serif; text-transform: uppercase; letter-spacing: -.055em; }
.masthead h1 { font-size: clamp(3rem, 17vw, 9.4rem); line-height: .84; }
.masthead__intro p { position: absolute; top: 0; right: 0; width: 38%; margin: 0; font: .7rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.editorial-mark { display: block; width: 100%; height: auto; border-block: 1px solid var(--line); padding-block: 18px; }
.date-rule { margin: 0; padding: 14px 0 22px; text-align: center; border-bottom: 1px solid var(--line); font: 700 clamp(3.2rem, 15vw, 8rem)/1 Arial, sans-serif; letter-spacing: -.06em; }
.couple { display: grid; gap: 2px; font: 800 clamp(3.3rem, 15vw, 8rem)/.9 Arial, sans-serif; text-transform: uppercase; }
.couple b { font: 400 .48em Georgia, serif; color: var(--wine); }
.masthead__jump { min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 18px; font: .7rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; }

.paper-section { padding: 88px 20px; border-bottom: 1px solid var(--line); }
.paper-section .kicker { margin: 0 0 24px; font: .72rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .28em; text-transform: uppercase; color: var(--wine); }
.paper-section h2 { max-width: 800px; font-size: clamp(2.7rem, 11vw, 6rem); line-height: .95; }
.paper-section > p:not(.kicker, .venue__time, .rsvp__status) { max-width: 630px; margin: 30px 0 0; font: clamp(1.12rem, 3vw, 1.38rem)/1.65 Georgia, serif; }
.countdown__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 42px; border-block: 1px solid var(--line); }
.countdown__grid span { min-width: 0; padding: 26px 8px; text-align: center; border-right: 1px solid var(--line); }
.countdown__grid span:last-child { border: 0; }
.countdown__grid b { display: block; font: 700 clamp(2.6rem, 10vw, 5.5rem)/1 Arial, sans-serif; }
.countdown__grid small { display: block; margin-top: 10px; font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; }
.venue__time { margin: 14px 0 0; font-weight: 700; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; }
.button--outline { background: transparent; color: var(--ink); }
.schedule ol { list-style: none; padding: 0; margin: 42px 0 0; border-top: 1px solid var(--line); }
.schedule li { display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.schedule time { font: 700 1.3rem Arial, sans-serif; }
.schedule h3 { margin: 0 0 7px; font: 700 1.25rem Arial, sans-serif; text-transform: uppercase; }
.schedule p { margin: 0; line-height: 1.55; }
.swatches { display: flex; gap: 10px; margin-top: 34px; }
.swatches i { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(16,33,22,.18); background: #f0e8d8; }
.swatches i:nth-child(2) { background: #cdb99a; }
.swatches i:nth-child(3) { background: #73806e; }
.swatches i:nth-child(4) { background: #5a2830; }
form { display: grid; gap: 10px; max-width: 620px; margin-top: 40px; }
label { margin-top: 10px; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 0; background: rgba(255,255,255,.35); color: var(--ink); }
textarea { resize: vertical; }
form .button { margin-top: 14px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; }
.rsvp__status { min-height: 28px; margin: 22px 0 0; font-weight: 700; }
.footer { padding: 52px 20px; display: grid; gap: 18px; text-align: center; background: var(--ink); color: var(--paper); }
.footer p { margin: 0; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.demo-order { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid #c7a16b; color: #fff; text-decoration: none; }
[hidden] { display: none !important; }

@media (min-width: 760px) {
  .masthead { padding: 36px 52px 46px; }
  .paper-section { padding: 120px 52px; }
  .welcome { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; }
  .welcome .kicker { grid-column: 1 / -1; }
  .welcome > p:last-child { margin-top: 0; align-self: end; }
}

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