/* style.css: the foundation of every page of the public site: tokens,
   fonts, the page base, the header and footer, the one label component and
   the toast.

   The site wears the same look as the app (Soft Editorial): warm paper,
   white panels with a hairline, Theirway Serif for titles and Instrument
   Sans for what a hand operates, ink for the primary action, ONE teal
   accent, motion only as feedback.

   Where the site differs from the app:
     - LIGHT ONLY: nothing here reads prefers-color-scheme; the paper is
       the whole page.
     - TWO PAPERS: the front page wears the app's warm paper. The Files
       page (files.html) sets class="theme-files" on <html>, and the block
       after :root below gives it a cooler, grey-blue paper with lines to
       match and a slate-blue accent for links and focus. The ink, the
       buttons and the mark's teal are the same on both. The class is on
       the root element, not on <body>, because some tokens are aliases
       (--focus is var(--accent), the button's --btn-ground is var(--bg))
       and an alias takes its value where it is declared, on the root: a
       theme set lower down would leave them on the warm values.
     - The site is self-contained: its fonts are served from /fonts/, never
       from /app/. Token names and values are copies of the app's
       (/app/css/app.css), value for value.
     - The site's own controls are square and its call to action carries
       the mark's folded corner. That button is button.css, one file shared
       with the app, which is square too. Panels, labels and the
       miniature's cards keep the app's radius 6 / 8 / 12 / 16.

   Load order (a later file wins a tie):

     style.css      this file
     button.css     the button with the fold (shared with the app)
     controls.css   this site's mapping of its tokens, text actions, the
                    email field and the waiting-list form
     landing.css    the front pages' sections, and the frame of a video
     product.css    the drawing of the page a client opens, shared by both
                    front pages: the card, its tiles, its list of files
     stop.css       the page behind a link email's "Stop these emails"
                    (index.html only, opened by main.js)
     privacy.css    the privacy notice's reading layout (privacy.html, and
                    report.html and agents.html, which borrow it)
     report.css     the report form (report.html only)
     agents.css     code and its table (agents.html only)
     files.css      the Files page's own drawings (files.html only, last)

   Where to look next: index.html and privacy.html for the markup, main.js and
   choose.js for what moves. */

@font-face{font-family:"Theirway Serif";src:url("fonts/theirway-serif-latin-ext-opsz-wght.woff2") format("woff2");font-weight:400 600;font-display:swap}
@font-face{font-family:"Instrument Sans";src:url("fonts/instrument-sans-latin-ext-wght.woff2") format("woff2");font-weight:400 600;font-display:swap}

:root{
  /* paper, surfaces and ink */
  --bg:#F5F3EE; --surface:#FFFFFF; --sunken:#EEEBE4; --hover:#F1EEE8;
  --line:#E2DED5; --line2:#ECE9E2; --line-strong:#CFCAC0; --field-line:#858178;
  --ink:#1C1B19; --ink2:#4A4843; --mute:#6A675F;
  /* the primary action is ink */
  --action:#1C1B19; --action-hover:#36342F; --on-action:#FAF9F6;
  /* the one accent: chosen, live, focus, links, step numbers */
  --accent:#0E6B5F; --accent-hover:#0A574D; --accent-tint:#DCEEEA; --accent-ink:#0B5F54; --on-accent:#FFFFFF;
  --focus:var(--accent); --progress:var(--accent);
  /* meaning, for labels: a word on a tint */
  --neutral-fg:#4A4843; --neutral-bg:#ECE9E2;
  --info-fg:#24527F;    --info-bg:#E3EDF7;
  --success-fg:#2C6A34; --success-bg:#E2F0DF;
  --warning-fg:#7A4E0C; --warning-bg:#F7EBD3;
  --danger-fg:#A0352A;  --danger-bg:#F8E3DF;
  --teal:#1A8F81;   /* the mark's flap, nothing else; a graphic, so 3:1 or more on paper */
  --shadow-overlay:0 1px 2px rgba(28,27,25,.06),0 16px 40px -16px rgba(28,27,25,.30);

  --font-sans:"Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --font-display:"Theirway Serif",Georgia,"Times New Roman",serif;
  --font-mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --text-xs:12px; --text-m:13px; --text-ui:14px; --text-l:16px; --text-xl:18px;
  --text-label:12px; --text-2xl:22px; --text-3xl:30px; --text-4xl:40px; --text-display:56px;
  --radius-s:6px; --radius-control:8px; --radius-l:12px; --radius-sheet:16px;
  --space-1:4px; --space-1h:6px; --space-2:8px; --space-2h:10px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px;
  --control:36px; --control-s:30px; --control-l:44px;
  --gutter:48px; --input-font:14px; --page-max:1180px;
  --dur-fast:120ms; --dur:180ms; --dur-slow:220ms;
  --ease-out:cubic-bezier(.2,.8,.2,1);
  color-scheme:light}

/* The Files page's paper (see the header): every value here is a token
   above, cooler. Every word on it keeps 4.5:1 on each surface, and the
   field's line and the teal keep 3:1. */
