/* Van Hay — public site stylesheet
   No external dependencies. System fonts only. No tracking. */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --brand:       #8F2942;
  --brand-light: #D4889A;
  --brand-dim:   #F9EEF1;
  --surface:     #FDFAF8;
  --surface-2:   #F4EDE9;
  --border:      #E8DDD9;
  --text-1:      #1A100F;
  --text-2:      #6B5058;
  --text-3:      #9E7A82;
  --link:        #8F2942;
  --focus:       #8F2942;
  --radius:      10px;
  --max-prose:   68ch;
  --max-site:    1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand:       #D4889A;
    --brand-light: #E8B4C0;
    --brand-dim:   #2A1218;
    --surface:     #120C0D;
    --surface-2:   #1E1215;
    --border:      #2E1E22;
    --text-1:      #F5EBE8;
    --text-2:      #BFA4A8;
    --text-3:      #8A6870;
    --link:        #D4889A;
    --focus:       #D4889A;
  }
}
:root[data-theme="dark"] {
  --brand:       #D4889A;
  --brand-light: #E8B4C0;
  --brand-dim:   #2A1218;
  --surface:     #120C0D;
  --surface-2:   #1E1215;
  --border:      #2E1E22;
  --text-1:      #F5EBE8;
  --text-2:      #BFA4A8;
  --text-3:      #8A6870;
  --link:        #D4889A;
  --focus:       #D4889A;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--surface);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}
ul, ol { padding-left: 1.5em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Layout ──────────────────────────────────────────────────── */
.site-wrap { max-width: var(--max-site); margin: 0 auto; padding: 0 20px; }
.prose-wrap { max-width: var(--max-prose); margin: 0 auto; padding: 0 20px; }

/* ── Skip link ───────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -999px; left: 20px;
  background: var(--brand); color: #fff;
  padding: 8px 16px; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; text-decoration: none; z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ── Site header ─────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
}
.site-header-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; opacity: .85; }
.site-nav { display: flex; gap: 24px; list-style: none; padding: 0; }
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ── Site footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 40px 20px;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.site-footer-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; padding: 0; }
.footer-links a { color: var(--text-3); }
.footer-links a:hover { color: var(--brand); }

/* ── Hero (home) ─────────────────────────────────────────────── */
.hero {
  padding: 80px 20px 72px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero-title span { color: var(--brand); }
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-2);
  max-width: 52ch;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: default;
  transition: background .15s;
}
.store-badge svg { flex-shrink: 0; }
.store-badge-label { display: flex; flex-direction: column; line-height: 1.3; }
.store-badge-label small { font-size: 0.7rem; color: var(--text-3); font-weight: 400; }
.store-badge-label strong { color: var(--text-1); }

/* ── Feature grid (home) ─────────────────────────────────────── */
.features-section { padding: 64px 20px; background: var(--surface-2); }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text-1);
  margin-bottom: 48px;
  text-wrap: balance;
}
.feature-grid {
  max-width: var(--max-site);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.feature-icon {
  width: 44px; height: 44px;
  background: var(--brand-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
  line-height: 1;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Prose (legal / support pages) ──────────────────────────── */
.page-hero {
  padding: 56px 20px 40px;
  border-bottom: 1px solid var(--border);
}
.page-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--brand-dim);
  color: var(--brand);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 16px;
}
.page-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 10px;
  text-wrap: balance;
}
.page-meta {
  font-size: 0.8125rem;
  color: var(--text-3);
}
.prose {
  padding: 48px 0 80px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
}
.prose h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 2.5em 0 .6em;
  padding-top: .25em;
  border-top: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.prose p { margin-bottom: 1em; }
.prose ul { margin: .5em 0 1em 1.5em; }
.prose li { margin-bottom: .4em; }
.prose a { font-weight: 500; }
.prose strong { color: var(--text-1); font-weight: 600; }

/* ── Notice box ──────────────────────────────────────────────── */
.notice {
  background: var(--brand-dim);
  border: 1px solid var(--brand-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.9rem;
  color: var(--text-1);
}
.notice-warn {
  background: #FFF8EC;
  border-color: #E8C96A;
  color: #5A4000;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .notice-warn {
    background: #2A2000;
    border-color: #6B5800;
    color: #E8C96A;
  }
}
:root[data-theme="dark"] .notice-warn {
  background: #2A2000;
  border-color: #6B5800;
  color: #E8C96A;
}

/* ── Support section cards ───────────────────────────────────── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.support-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
}
.support-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}
.support-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}
.contact-box {
  background: var(--brand-dim);
  border: 1px solid var(--brand-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin: 40px 0;
}
.contact-box p { color: var(--text-2); font-size: 0.9375rem; margin-bottom: 12px; }
.contact-box a {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.contact-box a:hover { text-decoration: underline; }

/* ── 404 ─────────────────────────────────────────────────────── */
.error-page {
  min-height: 70dvh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px 20px;
  gap: 16px;
}
.error-code { font-size: 6rem; font-weight: 800; color: var(--border); line-height: 1; }
.error-title { font-size: 1.5rem; font-weight: 700; color: var(--text-1); }
.error-body { color: var(--text-2); max-width: 40ch; }
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 8px;
  transition: opacity .15s;
}
.btn:hover { opacity: .88; text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 0.8125rem; }
  .hero { padding: 52px 20px 48px; }
  .features-section { padding: 48px 20px; }
  .prose-wrap, .site-wrap { padding: 0 16px; }
}
