/* studio.css — sthreelabs document pages (privacy, support, terms, accessibility, press)
   C. Doherty — 2026-07-21

   Replaces each folder's paperback _shared.css on DOCUMENT pages only.
   Product index pages keep _shared.css and their own aesthetic.

   The variable NAMES below are deliberately identical to _shared.css
   (--paper, --paper-light, --ink, --amber, --rule). Press pages carry inline
   <style> blocks that reference those variables, so they inherit this palette
   without any markup change. Do not rename them.

   Contrast note: --amber is the brand orange and is used for accents, borders
   and large text. Small secondary text uses --amber-text (a darker orange that
   clears WCAG AA at body size) or --dim. Never set 12-14px text in --amber. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --paper: #F2F0EC;
  --paper-light: #E8E5DF;   /* surfaces: factboxes, asset cards, copy blocks */
  --ink: #0A0A0A;
  --amber: #C56F2E;         /* accent / large text / borders only */
  --amber-text: #A0551C;    /* 4.7:1 on --paper — safe for small text */
  --dim: #5A5852;
  --rule: #0A0A0A;          /* press inline styles do `1px solid var(--rule)` */
  --edge: 2px solid var(--ink);
  --pop: 5px 5px 0 var(--amber);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12110F;
    --paper-light: #1C1B18;
    --ink: #F2F0EC;
    --amber: #E08542;
    --amber-text: #E08542;  /* 6.9:1 on dark --paper */
    --dim: #9A978F;
    --rule: #F2F0EC;
  }
}

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

body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 72px; }
.wrap.wide { max-width: 1040px; }

/* ── studio bar ─────────────────────────────────────────── */
/* Full-bleed, so it sits outside .wrap — directly after <body>. */
.studio-bar {
  background: #0A0A0A; color: #F2F0EC;
  border-bottom: 2px solid var(--amber);
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: .14em;
  text-align: center; padding: 9px 16px;
}
.studio-bar a { color: #F2F0EC; text-decoration: none; }
.studio-bar a:hover { color: var(--amber); }

/* ── header ─────────────────────────────────────────────── */
header.site {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  border-bottom: var(--edge); padding-bottom: 14px; margin-bottom: 22px;
}
header.site .brand {
  font-weight: 900; font-size: 22px; letter-spacing: -.025em;
  color: var(--ink); text-decoration: none;
}
header.site .brand:hover { color: var(--amber); }
header.site nav { display: flex; gap: 7px; flex-wrap: wrap; }
header.site nav a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border: var(--edge); padding: 6px 11px; background: var(--paper);
}
header.site nav a:hover { background: var(--amber); color: #0A0A0A; }
header.site nav a.current { background: var(--ink); color: var(--paper); }

/* ── breadcrumb ─────────────────────────────────────────── */
nav.breadcrumb {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 30px;
}
nav.breadcrumb a { color: var(--amber-text); text-decoration: none; border-bottom: 1px solid var(--amber); }
nav.breadcrumb a:hover { color: var(--ink); border-bottom-color: var(--ink); }
nav.breadcrumb span[aria-current="page"] { color: var(--dim); }

/* ── headings ───────────────────────────────────────────── */
h1 {
  font-weight: 900; font-size: clamp(32px, 6vw, 52px);
  letter-spacing: -.035em; line-height: 1.02; margin: 0 0 10px;
}
/* the kicker above an h1 — a mono chip, not a small-caps flourish */
h1 .smallcaps, .eyebrow {
  /* block + fit-content: the chip gets its own line above the title,
     but only wraps as wide as its text (inline-block would sit beside it) */
  display: block; width: fit-content;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--paper); background: var(--ink);
  padding: 5px 10px; margin-bottom: 16px;
}
h2 {
  font-weight: 800; font-size: 23px; letter-spacing: -.02em;
  margin: 44px 0 10px; padding-bottom: 8px; border-bottom: var(--edge);
}
/* section numerals carry real order in these documents, so they stay */
h2 .chap, h2 .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; font-weight: 700; color: var(--amber);
  margin-right: 10px; letter-spacing: .04em;
}
h3 { font-weight: 700; font-size: 17px; margin: 26px 0 6px; letter-spacing: -.01em; }

/* ── body copy ──────────────────────────────────────────── */
p, li { font-size: 17px; }
p { margin: 0 0 14px; }

/* the summary paragraph — boxed, because it is the answer a reader
   (or an answer engine) is most likely to take away */
