/* The Reading Room — shared chrome for the privacy and terms pages.
   Tokens are the same roles the landing page uses. */

:root{
  --ground:#F6F1E8;
  --surface:#FDFAF4;
  --ink:#23201A;
  --muted:#6B6355;
  --faint:#8A8271;
  --accent:#A0682B;
  --accent-hover:#7E5222;
  --accent-soft:rgba(160,104,43,.08);
  --hairline:rgba(35,32,26,.1);
  --hairline-card:rgba(35,32,26,.12);
  --rule:rgba(35,32,26,.35);
  --shell:860px;
  --gutter:32px;
  --serif:Newsreader,"Iowan Old Style","Times New Roman",serif;
  --sans:"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--ground);
  color:var(--ink);
  font-family:var(--sans);
  font-size:15.5px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-hover)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

.shell{max-width:var(--shell);width:100%;margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}

/* ── Masthead, matching the landing page ──────────────────── */
.masthead{display:flex;align-items:center;gap:16px;padding-top:26px;padding-bottom:26px}
.wordmark{display:flex;align-items:center;min-height:44px;gap:10px}
.wordmark__mark{width:11px;height:8px;flex:none;background:var(--accent);-webkit-mask:url(brand-mark.png) center/contain no-repeat;mask:url(brand-mark.png) center/contain no-repeat}
.wordmark__name{font-family:var(--serif);font-size:21px;font-weight:500;letter-spacing:-.01em;color:var(--ink)}
.wordmark:hover .wordmark__name{color:var(--ink)}

/* ── Document card ────────────────────────────────────────── */
.container{
  width:100%;
  margin:0 0 72px;
  padding:44px 48px 48px;
  background:var(--surface);
  border:1px solid var(--hairline-card);
  border-radius:18px;
  box-shadow:0 14px 34px rgba(35,32,26,.06);
}

.back-link{
  display:inline-flex;align-items:center;gap:7px;
  margin-bottom:26px;font-size:13.5px;font-weight:600;
  letter-spacing:.02em;color:var(--accent);
}

h1{
  margin:0 0 10px;
  font-family:var(--serif);font-weight:500;
  font-size:clamp(32px,4.4vw,42px);line-height:1.12;letter-spacing:-.015em;
  color:var(--ink);text-wrap:pretty;
}

.subtitle{
  margin:0 0 6px;
  font-size:12.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--faint);
}
.subtitle + .subtitle{margin-bottom:34px}
.subtitle strong{color:var(--muted)}

h2{
  margin:38px 0 14px;
  padding-bottom:10px;
  border-bottom:1px solid var(--hairline);
  font-family:var(--serif);font-weight:500;
  font-size:25px;line-height:1.2;letter-spacing:-.01em;
  color:var(--ink);
}

h3{
  margin:26px 0 8px;
  font-family:var(--serif);font-weight:500;
  font-size:18.5px;line-height:1.3;color:var(--ink);
}

h4{
  margin:18px 0 6px;
  font-size:12.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  color:var(--faint);
}

p{margin:0 0 15px;color:var(--muted);text-wrap:pretty}
strong{color:var(--ink);font-weight:600}

ul{margin:0 0 16px;padding-left:20px}
li{margin-bottom:7px;color:var(--muted)}
li::marker{color:var(--rule)}

/* ── Call-out panels ──────────────────────────────────────── */
.contact-section,
.subscription-box{
  margin-top:32px;padding:22px 24px;
  background:var(--ground);
  border:1px solid var(--hairline);
  border-radius:14px;
}
.contact-section h2,
.subscription-box h4:first-child{margin-top:0}
.contact-section h2{border:none;padding-bottom:0;margin-bottom:12px}
.subscription-box{margin-top:20px}

.warning{
  margin:20px 0;padding:16px 20px;
  background:var(--accent-soft);
  border-left:2px solid var(--accent);
  border-radius:0 12px 12px 0;
}
.warning p:last-child{margin-bottom:0}
.warning strong{color:var(--accent)}

.updated{
  margin-top:34px;padding-top:18px;
  border-top:1px solid var(--hairline);
  font-size:12.5px;color:var(--faint);
}

/* ── Footer, matching the landing page ────────────────────── */
.colophon{border-top:1px solid var(--hairline)}
.colophon__inner{padding-top:22px;padding-bottom:22px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.colophon__copy{font-size:13px;color:var(--muted)}
.colophon__links{display:flex;gap:22px;font-size:13px}
.colophon__apps{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;font-size:13px}
.colophon__apps-label{color:var(--muted)}
.colophon__app{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
.colophon__app img{border-radius:4px;flex-shrink:0}
.colophon__dev{font-size:13px;color:var(--muted)}

@media (max-width:760px){
  :root{--gutter:22px}
  .container{padding:30px 24px 34px;border-radius:14px;margin-bottom:48px}
  h2{font-size:22px}
}

@media (prefers-reduced-motion:reduce){
  *{transition-duration:.01ms !important}
}
