/* site.css -- the public site's own pages (site/). D341 (25 Oct): privacy, terms, copyright and community-rules,
   served by web/site.py at frankwb.com/privacy, /terms, /copyright and /community-rules (refund and
   takedown moved to _to_delete/d341: nothing is sold today, and takedown became copyright).

   EVERY VALUE BELOW IS COPIED FROM design/reader/tokens.css (read 29 Sep 2026, HEAD 980b874), not linked:
   the site ships beside shell/, not inside it, and must not reach into design/ (D26) or into shell/ (so a
   shell rebuild can never restyle the legal pages Paddle approved). The token names are kept, so a copy is
   checkable line by line against its source:
     --ground/--ink (the reader's paper, --warm:0), --dim, --rule,
     --chrome-bg/-fg/-fg-dim/-accent/-border/-panel-bg/-link/-control-bg,
     --serif, --chrome-ui-font, --tap, --hair, --gap, --pad, --r-ui, --ui-fine, --ui-act, --ui-field,
     and the fluid root size `calc((14.5px + 0.75vw) * 1.06)`.
   Dark is the same palette swap tokens.css makes, by prefers-color-scheme only (no toggle, no script).
   DESIGN owns the look: this file is SITE-0's first pass and an ASK to DESIGN to pass over it. */

:root{
  --ground: hsl(48 14% 98.5%);
  --ink:    hsl(42 18% 7%);
  --dim:    #7a776d;
  --rule:   #dedcd4;

  --chrome-fg-dim: #52514f;
  --chrome-accent: #832f2b;
  --chrome-border: #e4e3e0;
  --chrome-panel-bg: #ffffff;
  --chrome-link: #832f2b;
  --chrome-control-bg: #f5f5f3;

  --serif: "Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --chrome-ui-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text",
             "Segoe UI", Inter, system-ui, "Helvetica Neue", Arial, sans-serif;

  --tap: 44px; --hair: 1px; --gap: 8px; --pad: 12px; --r-ui: 10px;
  --ui-fine: 13px; --ui-act: 15px; --ui-field: 16px;

  --col: 36rem;            /* the site's own reading column (~70ch of the serif) -- SITE-0's number, not a token */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark){
  :root{
    --ground: hsl(240 7.3% 8.04%);
    --ink:    hsl(30 4.17% 90.59%);
    --dim:#8c8a83; --rule:#2e2e33;
    --chrome-fg-dim: #98979b; --chrome-accent: #c9c4bb; --chrome-border: #2c2c32;
    --chrome-panel-bg: #1a1a1f; --chrome-link: #c9c4bb; --chrome-control-bg: #1a1a1f;
  }
}

html{ font-size: calc((14.5px + 0.75vw) * 1.06); -webkit-text-size-adjust: 100%; }
*,*::before,*::after{ box-sizing: border-box; }
body{
  margin: 0; background: var(--ground); color: var(--ink);
  font: 1rem/1.55 var(--serif);
  overflow-wrap: break-word;
}
a{ color: var(--chrome-link); text-underline-offset: .15em; text-decoration-thickness: var(--hair); }
a:hover{ text-decoration-thickness: 2px; }
a:focus-visible{ outline: 2px solid var(--chrome-accent); outline-offset: 2px; border-radius: 3px; }

.wrap{ max-width: calc(var(--col) + 2 * var(--pad) * 2); margin: 0 auto; padding: 0 calc(var(--pad) * 2); }

