/* The brand fonts, self-hosted: Latin subset, woff2, from the @fontsource packages (see README.md).
   The URLs are relative to this file, so the file works wherever the assets folder is served or bundled.
   Nothing here calls a third party. Email never loads these: it uses the Georgia and Courier New fallbacks. */

@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/cardo-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/cardo-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/lora-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/lora-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/lora-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Anonymous Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/anonymous-pro-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Anonymous Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/anonymous-pro-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/newsreader-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Generated by scripts/build-tokens.mjs from docs/design-system/tokens.json. Do not edit by hand.
   Load this first, then components.css, and set data-theme="paper" or data-theme="deep" on the page.
   Paper is the default. The newsletter and the admin app are Paper; the website pages are Deep green. */

:root {
  --cream: #fcfaf7;
  --brand-green: #036341;
  --deep-green: #024a31;
  --darkest-green: #012a1b;
  --mid-green: #3a8263;
  --sage: #82a689;
  --mist: #cbd7cd;
  --pale: #e9efe9;
  --font-display: Cardo, Georgia, serif;
  --font-text: Lora, Georgia, serif;
  --font-label: "Anonymous Pro", "Courier New", monospace;
  --font-wordmark: Newsreader, Georgia, serif;
  --headline-xl-font-family: var(--font-display);
  --headline-xl-font-size: 58px;
  --headline-xl-line-height: 1.03;
  --headline-xl-font-weight: 700;
  --headline-xl-letter-spacing: -0.6px;
  --headline-l-font-family: var(--font-display);
  --headline-l-font-size: 40px;
  --headline-l-line-height: 1.05;
  --headline-l-font-weight: 700;
  --headline-l-letter-spacing: -0.5px;
  --headline-m-font-family: var(--font-display);
  --headline-m-font-size: 29px;
  --headline-m-line-height: 1.1;
  --headline-m-font-weight: 700;
  --headline-m-letter-spacing: -0.3px;
  --subtitle-font-family: var(--font-text);
  --subtitle-font-size: 23px;
  --subtitle-line-height: 1.35;
  --subtitle-font-weight: 400;
  --subtitle-font-style: italic;
  --body-font-family: var(--font-text);
  --body-font-size: 18px;
  --body-line-height: 1.55;
  --body-font-weight: 400;
  --body-email-font-family: var(--font-text);
  --body-email-font-size: 16px;
  --body-email-line-height: 1.5;
  --body-email-font-weight: 400;
  --quote-font-family: var(--font-text);
  --quote-font-size: 22px;
  --quote-line-height: 1.35;
  --quote-font-weight: 400;
  --quote-font-style: italic;
  --button-font-family: var(--font-text);
  --button-font-size: 17px;
  --button-line-height: 1;
  --button-font-weight: 600;
  --label-font-family: var(--font-label);
  --label-font-size: 12px;
  --label-line-height: 1.2;
  --label-font-weight: 700;
  --label-letter-spacing: 1.8px;
  --caption-font-family: var(--font-label);
  --caption-font-size: 12px;
  --caption-line-height: 1.3;
  --caption-font-weight: 400;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --tile: 11px;
  --tile-gap: 5px;
  --radius-none: 0px;
  --border-heavy: 2px;
  --border-hair: 1px;
}

:root,
[data-theme="paper"] {
  color-scheme: light;
  --ground: var(--cream);
  --ink: var(--darkest-green);
  --ink-muted: var(--brand-green);
  --subtitle: var(--brand-green);
  --action: var(--brand-green);
  --on-action: var(--cream);
  --stamp: var(--darkest-green);
  --on-stamp: var(--cream);
  --outline: var(--darkest-green);
  --field-fill: var(--cream);
  --quiet-fill: var(--pale);
  --rule: var(--mist);
  --stamp-shadow: 5px 6px 0 #82a689;
  --stamp-shadow-quiet: 5px 6px 0 #cbd7cd;
}

