/* Hook & Book brand system (17 Nov 2026): light = Gold Cord (default), dark = Night Shift.
 * One set of names, two values. Components only use var(--hb-...), never a hex value.
 * The theme is set on <html data-theme> by the head script, before this file loads.
 * Loaded after site.css: it maps the old site.css variables onto the brand tokens,
 * then overrides the components that used to sit on fixed navy. */

@font-face {
	font-family: "Anton";
	src: url("fonts/anton-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	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: "JetBrains Mono";
	src: url("fonts/jetbrainsmono-latin.woff2") format("woff2");
	font-weight: 500 700;
	font-style: normal;
	font-display: swap;
	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;
}

/* ---------- Tokens (brand system page 7) ---------- */
:root {
	--hb-display: "Anton", "Arial Narrow", sans-serif;
	--hb-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hb-mono: "JetBrains Mono", ui-monospace, monospace;
	--hb-radius: 12px;
	color-scheme: light;
}

:root, [data-theme="light"] {
	--hb-bg: #F6F5F0;
	--hb-surface: #FFFFFF;
	--hb-line: #DDD8CC;
	--hb-text: #0B0B0B;
	--hb-muted: #55524B;
	--hb-accent: #C2410C;
	--hb-cord: #C2904B;
	--hb-btn-bg: #13213C;
	--hb-btn-bg-hover: #1F2E4D;
	--hb-btn-text: #FFFFFF;
	--hb-key-bg: #13213C;
	--hb-key-text: #FFFFFF;
	--hb-signal: #F26405;
	--hb-stat-bg: #FFFFFF;
	--hb-stat-text: #0B0B0B;
	--hb-stat-num: #C2410C;
	--hb-shadow: 0 18px 40px rgba(11, 11, 11, 0.12);
	/* web-safe orange to gold, 3:1 at headline sizes only */
	--hb-accent-fill: linear-gradient(180deg, #D9480F 0%, #A0700F 100%);
}

[data-theme="dark"] {
	--hb-bg: #13213C;
	--hb-surface: #0D172B;
	--hb-line: #24324F;
	--hb-text: #FFFFFF;
	--hb-muted: #C9CFDB;
	--hb-accent: #C6A15B;
	--hb-cord: #C6A15B;
	--hb-btn-bg: #C6A15B;
	--hb-btn-bg-hover: #D1B06F;
	--hb-btn-text: #0D172B;
	--hb-key-bg: #F6F1E7;
	--hb-key-text: #13213C;
	--hb-signal: #F26405;
	--hb-stat-bg: #F6F1E7;
	--hb-stat-text: #13213C;
	--hb-stat-num: #13213C;
	--hb-shadow: 0 20px 40px rgba(4, 10, 24, 0.4);
	--hb-accent-fill: none;
	color-scheme: dark;
}

/* ---------- Old site.css names, pointed at the brand tokens ----------
 * Declared on :root, the same element as data-theme, so they follow the switch. */
:root {
	--bg: var(--hb-surface);
	--cream: color-mix(in srgb, var(--hb-text) 3%, var(--hb-bg));
	--cream-warm: color-mix(in srgb, var(--hb-cord) 8%, var(--hb-surface));
	--gold-tint: color-mix(in srgb, var(--hb-cord) 22%, var(--hb-surface));
	--line: var(--hb-line);
	--ink: var(--hb-text);
	--ink-2: var(--hb-line);
	--ink-3: var(--hb-surface);
	--muted: var(--hb-muted);
	--muted-2: var(--hb-muted);
	--gold: var(--hb-cord);
	--gold-text: var(--hb-accent);
	--on-dark: var(--hb-text);
	--on-dark-muted: var(--hb-muted);
	--on-dark-line: var(--hb-line);
	--font: var(--hb-body);
}

body { background: var(--hb-bg); color: var(--hb-text); }
a { color: var(--hb-accent); }
a:hover { color: var(--hb-text); }
:focus-visible { outline-color: var(--hb-accent); box-shadow: 0 0 0 2px var(--hb-bg); }
.skip { background: var(--hb-key-bg); color: var(--hb-key-text); }

/* ---------- Type ---------- */
.h1, .h2 { font-family: var(--hb-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.005em; color: var(--hb-text); text-wrap: balance; }
.h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 0.95; }
.hero--home .h1 { font-size: clamp(44px, 6.2vw, 88px); }
.h1--page { font-size: clamp(40px, 5vw, 68px); }
.h1--service, .hero--service .h1--service { font-size: clamp(38px, 4.4vw, 60px); }
.h1--post { font-size: clamp(36px, 4.6vw, 56px); }
.h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1; margin-bottom: 20px; }
.h2--light { color: var(--hb-text); }
.h1 em, .h2 em, .hero--light .h1 em, .section:not(.section--navy) .h1 em, .section:not(.section--navy) .h2 em { font-style: normal; color: var(--hb-accent); }
/* Light: the one accent word gets the orange-to-gold fill (headline sizes only) */
:root:not([data-theme="dark"]) :is(.h1, .h2) em { background: var(--hb-accent-fill); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Labels: the brand label (700 13px, tracked, uppercase, accent). Replaces the 5 Nov sentence case. */
.hb-label, .eyebrow, .mnav__h, .dnav__h, .site-footer__h, .site-footer__tag, .timeline b, .compare__head > *, .ptable thead th {
	font-family: var(--hb-body); font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: 0.16em; text-transform: uppercase;
}
.hb-label, .eyebrow, .hero .eyebrow, .section--navy .eyebrow { color: var(--hb-accent); }
.eyebrow::before, .hero .eyebrow::before { background: var(--hb-cord); }
.ptable thead th { color: var(--hb-muted); }
.compare__head > :last-child { color: var(--hb-text); }

/* Big numbers in the display face */
.price, .big-price, .calc__big, .statpanel__big { font-family: var(--hb-display); font-weight: 400; letter-spacing: 0.01em; }
.price small, .calc__big small, .price .was { font-family: var(--hb-body); }
.big-price, .calc__big { color: var(--hb-accent); }

/* ---------- Header ---------- */
.site-header { background: var(--hb-bg); color: var(--hb-text); border-bottom: 1px solid var(--hb-line); }
.brand__logo--dark { display: none; }
[data-theme="dark"] .brand__logo--light { display: none; }
[data-theme="dark"] .brand__logo--dark { display: block; }
.dnav > ul > li > a { color: var(--hb-text); }
.dnav > ul > li > a:hover { color: var(--hb-accent); }
.dnav__list { background: var(--hb-surface); border-color: var(--hb-line); box-shadow: var(--hb-shadow); }
.dnav__list a { color: var(--hb-text); }
.dnav__list a:hover { background: var(--hb-bg); color: var(--hb-text); }
.dnav__h { color: var(--hb-accent); border-color: var(--hb-line); }
.mnav > summary { color: var(--hb-text); border-color: var(--hb-line); }
.mnav__panel { background: var(--hb-bg); border-color: var(--hb-line); box-shadow: var(--hb-shadow); }
.mnav__panel a { color: var(--hb-text); border-color: var(--hb-line); }
.mnav__panel a:hover, .mnav__h { color: var(--hb-accent); }

/* Theme switch: top right, 44x44. Moon in light, sun in dark. */
.hb-theme-toggle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--hb-line); border-radius: var(--hb-radius); background: transparent; color: var(--hb-text); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.hb-theme-toggle:hover { border-color: var(--hb-text); color: var(--hb-accent); }
.hb-theme-toggle .sun { display: none; }
[data-theme="dark"] .hb-theme-toggle .sun { display: block; }
[data-theme="dark"] .hb-theme-toggle .moon { display: none; }
/* While the theme flips, nothing fades: the whole page swaps in one frame. */
.hb-theme-switching *, .hb-theme-switching *::before, .hb-theme-switching *::after { transition: none !important; }

/* ---------- Buttons and keycaps ---------- */
.btn--gold { background: var(--hb-btn-bg); color: var(--hb-btn-text); }
.btn--gold:hover { background: var(--hb-btn-bg-hover); color: var(--hb-btn-text); }
.btn--navy { background: var(--hb-key-bg); color: var(--hb-key-text); box-shadow: 0 3px 0 var(--hb-cord); }
.btn--navy:hover { background: var(--hb-key-bg); color: var(--hb-key-text); box-shadow: 0 1px 0 var(--hb-cord); transform: translateY(2px); }
/* Secondary button outline: 45% of the text colour, so it reads as a button (3:1) on both themes */
.btn--ghost, .btn--line { color: var(--hb-text); border-color: color-mix(in srgb, var(--hb-text) 45%, transparent); background: transparent; }
.btn--ghost:hover, .btn--line:hover { color: var(--hb-text); border-color: var(--hb-text); background: transparent; }
.badge, .badge--navy, .hero .badge--navy { background: var(--hb-key-bg); color: var(--hb-key-text); box-shadow: 0 2px 0 var(--hb-cord); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.chips a[aria-current], .pagination .page-numbers.current { background: var(--hb-key-bg); border-color: var(--hb-key-bg); color: var(--hb-key-text); box-shadow: 0 2px 0 var(--hb-cord); }
.authorbox__mark { background: var(--hb-key-bg); color: var(--hb-key-text); }
.steps__n, .steps--light .steps__n { background: var(--gold-tint); color: var(--hb-text); font-family: var(--hb-mono); }
.steps--light li { color: var(--hb-text); }

/* ---------- Sections ---------- */
.section--cream { background: var(--cream); border-block: 1px solid var(--hb-line); }
.section--warm { background: var(--cream-warm); border-block: 1px solid var(--hb-line); }
.section--navy { background: var(--cream); color: var(--hb-text); border-block: 1px solid var(--hb-line); }
.section--navy .ticks, .hero .ticks { color: var(--hb-text); }
.lede--light, .section--navy .lede, .hero .lede, .hero--light .lede { color: var(--hb-muted); }

/* Lists: decoration dots in the cord colour */
.ticks li::before, .hero .ticks li::before, .section--navy .ticks li::before, .panel--navy .ticks li::before, .hero .offer .ticks li::before, .checkcard .ticks li::before, .hero .checkcard .ticks li::before { background: var(--hb-cord); }
.timeline { border-left-color: var(--hb-line); }
.timeline li::before { background: var(--hb-cord); }
.timeline b { color: var(--hb-accent); }
.timeline p { color: var(--hb-muted); }

/* ---------- Cards and panels: surface + line, no fixed navy ---------- */
.panel--navy, .hero .panel--navy, .guarantee, .calc__result, .blogcta { background: var(--hb-surface); color: var(--hb-text); border: 1px solid var(--hb-line); }
.panel--navy .muted, .guarantee .lede, .blogcta { color: var(--hb-muted); }
.panel--navy .kv strong { color: var(--hb-accent); }
.guarantee .h3, .blogcta strong, .callout strong { color: var(--hb-text); }
.callout { background: var(--cream); color: var(--hb-muted); border: 1px solid var(--hb-line); }
.calc__big small { color: var(--hb-muted); }
.offer, .hero__media .statpanel { box-shadow: var(--hb-shadow); }
.svc:hover { box-shadow: var(--hb-shadow); }
/* Linked cards answer the pointer the same way as the service cards: a 2px lift */
.postcard, .linkgrid a { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.postcard:hover, .linkgrid a:hover { transform: translateY(-2px); box-shadow: var(--hb-shadow); }
/* Phones: hero and section buttons full width, one per row */
@media (max-width: 479px) { .actions .btn { width: 100%; } }
.card--featured, .ladder > li.is-start, .plan.is-featured { border-color: var(--hb-cord); }
.field input { border-color: var(--hb-muted); background: var(--hb-surface); color: var(--hb-text); }
.field input::placeholder { color: var(--hb-muted); }
.calc input { border-color: var(--hb-muted); }

/* ---------- Hero, with the cord along its bottom edge on the wrap lines ---------- */
.hero, .hero--light { position: relative; background: var(--hb-bg); color: var(--hb-text); border-bottom: 0; }
.hero .crumbs a, .hero .crumbs li, .hero:not(.hero--light) .crumbs a, .hero:not(.hero--light) .crumbs li { color: var(--hb-muted); }
.hero::after, .site-footer::before { content: ""; position: absolute; left: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter))); right: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter))); height: 18px; background: var(--hb-cord); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M0 9 Q6 2 12 9 T24 9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") left center / 24px 18px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M0 9 Q6 2 12 9 T24 9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") left center / 24px 18px repeat-x; pointer-events: none; }
.hero::after { bottom: 0; }

