:root {
  color-scheme: light;
  --paper: #f9f4e9;
  --ink: #32271f;
  --red: #99372e;
  --line: #d3c7b5;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
.page { max-width: 1140px; padding: 0 clamp(20px, 5vw, 72px) 72px; margin: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; min-height: 78px; border-bottom: 1px solid var(--line); }
a { color: inherit; text-decoration: none; }
.brand { display: inline-flex; gap: 8px; align-items: center; font: bold italic 28px var(--serif); color: var(--red); }
.brand i { font: 21px Georgia, serif; transform: rotate(-15deg); }
.nav-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.nav-link span { font-size: 19px; color: var(--red); }
.hero { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 6vw, 84px); align-items: center; padding: clamp(46px, 7vw, 88px) 6px; }
h1, h2, h3, figure, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(64px, 7.7vw, 100px); line-height: .96; letter-spacing: -.067em; }
h1 em, h3 em { color: var(--red); font-weight: 400; }
.letter p { margin: 24px 0; max-width: 330px; line-height: 1.65; }
.button { display: inline-flex; gap: 20px; align-items: center; justify-content: space-between; min-height: 50px; border: 0; border-radius: 6px; background: var(--red); color: #fffaf3; padding: 13px 20px; font: 600 15px/1.3 var(--sans); cursor: pointer; }
.button span { font-size: 20px; font-weight: 400; line-height: 1; }
.button:hover { background: #7d2823; }
.button:disabled { opacity: .7; cursor: progress; }
.postcard { isolation: isolate; position: relative; background: #fffcf3; padding: 12px 12px 0; border: 1px solid #d5c8b3; box-shadow: 1px 5px 10px #604d351c; transform: rotate(3deg); }
.postcard::before { content: ""; position: absolute; z-index: -1; inset: 3px 4px -3px -4px; background: #fffaf0; border: 1px solid #d5c8b3; transform: rotate(-5deg); }
.photo { aspect-ratio: 1.22; overflow: hidden; background: #c29975; }
.photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
figcaption { display: flex; justify-content: space-between; align-items: center; padding: 9px 5px 12px; font: italic 19px var(--serif); color: #674d3b; }
figcaption span { font: 21px Georgia, serif; color: var(--red); }
.plans { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 48px); scroll-margin-top: 20px; }
.form-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.envelope { display: grid; place-items: center; width: 43px; height: 32px; border: 1px solid var(--red); transform: rotate(-7deg); color: var(--red); font: 26px/1 Georgia, serif; background: linear-gradient(147deg, transparent 48%, #99372e55 50%, transparent 52%) top right / 50% 70% no-repeat, linear-gradient(33deg, transparent 48%, #99372e55 50%, transparent 52%) top left / 50% 70% no-repeat; }
h2 { font-size: clamp(38px, 5vw, 56px); letter-spacing: -.055em; line-height: 1.08; }
form { display: grid; gap: 22px; min-width: 0; }
.field { display: grid; gap: 7px; min-width: 0; }
label { font-size: 15px; font-weight: 600; }
label small { color: #756859; font-size: 12px; font-weight: 400; }
input:not([type=checkbox]), textarea { appearance: none; display: block; width: 100%; min-width: 0; min-height: 50px; padding: 11px 13px; border: 1px solid #baad9e; border-radius: 6px; color: var(--ink); background: #fffcf6; font: 16px/1.45 var(--sans); }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #796e61; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.outings { border: 0; padding: 0; margin: 0; min-width: 0; }
.outings legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ideas button { display: flex; gap: 8px; align-items: center; padding: 11px; min-height: 50px; text-align: left; color: var(--ink); border: 1px solid var(--line); background: #fffcf6; border-radius: 7px; font: 500 15px/1.3 var(--sans); cursor: pointer; }
.ideas button span { font-size: 19px; }
.ideas button:hover { border-color: var(--red); }
.ideas button[aria-pressed=true] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); color: var(--red); background: #f2e3d8; }
.ideas button[aria-pressed=true] span { border-bottom: 2px solid currentColor; }
summary { width: fit-content; padding: 12px 0; min-height: 44px; cursor: pointer; font-size: 14px; color: var(--red); }
.extra { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 10px 12px; border: 1px dashed #baad9e; border-radius: 7px; cursor: pointer; }
.extra input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); }
.day-options button { flex-direction: column; align-items: flex-start; gap: 3px; }
.day-options small { font-size: 12px; color: #705f50; }
.submit { width: 100%; }
.error { color: #982921; font-size: 14px; }
.error:empty, [hidden] { display: none !important; }
.receipt { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-top: 3px solid var(--red); background: #fffcf6; }
h3 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; line-height: 1.15; }
.receipt p { margin-top: 6px; }
dl { margin: 18px 0 0; }
dl div { border-top: 1px dashed var(--line); padding: 10px 0; }
dt { color: #796755; font-size: 13px; }
dd { margin: 2px 0 0; overflow-wrap: anywhere; }
#sent-wishes dd { white-space: pre-wrap; }
@media (max-width: 690px) {
  .page { padding-bottom: max(42px, env(safe-area-inset-bottom)); }
  .masthead { min-height: 60px; }
  .brand { font-size: 25px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 29px; padding: 34px 0 38px; }
  h1 { font-size: clamp(55px, 14vw, 86px); }
  .letter p { margin: 14px 0 17px; }
  .postcard { width: min(89%, 340px); align-self: center; padding: 8px 8px 0; }
  .photo { aspect-ratio: 1.8; }
  figcaption { font-size: 16px; padding: 6px 3px 8px; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .form-intro { flex-direction: row-reverse; justify-content: space-between; align-items: center; padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
