/* Home Costs Guide design system — Hallmark Editorial theme, ported to WordPress 2026-11-05. Source: ~/workspace/homecostsguide/design/ */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(97% 0.007 86); --color-paper-2: oklch(94% 0.010 86); --color-paper-3: oklch(91% 0.012 84);
  --color-ink: oklch(16% 0.012 280); --color-ink-2: oklch(29% 0.011 280); --color-muted: oklch(48% 0.010 75);
  --color-rule: oklch(85% 0.009 85); --color-rule-2: oklch(64% 0.010 80);
  --color-accent: oklch(49% 0.130 152); --color-accent-ink: oklch(98% 0.005 88); --color-focus: oklch(52% 0.135 152);
  --font-display: "Bricolage Grotesque", ui-sans-serif, sans-serif; --font-body: "Source Serif 4", ui-serif, Georgia, serif;
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --rule-heavy: 4px; --shadow-card: none;
  --tracking-display: -0.012em; --display-weight: 800;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: natural sat=-10 con=4 */
[data-slot] > img { filter: saturate(0.9) contrast(1.04); }

/* Hallmark · shape: Index-First (draw 9a1583 dealt Long Document; swapped, the material is a catalogue with one decisive action and Long Document hides its actions) · genre: editorial · theme: Editorial (deal 1/3, seed home-costs-guide-content-235a·9025a6fb·2026-11-05·r0) · job: listen · draw: 9a1583
 * hero: Corridor · nav: banner over a retracting bar · footer: statement · imagery: none, the library held no fitting frame across four searches and off-subject frames were cut · signature: the visitor's question at poster scale, answered by the index under the fold
 * axes: light/display-condensed/chromatic-green · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: S, an index hero can read generic; led with the visitor's own question verbatim, named the decision rule as the site's method, and cut every photograph and figure the material did not earn */
/* Hallmark · hero-review: in-thread · render FAIL 40/41 (nav primary button ink on ink) and REFLEX 79 (dead band under the centred hero) · all resolved, verified by recapture
 * finish-review: subagent · 4 findings · 4 resolved · gap: none — closing screen given mass (statement at full display scale, footer matter spread across the container), checks regrouped (numeral and name in one column, description top-aligned beside them), decision close cut to a single start link, printer's green carried at rest on the banner band */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/wp-content/uploads/hcg/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/wp-content/uploads/hcg/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/wp-content/uploads/hcg/fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --banner-h: 2.375rem;
  --bar-h: 4.25rem;
}

body {
  color: var(--color-ink-2);
  font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums;
}

h1, h2, h3 {
  font-variation-settings: "wdth" 75, "opsz" 96;
  color: var(--color-ink);
  font-variant-numeric: lining-nums tabular-nums;
}

small, figcaption, th, nav, label, .btn, .tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 12;
}

a {
  text-decoration-color: var(--color-rule-2);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--color-accent);
}

::selection {
  background: color-mix(in oklab, var(--color-accent) 22%, transparent);
}

.skip {
  position: absolute;
  left: var(--space-md);
  top: calc(-1 * var(--space-3xl));
  z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
  text-decoration: none;
}

.skip:focus-visible {
  top: var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-lg);
  border: var(--rule-hair) solid var(--color-ink);
  border-radius: 0;
  font-size: var(--text-md);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

.btn--primary {
  background: var(--color-ink);
  color: var(--color-paper);
}

.btn--primary:hover {
  background: var(--color-ink-2);
}

.btn--secondary {
  background: none;
  color: var(--color-ink);
}

.btn--secondary:hover {
  background: var(--color-paper-2);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn[aria-busy="true"] {
  cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: background-color var(--dur-short) linear; }
}

/* Chrome: a banner over a retracting bar. The header is sticky with its top
   offset by the banner's height, so the banner scrolls away and the bar stays. */
.site-head {
  position: sticky;
  top: calc(-1 * var(--banner-h));
  z-index: var(--z-sticky-nav);
  background: var(--color-paper);
  border-bottom: var(--rule-heavy) solid var(--color-ink);
}

.banner {
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 12;
  font-size: var(--text-sm);
}

.banner a {
  color: var(--color-accent-ink);
  text-decoration-color: var(--color-accent-ink);
}

.banner a:focus-visible {
  outline-color: var(--color-accent-ink);
}

.bar {
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding-block: var(--space-xs);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" 75, "opsz" 96;
  letter-spacing: var(--tracking-display);
  font-size: var(--text-xl);
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}

.bar__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.bar__links a:not(.btn) {
  font-size: var(--text-sm);
  color: var(--color-ink);
  text-decoration: none;
}

.bar__links a:not(.btn):hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 0.2em;
}

.bar__links .btn {
  font-size: var(--text-sm);
}

/* Hero: Corridor. One centred column, the question at poster scale. */
.hero {
  min-height: calc(100svh - var(--banner-h) - var(--bar-h));
  display: grid;
  place-items: center;
  padding-block: var(--space-3xl);
}

.hero__inner {
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  max-width: 13ch;
  margin-inline: auto;
  font-size: clamp(4.5rem, 12vw, 12rem);
  line-height: 0.92;
}

.hero .lead {
  margin: var(--space-lg) auto 0;
  max-width: 44ch;
  color: var(--color-ink);
}

.hero__actions {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding-top: var(--section-gap);
}

.section--tight {
  padding-top: var(--section-gap-s);
}

.opens {
  border-top: var(--rule-heavy) solid var(--color-ink);
  padding-top: var(--space-lg);
}