.theme-files{
  --bg:#EDF0F3; --sunken:#E4E8ED; --hover:#E8ECF0;
  --line:#D7DDE4; --line2:#E3E7EC; --line-strong:#C2CAD3; --field-line:#7A838E;
  --ink2:#43474E; --mute:#62676F;
  --accent:#335A7A; --accent-hover:#294A66; --accent-tint:#DFE7F0; --accent-ink:#2E5272}

@media (max-width:820px){:root{
  --text-3xl:24px; --text-4xl:30px; --text-display:36px;
  --control:44px; --control-s:36px; --gutter:16px; --input-font:16px}}

/* --- base --------------------------------------------------------- */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:auto;scroll-padding-top:var(--space-6)}
body{margin:0;background:var(--bg);color:var(--ink);font:400 var(--text-l)/24px var(--font-sans);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
a{color:var(--accent-ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,currentColor 40%,transparent)}
a:hover{text-decoration-color:currentColor}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
button{font:inherit;color:inherit}
b,strong{font-weight:500}
h1{font:400 var(--text-display)/1.04 var(--font-display);letter-spacing:-.024em;margin:0;text-wrap:balance}
h2{font:400 var(--text-4xl)/1.1 var(--font-display);letter-spacing:-.018em;margin:0;text-wrap:balance}
h3{font:500 var(--text-xl)/24px var(--font-display);letter-spacing:-.005em;margin:0}
p{margin:0}
.eyebrow{display:block;margin:0 0 var(--space-3);font:500 var(--text-label)/16px var(--font-sans);letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.lede{color:var(--ink2);font:400 var(--text-xl)/28px var(--font-sans);max-width:46ch}
.s{color:var(--mute);font-size:var(--text-m);line-height:18px}
.num{font-variant-numeric:tabular-nums}
.wrap{width:100%;max-width:calc(var(--page-max) + 2 * var(--gutter));margin:0 auto;padding-inline:var(--gutter)}

/* --- header and footer -------------------------------------------- */

.top{display:flex;align-items:center;gap:var(--space-5);height:72px}
/* The gap is the lockup's half cap from the flap's edge to the T (the same
   sum as .brand in the app's components.css). 44px tall so a thumb can
   press it. */
.brand{display:inline-flex;align-items:center;min-height:var(--control-l);gap:.224em;color:var(--ink);text-decoration:none;font:500 21px/24px var(--font-display);letter-spacing:-.01em}
.brand img{width:28px;height:28px;display:block}
.top nav{display:flex;gap:var(--space-5);margin-left:auto}
.top nav a{color:var(--ink2);text-decoration:none;white-space:nowrap;font:500 var(--text-ui)/20px var(--font-sans);transition:color var(--dur-fast) var(--ease-out)}
.top nav a:hover{color:var(--ink)}
.top .actions{display:flex;gap:var(--space-5);align-items:center}
/* The two front pages have no nav, whose margin pushes the actions to the
   right edge on the other pages; without one, the actions take that
   margin. */
.top .brand + .actions{margin-left:auto}

/* The footer: the lockup, then who makes it, quietly. */
.foot{border-top:1px solid var(--line);margin-top:var(--space-9);padding-block:var(--space-7)}
.foot .wrap{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:var(--space-6);row-gap:var(--space-3);align-items:center;color:var(--mute);font-size:var(--text-m);line-height:18px}
/* Three balanced columns on one centre line: the lockup left, who makes it
   in the middle, the build right. Aligned to the top, the text would drop
   below the lockup's middle. */
.foot .brand{grid-column:1;justify-self:start}
.foot-made{grid-column:2;text-align:center}
.foot .build{grid-column:3;grid-row:1;justify-self:end;text-align:right}
@media (max-width:820px){
  .foot .wrap{grid-template-columns:minmax(0,1fr)}
  .foot .brand,.foot-made,.foot .build{grid-column:1;grid-row:auto;justify-self:start;text-align:left}
}
.build{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

/* The nav goes with the phone layout at 820, the one breakpoint the tokens
   use, not at 640 with the primary button: from 641 to about 740 its links
   wrap onto two lines beside the buttons. */
@media (max-width:820px){.top nav{display:none}.top .actions{margin-left:auto}}
@media (max-width:640px){.top .btn.primary{display:none}}

/* --- the label: a word on a tint, never colour alone (as in the app) --- */

.tag{display:inline-block;height:22px;padding:0 8px;border-radius:var(--radius-s);background:var(--neutral-bg);color:var(--neutral-fg);font:500 var(--text-xs)/22px var(--font-sans);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.tag[data-tone=ok],.tag[data-tone=done]{background:var(--success-bg);color:var(--success-fg)}
.tag[data-tone=busy]{background:var(--info-bg);color:var(--info-fg)}

/* --- the toast (main.js shows it for the links in the waitlist email) --- */

.notice{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:90;max-width:calc(100% - 32px);padding:12px 16px;border-radius:var(--radius-control);background:var(--ink);color:var(--bg);font:500 var(--text-m)/18px var(--font-sans);box-shadow:var(--shadow-overlay);animation:fade var(--dur-slow) var(--ease-out)}

/* --- motion: feedback only; reduced motion turns it all off ------- */

@keyframes fade{from{opacity:0}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* --- colophon ----------------------------------------------------- */

/* The last page of the stylesheet, where a book keeps its colophon.

   Set in Theirway Serif (Source Serif 4, by Adobe, subset and renamed) and
   Instrument Sans (by the Instrument Sans Project Authors), both under the
   SIL Open Font License: /fonts/LICENSE.txt. Both are served from /fonts/,
   so your IP address goes to no font service.

   Printed on warm paper in near-black ink, with one teal accent; the
   page for files on a cooler paper, with a slate-blue accent. The mark's
   flap is a lighter teal on both. The exact colours are the custom
   properties at the top of this file.

   Made in Lund, Sweden. */
