/* STILL Design System
   Canonical palette from live site. Layout language from approved mockup.
   Every page imports this file. Page-specific styles live in their own files. */

:root {
  --cream: #EEDAD2;
  --paper: #F1EBE3;
  --ink: #461A1B;
  --night: #2C1718;
  --maroon: #65393A;
  --clay: #B5664C;
  --clay-hover: #9A5238;
  --teal: #516E72;
  --sand: #DFC4B1;
  --signal: #d94d3f;
  --card: #FFF9F6;
  --faint: #7A5F5A;
  --line: rgba(70, 26, 27, 0.15);
  --line-light: rgba(238, 218, 210, 0.15);

  --serif: 'tenez', 'Playfair Display', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --transition-slow: 2.4s ease;
  --transition-medium: 1.2s ease;
  --transition-fast: 0.35s ease;

  /* Spacing scale — 8px base, derived from the approved homepage rhythm.
     Use these instead of ad-hoc rem values so every page spaces alike. */
  --space-1: 0.5rem;    /*  8px */
  --space-2: 0.75rem;   /* 12px */
  --space-3: 1rem;      /* 16px */
  --space-4: 1.5rem;    /* 24px */
  --space-5: 2rem;      /* 32px */
  --space-6: 3rem;      /* 48px */
  --space-7: 4rem;      /* 64px */
  --space-8: 6rem;      /* 96px */
  /* Fluid section padding — matches the legal prose block; the elevation lever. */
  --space-section: clamp(3rem, 8vh, 7rem);

  /* Header — single source of truth for the site-wide header language.
     The homepage floating logo and app/legal inline wordmarks all size from these. */
  --header-pad-x: clamp(1.5rem, 8vw, 8rem);
  --header-min-h: 4.75rem;
  --wordmark-w: 3.5rem;
  --wordmark-h: 2.2rem;
  --nav-link-size: .72rem;
  --nav-tracking: .055em;
}

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

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.01;
  text-wrap: balance;
}
h1 { font-size: clamp(3.3rem, 7.3vw, 6.3rem); }
h2 { font-size: clamp(3rem, 6.2vw, 5.8rem); }
h1 em, h2 em { font-weight: 400; }
h3 { margin: 0 0 .8rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
p { text-wrap: pretty; }

.eyebrow {
  margin: 0 0 1.35rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .7;
}

a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 5px; }
::selection { background: var(--clay); color: var(--paper); }

.button {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.6rem;
  border: none;
  border-radius: 0;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .45s var(--ease), background var(--transition-fast);
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--cream); }
.button-dark:hover { background: var(--maroon); }
.button-light { background: var(--cream); color: var(--ink); }
.button-light:hover { background: var(--paper); }
.button-outline { background: transparent; border: 1px solid currentColor; color: inherit; }

.text-link {
  display: inline-flex;
  margin-top: 2.2rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
}

.wordmark {
  display: block;
  overflow: hidden;
  background: currentColor;
  font-size: 0;
  -webkit-mask: url('/brand/wordmark.png') center / contain no-repeat;
  mask: url('/brand/wordmark.png') center / contain no-repeat;
}

.site-footer {
  background: var(--cream);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
  padding: .65rem 1rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
}
.skip-link:focus { transform: none; }

/* ---- Shared header ----
   One header language for legal + app inline headers. The homepage keeps its
   own fixed/floating/gradient header (genuinely distinct) but sizes from the
   same tokens above, so nothing drifts. */
.still-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-min-h);
  padding: max(1.25rem, env(safe-area-inset-top)) var(--header-pad-x) 1rem;
}
.still-header--bordered { border-bottom: 1px solid var(--line); }
.still-header .wordmark { width: var(--wordmark-w); height: var(--wordmark-h); text-decoration: none; }
.still-nav {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 2vw, 2.2rem);
  font-size: var(--nav-link-size);
  font-weight: 600;
  letter-spacing: var(--nav-tracking);
  text-transform: uppercase;
}
.still-nav a, .still-nav button, .still-nav summary {
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  background: none; border: none; color: inherit; cursor: pointer;
  text-decoration: none; opacity: .68;
  transition: opacity var(--transition-fast);
}
.still-nav a:hover, .still-nav button:hover, .still-nav summary:hover { opacity: 1; }

/* ---- Editorial components ----
   Promoted from the homepage so every page can reach the same vocabulary.
   Homepage keeps its higher-specificity scoped versions, so it renders identically. */
.pull-quote {
  margin: var(--space-6) 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-style: italic;
  line-height: 1.3;
  text-wrap: balance;
}
/* A single serif lead line to open a long document — turns a dry page into a STILL page. */
.prose-lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-style: italic;
  line-height: 1.4;
  opacity: .85;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .15s !important;
  }
}
