@font-face { font-family: "Focal"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/Focal-Regular-Web.woff2") format("woff2"); }
@font-face { font-family: "Focal"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("/fonts/Focal-RegularItalic-Web.woff2") format("woff2"); }
@font-face { font-family: "Focal"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/Focal-Medium-Web.woff2") format("woff2"); }
@font-face { font-family: "Focal"; font-weight: 500; font-style: italic; font-display: swap;
  src: url("/fonts/Focal-MediumItalic-Web.woff2") format("woff2"); }
@font-face { font-family: "Focal"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/Focal-Bold-Web.woff2") format("woff2"); }
/* Obhut mock-up — what the three directions share.
   Focal is a trial: served from the scratch folder at /fonts/, never in the repository.
   Without it the pages fall back to the system face. */


:root {
  --paper: #FAF6EC;
  --ink: #1C1A17;
  --soft: #AFC96E;      /* fields and buttons, never text */
  --deep: #4E6A22;      /* every full stop; 5.7:1 on paper */
  --ink-2: #57524A;     /* quiet words on paper, 7.2:1 */
  --rule: #D9D2C1;      /* hairlines on paper (not text) */
  --on-soft: #1C1A17;   /* words and stops on a pistachio field: always ink, in both modes */
  --field: #fff; --card: #FFFDF7; --line-strong: #8C857A; --soft-hover: #A2BD5F; --paper-2: #F3EEE2; --paper-3: #EDE6D6;
  --soft-pale: #E8EFD5; --rule-2: #B9B09C; --law: #A3261C; --hover: rgba(28,26,23,.06);
  --head: "Focal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Focal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --soft-ease: cubic-bezier(.45, 0, .25, 1);   /* slow in, slow out: every visible change on the pages */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.55;
  color: var(--ink); background: var(--paper); font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--soft); color: var(--on-soft); }
/* No blue flash when a link is tapped on a phone (his report 2026-09-29; the same fix as hewmun.com's). The keyboard
   focus ring below is untouched. */
* { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.stop { color: var(--deep); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* The logo: letters in ink (currentColor), the full stop in deep pistachio. */
.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.logo svg { height: 26px; width: auto; display: block; overflow: visible; }
.logo .fallback { font-family: var(--head); font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
/* The drawn logo takes the typed one's place without a jump: the box is sized to the logo, the typed word waits unseen. */
.logo[data-logo] { width: 99px; height: 26px; }
.logo[data-logo] .fallback { visibility: hidden; }
.logo[data-logo].no-svg .fallback { visibility: visible; }

/* Buttons: soft pistachio field, ink words (9.4:1). */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: 0 1.25rem;
  border-radius: 999px; border: 0; cursor: pointer; font-family: var(--text); font-weight: 500;
  font-size: 1rem; text-decoration: none; transition: transform .3s var(--soft-ease), background-color .45s var(--soft-ease); }
.btn-soft { background: var(--soft); color: var(--on-soft); }
.btn-soft:hover { background: var(--soft-hover); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }

/* The pause switch every moving page carries. */
.pause { display: inline-flex; align-items: center; gap: .5em; min-height: 36px; padding: 0 .75rem;
  border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-size: .875rem; color: var(--ink-2); }
.pause:hover { color: var(--ink); }
.pause svg { width: 14px; height: 14px; }

/* The form, the same in every direction; each page dresses it. */
.write form { display: grid; gap: 1.1rem; max-width: 36rem; }
.write label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.write input, .write textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--field);
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .75rem .9rem; min-height: 48px; caret-color: var(--deep); }
.write textarea { min-height: 8rem; resize: vertical; }
.write input:focus-visible, .write textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.write .hint { font-weight: 400; font-size: .875rem; color: var(--ink-2); }
.write .sent { min-height: 1.5em; font-size: .95rem; }

.still *, .still *::before, .still *::after { transition: none !important; animation: none !important; }

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

/* Dark (2026-09-28, his ask): follows the phone or computer. Warm night paper, not black; the pistachio buttons stay,
   with ink on them; the stops turn a lighter pistachio so they read on the dark (every pair checked, see decisions.md). */
.prob[aria-pressed="true"], .bub.us, .lab, pre.msg, .tabs span[aria-current] { color: var(--on-soft); }
.btn-soft .stop, .prob[aria-pressed="true"] .stop, .bub.us .stop, pre.msg .stop { color: var(--on-soft); }
/* The dark set, used when the device is dark (unless the reader chose light) or when the reader chose dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1B1916; --ink: #F1ECE0; --ink-2: #B9B1A3; --rule: #3A362F; --deep: #B3CF78;
    --field: #24211D; --card: #221F1B; --line-strong: #8A8275; --soft-hover: #BBD37E; --paper-2: #26231F; --paper-3: #2E2A25;
    --soft-pale: #2C3322; --rule-2: #5A5448; --law: #F07A6C; --hover: rgba(241,236,224,.08);
  }
  :root:not([data-theme="light"]) .shot, :root:not([data-theme="light"]) .screen img { filter: brightness(.92); }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #1B1916; --ink: #F1ECE0; --ink-2: #B9B1A3; --rule: #3A362F; --deep: #B3CF78;
    --field: #24211D; --card: #221F1B; --line-strong: #8A8275; --soft-hover: #BBD37E; --paper-2: #26231F; --paper-3: #2E2A25;
    --soft-pale: #2C3322; --rule-2: #5A5448; --law: #F07A6C; --hover: rgba(241,236,224,.08);
}
:root[data-theme="dark"] .shot, :root[data-theme="dark"] .screen img { filter: brightness(.92); }
:root[data-theme="light"] { color-scheme: light; }
/* The switch in the header (his ask, 2026-09-28). */
.theme { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.theme:hover { background: var(--hover); }
.theme svg { width: 20px; height: 20px; }
/* The menu's links (Problems solved, Accessibility; 2026-09-30): the same size as every item, shown on phones too */
.bar nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.bar nav a.nav-link { text-decoration: none; font-size: .975rem; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); }
.bar nav a.nav-link:hover, .bar nav a.nav-link[aria-current] { text-decoration: underline; text-underline-offset: .2em; }
.bar nav .btn { white-space: nowrap; }
/* On a phone the menu takes two lines, never a sideways scroll: the links first, then Write to us and the switch (2026-09-30). */
header.bar nav { flex-wrap: wrap; justify-content: flex-end; row-gap: .25rem; min-width: 0; }
.bar nav a.nav-link { white-space: nowrap; }
@media (max-width: 380px) { header.bar nav { gap: .25rem .75rem; } header.bar nav .btn { padding-left: .9rem; padding-right: .9rem; } }
/* The walk-through tick: level with the first line of its words (his read 09-28; the field rules had made it 48 px tall). */
.write label.tick input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; margin: calc((1.55em - 22px) / 2) 0 0; padding: 0; border: 0; }

/* The links to Terms, Privacy and Accessibility (2026-09-29, his word: accessibility at the top and the bottom of every page) */
.foot { border-top: 1px solid var(--rule); padding: 1.5rem 0 2.5rem; font-size: .875rem; color: var(--ink-2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
/* The name in the footer line, in the green of the full stops (his word 2026-09-30: "a little green"; gated as "the full stops") */
.foot .maker { color: var(--deep); }
.legal { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.legal a { min-height: 24px; display: inline-flex; align-items: center; color: var(--ink-2); }
.legal a:hover { color: var(--ink); }

body { letter-spacing: 0.012em; }
