/* Design tokens, reset, typography, header and buttons. */
/* Bitter (SIL Open Font License, src/fonts/Bitter-OFL.txt): one slab serif for headings and text,
   self-hosted as a Latin variable font (weights 100-900). */
@font-face {
  font-family: 'Bitter';
  src: url('../fonts/bitter-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Bitter's "&" reads like an 8 at small sizes ("Pans & trays"); take that one character from a
   local serif. Without one, the face is skipped and Bitter's own "&" is used. */
@font-face {
  font-family: 'BakingLab Ampersand';
  src:
    local('Georgia'), local('Noto Serif'), local('NotoSerif'), local('DejaVu Serif'), local('Times New Roman');
  unicode-range: U+0026;
}
/* Colour roles (velvet palette, after the BAEK bakery identity: velvet red, cream-white, soft charcoal):
   --action is for buttons, links and controls only; information is --ink, good news --positive,
   --accent decorates (eyebrows), --caution marks "possible, take care" and --error marks problems
   (burnt orange, so an error never looks like a button). */
:root {
  color-scheme: light dark;
  --paper: #f9f7f4;
  --card: #ffffff;
  --ink: #2b2a2e;
  --muted: #646269;
  --line: #e4e0dc;
  --line-strong: #8f8a86;
  --line-dashed: #cfc9c3;
  --field-line: #827d79;
  --action: #8e1b2c;
  --action-hover: #721423;
  --on-action: #ffffff;
  --soft: #f6e8ea;
  --hover: #f5f2ef;
  --chip: #efebe7;
  --panel: #f8f6f3;
  --panel-alt: #faf8f6;
  --accent: #8e1b2c;
  --focus: #8e1b2c;
  --positive: #2e6b4a;
  --caution: #7a4f0a;
  --sand: #f1edea;
  --sand-line: #dcd3cc;
  --sand-line-soft: #e6dfd9;
  --timeline-line: #b9aea6;
  --step-chip: #f6e8ea;
  --step-chip-line: #d9a7ae;
  --cold: #3f6377;
  --cold-soft: #eaf0f3;
  --rec-bg: #f5eeee;
  --rec-line: #e1cfd1;
  --rec-line-soft: #ebdfe0;
  --warning-line: #c2a77a;
  --error: #b93d0b;
  --error-soft: #fdefe6;
  --error-field: #fff6f0;
  --error-line: #e8b294;
  --shadow-faint: #2635260a;
  --shadow-soft: #26352616;
  --shadow-strong: #15201940;
  --backdrop: #1e2a2366;
  --overlay: #182b225c;
  /* Three corner sizes: cards and dialogs, panels inside a card, and controls (concentric inside panels). */
  --font: 'BakingLab Ampersand', 'Bitter', Georgia, serif;
  /* Type scale: uppercase labels, small print, dense UI, body, fields (16 px keeps phones from
     zooming in), then headings and large figures. */
  --text-label: 10px;
  --text-sm: 12px;
  --text-md: 13px;
  --text-base: 15px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 40px;
  --radius: 18px;
  --radius-inner: 12px;
  --radius-control: 8px;
  --workspace-gap: 28px;
}
@media screen and (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1c1f;
    --card: #262529;
    --ink: #f1eeea;
    --muted: #b0abb0;
    --line: #3a383d;
    --line-strong: #85808a;
    --line-dashed: #4c4950;
    --field-line: #85808a;
    --action: #f0a3ae;
    --action-hover: #f6bec6;
    --on-action: #3a0b13;
    --soft: #3a2227;
    --hover: #2c2a2f;
    --chip: #302e33;
    --panel: #222124;
    --panel-alt: #222124;
    --accent: #f0a3ae;
    --focus: #f0a3ae;
    --positive: #9fd3b4;
    --caution: #e7b862;
    --sand: #2a2528;
    --sand-line: #443c42;
    --sand-line-soft: #383236;
    --timeline-line: #5e5860;
    --step-chip: #3a2227;
    --step-chip-line: #7a4a52;
    --cold: #8fbad1;
    --cold-soft: #1c2a31;
    --rec-bg: #2c2326;
    --rec-line: #4a3a3e;
    --rec-line-soft: #3d3134;
    --warning-line: #6d5c3c;
    --error: #ffb38a;
    --error-soft: #3d241a;
    --error-field: #301d16;
    --error-line: #8a5236;
    --shadow-faint: #0000002e;
    --shadow-soft: #00000040;
    --shadow-strong: #00000080;
    --backdrop: #000000a0;
    --overlay: #000000a0;
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--text-base)/1.5 var(--font);
  /* Bitter's word space is narrow for running text on screen. */
  word-spacing: 0.05em;
}
.shell {
  max-width: 1320px;
  margin: auto;
  padding: 0 40px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  min-height: 44px;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a {
  color: var(--action);
  text-underline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex='-1']:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
/* No lone last word under a heading ("A starting point, never a / rule."). */
h1,
h2,
h3 {
  text-wrap: balance;
}
h1 {
  font-family: var(--font);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -1px;
}
h2 {
  font-size: var(--text-xl);
  font-weight: 650;
  letter-spacing: 0;
}
h3 {
  font-size: var(--text-lg);
  font-weight: 650;
}
.eyebrow {
  font-size: var(--text-label);
  letter-spacing: 1.6px;
  font-weight: 750;
  color: var(--accent);
  margin-bottom: 8px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: var(--text-sm);
  line-height: 1.65;
}
.label-note {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 400;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.3px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--action);
  color: var(--on-action);
  border-radius: 50%;
  font: 700 var(--text-3xl) var(--font);
  padding-right: 4px;
}
.brand small {
  display: block;
  font-size: var(--text-label);
  letter-spacing: 1.6px;
  color: var(--muted);
  margin-top: 2px;
}
.page-heading {
  padding: 34px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.lead {
  font-size: var(--text-base);
  color: var(--muted);
  margin-top: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 12px 18px;
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 650;
  font-size: var(--text-md);
  background: transparent;
}
.button.primary {
  background: var(--action);
  color: var(--on-action);
  border-color: var(--action);
}
.button.primary:hover {
  background: var(--action-hover);
}
.button.quiet:hover {
  background: var(--soft);
}
.text-button {
  background: none;
  border: 0;
  padding: 6px 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* Keeps "Print plan ↗" on one line beside the brand on a phone. */
#print-plan {
  gap: 8px;
  white-space: nowrap;
}
.language-switch {
  margin-left: auto;
  font-size: var(--text-sm);
  text-decoration: underline;
  text-underline-offset: 4px;
}
