/* Hallmark · theme: custom, the green system as a skin for today's pages (tools, Journal, Library, legal, Start) · shape: unchanged · signature: the same green dawn and lime action as the new home · genre: modern-minimal · nav: unchanged · footer: unchanged */
/* critique: P3 H4 E4 S4 R4 V3 · weakest: V, a skin keeps each page's old layout; it brings the colours, type and buttons in line until each page is rebuilt */
/* The old pages read a small set of tokens (src/template.html :root); this file gives them the green values, by night and by day. */
:root, :root[data-theme="dark"] {  /* also when Night is chosen: the legal layout has its own dark tokens there */
  --soft: oklch(18% 0.025 155);
  --bg: oklch(14% 0.02 155); --surface: oklch(18% 0.025 155); --ink: oklch(96% 0.012 135); --muted: oklch(78% 0.02 145);
  --line: oklch(100% 0 0 / 0.12); --teal: oklch(88% 0.15 125); --teal-soft: oklch(88% 0.15 125 / 0.14); --focus: oklch(88% 0.15 125);
  --error: oklch(76% 0.15 30);
  --band: oklch(11% 0.016 155); --band-ink: oklch(96% 0.012 135); --band-muted: oklch(78% 0.02 145); --band-line: oklch(100% 0 0 / 0.12);
  --chat-bg: oklch(11% 0.016 155); --bubble-coach: oklch(20% 0.025 155); --bubble-me: oklch(32% 0.07 135);
  --white: oklch(96% 0.012 135); --white-ink: oklch(14% 0.02 155);
  --gold: oklch(88% 0.15 125); --gold-grad: linear-gradient(135deg, oklch(93% 0.12 125) 0%, oklch(88% 0.15 125) 60%, oklch(82% 0.16 130) 100%);
  --c-black: oklch(11% 0.016 155); --c-coal: oklch(18% 0.025 155); --c-teal: oklch(88% 0.15 125); --c-teal-dark: oklch(40% 0.09 150);
  --c-teal-light: oklch(92% 0.14 125); --c-paper: oklch(96% 0.012 135); --c-mist: oklch(94.5% 0.016 140); --c-mist-dark: oklch(90% 0.02 140);
  --c-grey: oklch(78% 0.02 145);
  --f-display: "Host Grotesk", "Helvetica Neue", Arial, sans-serif; --f-body: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"] {
  --bg: oklch(97.5% 0.01 140); --surface: oklch(94.5% 0.016 140); --ink: oklch(22% 0.03 155); --muted: oklch(39% 0.03 155);
  --soft: oklch(94.5% 0.016 140); --line: oklch(22% 0.03 155 / 0.14); --teal: oklch(42% 0.1 150); --teal-soft: oklch(42% 0.1 150 / 0.12); --focus: oklch(40% 0.09 150);
  --error: oklch(48% 0.16 28); color-scheme: light;
}
/* Day also when the device is light and nothing was chosen (as on the new pages) */
@media (prefers-color-scheme: light) { :root:not([data-theme]) {
  --bg: oklch(97.5% 0.01 140); --surface: oklch(94.5% 0.016 140); --ink: oklch(22% 0.03 155); --muted: oklch(39% 0.03 155);
  --soft: oklch(94.5% 0.016 140); --line: oklch(22% 0.03 155 / 0.14); --teal: oklch(42% 0.1 150); --teal-soft: oklch(42% 0.1 150 / 0.12); --focus: oklch(40% 0.09 150);
  --error: oklch(48% 0.16 28); color-scheme: light;
} }
html, body { overflow-x: clip; }
body { background: var(--bg); }
h1, h2, h3 { letter-spacing: -0.03em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; transition: none; }
::selection { background: var(--teal); color: var(--c-black); }
/* Calmer type: no capitals shouted in headings, no eyebrow labels (the new system's rules) */
h1, h2, h3, .h1, .display { text-transform: none !important; }
.eyebrow { display: none !important; }
/* Day: the accent is a dark green, so text in it reads; buttons filled with it carry light text */
:root[data-theme="light"] [class*="btn"]:not(.btn-pro):not(.nh-btn):not(.nh-menu-btn):not(.btn-ghost):not(.btn-outline):not(.btn-quiet) { color: oklch(98% 0.005 140); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) [class*="btn"]:not(.btn-pro):not(.nh-btn):not(.nh-menu-btn):not(.btn-ghost):not(.btn-outline):not(.btn-quiet) { color: oklch(98% 0.005 140); } }
:root[data-theme="light"] .nh-btn, :root[data-theme="light"] .nh-menu .nh-btn { color: oklch(98% 0.005 140) !important; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .nh-btn { color: oklch(98% 0.005 140) !important; } }
:root[data-theme="light"] button.on { color: oklch(98% 0.005 140); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) button.on { color: oklch(98% 0.005 140); } }
/* The Library's day buttons are dark green by day: their numbers in light text (the old rule uses !important) */
:root[data-theme="light"] .jd { color: oklch(98% 0.005 140) !important; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .jd { color: oklch(98% 0.005 140) !important; } }

