:root {
  --paper: #f4ede4;
  --ink: #322823;
  --muted: #6d6057;
  --line: #d9cbbd;
  --accent: #843c4c;
  --serif: "Cormorant Garamond", "Baskerville", "Georgia", serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 0 0, #fbf6ef, transparent 65%), var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.page-width { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.gate { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 2rem 1.5rem; }
.gate-inner { width: min(100%, 27rem); }
.gate h1 { font-family: var(--serif); font-size: clamp(3.5rem, 15vw, 5rem); font-weight: 500; line-height: 1; margin: 1.2rem 0; }
.gate-intro { color: var(--muted); font-size: .9rem; line-height: 1.85; margin-bottom: 2.5rem; }
label { display: block; color: var(--muted); font-size: .7rem; margin-bottom: .65rem; }
.password-row { display: flex; gap: .6rem; }
input { min-width: 0; flex: 1; width: 100%; min-height: 50px; padding: .75rem; border: 1px solid var(--line); border-radius: 2px; background: #fffcf7; font-size: 1rem; color: var(--ink); }
button { min-height: 50px; border: 0; border-radius: 2px; padding: .75rem 1.2rem; background: var(--accent); color: white; cursor: pointer; font-size: .8rem; }
button span { margin-left: .6rem; }
.error { min-height: 1.4rem; font-size: .8rem; color: var(--accent); }

.site-header { display: flex; justify-content: space-between; align-items: center; min-height: 90px; border-bottom: 1px solid var(--line); gap: 1rem; }
.wordmark { font-family: "Parisienne", cursive; font-size: 1.8rem; text-decoration: none; white-space: nowrap; }
nav { display: flex; gap: 1.2rem; font-size: .72rem; }
nav a { text-decoration: none; padding-block: .75rem; }
nav a:hover, .site-footer a:hover { color: var(--accent); }
.latest { padding-block: 3.5rem 4rem; scroll-margin-top: 1.5rem; }
.feature-copy h1 { font-family: var(--serif); font-size: clamp(3.4rem, 16vw, 6.6rem); font-weight: 500; line-height: .98; letter-spacing: -.035em; margin: 1.3rem 0 1rem; }
.feature-copy h1 span { display: block; }
.feature-copy h1 em { font-weight: 500; color: var(--accent); }
.feature-description { color: var(--muted); font-size: .85rem; line-height: 1.8; max-width: 26rem; }
.departure { margin-top: 2rem; }
.departure-label { font-size: .75rem; line-height: 1.8; color: var(--muted); margin: 0 0 1rem; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); padding-block: 1.2rem; gap: .5rem; max-width: 28rem; }
.countdown-unit { display: flex; flex-direction: column; gap: .25rem; }
.countdown-number { font-family: var(--serif); font-size: clamp(2.3rem, 11vw, 3.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-label { font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.departure-date { font-size: .68rem; color: var(--muted); line-height: 1.8; margin-top: 1rem; }
.countdown-status { color: var(--accent); font-family: var(--serif); font-size: 1.6rem; margin: 1rem 0; }
.feature-photo { margin: 2.5rem 0 0; }
.feature-photo img { display: block; width: 100%; height: auto; }
.feature-photo figcaption { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .6rem; letter-spacing: .08em; margin-top: .8rem; }

.archive { border-top: 1px solid var(--line); padding-block: 3rem 4rem; scroll-margin-top: 1.5rem; }
.archive-heading { margin-bottom: 2.2rem; }
.archive h2 { font-family: var(--serif); font-weight: 500; font-size: 2.8rem; margin: .5rem 0 .75rem; line-height: 1.1; }
.archive-intro { font-size: .8rem; color: var(--muted); line-height: 1.8; margin: 0; }
.archive-entry { border-block: 1px solid var(--line); }
.archive-entry + .archive-entry { border-top: 0; }
.archive-entry summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; padding-block: 1.5rem; list-style: none; }
.archive-entry summary::-webkit-details-marker { display: none; }
.archive-entry summary time { display: block; color: var(--muted); font-size: .63rem; letter-spacing: .04em; margin-bottom: .4rem; }
.archive-entry summary .entry-title { font-family: var(--serif); font-size: 1.55rem; }
.archive-toggle { font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
.archive-entry[open] .archive-toggle { transform: rotate(45deg); }
.archive-body { padding-block: .5rem 2rem; max-width: 38rem; }
.letter-title { font-family: "Parisienne", cursive; font-size: clamp(2.8rem, 12vw, 4.5rem); line-height: 1.1; font-weight: 400; margin: .6rem 0 1.4rem; }
.letter-subtitle { color: var(--muted); font-size: .88rem; line-height: 1.8; margin-bottom: 2rem; }
.love-note { line-height: 1.95; font-size: .95rem; margin: 0 0 1rem; }
.signature { margin-top: 1.5rem; font-family: "Parisienne", cursive; font-size: 1.8rem; }
.archive-body img { width: 100%; height: auto; display: block; margin: 1.5rem 0; }
.archive-departure { color: var(--muted); font-size: .8rem; line-height: 1.8; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.5rem 2.5rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .65rem; color: var(--muted); }
.site-footer a { text-decoration: none; }
#site { animation: arrive .6s ease both; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 48rem) {
  .page-width { width: min(100% - 6rem, 72rem); }
  .site-header { min-height: 110px; }
  .wordmark { font-size: 2.1rem; }
  nav { font-size: .8rem; gap: 2rem; }
  .latest:has(.feature-photo) { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: 4rem 5rem; }
  .feature-copy h1 { font-size: clamp(3.5rem, 7vw, 6.6rem); }
  .feature-photo { margin: 0; }
  .archive-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
  .archive h2 { font-size: 3.5rem; margin-bottom: 0; }
  .archive { padding-block: 4rem 5rem; }
  .archive-entry summary { padding-block: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #site { animation: none; }
  .archive-toggle { transition: none; }
}
