:root {
  --bg: #f5efc4;           /* pale yellow-gold parchment (treasure) */
  --ink: #3a2a16;          /* warm espresso for body text */
  --brand-ink: #43321f;    /* deep, substantial brown for the wordmark */
  --muted: #9a7a45;        /* aged-gold accent */
  --measure: 54rem;        /* reading column width */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--bg);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain — flat colour, but visibly textured like cardstock. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.2  0 0 0 0 0.17  0 0 0 0 0.1  0 0 0 -0.78 0.64'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 6rem) 1.5rem 6rem;
}

/* ---------- Wordmark ---------- */
.brand {
  margin: 0 0 clamp(2.5rem, 6vw, 5rem);
  font-weight: 400; /* reset h1 */
  text-align: center;
}

.lockup {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 12vw, 8rem);
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: var(--brand-ink);
}

/* ---------- Manifesto ---------- */
.manifesto p {
  margin: 0 0 1.6rem;
}

.manifesto em {
  font-style: italic;
  color: #7a4f24;
}
.manifesto strong {
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--brand-ink);
}
.lead { color: var(--muted); }

.coda {
  color: #6e5128;
  font-style: italic;
}

.divider {
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.9em;
  font-size: 0.7rem;
  margin: 1rem 0 1.3rem;
  padding-left: 0.9em;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(1.2rem, 3vw, 2.2rem);
}

.flourish {
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
}

.invite {
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  font-style: italic;
  color: #6e5128;
}

.footer-mark {
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  letter-spacing: -0.005em;
  color: var(--brand-ink);
  margin-bottom: 1.4rem;
}

.socials {
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.socials .dot {
  margin: 0 0.7em;
  color: var(--muted);
  opacity: 0.7;
}

.link {
  color: #7a4f24;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link:hover {
  color: var(--brand-ink);
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body {
    font-size: 1.12rem;
    line-height: 1.66;
  }
  .page {
    padding: clamp(2rem, 9vw, 3rem) 1.15rem 4rem;
  }
  .brand {
    margin-bottom: 2rem;
  }
  .manifesto p {
    margin-bottom: 1.3rem;
  }
  .divider {
    margin: 0.8rem 0 1.1rem;
  }
  .invite {
    margin-bottom: 2rem;
  }
}

/* ---------- Helpers ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
