:root {
  --ground: #f4f1ea;
  --surface: #f7f5f0;
  --inset: #ede9e0;
  --ink: #1a1a1a;
  --secondary: #6b6860;
  --accent: #c45d3e;
  --hairline: rgba(26, 26, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Subtle paper grain via inline SVG turbulence overlay. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* ---------- header ---------- */

header {
  padding: 28px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.nav a {
  color: var(--secondary);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

/* ---------- landing main ---------- */

main.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px 64px;
  text-align: center;
  gap: 28px;
}

.mark {
  width: 92px;
  height: 92px;
  margin-bottom: 8px;
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--secondary);
}

main.landing h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 6.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 14ch;
}

main.landing h1 em {
  font-style: italic;
}

main.landing .sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--secondary);
  max-width: 36ch;
  margin: 0;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 9999px;
  border: 0;
  transition: filter 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cta:hover {
  filter: brightness(0.94);
}

.cta-note {
  font-size: 12px;
  color: var(--secondary);
  letter-spacing: 0.02em;
}

.vignette {
  margin-top: 48px;
  max-width: 480px;
  padding: 28px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--hairline);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vignette .v-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.vignette p {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.vignette .v-body {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--secondary);
}

/* ---------- legal prose ---------- */

main.legal {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

main.legal .eyebrow {
  display: inline-block;
  margin-bottom: 8px;
}

main.legal h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

main.legal .effective {
  font-size: 13px;
  color: var(--secondary);
  margin: 0 0 32px;
  letter-spacing: 0.02em;
}

main.legal .meta {
  font-size: 14px;
  color: var(--secondary);
  margin: 0 0 24px;
  line-height: 1.6;
}

main.legal .meta em {
  font-style: italic;
  color: var(--ink);
  opacity: 0.7;
}

main.legal h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  color: var(--ink);
}

main.legal h3 {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 24px 0 8px;
  color: var(--ink);
}

main.legal p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}

main.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.65;
}

main.legal li {
  margin-bottom: 8px;
}

main.legal a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

main.legal a:hover {
  border-bottom-color: var(--accent);
}

main.legal em {
  font-style: italic;
}

main.legal strong {
  font-weight: 500;
}

main.legal .footer-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--secondary);
}

/* ---------- footer ---------- */

footer {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--secondary);
  border-top: 1px solid var(--hairline);
  margin-top: 48px;
}

footer .links {
  display: flex;
  gap: 20px;
}

footer a {
  color: var(--secondary);
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

/* ---------- responsive ---------- */

@media (max-width: 540px) {
  header {
    padding: 20px 20px 0;
  }
  main.landing {
    padding: 56px 20px 48px;
  }
  main.legal {
    padding: 32px 20px 64px;
  }
  footer {
    padding: 24px 20px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ---------- dark mode ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0d0d0f;
    --surface: #1a1a1f;
    --inset: #1a1a1f;
    --ink: #e8e6e1;
    --secondary: #8a8780;
    --accent: #c4856a;
    --hairline: rgba(232, 230, 225, 0.12);
  }
  .mark {
    content: url("/assets/ampersand-light.png");
  }
}
