/* -----------------------------------------------------------
   LOOPN · brand.css
   Shared tokens + base styles for sub-pages (privacy, terms, 404).
   The homepage carries its own inline styles for performance;
   sub-pages share this lightweight stylesheet.
------------------------------------------------------------ */

:root {
  --warm-white: #FAF8F2;
  --paper:      #F4EFE6;
  --paper-deep: #ECE4D2;
  --paper-lite: #FBF6EB;
  --ink:        #181612;
  --ink-70:     #3A3530;
  --ink-50:     #6B665B;
  --ink-30:     #9A8F7E;
  --ink-10:     #D9D2C2;
  --green:      #2D4A3E;
  --green-deep: #1F362C;
  --gold:       #C8A165;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--warm-white);
  color: var(--ink);
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-feature-settings: 'ss01', 'ss02';
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Paper grain — same intensity as homepage so sub-pages feel of-a-piece */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><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.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.45;
}

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

/* ---------- TYPOGRAPHY ---------- */
h1.page-title {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.05;
  font-size: clamp(36px, 5.4vw, 64px);
  margin: 0 0 16px;
}
h1.page-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
h2.section-head {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.1;
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 56px 0 16px;
  color: var(--ink);
}

p { margin: 0 0 18px; color: var(--ink-70); }
p strong { color: var(--ink); font-weight: 500; }
p em { font-style: italic; color: var(--ink); }

ul.prose { padding-left: 0; list-style: none; margin: 0 0 18px; }
ul.prose li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--ink-70);
}
ul.prose li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: var(--gold);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  top: 4px;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-50);
  margin-bottom: 24px;
}

/* The dot — for visual continuity with the product */
.dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 999px;
  display: inline-block;
  flex: none;
}

/* Quiet underline link */
.ulink {
  position: relative;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.ulink:hover, .ulink:focus-visible { opacity: 0.65; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 2px; }

/* ---------- LAYOUT ---------- */
.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* ---------- NAV (minimal — single back link) ---------- */
.nav-light {
  background: rgba(250, 248, 242, 0.78);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(24, 22, 18, 0.06);
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  height: 64px;
}
.nav-light .row {
  max-width: 1280px; margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 768px) { .nav-light .row { padding: 0 40px; } }

/* ---------- FOOTER ---------- */
footer.brand-footer {
  border-top: 1px solid rgba(24, 22, 18, 0.08);
  padding: 48px 24px;
  color: var(--ink-50);
  font-size: 13px;
}
footer.brand-footer .row {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  align-items: flex-start; justify-content: space-between;
  gap: 24px;
}

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--warm-white);
  padding: 12px 16px; z-index: 100;
  text-decoration: none; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Print */
@media print {
  body::before, .nav-light, .brand-footer { display: none; }
  body { color: #000; background: #fff; }
}