/* the template's Day rules, for Auto on a light device (build.py) */
@media (prefers-color-scheme: light) {
:root:not([data-theme]) .light { --bg: var(--c-mist); --surface: var(--c-mist-dark); }
:root:not([data-theme]) .band { --bg: var(--c-black); --surface: var(--c-coal); --ink: var(--c-paper); --muted: var(--c-grey); --line: var(--c-paper-14); --logo-dot: var(--c-sand); color-scheme: dark; }
:root:not([data-theme]) .eyebrow { color: var(--c-teal-dark); }
:root:not([data-theme]) .film .eyebrow, :root:not([data-theme]) .band .eyebrow { color: var(--teal); }
:root:not([data-theme]) .pro-page .film .eyebrow { color: var(--gold); }
:root:not([data-theme]) .eb-stand::after { background: linear-gradient(180deg, var(--c-shelf-1) 0%, var(--c-shelf-2) 60%, var(--c-shelf-3) 100%); border-top-color: var(--c-sand-dark-35); box-shadow: 0 12px 18px var(--c-black-14); }
:root:not([data-theme]) .eb-cover, :root:not([data-theme]) .door-art > * { box-shadow: 0 16px 28px var(--c-black-20), 0 2px 6px var(--c-black-12); }
:root:not([data-theme]) .shelf li::after { background: linear-gradient(180deg, var(--c-shelf-1) 0%, var(--c-shelf-2) 60%, var(--c-shelf-3) 100%); box-shadow: 0 12px 18px var(--c-black-14); }
:root:not([data-theme]) .jcover { box-shadow: 0 16px 26px var(--c-black-20), 0 2px 6px var(--c-black-12); }
:root:not([data-theme]) .jm-t.sel { background: var(--c-black-06); }
}

