/* ==========================================================================
   Honest Local Web: brand.css  v1.0  (Nov 1, 2026)
   Direction: "Evergreen Reserve" (Lux B, refined). For Builder Crew.
   Fonts are self-hosted (no Google Fonts call). Paths are relative to this
   file: keep /fonts next to brand.css or update the url()s.
   All copy shown in examples is SAMPLE wording only.
   ========================================================================== */

/* ---------- 1. Fonts (SIL OFL 1.1, licences in /fonts) ------------------- */
/* BUILD NOTE (Nov 1, 2026, Honest Local Web site build v1.1):
   This is the site's copy of Brand Studio's brand.css v1.2. The ONLY change:
   the three @font-face src lines point at subset copies (*-subset.woff2) made
   with pyftsubset, approved by Brand Studio for page speed. They keep Basic
   Latin, Latin-1, curly quotes, dashes, ellipsis, middle dot, $ and cent, all
   variable axes (wght, and opsz on Newsreader) and kern/liga (+ rvrn, ccmp,
   locl for shaping). font-display: swap was already set. Brand Studio's
   original files in brand/hlw/final/ are untouched.
   v1.2 (Nov 1, 2026): the variable italic is replaced by Brand Studio's two
   static italics: newsreader-italic-light-static.woff2 (weight 300, display
   optical size, headings 32px and up) and newsreader-italic-regular-static.woff2
   (weight 400, text optical size, under 32px). Each is about 25 KB instead of
   132 KB. The static files have no opsz axis, so font-optical-sizing does not
   change them. */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-var-subset.woff2") format("woff2");
  font-weight: 200 800;            /* variable wght axis */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic-light-static.woff2") format("woff2");
  font-weight: 300;                /* static, display optical size: italic in headings 32px and up */
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic-regular-static.woff2") format("woff2");
  font-weight: 400;                /* static, text optical size: italic under 32px */
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("fonts/albert-sans-latin-var-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ---------------------------------------------------- */
:root {
  /* Core palette */
  --hlw-spruce:     #1F2B27;  /* primary dark, text on light            */
  --hlw-parchment:  #F3EFE6;  /* primary light, page background         */
  --hlw-champagne:  #CDBA94;  /* accent ON SPRUCE ONLY (7.71:1)          */
  --hlw-sage:       #9DB0A5;  /* soft text/lines ON SPRUCE ONLY (6.41:1) */
  --hlw-moss:       #5B6B63;  /* secondary text on Parchment/white only */
  --hlw-brass:      #755F3B;  /* accent + links on LIGHT (5.29:1)        */

  /* Support shades (derived) */
  --hlw-spruce-raised: #2C3B36; /* cards/hover on dark                  */
  --hlw-linen:      #EAE4D8;  /* alt light section (Spruce/Brass text ok, Moss text NOT ok) */
  --hlw-white:      #FFFFFF;
  --hlw-brass-deep: #5A4828;  /* link hover on light (7.65:1)           */
  --hlw-champagne-light: #DCCDAE; /* button hover on dark                */
  --hlw-line-light: rgba(31, 43, 39, 0.14);
  --hlw-line-dark:  rgba(243, 239, 230, 0.16);

  /* Semantic */
  --hlw-bg: var(--hlw-parchment);
  --hlw-text: var(--hlw-spruce);
  --hlw-text-muted: var(--hlw-moss);
  --hlw-accent: var(--hlw-brass);
  --hlw-line: var(--hlw-line-light);
  --hlw-focus: var(--hlw-spruce);

  /* Type families */
  --hlw-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --hlw-sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Type scale (fluid, 360px -> 1440px). Newsreader 300 ONLY where min size >= 32px. */
  --hlw-fs-display: clamp(2.5rem, 1.75rem + 3.33vw, 4.5rem);  /* 40 -> 72, serif 300 */
  --hlw-fs-h1:      clamp(2.25rem, 1.83rem + 1.85vw, 3.5rem); /* 36 -> 56, serif 300 */
  --hlw-fs-h2:      clamp(2rem, 1.83rem + 0.74vw, 2.5rem);    /* 32 -> 40, serif 300 */
  --hlw-fs-h3:      1.5rem;    /* 24, serif 400 */
  --hlw-fs-h4:      1.25rem;   /* 20, serif 400 */
  --hlw-fs-lead:    1.25rem;   /* 20, sans 400  */
  --hlw-fs-body:    1.0625rem; /* 17, sans 400  */
  --hlw-fs-small:   0.9375rem; /* 15, sans 400  */
  --hlw-fs-label:   0.875rem;  /* 14, sans 600, tracked caps: the floor, never smaller */
  --hlw-lh-tight: 1.12;
  --hlw-lh-snug: 1.3;
  --hlw-lh-body: 1.65;
  --hlw-measure: 66ch;

  /* Spacing (8pt base, 4 for fine work) */
  --hlw-space-1: 4px;
  --hlw-space-2: 8px;
  --hlw-space-3: 12px;
  --hlw-space-4: 16px;
  --hlw-space-5: 24px;
  --hlw-space-6: 32px;
  --hlw-space-7: 48px;
  --hlw-space-8: 64px;
  --hlw-space-9: 96px;
  --hlw-space-10: 128px;
  --hlw-section-y: clamp(64px, 40px + 6vw, 128px);
  --hlw-gutter: clamp(20px, 12px + 2.5vw, 48px);
  --hlw-max: 1200px;

  /* Shape + depth: quiet. Hairlines first, shadow second. */
  --hlw-radius-sm: 2px;   /* buttons, inputs */
  --hlw-radius-md: 4px;   /* cards, images   */
  --hlw-radius-lg: 8px;   /* large media only */
  --hlw-shadow-1: 0 1px 2px rgba(31, 43, 39, 0.06);
  --hlw-shadow-2: 0 10px 30px -12px rgba(31, 43, 39, 0.18);
  --hlw-ease: cubic-bezier(.2, .6, .2, 1);
  --hlw-dur: 180ms;
}

/* ---------- 3. Base ------------------------------------------------------ */
.hlw, .hlw-page {
  background: var(--hlw-bg);
  color: var(--hlw-text);
  font-family: var(--hlw-sans);
  font-size: var(--hlw-fs-body);
  line-height: var(--hlw-lh-body);
  font-optical-sizing: auto;          /* uses Newsreader's opsz axis */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.hlw-container { max-width: var(--hlw-max); margin-inline: auto; padding-inline: var(--hlw-gutter); }
.hlw-section { padding-block: var(--hlw-section-y); }

/* Dark section: swap semantic tokens */
.hlw-dark {
  --hlw-bg: var(--hlw-spruce);
  --hlw-text: var(--hlw-parchment);
  --hlw-text-muted: var(--hlw-sage);
  --hlw-accent: var(--hlw-champagne);
  --hlw-line: var(--hlw-line-dark);
  --hlw-focus: var(--hlw-champagne);
  background: var(--hlw-bg); color: var(--hlw-text);
}
.hlw-linen { background: var(--hlw-linen); --hlw-text-muted: var(--hlw-spruce); } /* Moss fails on Linen */

/* ---------- 4. Type ------------------------------------------------------ */
.hlw-display, .hlw-h1, .hlw-h2, .hlw-h3, .hlw-h4 {
  font-family: var(--hlw-serif); margin: 0; letter-spacing: -0.01em; color: var(--hlw-text);
}
.hlw-display { font-size: var(--hlw-fs-display); font-weight: 300; line-height: 1.04; letter-spacing: -0.02em; }
.hlw-h1      { font-size: var(--hlw-fs-h1); font-weight: 300; line-height: var(--hlw-lh-tight); }
.hlw-h2      { font-size: var(--hlw-fs-h2); font-weight: 300; line-height: 1.15; }
.hlw-h3      { font-size: var(--hlw-fs-h3); font-weight: 400; line-height: var(--hlw-lh-snug); }
.hlw-h4      { font-size: var(--hlw-fs-h4); font-weight: 400; line-height: var(--hlw-lh-snug); }
.hlw-italic  { font-style: italic; font-weight: 400; }
.hlw-lead    { font-size: var(--hlw-fs-lead); line-height: 1.55; color: var(--hlw-text-muted); max-width: 56ch; }
.hlw-body    { max-width: var(--hlw-measure); }
.hlw-small   { font-size: var(--hlw-fs-small); color: var(--hlw-text-muted); }
.hlw-eyebrow {
  font-family: var(--hlw-sans); font-size: var(--hlw-fs-label); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--hlw-accent);
}
.hlw-rule { border: 0; height: 1px; background: var(--hlw-line); margin: var(--hlw-space-7) 0; }

/* ---------- 5. Links ----------------------------------------------------- */
.hlw-link, .hlw a:not([class]) {
  color: var(--hlw-brass); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.2em; transition: color var(--hlw-dur) var(--hlw-ease);
}
.hlw-link:hover, .hlw a:not([class]):hover { color: var(--hlw-brass-deep); text-decoration-thickness: 2px; }
.hlw-dark .hlw-link, .hlw-dark a:not([class]) { color: var(--hlw-champagne); }
.hlw-dark .hlw-link:hover, .hlw-dark a:not([class]):hover { color: var(--hlw-parchment); }

/* ---------- 6. Buttons (>=48px tall, >=14px label, visible focus) -------- */
.hlw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-sizing: border-box; min-height: 48px; padding: 0 28px;
  font-family: var(--hlw-sans); font-size: 0.9375rem; font-weight: 600;  /* 15px */
  letter-spacing: 0.04em; line-height: 1; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--hlw-radius-sm); cursor: pointer;
  transition: background-color var(--hlw-dur) var(--hlw-ease), color var(--hlw-dur) var(--hlw-ease), border-color var(--hlw-dur) var(--hlw-ease);
}
.hlw-btn:focus-visible, .hlw-link:focus-visible, .hlw a:focus-visible {
  outline: 2px solid var(--hlw-focus); outline-offset: 3px;
}
/* Primary on light: Spruce + Parchment text (12.77:1) */
.hlw-btn--primary { background: var(--hlw-spruce); color: var(--hlw-parchment); }
.hlw-btn--primary:hover { background: var(--hlw-spruce-raised); }
/* Primary on dark: Champagne + Spruce text (7.71:1) */
.hlw-dark .hlw-btn--primary { background: var(--hlw-champagne); color: var(--hlw-spruce); }
.hlw-dark .hlw-btn--primary:hover { background: var(--hlw-champagne-light); }
/* Secondary: hairline outline */
.hlw-btn--secondary { background: transparent; color: var(--hlw-spruce); border-color: var(--hlw-spruce); }
.hlw-btn--secondary:hover { background: rgba(31, 43, 39, 0.06); }
.hlw-dark .hlw-btn--secondary { color: var(--hlw-parchment); border-color: rgba(243, 239, 230, 0.6); }
.hlw-dark .hlw-btn--secondary:hover { background: rgba(243, 239, 230, 0.08); border-color: var(--hlw-parchment); }
/* Text-link button ("Read more ->"), still 48px hit area */
.hlw-btn--link { min-height: 48px; padding: 0 4px; background: none; color: var(--hlw-brass);
  text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.hlw-btn--link:hover { color: var(--hlw-brass-deep); text-decoration-thickness: 2px; }
.hlw-dark .hlw-btn--link { color: var(--hlw-champagne); }
.hlw-dark .hlw-btn--link:hover { color: var(--hlw-parchment); }
@media (prefers-reduced-motion: reduce) { .hlw-btn, .hlw-link, .hlw-card { transition: none; } }

/* ---------- 7. Cards ----------------------------------------------------- */
.hlw-card {
  background: var(--hlw-white); color: var(--hlw-spruce);
  border: 1px solid var(--hlw-line-light); border-radius: var(--hlw-radius-md);
  padding: var(--hlw-space-6); box-shadow: var(--hlw-shadow-1);
  transition: box-shadow var(--hlw-dur) var(--hlw-ease), transform var(--hlw-dur) var(--hlw-ease);
}
.hlw-card:hover { box-shadow: var(--hlw-shadow-2); }
.hlw-card .hlw-small { color: var(--hlw-moss); }
.hlw-dark .hlw-card { background: var(--hlw-spruce-raised); color: var(--hlw-parchment);
  border-color: var(--hlw-line-dark); box-shadow: none; }
.hlw-dark .hlw-card .hlw-small { color: var(--hlw-sage); }
.hlw-card__num { font-family: var(--hlw-serif); font-weight: 400; font-size: 1.25rem; color: var(--hlw-accent); }

/* ---------- 8. Ring ornament: ONCE per page, 1px hairline, ~20% opacity,
   decorative only, never behind body text (place it in an empty area). ---- */
.hlw-rings {
  position: absolute; pointer-events: none; aspect-ratio: 1; opacity: 0.2; color: var(--hlw-text);
}
.hlw-rings svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hlw-rings circle { fill: none; stroke: currentColor; stroke-width: 1px; vector-effect: non-scaling-stroke; }

/* ---------- 9. Header ---------------------------------------------------- */
.hlw-header { display: flex; align-items: center; justify-content: space-between; gap: var(--hlw-space-5);
  min-height: 72px; border-bottom: 1px solid var(--hlw-line); }
.hlw-header__logo { display: block; height: 32px; width: auto; }
.hlw-nav { display: flex; gap: var(--hlw-space-6); font-size: var(--hlw-fs-small); font-weight: 500; }
.hlw .hlw-nav a, .hlw-nav a { color: var(--hlw-text); text-decoration: none; padding-block: 12px; }
.hlw .hlw-nav a:hover, .hlw-nav a:hover { color: var(--hlw-accent); }
@media (max-width: 767px) { .hlw-nav { display: none; } }

/* ---------- 10. Layout helpers ------------------------------------------- */
.hlw-btn-group { display: flex; flex-wrap: wrap; gap: var(--hlw-space-4); }
.hlw-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--hlw-space-5); flex-wrap: wrap; }
.hlw-menu-btn {                       /* phone menu button: 48x48 hit area */
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 0;
  background: none; border: 1px solid var(--hlw-line-light); border-radius: var(--hlw-radius-sm);
  color: var(--hlw-text); cursor: pointer;
}
.hlw-menu-btn:focus-visible { outline: 2px solid var(--hlw-focus); outline-offset: 3px; }
.hlw-menu-btn__bars, .hlw-menu-btn__bars::before, .hlw-menu-btn__bars::after {
  display: block; width: 20px; height: 1.5px; background: currentColor; content: ""; position: relative;
}
.hlw-menu-btn__bars::before { position: absolute; top: -6px; }
.hlw-menu-btn__bars::after  { position: absolute; top: 6px; }

/* ---------- 11. Phone (<= 767px) ----------------------------------------- */
@media (max-width: 767px) {
  .hlw-menu-btn { display: inline-flex; }
  .hlw-header { gap: var(--hlw-space-3); }
  .hlw-header__logo { height: 26px; max-width: calc(100vw - 2 * var(--hlw-gutter) - 60px); }
  .hlw-header > .hlw-btn { display: none; }                     /* header CTA moves into the menu */
  /* Hero/CTA buttons: full width, stacked, 12px apart */
  .hlw-btn-group { flex-direction: column; align-items: stretch; gap: var(--hlw-space-3); }
  .hlw-btn-group > .hlw-btn { width: 100%; }
  /* Section head: heading, then link, both on the same left edge */
  .hlw-section-head { flex-direction: column; align-items: flex-start; gap: var(--hlw-space-2); }
  .hlw-section-head > .hlw-btn--link { padding-inline: 0; margin-left: 0; }
  /* Card body text >= 16px on phones (Sage on Spruce 5.14:1 on raised cards) */
  .hlw-card .hlw-small, .hlw-card p { font-size: 1rem; line-height: 1.6; }
  .hlw-rings { display: none; }                                  /* ornament never on phones */
}
