*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Nunito', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; padding: 0; }

:root {
  --paper: #efe4cc;
  --card: #fbf6e9;
  --ink: #2e2418;
  --dim: #6f6250;
  --stamp: #b5432f;
  --teal: #2f8a94;
  --line: rgba(46,36,24,0.16);
}

.section-title { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.15; color: var(--ink); }
.tag { display: inline-block; font-family: 'Special Elite', monospace; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--teal); margin-bottom: 0.9rem; }
.postmark { font-family: 'Special Elite', monospace; font-size: 0.85rem; letter-spacing: 0.03em; color: var(--ink); margin-bottom: 1.1rem; }
.postmark--pale { color: rgba(239,228,204,0.9); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.6rem;
  background: rgba(239,228,204,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { font-family: 'Special Elite', monospace; font-size: 1.2rem; letter-spacing: 0.04em; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { font-size: 0.9rem; color: var(--dim); font-weight: 600; }
.nav__links a:hover { color: var(--ink); }
.nav__burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 20px; height: 2px; background: var(--ink); display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; border-radius: 8px; transition: transform 0.15s, box-shadow 0.15s; }
.btn--pill { font-size: 0.82rem; padding: 0.55rem 1.05rem; background: var(--stamp); color: #fff; border-radius: 999px; }
.btn--big { font-size: 1rem; padding: 0.9rem 1.7rem; }
.btn--solid { background: var(--stamp); color: #fff; box-shadow: 0 8px 22px rgba(181,67,47,0.32); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(181,67,47,0.45); }
.btn--ghost { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 7rem 1.8rem 4rem; overflow: hidden; scroll-margin-top: 76px; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 70%; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(46,36,24,0.55) 0%, rgba(46,36,24,0.15) 60%), linear-gradient(180deg, rgba(46,36,24,0.08) 0%, rgba(46,36,24,0.4) 42%, rgba(46,36,24,0.95) 100%); }
.hero__content { position: relative; z-index: 2; max-width: 620px; }
.hero__title { font-weight: 800; font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.08; color: #fbf6e9; margin-bottom: 1.2rem; }
.hero__sub { font-size: 1.12rem; color: rgba(251,246,233,0.85); max-width: 50ch; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .postmark { color: #fbf6e9; }
.hero .btn--ghost { border-color: rgba(251,246,233,0.85); color: #fbf6e9; background: rgba(46,36,24,0.3); }
.hero .btn--ghost:hover { background: #fbf6e9; color: var(--ink); }

.stamp {
  --tilt: 8deg;
  position: absolute; top: 6rem; right: 5vw; z-index: 3;
  width: 92px; height: 92px;
  border: 3px dashed rgba(251,246,233,0.85);
  border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  color: rgba(251,246,233,0.85);
  font-family: 'Special Elite', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  transform: rotate(var(--tilt));
}
.stamp__big { font-size: 0.85rem; font-weight: 700; }

/* ---------- Postcard log ---------- */
.log { padding: 6rem 1.8rem; text-align: center; scroll-margin-top: 76px; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2.6rem; max-width: 1080px; margin: 3rem auto 0; }
.card {
  --tilt: -2deg;
  background: var(--card);
  padding: 0.9rem 0.9rem 1.3rem;
  box-shadow: 0 16px 34px rgba(46,36,24,0.22);
  text-align: left;
  transform: rotate(var(--tilt));
}
.card--a { --tilt: -3deg; }
.card--b { --tilt: 2deg; margin-top: 1.4rem; }
.card--c { --tilt: -1.5deg; }
.card__photo { overflow: hidden; margin-bottom: 0.9rem; border: 1px solid var(--line); }
.card__photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card__note { font-family: 'Gochi Hand', cursive; font-size: 1.3rem; color: var(--ink); margin-bottom: 0.6rem; line-height: 1.2; }
.card__stamp { display: block; font-family: 'Special Elite', monospace; font-size: 0.68rem; letter-spacing: 0.05em; color: var(--stamp); }

/* ---------- Closer ---------- */
.closer { position: relative; min-height: 80svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.8rem; overflow: hidden; }
.closer__bg { position: absolute; inset: 0; background-size: cover; background-position: center 55%; }
.closer__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46,36,24,0.15) 0%, rgba(46,36,24,0.85) 78%); }
.closer__inner { position: relative; z-index: 2; max-width: 560px; }
.closer__title { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); color: #fbf6e9; margin-bottom: 1.8rem; line-height: 1.1; }
.closer__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.closer .btn--ghost { border-color: rgba(251,246,233,0.85); color: #fbf6e9; background: rgba(46,36,24,0.25); }
.closer .btn--ghost:hover { background: #fbf6e9; color: var(--ink); }

/* ---------- Footer ---------- */
.footer { padding: 2rem 1.8rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; color: var(--dim); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; max-width: 380px; }
  .card--b { margin-top: 0; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 1.1rem 1.6rem; gap: 0.9rem; border-bottom: 1px solid var(--line); }

  .hero { text-align: center; align-items: center; padding-top: 8rem; }
  .hero__content { margin: 0 auto; }
  .hero__cta { justify-content: center; }
  .stamp { top: 5.2rem; right: 1.4rem; width: 72px; height: 72px; }
}