[data-theme="deep"] {
  color-scheme: dark;
  --ground: var(--deep-green);
  --ink: var(--cream);
  --ink-muted: var(--mist);
  --subtitle: var(--sage);
  --action: var(--cream);
  --on-action: var(--darkest-green);
  --stamp: var(--darkest-green);
  --on-stamp: var(--cream);
  --outline: var(--sage);
  --field-fill: var(--darkest-green);
  --quiet-fill: var(--darkest-green);
  --rule: var(--brand-green);
  --stamp-shadow: 5px 6px 0 rgba(0,0,0,0.35);
  --stamp-shadow-quiet: 5px 6px 0 rgba(0,0,0,0.35);
}

/* components.css: a copy of docs/design-system/components/bundle.css with ONE change (brief section 5.5).
   The focus ring on .ub-btn and on .ub-field input uses var(--outline) where bundle.css used var(--sage).
   Reason: sage on cream is about 2.6:1, under the 3:1 the system's own checklist asks for. --outline is the
   darkest green on Paper (over 14:1) and sage on Deep green, so Deep green looks exactly as before.
   Everything else is byte-for-byte the original. When the design system itself is fixed, replace this file
   with the new bundle.css and delete this note. A test (test/contract/design.test.mjs) checks the copy. */
/* The Useful Bit: Tile & Stamp. Classes read the tokens; load tokens.css first. */
.ub-btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:50px;padding:0 22px;border:0;border-radius:var(--radius-none);background:var(--action);color:var(--on-action);font-family:var(--font-text);font-weight:600;font-size:17px;line-height:1;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:var(--stamp-shadow);transition:transform .15s}
.ub-btn:hover{transform:translate(2px,3px)}
.ub-btn:focus-visible{outline:3px solid var(--outline);outline-offset:3px}
.ub-btn--outline{background:var(--ground);color:var(--ink);border:var(--border-heavy) solid var(--outline);box-shadow:var(--stamp-shadow-quiet)}
.ub-btn--small{min-height:40px;padding:0 16px;font-size:14.5px}
.ub-label{display:inline-block;background:var(--stamp);color:var(--on-stamp);font-family:var(--font-label);font-weight:700;font-size:12px;line-height:1.2;letter-spacing:1.8px;text-transform:uppercase;padding:var(--space-1) 9px 3px}
.ub-field{display:flex;flex-direction:column;gap:var(--space-2);font-family:var(--font-text)}
.ub-field label{font-style:italic;font-size:16px;color:var(--ink-muted)}
.ub-field input{box-sizing:border-box;height:50px;width:100%;min-width:0;border:var(--border-heavy) solid var(--outline);border-radius:var(--radius-none);background:var(--field-fill);color:var(--ink);padding:0 14px;font-family:var(--font-text);font-size:17px}
.ub-field input::placeholder{color:var(--ink-muted);opacity:1}
.ub-field input:focus-visible{outline:3px solid var(--outline);outline-offset:3px}
.ub-card{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-3);padding:var(--space-4);border:var(--border-heavy) solid var(--outline);background:var(--ground);color:var(--ink);box-shadow:var(--stamp-shadow);font-family:var(--font-text);font-size:16px;line-height:1.5}
.ub-card p{margin:0}
.ub-quote{margin:0;padding:var(--space-4) 18px;background:var(--quiet-fill);color:var(--ink);box-shadow:var(--stamp-shadow);font-family:var(--font-text);font-style:italic;font-size:22px;line-height:1.35}
.ub-hit{display:grid;grid-template-columns:10px 1fr;gap:10px;align-items:start;margin:0;font-family:var(--font-text);font-size:16px;line-height:1.5;color:var(--ink)}
.ub-hit::before{content:"";width:10px;height:10px;margin-top:.45em;background:var(--outline)}
.ub-tiles{display:flex;align-items:center;gap:var(--tile-gap)}
.ub-tiles i{display:block;flex:none;width:var(--tile);height:var(--tile);background:var(--mist)}
.ub-tiles i.t2{background:var(--sage)}
.ub-tiles i.t3{background:var(--mid-green)}
.ub-tiles i.t4{background:var(--brand-green)}