/* The «neutro» look on the pages not yet rebuilt (src/looks.py, over src/skin.css) */
:root, :root[data-theme="dark"] { --bg: oklch(0% 0 0); --surface: oklch(11% 0 0); --ink: oklch(96.5% 0 0); --muted: oklch(74% 0 0); --line: oklch(96.5% 0 0 / 0.14); --teal: oklch(96.5% 0 0); --teal-soft: oklch(96.5% 0 0 / 0.06); --focus: oklch(85% 0.1 78); --error: oklch(76% 0.13 30); --soft: oklch(11% 0 0); --band: oklch(11% 0 0); --band-ink: oklch(96.5% 0 0); --band-muted: oklch(74% 0 0); --band-line: oklch(96.5% 0 0 / 0.14); --chat-bg: oklch(0% 0 0); --bubble-coach: oklch(14% 0 0); --bubble-me: oklch(11% 0 0); --white: oklch(96.5% 0 0); --white-ink: oklch(0% 0 0); --gold: oklch(96.5% 0 0); --gold-grad: linear-gradient(oklch(96.5% 0 0), oklch(96.5% 0 0)); --c-black: oklch(0% 0 0); --c-coal: oklch(11% 0 0); --c-teal: oklch(96.5% 0 0); --c-teal-dark: oklch(15% 0 0); --c-teal-light: oklch(100% 0 0); --c-paper: oklch(96.5% 0 0); --c-mist: oklch(96% 0.002 260); --c-mist-dark: oklch(96% 0.002 260); --c-grey: oklch(74% 0 0); --f-display: "Figtree", "Helvetica Neue", Arial, sans-serif; --f-body: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif; }
:root[data-theme="light"] { --bg: oklch(98.5% 0.001 260); --surface: oklch(96% 0.002 260); --ink: oklch(15% 0 0); --muted: oklch(38% 0 0); --line: oklch(15% 0 0 / 0.12); --teal: oklch(15% 0 0); --teal-soft: oklch(15% 0 0 / 0.05); --focus: oklch(46% 0.12 68); --error: oklch(47% 0.15 28); --soft: oklch(96% 0.002 260); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --bg: oklch(98.5% 0.001 260); --surface: oklch(96% 0.002 260); --ink: oklch(15% 0 0); --muted: oklch(38% 0 0); --line: oklch(15% 0 0 / 0.12); --teal: oklch(15% 0 0); --teal-soft: oklch(15% 0 0 / 0.05); --focus: oklch(46% 0.12 68); --error: oklch(47% 0.15 28); --soft: oklch(96% 0.002 260); } }
[class*="btn"] { border-radius: 999px; box-shadow: none; }
h1, h2, h3, .h1, .display { font-weight: 700; }