p.lead {
  font-size: 17.5px; line-height: 1.6; margin: 0 0 30px;
  border: var(--edge); box-shadow: var(--pop);
  background: var(--paper); padding: 18px 20px;
}
p.lead::first-letter { font-size: inherit; float: none; margin: 0; font-weight: inherit; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber);
    text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--amber-text); text-decoration-color: var(--ink); }

ul, ol { padding-left: 22px; margin: 0 0 16px; }
ul li, ol li { margin: 7px 0; }
strong { font-weight: 700; }
code {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .88em;
  border: 1px solid var(--rule); padding: 1px 5px; background: var(--paper-light);
}

/* ── small components ───────────────────────────────────── */
/* was a floral ornament; now a hard rule — same job, new language */
.ornament { height: 2px; background: var(--ink); margin: 34px 0; }
.ornament::before { content: ""; }

.muted { color: var(--dim); font-size: 14px; }

.updated {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-text); border: 1px solid var(--rule); padding: 4px 9px;
  margin: 0 0 4px;
}

.note {
  border: var(--edge); border-left-width: 7px; border-left-color: var(--amber);
  background: var(--paper-light); padding: 16px 18px; margin: 20px 0;
}
.note :last-child { margin-bottom: 0; }

.made {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); margin-top: 44px;
}

.brandmark {
  font-weight: 900; text-transform: lowercase; letter-spacing: -.02em;
  text-decoration: none; color: var(--amber-text);
}
.brandmark:hover { color: var(--ink); }

a.app-store-badge { display: inline-block; margin-top: 6px; text-decoration: none; }
a.app-store-badge img { height: 56px; width: auto; display: block; }
a.app-store-badge:hover { opacity: .85; }

/* ── footer ─────────────────────────────────────────────── */
footer.site {
  border-top: var(--edge); padding-top: 16px; margin-top: 56px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--dim);
}
footer.site a { color: var(--amber-text); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* ── product-page components ────────────────────────────── */
/* The Paperback Collection index lists sibling apps. Each row is a hard-edged
   card: the app link on the left, the App Store link as a bordered button. */
ul.apps, ul.shared { list-style: none; padding: 0; margin: 20px 0 30px; }
ul.apps li, ul.shared li {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  border: var(--edge); box-shadow: var(--pop);
  padding: 14px 16px; margin: 0 0 14px; background: var(--paper);
}
ul.shared li { display: list-item; box-shadow: none; padding: 10px 14px; }

a.app-link { text-decoration: none; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
a.app-link .title { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
a.app-link .desc { color: var(--dim); font-size: 14.5px; }
a.app-link:hover .title { color: var(--amber-text); }

a.store {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  border: var(--edge); padding: 8px 12px; white-space: nowrap; background: var(--paper);
}
a.store:hover { background: var(--amber); color: #0A0A0A; }

section.intro { margin-bottom: 8px; }

/* ── press-page overrides ───────────────────────────────── */
/* Press pages carry an inline <style> that predates this file. It inherits the
   palette through the shared variables, but it also hard-codes the paperback
   voice (italic serif labels in --amber). These selectors are prefixed with
   `body` purely to outrank those inline rules, which come later in the cascade.
   Nothing in the press markup needs to change. */

body .factbox { border: var(--edge); background: var(--paper-light); padding: 18px 22px; }
body .factbox dt {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-style: normal; font-weight: 700; font-size: 10.5px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--amber-text);
}
body .factbox dd { font-size: 15.5px; }

body .asset-card { border: var(--edge); background: var(--paper-light); }
body .asset-card img { border: 1px solid var(--rule); }
body .asset-card .label { font-weight: 700; font-size: 14.5px; }
body .asset-card .meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-style: normal; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim);
}
body .asset-card a.dl { color: var(--amber-text); border: var(--edge); font-weight: 700; }
body .asset-card a.dl:hover { background: var(--amber); color: #0A0A0A; border-color: var(--amber); }

body .swatch .chip { border: var(--edge); border-radius: 0; }
body .swatch .name {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-style: normal; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim);
}
body .swatch .hex { color: var(--ink); font-weight: 500; }

body .copy-block {
  font-style: normal; background: var(--paper-light);
  border-left: 7px solid var(--amber); padding: 14px 18px;
}

/* ── a11y ───────────────────────────────────────────────── */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

header.site nav a, footer.site a { padding: 8px 11px; }
footer.site a { padding: 4px 2px; margin: -4px -2px; }

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

@media (max-width: 560px) {
  .wrap { padding: 28px 18px 56px; }
  :root { --pop: 4px 4px 0 var(--amber); }
}