/* The sign-in, setup and sign-out pages (brief 5.5: Paper theme). This file is the last part of the one
   stylesheet the admin process serves at /signin.css: fonts.css, tokens.css and components.css come
   first, from signup-api/assets. It uses role tokens only, no colour of its own and no gradient. The
   admin policy forbids inline style, so every look on these pages lives here. */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
}

.shell {
  max-width: 36rem;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-7);
}

/* The logo lockup follows assets/logos/README.md: the wordmark is live Newsreader Regular beside the mark,
   0.95 of the mark's height, tracked -0.3px, with a gap of a third of the mark's height. Everything is
   worked out from the one mark height, so the three stay in step. Not capitals. */
.brand {
  --mark-height: 40px;
  display: flex;
  align-items: center;
  gap: calc(var(--mark-height) / 3);
  margin-bottom: var(--space-6);
  color: var(--ink);
}

.mark { display: block; flex: none; height: var(--mark-height); aspect-ratio: 324 / 319; }
.mark svg { display: block; width: 100%; height: 100%; }

.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 400;
  font-size: calc(var(--mark-height) * 0.95);
  letter-spacing: -0.3px;
  text-transform: none;
  line-height: 1;
}

h1 {
  margin: var(--space-3) 0 var(--space-3);
  font-family: var(--headline-m-font-family);
  font-size: var(--headline-m-font-size);
  line-height: var(--headline-m-line-height);
  font-weight: var(--headline-m-font-weight);
  letter-spacing: var(--headline-m-letter-spacing);
}

p { margin: 0 0 var(--space-4); }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink); }
.small { font-size: 16px; color: var(--ink-muted); }

form { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-5); }
form .ub-btn { align-self: flex-start; }

.ub-field input { font-size: 18px; }
.ub-field .hint { font-size: 14.5px; color: var(--ink-muted); }
.code-input { letter-spacing: 0.3em; font-family: var(--font-label); font-size: 22px; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--outline); outline-offset: 3px; }
.ub-btn { font-family: var(--font-text); }
a.ub-btn { color: var(--on-action); text-decoration: none; }
a.ub-btn.ub-btn--outline { color: var(--ink); }

/* The gap below matters: on the key page a field follows the box directly, with no form margin between. */
.problem {
  margin: var(--space-5) 0;
  padding: var(--space-3) var(--space-4);
  border: var(--border-heavy) solid var(--outline);
  background: var(--quiet-fill);
  font-size: 17px;
}

.note { margin: var(--space-5) 0 0; padding: var(--space-3) var(--space-4); background: var(--quiet-fill); font-size: 17px; }

.steps { margin: var(--space-4) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-5); counter-reset: step; }
.steps > li { position: relative; padding-left: 44px; counter-increment: step; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--stamp); color: var(--on-stamp);
  font-family: var(--font-label); font-weight: 700; font-size: 15px;
}

.key-card { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; margin-top: var(--space-3); }
.qr { display: block; width: min(100%, 260px); height: auto; }
.qr-light { fill: var(--field-fill); }
.qr-dark { fill: var(--ink); }

.plain-key {
  display: block;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: var(--border-heavy) solid var(--outline);
  background: var(--field-fill);
  font-family: var(--font-label);
  font-size: 20px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  word-break: break-all;
  user-select: all;
}

.tiles { margin-top: var(--space-7); }
.tiles i { flex: none; }

@media (max-width: 420px) {
  .shell { padding-top: var(--space-5); }
  h1 { font-size: 26px; }
  form .ub-btn, .key-card .ub-btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .ub-btn { transition: none; }
}