.head-row, .nh-row { border-radius: 0; box-shadow: none; border-color: transparent; }
.head .head-nav > a, .nh .nh-links a, .head-login, .nh .nh-login { font: 400 16px/1 "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.05em; opacity: 1; }
.head .btn, .nh .nh-btn { min-height: 52px; padding: 0 28px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.callout, .notice, .safety-box { border-left-width: 1px; }
/* the wordmark's dot and the dot after a title: silver-grey on every page, whatever an older page sets on its own elements */
:root { --dot-n: oklch(52% 0.004 260); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dot-n: oklch(80% 0.004 260); } }
:root[data-theme="dark"] { --dot-n: oklch(80% 0.004 260); }
*, *::before, *::after { --logo-dot: var(--dot-n) !important; --c-sand: var(--dot-n) !important; }
.dot { background: var(--dot-n) !important; }
.book-box { border-color: var(--line, var(--color-rule, currentColor)) !important; }
.brand-banner span { color: oklch(80% 0.004 260) !important; }
/* phones: the bar's capitals take more room, so its two buttons slim down to fit 375 px with the gutter (27 Nov 2026) */
@media (max-width: 479px) {
  .head-row, .nh-row { gap: 8px; }
  .head .btn { padding: 0 16px; letter-spacing: 0.02em; }
  .nh-row .nh-btn { padding: 0 12px; letter-spacing: 0.01em; }
  .head-row > :last-child [href="#menu"], .head-row [aria-controls="menu"] { padding: 0 14px; }
  .nh-row .nh-menu-btn { padding: 0 10px; }
}  /* the Journal's black banner: its small line in the light silver-grey, by day too */
/* One bar on every page, the home's (David, 27 Nov 2026): the wordmark left, How it works, Free tools and Journal in the
   middle, Log in, the pill and Menu on the right (Instinct keeps Log in in its bar too); below 1200 px the pill and Menu.
   No floating frame: a full-width bar, frosted, with a hairline once the page scrolls, on the page's own left line. */
.head, header.nh { position: sticky; top: 0; padding: 0; border: 0 !important; border-bottom: 1px solid transparent !important;
  background: color-mix(in oklch, var(--paper, var(--bg)) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); }
.head.scrolled, header.nh.scrolled { border-bottom-color: var(--line) !important; }
.head .head-row, .nh .nh-row { min-height: 80px; margin: 0 auto; gap: 24px; border: 0; border-radius: 0; box-shadow: none; background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.head .head-row { max-width: calc(var(--wrap) + 2 * var(--gutter)); padding: 0 var(--gutter); }
.nh .nh-row { max-width: calc(1200px + 2 * clamp(16px, 4vw, 40px)); padding: 0 clamp(16px, 4vw, 40px); }
.head .btn { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.head .btn:hover { background: var(--btn-hover); }
.head-login, .nh .nh-login { display: none; align-items: center; min-height: 48px; padding: 0 8px; color: var(--ink); text-decoration: none; }
.head .head-nav a, .nh .nh-links a { display: inline-flex; align-items: center; min-height: 48px; padding-block: 0; color: var(--ink); text-decoration: none; }
.head .head-nav a:hover, .head .head-nav a[aria-current], .nh .nh-links a:hover, .nh .nh-links a[aria-current], .head-login:hover, .nh-login:hover {
  text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 421px) { .head .brand svg { width: 132px; } .nh .nh-brand { width: 132px; } }
/* The home's floating island on phones, on every page (David, 27 Nov 2026: «sim, põe»): Home, Tools, Journal and Menu;
   the bar keeps the wordmark and the pill, Menu moves down to the island, as on the home */
.island { display: none; }
@media (max-width: 859px) {
  body { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .island { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 300;
    justify-content: center; pointer-events: none; }
  .isl { pointer-events: auto; flex: 1 1 auto; max-width: 400px; min-width: 0; display: flex; justify-content: space-around; padding: 4px;
    border-radius: 999px; background: color-mix(in oklch, var(--paper, var(--bg)) 70%, transparent); color: var(--ink); border: 1px solid var(--line);
    box-shadow: 0 16px 40px -18px oklch(0% 0 0 / 0.45); -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px); }
  .isl a { display: grid; justify-items: center; align-content: center; gap: 4px; flex: 1 1 0; min-width: 0; min-height: 56px;
    color: color-mix(in oklch, var(--ink) 80%, var(--paper, var(--bg))); text-decoration: none; border-radius: 999px; }
  .isl a[aria-current="page"] { color: var(--ink); }
  .isl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .isl span { font: 600 16px/1 "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif; white-space: nowrap; }
  .head .menu-btn, .nh .nh-menu-btn { display: none; }
}
/* the back and forward arrows (pagenav.py) on the bar's own left line, the wordmark moved over for them */
header.head > .pnav { top: 50% !important; left: max(var(--gutter), calc((100% - var(--wrap)) / 2)) !important; }
header.nh > .pnav { top: 50% !important; left: max(clamp(16px, 4vw, 40px), calc((100% - 1200px) / 2)) !important; }
html.pnav-on .head .head-row .brand, html.pnav-on .nh .nh-row .nh-brand { margin-left: 0; }  /* phones swipe: no arrows, no gap */
@media (hover: hover) and (pointer: fine) and (min-width: 600px) { html.pnav-on .head .head-row .brand, html.pnav-on .nh .nh-row .nh-brand { margin-left: 82px; } }
@media (max-width: 599px) { header > .pnav { display: none !important; } }  /* a narrow window: the arrows would cover the wordmark */
@media (min-width: 860px) {
  .head .menu-btn, .nh .nh-menu-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; border: 0; background: transparent;
    color: var(--ink); text-decoration: none; font: 400 16px/1 "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.05em; }
  .head .menu-btn:hover, .nh .nh-menu-btn:hover { text-decoration: underline; text-underline-offset: 6px; }
}
@media (min-width: 1200px) {
  .head .head-row, .nh .nh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .head .head-nav, .nh .nh-links { display: flex; justify-self: center; align-items: center; gap: 40px; margin: 0; }
  .head .head-end, .nh .nh-end { justify-self: end; gap: 24px; margin: 0; }
  .head-login, .nh .nh-login { display: inline-flex; }
}