/* --- the head: the name, and the three pages Paddle must reach from the navigation --- */
.top{ border-bottom: var(--hair) solid var(--rule); }
.top .wrap{ display: flex; align-items: center; justify-content: space-between; gap: var(--pad); min-height: 56px; flex-wrap: wrap; }
.name{ font: 600 1.35rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.top nav{ display: flex; gap: 2px; flex-wrap: wrap; font: var(--ui-act)/1 var(--chrome-ui-font); }
.top nav a{
  color: var(--chrome-fg-dim); text-decoration: none; padding: 0 10px;
  min-height: var(--tap); display: inline-flex; align-items: center; border-radius: var(--r-ui);
}
.top nav a:hover{ color: var(--ink); background: var(--chrome-control-bg); }
.top nav a[aria-current="page"]{ color: var(--ink); }

main{ padding: 2.2rem 0 3rem; }
h1{ font: 600 2.1rem/1.15 var(--serif); margin: 0 0 .6rem; letter-spacing: -.005em; }
h2{ font: 600 1.2rem/1.3 var(--serif); margin: 2.2rem 0 .5rem; }
h3{ font: 600 1rem/1.35 var(--serif); margin: 1.4rem 0 .3rem; }
p, ul, ol{ margin: 0 0 .85rem; }
ul, ol{ padding-left: 1.25rem; }
li{ margin: 0 0 .35rem; }
.lead{ font-size: 1.2rem; line-height: 1.45; margin-bottom: 1.2rem; }
.meta{ font: var(--ui-fine)/1.4 var(--chrome-ui-font); color: var(--chrome-fg-dim); margin-bottom: 1.6rem; }
.aside{ color: var(--chrome-fg-dim); }
blockquote{ margin: 0 0 .85rem; padding: .1rem 0 .1rem 1rem; border-left: 2px solid var(--rule); }

/* --- the three money sentences, and the price --- */
.money p{ margin-bottom: .6rem; }
.price{
  margin: 2rem 0; padding: 1.3rem 1.4rem; border: var(--hair) solid var(--chrome-border);
  border-radius: var(--r-ui); background: var(--chrome-panel-bg);
}
.price h2{ margin: 0 0 .1rem; font-size: 1rem; font-family: var(--chrome-ui-font); font-weight: 600; color: var(--chrome-fg-dim); letter-spacing: .02em; }
.amount{ font: 600 2.4rem/1.1 var(--serif); margin: 0 0 .15rem; }
.amount small{ font: var(--ui-act)/1 var(--chrome-ui-font); color: var(--chrome-fg-dim); font-weight: 400; margin-left: .35rem; }
.price ul{ list-style: none; padding: 0; margin: .9rem 0 0; font: var(--ui-act)/1.45 var(--chrome-ui-font); }
.price li{ padding-left: 1.1rem; position: relative; }
.price li::before{ content: "\2014"; position: absolute; left: 0; color: var(--dim); }
.price .fine{ font: var(--ui-fine)/1.45 var(--chrome-ui-font); color: var(--chrome-fg-dim); margin: .9rem 0 0; }

/* --- the doors: one live, two honestly not yet --- */
.doors{ display: flex; flex-wrap: wrap; gap: var(--gap); margin: 1.4rem 0 .4rem; font: var(--ui-act)/1.2 var(--chrome-ui-font); }
.btn{
  display: inline-flex; align-items: center; gap: .5em; min-height: var(--tap); padding: 0 18px;
  border-radius: var(--r-ui); border: var(--hair) solid var(--chrome-border); text-decoration: none;
  color: var(--ink); background: var(--chrome-control-bg);
}
.btn.go{ background: var(--chrome-accent); border-color: var(--chrome-accent); color: var(--ground); font-weight: 600; }
.btn.go:hover{ filter: brightness(1.08); }
.btn.soon{ color: var(--chrome-fg-dim); background: transparent; border-style: dashed; cursor: default; }
.btn.soon em{ font-style: normal; font-size: var(--ui-fine); }

/* --- the legal pages --- */
.legal h2{ padding-top: .6rem; border-top: var(--hair) solid var(--rule); }
.legal h2:first-of-type{ border-top: 0; padding-top: 0; }
.toc{ font: var(--ui-act)/1.5 var(--chrome-ui-font); padding-left: 1.25rem; margin-bottom: 2rem; }
.token{ font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em; background: var(--chrome-control-bg);
        border: var(--hair) dashed var(--chrome-border); border-radius: 4px; padding: 0 .25em; }

/* --- the foot: every page, all four pages, and who sells it --- */
.foot{ border-top: var(--hair) solid var(--rule); padding: 1.4rem 0 2.4rem; font: var(--ui-fine)/1.5 var(--chrome-ui-font); color: var(--chrome-fg-dim); }
.foot nav{ display: flex; flex-wrap: wrap; gap: 0 2px; margin: 0 0 .5rem -10px; }
.foot nav a{ color: var(--chrome-fg-dim); padding: 0 10px; min-height: var(--tap); display: inline-flex; align-items: center; }
.foot nav a:hover{ color: var(--ink); }
.foot p{ margin: 0 0 .3rem; }

@media (max-width: 480px){
  .wrap{ padding: 0 16px; }
  h1{ font-size: 1.75rem; }
  .top nav a{ padding: 0 8px; }
  .foot nav{ margin-left: -7px; }
  .foot nav a{ padding: 0 7px; }
  .btn{ flex: 1 1 100%; justify-content: center; }
}
