/* ===========================================================================
   Circa — shared site shell.
   Every page links this. index.html adds a hero-only <style> block on top.
   Canonical type: Georgia (display) + Switzer (body). See README.
   =========================================================================== */

@font-face {
  font-family: "Switzer";
  src: url("/assets/fonts/Switzer-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("/assets/fonts/Switzer-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Switzer", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;

  --ink: #29251f;
  --ink-strong: #1c1712;
  --muted: rgba(41, 37, 31, .58);
  --paper: #f7f2ea;
  --paper-warm: #f3ebe0;
  --card: #fdf8f1;
  --line: rgba(47, 37, 29, .12);
  --terracotta: #c2653a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }

body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

/* --- shared nav ---------------------------------------------------------- */
.nav {
  z-index: 2;
  height: 84px;
  padding: 0 clamp(24px, 4vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 13px;
  letter-spacing: -.01em;
  color: rgba(41, 37, 31, .66);
}
/* on the hero the nav floats over the video; on inner pages it sits in flow */
.page > .nav { position: absolute; top: 0; left: 0; right: 0; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 24px; }
.nav-right { justify-content: flex-end; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.wordmark { font-family: var(--font-display); font-size: 23px; color: rgba(41, 37, 31, .82); }

/* --- buttons ------------------------------------------------------------- */
/* Primary: a quiet outlined rectangle, not a pill. No drop shadow and no
   floating-glass fill — the border does the work, so the button sits in the
   scene instead of hovering over it. */
.button {
  height: 50px;
  padding: 0 20px;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: -.01em;
  border: 1px solid rgba(41, 37, 31, .32);
  background: rgba(255, 252, 247, .26);
  color: var(--ink-strong);
  backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease;
}
.button:hover { background: rgba(255, 252, 247, .52); border-color: rgba(41, 37, 31, .5); }
.button .arrow { display: inline-block; font-size: 15px; opacity: .75; }

/* Secondary: not a button at all — an underlined text link with an arrow. The
   underline is a border on the label span so it stops before the arrow, and
   display:inline-block on the arrow keeps it out of any inherited underline. */
.button.secondary {
  height: auto;
  padding: 0;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
}
.button.secondary .label { border-bottom: 1px solid rgba(41, 37, 31, .48); padding-bottom: 4px; }
.button.secondary:hover { background: none; }
.button.secondary:hover .label { border-bottom-color: var(--ink-strong); }
.button.secondary:hover .arrow { opacity: 1; }

.button.solid {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: #fdf8f1;
}
.button.solid .arrow { opacity: .85; }
.button.solid:hover { background: #34291f; border-color: #34291f; }

/* --- landing sections ---------------------------------------------------- */
.band {
  padding: clamp(72px, 9vw, 128px) clamp(24px, 4vw, 72px);
  border-top: 1px solid var(--line);
}
.band-inner { width: min(880px, 100%); margin: 0 auto; }
.band.tint { background: var(--paper-warm); }

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 400;
  color: var(--ink-strong);
  max-width: 22ch;
}
.band-intro {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  letter-spacing: -.012em;
  color: rgba(41, 35, 29, .8);
}

/* privacy promises */
.promises {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.promises li {
  padding: 22px 24px;
  background: var(--card);
  display: grid;
  gap: 6px;
}
.promises strong {
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: -.015em;
  color: var(--ink-strong);
}
.promises-note {
  margin: 24px 0 0;
  max-width: 66ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.promises-note a { border-bottom: 1px solid rgba(41, 37, 31, .3); }

/* closing band */
.band.closing { text-align: center; }
.band.closing h2, .band.closing .band-intro { margin-left: auto; margin-right: auto; }
.band.closing .actions { margin-top: 32px; justify-content: center; }
.platform-note { margin: 22px 0 0; font-size: 13px; color: var(--muted); }

/* Wide gap: the secondary is a bare text link now, so it needs real space or it
   reads as part of the box next to it. */
.actions { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }

/* --- long-form pages (about / thesis) ------------------------------------ */
.doc { padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 72px) clamp(80px, 9vw, 120px); }
.doc-inner { width: min(680px, 100%); margin: 0 auto; }

.doc-eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
/* These are reading pages, not posters. The headline is a title on a document —
   big enough to open the page, small enough that the prose is the point. */
.doc h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 400;
  color: var(--ink-strong);
}
.doc-lede {
  margin: 22px 0 0;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.58;
  letter-spacing: -.014em;
  color: rgba(41, 35, 29, .84);
}
.doc h2 {
  margin: 54px 0 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.2;
  letter-spacing: -.022em;
  font-weight: 400;
  color: var(--ink-strong);
}
.doc h2 + p { margin-top: 14px; }
.doc p {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.66;
  letter-spacing: -.012em;
  color: rgba(41, 35, 29, .84);
}
.doc p a { border-bottom: 1px solid rgba(41, 37, 31, .3); }
.doc strong { font-weight: 500; color: var(--ink-strong); }
.doc hr {
  margin: 56px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* a pulled-out line — used for the beliefs and the one-line definitions */
.doc blockquote {
  margin: 36px 0 0;
  padding: 0 0 0 22px;
  border-left: 2px solid rgba(194, 101, 58, .5);
}
.doc blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.28;
  letter-spacing: -.025em;
  color: var(--ink-strong);
}

.doc-signoff {
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--ink-strong);
}
.doc-next {
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* --- shared footer ------------------------------------------------------- */
.site-foot {
  padding: 34px clamp(24px, 4vw, 72px) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(41, 37, 31, .62);
}
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a:hover { color: var(--ink); }
.site-foot .availability { text-align: right; line-height: 1.5; }

/* --- legal pages --------------------------------------------------------- *
 * Markup is carried over verbatim from the production site, so these class
 * names (.legal-shell / .legal-card / .legal-links) are its contract. Only the
 * skin changes here — Georgia + Switzer instead of Playfair + Inter.         */
.legal-page { background: var(--paper-warm); }
.legal-shell { width: min(100% - 48px, 760px); margin: 0 auto; padding: 40px 0 80px; }
.legal-page .legal-brand {
  display: inline-block;
  border: 0; /* .legal-page a below is more specific than .legal-brand alone */
  margin-bottom: 48px;
  font-family: var(--font-display);
  font-size: 23px;
  color: rgba(41, 37, 31, .82);
}
.legal-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
/* Plain-English summary above a policy. It owns the page's h1, so the policy
   title inside the card steps down to an h2 and takes this size back. */
.legal-summary { margin-bottom: clamp(36px, 5vw, 52px); }
/* `.legal-page ul` sets padding-left: 22px and out-specifies `.promises`'
   `padding: 0`, which pushes the cells off the card's left edge. Two classes
   beat one class plus a type selector, so this puts it back. */
.legal-summary .promises { margin-top: 28px; padding: 0; }
.legal-card > .legal-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.legal-page h1, .legal-page h2 { font-family: var(--font-display); font-weight: 400; color: var(--ink-strong); }
.legal-page h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 46px); line-height: 1.02; letter-spacing: -.035em; }
.legal-page h2 { margin: 38px 0 8px; font-size: 21px; letter-spacing: -.025em; }
.legal-page p, .legal-page li {
  color: rgba(41, 35, 29, .8);
  font-size: 15px;
  line-height: 1.68;
  letter-spacing: -.008em;
}
.legal-page ul { padding-left: 22px; }
.legal-page a { color: var(--ink-strong); font-weight: 500; border-bottom: 1px solid rgba(41, 37, 31, .28); }
.legal-updated { margin: 0 0 32px; font-size: 13px; }
.legal-contact { margin-top: 36px; }
.legal-links {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 44px;
  font-size: 11px;
  letter-spacing: .03em;
  opacity: .6;
}
.legal-links a { color: var(--muted); font-weight: 400; border: 0; }
.legal-links a:hover { opacity: .85; }

/* --- touch targets -------------------------------------------------------- *
 * Every link on the site is 12–16px of text, which is a 15–16px tall hit area.
 * The padding buys a ~44px target; the matching negative margin means nothing
 * moves, so this changes what a thumb can hit and nothing else. Type size,
 * face and colour are untouched.                                             */
.nav a:not(.wordmark),
.site-foot a { padding: 14px 0; margin: -14px 0; }
.wordmark { padding: 9px 0; margin: -9px 0; }
/* two classes, to clear `.legal-page .legal-brand` above — the 48px gap under
   the wordmark is preserved, the padding just adds hit area above and below. */
.legal-page .legal-brand { padding: 9px 0; margin-top: -9px; margin-bottom: 39px; }
.legal-links a { padding: 15px 0; margin: -15px 0; }
/* the secondary CTA is a bare text link, so it had no box to tap — 24px tall
   next to a 50px button doing the same job */
.button.secondary { padding: 13px 0; margin: -13px 0; }
/* `.doc-quiet` has no rule anywhere in this stylesheet; it renders as an
   ordinary prose link. Left looking as it does, but it is a standalone
   navigation link at the end of a page, not a word inside a sentence. */
.doc-quiet a { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* --- responsive ----------------------------------------------------------- */

/* Between 561px and 680px the three-column nav still fits comfortably — the
   links total ~294px inside a 680px bar — so only the height comes down. */
@media (max-width: 680px) {
  .nav { height: 72px; }
  .site-foot { align-items: flex-start; }
  .site-foot .availability { text-align: left; }
  .legal-shell { width: min(100% - 32px, 760px); padding-top: 26px; }
  /* was `.legal-brand` (0-1-0), which lost to `.legal-page .legal-brand`
     (0-2-0) further up — so this mobile override never actually applied. */
  .legal-page .legal-brand { margin-bottom: 21px; }
}

/* Under 560px the row genuinely runs out of width, so it wraps to two rows
   rather than dropping half of itself. `.nav-left { display: none }` used to
   take About and Our thesis off every phone with no hamburger and no
   replacement — on a phone the only nav was the wordmark, Privacy and Support. */
@media (max-width: 560px) {
  .nav {
    height: auto;
    padding-top: 16px;
    padding-bottom: 12px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand    utility"
      "sections sections";
    row-gap: 10px;
  }
  .wordmark { grid-area: brand; justify-self: start; }
  .nav-right { grid-area: utility; }
  .nav-left {
    grid-area: sections;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
}

/* A landscape phone is short, not narrow: keep the single row there, where
   vertical space is the scarce thing and horizontal space is not. */
@media (max-width: 560px) and (max-height: 500px) {
  .nav {
    height: 64px;
    padding-top: 0;
    padding-bottom: 0;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: none;
    row-gap: 0;
  }
  .wordmark { grid-area: auto; justify-self: center; }
  .nav-left, .nav-right { grid-area: auto; }
  .nav-left { padding-top: 0; border-top: 0; }
}

/* 320px is the narrowest phone still in service and the gutters were eating
   15% of it. */
@media (max-width: 360px) {
  .doc { padding-left: 18px; padding-right: 18px; }
  .nav { padding-left: 18px; padding-right: 18px; }
  .site-foot { padding-left: 18px; padding-right: 18px; }
  .nav-left, .nav-right { gap: 16px; }
  .legal-shell { width: min(100% - 28px, 760px); }
}