.head-block {
  margin-bottom: var(--space-2xl);
}

.head-block .lead {
  margin-top: var(--space-md);
  color: var(--color-ink-2);
}

/* The index: the ten guides as contents rows. */
.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.index-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 9rem;
  gap: var(--gap-columns);
  align-items: baseline;
  padding: var(--space-xl) 0;
  border-top: var(--rule-hair) solid var(--color-rule);
  text-decoration: none;
  transition: background-color var(--dur-short) var(--ease-out);
}

.index-row:hover {
  background: var(--color-paper-2);
}

.index-row__dept {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 12;
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: right;
}

.index-row__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" 75, "opsz" 96;
  letter-spacing: var(--tracking-display);
  font-size: clamp(1.75rem, 2.4vw + 0.5rem, 2.5rem);
  line-height: 1.02;
  color: var(--color-ink);
  overflow-wrap: break-word;
  min-width: 0;
}

.index-row:hover .index-row__title {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 0.18em;
}

.index-row__line {
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-ink-2);
}

/* The decision: a standfirst, then the three checks as a ruled list. */
.standfirst {
  font-size: var(--text-display-s);
  line-height: 1.2;
  color: var(--color-ink);
  max-width: 26ch;
}

.checks {
  list-style: none;
  counter-reset: check;
  margin: var(--space-2xl) 0 0;
  padding: 0;
}

.checks li {
  counter-increment: check;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--gap-columns);
  align-items: start;
  padding: var(--space-xl) 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.checks h3 {
  padding-top: var(--space-xs);
}

.checks li::before {
  content: counter(check);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" 75, "opsz" 96;
  font-variant-numeric: tabular-nums;
  font-size: var(--text-display-s);
  line-height: 1;
  color: var(--color-ink);
}

.checks p {
  font-size: var(--text-lg);
  line-height: 1.45;
}

.decide__more {
  margin-top: var(--space-2xl);
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 62ch;
}

/* The method: a head block beside three ruled rows. */
.method-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
}

.method-grid .head-block {
  grid-column: 1 / 5;
  margin-bottom: 0;
}

.method-rows {
  grid-column: 5 / 13;
  list-style: none;
  margin: 0;
  padding: 0;
}

.method-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: var(--gap-columns);
  align-items: baseline;
  padding: var(--space-xl) 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.method-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.method-row h3 {
  font-size: var(--text-title);
}

.method-row p {
  font-size: var(--text-lg);
  line-height: 1.45;
}

/* Footer: a statement, the links beneath, a colophon. */
.site-foot {
  margin-top: var(--section-gap-l);
  border-top: var(--rule-heavy) solid var(--color-ink);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.foot-statement {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" 75, "opsz" 96;
  letter-spacing: var(--tracking-display);
  font-size: var(--text-display);
  line-height: 1.02;
  color: var(--color-ink);
  max-width: 19ch;
  overflow-wrap: break-word;
  min-width: 0;
}

.foot-row {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--gap-columns);
  flex-wrap: wrap;
}

.foot-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.foot-links a {
  font-size: var(--text-sm);
  color: var(--color-ink);
  text-decoration: none;
}

.foot-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 0.2em;
}

.colophon {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 42ch;
}

@media (max-width: 60rem) {
  .index-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xs);
    padding: var(--space-md) 0;
  }

  .index-row__dept {
    text-align: left;
  }

  .checks li {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xs);
    padding: var(--space-md) 0;
  }

  .checks li::before {
    font-size: var(--text-section);
  }

  .checks h3 {
    padding-top: 0;
  }

  .method-grid .head-block,
  .method-rows {
    grid-column: 1 / 13;
  }

  .method-grid .head-block {
    margin-bottom: var(--space-xl);
  }

  .method-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xs);
  }

  .method-row:first-child {
    padding-top: var(--space-md);
    border-top: var(--rule-hair) solid var(--color-rule);
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }
}


/* === WordPress / GeneratePress adaptation (added at port, 2026-11-05) === */
.site-header { background: var(--color-paper); border-bottom: var(--rule-heavy) solid var(--color-ink); position: sticky; top: 0; z-index: var(--z-sticky-nav); }
.inside-header { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); padding-block: var(--space-xs); }
.main-title a { font-family: var(--font-display); font-weight: var(--display-weight); font-variation-settings: "wdth" 75, "opsz" 96; letter-spacing: var(--tracking-display); font-size: var(--text-xl); color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.main-navigation, .main-navigation ul { background: transparent; }
.main-navigation .main-nav ul li a { font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 12; font-size: var(--text-sm); color: var(--color-ink); text-decoration: none; padding: var(--space-xs) var(--space-md); line-height: 2.4; }
.main-navigation .main-nav ul li a:hover { background: none; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
.main-navigation .main-nav ul li.hcg-btn a { background: var(--color-ink); color: var(--color-paper); min-height: 48px; display: inline-flex; align-items: center; padding: 0 var(--space-lg); margin-left: var(--space-md); }
.main-navigation .main-nav ul li.hcg-btn a:hover { background: var(--color-ink-2); text-decoration: none; }
.site-content { padding: 0; }
.inside-article { padding: 0; }
.entry-content { margin: 0; }
.home .entry-header, .site-info, .footer-widgets-container { display: none; }
.home .site.grid-container { max-width: none; }
.home .content-area { width: 100%; }
.hcg-foot-wrap { background: var(--color-paper); }
button.menu-toggle { color: var(--color-ink); }