/* Stat tile on the hero photo */
.statpanel { background: var(--hb-stat-bg); color: var(--hb-stat-text); border: 1px solid var(--hb-line); box-shadow: var(--hb-shadow); }
.statpanel__big { color: var(--hb-stat-num); }
.statpanel__more { border-top-color: color-mix(in srgb, var(--hb-stat-text) 16%, transparent); color: var(--hb-stat-text); }
.statpanel__more strong { color: var(--hb-stat-text); }
.statpanel__src { font-family: var(--hb-mono); font-size: 12px; color: var(--hb-stat-text); opacity: .7; }
[data-theme="dark"] .statpanel { border-color: transparent; }

/* Missed-call dot: the only place the signal orange appears */
.hb-missed::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--hb-signal); margin-right: 8px; }

/* Check card */
.checkcard, .hero .checkcard { background: var(--hb-surface); color: var(--hb-text); border-color: var(--hb-line); }
.checkcard .ticks, .hero .checkcard .ticks { color: var(--hb-text); }
.hero .checkcard__lede, .hero .checkcard .form__alt { color: var(--hb-muted); }
.hero .checkcard .form__alt a { color: var(--hb-text); }

/* ---------- Footer, with the cord above it ---------- */
.site-footer { position: relative; background: var(--hb-surface); color: var(--hb-muted); }
.site-footer::before { top: 28px; }
.site-footer__grid { padding-top: 88px; }
.site-footer__h { color: var(--hb-text); }
.site-footer__tag { color: var(--hb-accent); }
.site-footer a { color: var(--hb-text); }
.site-footer a:hover { color: var(--hb-accent); }
.site-footer__base { border-top-color: var(--hb-line); }
.site-footer__logo--dark { display: none; }
[data-theme="dark"] .site-footer__logo--light { display: none; }
[data-theme="dark"] .site-footer__logo--dark { display: block; }

@media (prefers-reduced-motion: reduce) { .hb-theme-toggle, .btn--navy, .postcard, .linkgrid a { transition: none; } .btn--navy:hover, .postcard:hover, .linkgrid a:hover { transform: none; } }

/* ---------- Home: one section per screen at desktop (v2.1.3) ---------- */
.m4 .split { align-items: center; }
.m4__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
@media (min-width: 1100px) and (min-height: 700px) {
  .home main > .section { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 72px; }
  .home main > .section > .container { width: 100%; }
  .home #how { padding-block: 56px; }
  .home #how .section-head { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; align-items: end; margin-bottom: 40px; }
  .home #how .section-head .h2 { grid-row: span 2; margin: 0; }
  .home #how .section-head .lede { margin: 0; }
  .home #how .section-head .mt-m { margin: 12px 0 0; }
  .home #how .ladder > li { padding: 24px 22px; }
  .m4__img { aspect-ratio: auto; height: min(560px, calc(100svh - 240px)); }
  .home .founder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .home .founder__img { max-width: none; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; max-height: calc(100svh - 144px); }
}
