/* Shared look for the support, privacy and terms pages. Loaded after each
   page's inline <style>, so it only restyles; the content and layout rules
   stay in the pages. Matches the homepage (cream, amber, serif headings). */

:root {
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --hair: rgba(27, 26, 23, 0.07);
  --accent-soft: #FBEBCB;
}

body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Paper grain, fixed so it never repaints on scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Nav: floating island ─────────────────────────────── */
nav {
  top: 16px;
  margin: 16px auto 0;
  width: max-content;
  max-width: calc(100% - 32px);
  height: auto;
  gap: 24px;
  padding: 6px 6px 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 1px var(--hair), 0 12px 40px -16px rgba(60, 45, 10, 0.25);
}
.nav-logo svg { width: 30px; height: 30px; border-radius: 9px; }
.nav-wordmark { letter-spacing: -0.03em; }
nav a.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--text);
  border-radius: 999px;
  padding: 9px 16px;
  transition: transform 0.5s var(--ease);
}
nav a.nav-link:hover { color: #fff; text-decoration: none; }
nav a.nav-link:active { transform: scale(0.97); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; padding-top: 88px; border-bottom-color: var(--hair); }
.hero::before {
  content: "";
  position: absolute;
  right: -30%;
  top: -40%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 166, 35, 0.22), rgba(245, 166, 35, 0));
  pointer-events: none;
  z-index: -1;
}
.hero-badge {
  border: 0;
  background: var(--accent-soft);
  font-size: 10.5px;
  letter-spacing: 0.18em;
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1.04;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  border-bottom-color: var(--hair);
}
h2 .num {
  font-family: var(--sans);
  border: 0;
  border-radius: 8px;
  background: var(--accent-soft);
}

/* ── Cards: double bezel (tray + plate) ───────────────── */
.contact-card, .card, .pillar, .tip, details {
  background: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow:
    0 0 0 5px rgba(27, 26, 23, 0.022),
    0 0 0 6px rgba(27, 26, 23, 0.05),
    0 1px 2px rgba(40, 30, 10, 0.04);
  transition: box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.contact-card:hover { transform: translateY(-2px); }
.faq { gap: 22px; padding: 7px; }
.cards, .tips, .pillars { padding: 7px; }
.cards { gap: 22px; }
details[open] {
  box-shadow:
    0 0 0 6px rgba(245, 166, 35, 0.08),
    0 0 0 7px rgba(227, 154, 18, 0.25),
    0 1px 2px rgba(40, 30, 10, 0.04);
}
.contact-icon, .tip-icon, .pillar-icon { border: 0; background: var(--accent-soft); border-radius: 14px; }
.faq-body code { background: var(--accent-soft); border: 0; color: var(--text); }

/* ── Footer ───────────────────────────────────────────── */
footer { border-top-color: var(--hair); }

a:focus-visible { outline: 2px solid var(--accentMuted); outline-offset: 3px; border-radius: 10px; }

@media (max-width: 640px) {
  nav { gap: 12px; }
  .nav-wordmark { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
