:root {
  --cream: #fbf8f3;
  --paper: #fffdf9;
  --ink: #241f1b;
  --ink-soft: #4b433c;
  --ink-muted: #6b635c;
  --terracotta: #bc5b3c;
  --terracotta-deep: #9e4a2f;
  --sage: #7c8a6e;
  --sage-deep: #5f6c53;
  --gold: #d9a441;
  --border: #ece4d8;
  --border-strong: #ddd2c2;
  --shadow-sm: 0 1px 2px rgba(60, 45, 32, 0.04), 0 2px 8px rgba(60, 45, 32, 0.05);
  --shadow-md: 0 8px 24px rgba(60, 45, 32, 0.08), 0 2px 6px rgba(60, 45, 32, 0.05);
  --shadow-lg: 0 24px 60px rgba(60, 45, 32, 0.12), 0 8px 20px rgba(60, 45, 32, 0.06);
  --radius: 14px;
  --radius-lg: 22px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --measure: 68ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(188, 91, 60, 0.16); color: var(--ink); }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-optical-sizing: auto;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--terracotta);
  opacity: 0.6;
}

.rule {
  height: 1px;
  background: var(--border);
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(251, 248, 243, 0.9);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .site-header.is-scrolled { background: var(--cream); }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand .brand-mark { width: 26px; height: 26px; color: var(--terracotta); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--terracotta);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  padding: 10px 20px;
  border-radius: 100px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-cta:hover { background: var(--terracotta-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  border-radius: 100px;
  padding: 15px 26px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--terracotta-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 13px 22px 13px 20px;
  border-radius: 15px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #171310; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .store-label { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn .store-label small { font-size: 11px; font-weight: 500; opacity: 0.72; letter-spacing: 0.02em; }
.store-btn .store-label span { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d8cfc4;
  padding: 76px 0 34px;
}
.site-footer .container { display: block; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-brand .brand { color: #fdf8f1; }
.footer-brand .brand .brand-mark { color: var(--gold); }
.footer-brand p {
  margin-top: 16px;
  max-width: 34ch;
  color: #b3a99d;
  font-size: 15px;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f857a;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #d8cfc4; font-size: 15px; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  color: #8f857a;
  font-size: 13.5px;
}

/* ---------- Legal / document pages ---------- */
.doc-hero {
  padding: 128px 0 44px;
  border-bottom: 1px solid var(--border);
}
.doc-hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 500; }
.doc-hero .doc-meta { margin-top: 14px; color: var(--ink-muted); font-size: 15px; }
.back-home {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--terracotta-deep);
  margin-bottom: 22px;
}
.back-home:hover { color: var(--ink); }
.back-home svg { width: 15px; height: 15px; }

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}
.doc p, .doc li { color: var(--ink-soft); font-size: 16.5px; line-height: 1.8; }
.doc h2 {
  font-size: 1.55rem;
  font-weight: 500;
  margin: 52px 0 16px;
  padding-top: 10px;
}
.doc h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 30px 0 10px;
}
.doc h2 + p, .doc h3 + p { margin-top: 0; }
.doc p { margin: 14px 0; }
.doc ul, .doc ol { margin: 14px 0 14px 4px; padding-left: 24px; }
.doc li { margin: 8px 0; padding-left: 4px; }
.doc li::marker { color: var(--terracotta); }
.doc a { color: var(--terracotta-deep); font-weight: 500; border-bottom: 1px solid rgba(158, 74, 47, 0.32); transition: border-color 0.2s var(--ease); }
.doc a:hover { border-bottom-color: var(--terracotta-deep); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc hr { margin: 40px 0; border: 0; height: 1px; background: var(--border); }
.doc .doc-note {
  margin-top: 40px;
  padding: 22px 26px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink-muted);
  font-size: 15px;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open { background: var(--cream); }
  .mobile-menu {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 14px 28px 26px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 99;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    color: var(--ink);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu a:last-child { border-bottom: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (min-width: 861px) { .mobile-menu { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.08s !important; }
}
