/*
Theme Name:   Mastery Life Coaching
Theme URI:    https://masterylifecoaching.com
Description:  Child theme of Kadence for Mastery Life Coaching. Warm editorial
              art direction: paper neutrals, a single oxblood accent, Source
              Serif 4 and Work Sans. Ported from The Innkeeper's Academy.
Author:       Krater Consulting
Template:     kadence
Version:      1.4.1
License:      GNU General Public License v2 or later
Text Domain:  mastery-child
*/

/* =====================================================================
   HOW THIS FILE IS ORGANIZED

   PART 1  Design tokens
   PART 2  Kadence bridge  — overrides the nine global palette slots and the
           font variables, so every native Kadence block inherits the palette
           without touching a single block setting.
   PART 3  Base and typography
   PART 4  Kadence header, navigation, and footer skin
   PART 5  Component library — the classes used by the page patterns
   PART 6  Responsive

   Only PART 5 needs the custom class names. Everything else restyles what
   Kadence already outputs.
   ===================================================================== */


/* =====================================================================
   PART 1 — DESIGN TOKENS
   ===================================================================== */

:root {
  /* Paper / parchment neutrals */
  --paper:        #f6f1e7;
  --paper-2:      #efe8d9;
  --paper-3:      #e7ddc9;
  --paper-edge:   #ddd0b6;
  --ink:          #21201c;
  --ink-2:        #45423a;
  --ink-3:        #6d685c;
  --ink-4:        #8f897a;

  /* Single restrained accent — deep oxblood */
  --oxblood:      #7a2028;
  --oxblood-deep: #5c161d;
  --oxblood-soft: #9a3a41;
  --oxblood-tint: #f0e2df;
  --oxblood-pale: #c07a80;   /* accent legible on the dark ink band (4.9:1) */

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Work Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: 0.82rem;
  --step-0:  1.02rem;
  --step-1:  1.24rem;
  --step-2:  1.55rem;
  --step-3:  1.98rem;
  --step-4:  2.6rem;
  --step-5:  3.4rem;

  --sp-1: 0.35rem;
  --sp-2: 0.7rem;
  --sp-3: 1.1rem;
  --sp-4: 1.7rem;
  --sp-5: 2.6rem;
  --sp-6: 4rem;

  --maxw: 1180px;
  --radius: 3px;
  --shadow-card: 0 1px 0 var(--paper-edge), 0 2px 14px rgba(40,32,20,0.05);
  --focus: 0 0 0 3px rgba(122,32,40,0.35);
}


/* =====================================================================
   PART 2 — KADENCE BRIDGE

   Kadence exposes its nine Customizer color slots as CSS custom properties.
   Redefining them here restyles every core and Kadence block at once.

   Set the same values in Appearance > Customize > Colors so the editor
   swatches match what visitors see. This block is the safety net and the
   single source of truth.
   ===================================================================== */

:root {
  /* Nine Customizer slots */
  --global-palette1: #7a2028;   /* was #e47b02  accent, links, primary button */
  --global-palette2: #5c161d;   /* was #ed8f0c  accent hover */
  --global-palette3: #21201c;   /* was #1f2933  headings, dark sections */
  --global-palette4: #45423a;   /* was #3e4c59  body text */
  --global-palette5: #6d685c;   /* was #52606d  muted text */
  --global-palette6: #8f897a;   /* was #7b8794  faint text, borders */
  --global-palette7: #e7ddc9;   /* was #dec090  deep band, rules */
  --global-palette8: #efe8d9;   /* was #f9f9fb  alternating band */
  --global-palette9: #f6f1e7;   /* was #ffffff  page background */

  /* Semantic slots Kadence derives from the palette */
  --global-palette-highlight:      var(--global-palette1);
  --global-palette-highlight-alt:  var(--global-palette2);
  --global-palette-highlight-alt2: var(--global-palette9);

  --global-palette-btn:            var(--global-palette9);
  --global-palette-btn-bg:         var(--global-palette1);
  --global-palette-btn-hover:      var(--global-palette9);
  --global-palette-btn-bg-hover:   var(--global-palette2);

  --global-palette-btn-sec:        var(--global-palette1);
  --global-palette-btn-sec-bg:     transparent;
  --global-palette-btn-sec-hover:  var(--global-palette9);
  --global-palette-btn-sec-bg-hover: var(--global-palette1);

  /* Typography */
  --global-heading-font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --global-body-font-family:    "Source Serif 4", "Iowan Old Style", Georgia, serif;

  /* Measure. The mockup runs a 1180px shell and a 34em prose measure. */
  --global-content-width:        1180px;
  --global-content-narrow-width: 680px;
}

/* Kadence buttons, restyled to the mockup's .btn */
.wp-block-button__link,
.kb-button,
.button,
button:not(.menu-toggle-open):not(.menu-toggle-close),
input[type="submit"] {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  padding: 0.62rem 1.15rem;
  transition: background-color .15s ease, color .15s ease;
}

/* Kadence Info Box, nudged toward the mockup's .card */
.kt-blocks-info-box-link-wrap {
  border-radius: var(--radius);
  border-color: var(--paper-edge) !important;
}

/* Kadence Accordion, matched to the mockup's .faq */
.kt-accordion-header-wrap .kt-blocks-accordion-header {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Kadence Table of Contents and tables */
table { border-collapse: collapse; }



/* =====================================================================
   PART 3 — BASE AND TYPOGRAPHY
   ===================================================================== */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.62;
  font-feature-settings: "onum" 1, "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.006em;
}

a { color: var(--oxblood); text-decoration: none; }
a:hover { color: var(--oxblood-deep); text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }

/* Faint paper grain, matching the mockup */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(120,90,40,0.03), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(90,60,30,0.025), transparent 40%);
}
#wrapper, .site { position: relative; z-index: 1; }


/* =====================================================================
   PART 4 — KADENCE HEADER, NAVIGATION, AND FOOTER SKIN
   ===================================================================== */

/* Announcement bar, standing in for the mockup's .ribbon */
.site-top-header-wrap .site-header-row-container-inner {
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Main header band */
.site-main-header-wrap .site-header-row-container-inner {
  background: var(--paper-2);
  border-bottom: 1px solid var(--paper-edge);
}

.site-branding .site-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--step-3);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-branding .site-description {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* Primary navigation */
.main-navigation .primary-menu-container > ul > li > a {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.main-navigation .primary-menu-container > ul > li > a:hover { color: var(--oxblood); }
.main-navigation .primary-menu-container > ul > li.current-menu-item > a {
  color: var(--oxblood);
  box-shadow: inset 0 -2px 0 var(--oxblood);
}

/* Secondary header band, standing in for the mockup's nav rail */
.site-secondary-header-wrap .site-header-row-container-inner {
  background: var(--paper);
  border-bottom: 1px solid var(--paper-edge);
}

/* Footer */
.site-footer-wrap .site-footer-row-container-inner {
  background: var(--ink);
  color: var(--paper-3);
}
.site-footer-wrap a { color: var(--paper-2); }
.site-footer-wrap a:hover { color: var(--oxblood-pale); }
.site-footer-wrap .widget-title,
.site-footer-wrap h2, .site-footer-wrap h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.site-bottom-footer-wrap .site-footer-row-container-inner {
  background: var(--ink);
  border-top: 1px solid #35322c;
  color: var(--ink-4);
  font-family: var(--sans);
  font-size: 0.76rem;
}


/* =====================================================================
   PART 5 — COMPONENT LIBRARY

   These are the classes used by the page patterns. In Kadence, add them in
   the block sidebar under Advanced > Additional CSS Class(es), or paste the
   markup from the pattern library into a Custom HTML block.
   ===================================================================== */


/* --- reset, media, and the layout container --- */

*, *::before, *::after { box-sizing: border-box; }


/* faint paper texture — tonal grain, no decoration */

img { max-width: 100%; height: auto; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }


.wrap:not(main) { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-4); }

/* --- buttons --- */

.btn {
  font-family: var(--sans); font-size: var(--step--1);
  letter-spacing: 0.03em;
  border: 1px solid var(--paper-edge);
  background: var(--paper); color: var(--ink-2);
  border-radius: var(--radius);
  padding: 0.5rem 0.95rem;
  display: inline-block; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--paper-3); color: var(--ink); text-decoration: none; }
.btn-primary {
  background: var(--oxblood); border-color: var(--oxblood); color: var(--paper);
}
.btn-primary:hover { background: var(--oxblood-deep); border-color: var(--oxblood-deep); color: var(--paper); }
.btn-lg { font-size: var(--step-0); padding: 0.7rem 1.4rem; }


/* =====================================================================
   MASTHEAD AND PRIMARY NAV
   Rendered by mastery_child_masthead(). Kadence's own header is
   suppressed below so the two do not both appear.
   ===================================================================== */
.site-header, #masthead.site-header { display: none !important; }
.masthead .brand-name a { color: var(--ink); text-decoration: none; }
.masthead .brand-name a:hover { color: var(--oxblood); text-decoration: none; }
.sitenav li { list-style: none; }
.sitenav .current-menu-item > a, .sitenav .current_page_item > a {
  color: var(--oxblood); border-bottom-color: var(--oxblood); font-weight: 500;
}



/* =====================================================================
   KADENCE GLOBAL PALETTE REMAP
   Kadence ships nine palette slots and references them throughout as
   var(--global-palette1..9). Remapping the variables retints the whole theme,
   including block editor swatches, with no Customizer changes required.
   ===================================================================== */
:root,
body,
.editor-styles-wrapper {
  --global-palette1: #7a2028; /* oxblood      */
  --global-palette2: #5c161d; /* oxblood deep */
  --global-palette3: #21201c; /* ink          */
  --global-palette4: #45423a; /* ink 2        */
  --global-palette5: #6d685c; /* ink 3        */
  --global-palette6: #8f897a; /* ink 4        */
  --global-palette7: #e7ddc9; /* paper 3      */
  --global-palette8: #efe8d9; /* paper 2      */
  --global-palette9: #f6f1e7; /* paper        */
  --global-palette9rgb: 246, 241, 231;
  --global-content-width: 1180px;
  --global-content-narrow-width: 680px;
}

.masthead {
  position: relative; z-index: 5;
  background: var(--paper-2);
  border-bottom: 1px solid var(--paper-edge);
}
.masthead-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
}
.repo-line {
  font-family: var(--sans);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 var(--sp-2);
}
.repo-line .tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: 0.1rem 0.45rem;
  color: var(--ink-3);
  background: var(--paper);
  white-space: nowrap;
}
.brand-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-4); width: 100%;
}
.brand { display: flex; align-items: flex-start; gap: var(--sp-3); }
.brand-mark { flex: none; color: var(--oxblood); margin-top: 2px; }
.brand-text .brand-name {
  font-family: var(--serif); font-weight: 700;
  font-size: var(--step-3); line-height: 1.05;
  margin: 0; letter-spacing: -0.015em; color: var(--ink);
}
.brand-text .sub {
  font-family: var(--sans); font-size: var(--step--1);
  color: var(--ink-3); margin: var(--sp-1) 0 0;
  letter-spacing: 0.02em;
}
.brand-actions { display: flex; gap: var(--sp-2); flex: none; padding-top: var(--sp-1); }


.motto {
  margin: var(--sp-3) 0 0;
  font-family: var(--serif); font-size: var(--step-0);
  color: var(--ink-2);
}
.motto em { color: var(--oxblood); font-weight: 600; }
.motto .gloss { color: var(--ink-3); font-family: var(--sans); font-size: var(--step--1); }

/* ---------------------------------------------------------------
   NAV
   --------------------------------------------------------------- */
.sitenav {
  position: relative; z-index: 4;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-edge);
}
.sitenav ul {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-4);
  list-style: none; display: flex; flex-wrap: wrap; gap: 0;
}
.sitenav a {
  display: block;
  font-family: var(--sans); font-size: var(--step-0);
  color: var(--ink-2);
  padding: var(--sp-3) var(--sp-3);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.sitenav a:hover { color: var(--oxblood); text-decoration: none; background: var(--paper-2); }
.sitenav a.current { color: var(--oxblood); border-bottom-color: var(--oxblood); font-weight: 500; }



/* =====================================================================
   SITE FOOTER
   Rendered by mastery_child_footer(). Kadence's footer is suppressed.
   ===================================================================== */
.site-footer, #colophon.site-footer { display: none !important; }

.sitefoot {
  background: var(--paper-2);
  border-top: 1px solid var(--paper-edge);
  padding: var(--sp-6) 0 var(--sp-4);
}
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.foot-grid h4 {
  font-family: var(--sans); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3); margin: 0 0 var(--sp-3); font-weight: 500;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: var(--sp-2); }
.foot-grid a { color: var(--ink-2); font-size: var(--step--1); font-family: var(--sans); }
.foot-grid a:hover { color: var(--oxblood); }
.colophon {
  margin-top: var(--sp-5); padding-top: var(--sp-3);
  border-top: 1px solid var(--paper-edge);
  font-family: var(--sans); font-size: var(--step--1); color: var(--ink-3);
  display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
}
/* ---------------------------------------------------------------
   SHARED TYPE
   --------------------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--oxblood);
  margin: 0 0 var(--sp-2);
}
h1.page-title {
  font-family: var(--serif); font-weight: 600;
  font-size: var(--step-4); line-height: 1.08;
  margin: 0 0 var(--sp-3); letter-spacing: -0.01em;
  max-width: 20ch;
}
h2.sec-title {
  font-family: var(--serif); font-weight: 600;
  font-size: var(--step-3); line-height: 1.14;
  margin: 0 0 var(--sp-3); letter-spacing: -0.005em;
  max-width: 26ch;
}
h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: var(--step-1); line-height: 1.2;
  margin: 0 0 var(--sp-2);
}
.lead {
  font-size: var(--step-1); line-height: 1.55;
  color: var(--ink-2); max-width: 62ch; margin: 0 0 var(--sp-3);
}
/* positioning line under the H1 */
.deck {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: var(--step-2); line-height: 1.32; color: var(--oxblood);
  max-width: 34ch; margin: 0 0 var(--sp-3);
}
/* unfinished-content flag — mockup only, not for production */
.headnote-todo { border-left-color: var(--ink-4); background: var(--paper-3); }
.headnote-todo .eyebrow { color: var(--ink-3); }
p { max-width: 68ch; margin: 0 0 var(--sp-3); }
p:last-child { margin-bottom: 0; }

section { position: relative; z-index: 1; }
.band { padding: var(--sp-6) 0; border-bottom: 1px solid var(--paper-3); }
.band-alt { background: var(--paper-2); }
.band-deep { background: var(--paper-3); }

/* ---------------------------------------------------------------
   HERO
   --------------------------------------------------------------- */
.hero { padding: var(--sp-6) 0; border-bottom: 1px solid var(--paper-3); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-6); align-items: start;
}
.hero .lead { font-size: var(--step-1); }
.hero-actions { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); flex-wrap: wrap; }
.hero-actions .textlink { font-family: var(--sans); font-size: var(--step-0); }

/* threshold panel — the quiet "visual" the copy asks for, made of type + rule */
.threshold {
  border: 1px solid var(--paper-edge);
  border-top: 3px solid var(--oxblood);
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
}
.threshold .eyebrow { color: var(--oxblood-deep); }
.threshold h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.quadrants {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--paper-edge); border: 1px solid var(--paper-edge);
  border-radius: var(--radius); overflow: hidden;
}
.quadrants li { background: var(--paper); padding: var(--sp-3); }
.quadrants .q-name {
  font-family: var(--sans); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--oxblood); display: block; margin-bottom: var(--sp-1);
}
.quadrants .q-list {
  font-family: var(--serif); font-size: var(--step--1);
  color: var(--ink-3); line-height: 1.5;
}

/* ---------------------------------------------------------------
   CARDS
   --------------------------------------------------------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }

.card {
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
}
.card p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.55; margin: 0; }
.band-alt .card { background: var(--paper); }

/* numbered movements — catalog-card treatment */
.movement { position: relative; padding-top: var(--sp-3); border-top: 1px solid var(--paper-edge); }
.movement .num {
  font-family: var(--sans); font-size: var(--step--1);
  letter-spacing: 0.16em; color: var(--oxblood);
  display: block; margin-bottom: var(--sp-2);
}
.movement h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.movement p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.55; margin: 0; }

/* offer cards */
.offer {
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-top: 3px solid var(--oxblood);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.offer .kind {
  font-family: var(--sans); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3); margin: 0 0 var(--sp-2);
}
.offer h3 { font-size: var(--step-2); margin-bottom: var(--sp-3); }
.offer p { font-size: var(--step-0); color: var(--ink-2); }
.offer .meta {
  font-family: var(--sans); font-size: var(--step--1); color: var(--ink-3);
  border-top: 1px solid var(--paper-3); padding-top: var(--sp-3); margin-top: var(--sp-3);
}
.offer .meta strong { color: var(--ink-2); font-weight: 600; }
.offer .offer-cta { margin-top: auto; padding-top: var(--sp-4); }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative; padding-left: 1.5rem; margin-bottom: var(--sp-2);
  color: var(--ink-2);
}
.checklist li::before {
  content: "—"; position: absolute; left: 0; top: 0;
  color: var(--oxblood); font-weight: 600;
}
.plainlist { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
.plainlist li {
  padding: var(--sp-2) 0; border-bottom: 1px solid var(--paper-3);
  color: var(--ink-2);
}
.plainlist li:first-child { border-top: 1px solid var(--paper-3); }

/* pull quote — Academy's 3px oxblood left border */
.pull {
  font-family: var(--serif); font-style: italic; font-size: var(--step-2);
  line-height: 1.4; color: var(--ink);
  border-left: 3px solid var(--oxblood);
  padding-left: var(--sp-4); margin: 0;
  max-width: 40ch;
}

/* boundaries callout — pale oxblood wash, as the Academy uses for headnotes */
.headnote {
  background: var(--oxblood-tint);
  border: 1px solid var(--paper-edge);
  border-left: 3px solid var(--oxblood);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
}
.headnote .eyebrow { color: var(--oxblood-deep); }
.headnote h2 { font-family: var(--serif); font-weight: 600; font-size: var(--step-2); margin: 0 0 var(--sp-3); }
.headnote p { color: var(--ink-2); }

/* dark thesis band — the Academy's witness-thesis treatment */
.thesis { background: var(--ink); padding: var(--sp-6) 0; }
.thesis .eyebrow { color: var(--oxblood-pale); }
.thesis h2 {
  color: var(--paper); font-family: var(--serif); font-weight: 600;
  font-size: var(--step-3); margin: 0 0 var(--sp-3); line-height: 1.12; max-width: 22ch;
}
.thesis p { color: #e6ddc9; max-width: 62ch; }
.thesis .thesis-actions { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); flex-wrap: wrap; }
.thesis .btn { background: transparent; border-color: #57534a; color: #e6ddc9; }
.thesis .btn:hover { background: #2c2a25; color: var(--paper); }
.thesis .btn-primary { background: var(--oxblood); border-color: var(--oxblood); color: var(--paper); }
.thesis .btn-primary:hover { background: var(--oxblood-soft); border-color: var(--oxblood-soft); }
.thesis a.textlink { color: #e6ddc9; font-family: var(--sans); font-size: var(--step-0); }

/* founder / media-and-text */
.founder-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-6); align-items: start; }
.portrait-frame {
  border: 1px solid var(--paper-edge); background: var(--paper-2);
  border-radius: var(--radius); padding: var(--sp-3);
  box-shadow: var(--shadow-card);
}
.portrait-frame .plate {
  aspect-ratio: 4 / 5; background: var(--paper-3);
  border: 1px solid var(--paper-edge); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-family: var(--sans); font-size: var(--step--1);
  letter-spacing: 0.1em; text-transform: uppercase; text-align: center; padding: var(--sp-3);
}
.portrait-frame figcaption {
  font-family: var(--sans); font-size: var(--step--1); color: var(--ink-3);
  margin-top: var(--sp-2); text-align: center;
}

/* section intro shared */
.sec-intro { max-width: 66ch; margin-bottom: var(--sp-5); }

/* --- brand link (masthead title is now a link) --- */

/* --- inner-page hero: single column, no threshold card --- */
.hero-simple { padding: var(--sp-6) 0 var(--sp-5); border-bottom: 1px solid var(--paper-3); }
.hero-simple .wrap > * { max-width: 34em; }
.hero-simple .lead { font-size: var(--step-1); }

/* --- breadcrumbs --- */
.crumbs {
  font-family: var(--sans); font-size: var(--step--1); color: var(--ink-3);
  letter-spacing: 0.04em; margin-bottom: var(--sp-3);
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--oxblood); }
.crumbs span { color: var(--ink-3); padding: 0 0.45em; }

/* --- numbered process steps --- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; position: relative;
  padding-top: var(--sp-4); border-top: 2px solid var(--oxblood); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: var(--sp-3); left: 0;
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.14em; color: var(--oxblood);
}
.steps li h3 { font-size: var(--step-1); margin: var(--sp-3) 0 var(--sp-2); }
.steps li p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.55; margin: 0; }

/* --- FAQ accordion (native details/summary) --- */
.faq { border-top: 1px solid var(--paper-edge); max-width: 74ch; }
.faq details { border-bottom: 1px solid var(--paper-edge); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--sp-3) 2.2rem var(--sp-3) 0;
  position: relative; font-family: var(--serif); font-weight: 600;
  font-size: var(--step-1); color: var(--ink); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.35rem; top: 50%;
  width: 0.62rem; height: 0.62rem; margin-top: -0.42rem;
  border-right: 2px solid var(--oxblood); border-bottom: 2px solid var(--oxblood);
  transform: rotate(45deg); transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -0.16rem; }
.faq summary:hover { color: var(--oxblood); }
.faq summary:focus-visible { outline: none; box-shadow: var(--focus); }
.faq .answer { padding: 0 2.2rem var(--sp-4) 0; }
.faq .answer p { color: var(--ink-2); margin-bottom: var(--sp-2); max-width: 68ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* --- is / is not comparison --- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.compare > div { background: var(--paper); border: 1px solid var(--paper-edge);
  border-top: 3px solid var(--oxblood); padding: var(--sp-4); border-radius: var(--radius); }
.compare > div.is-not { border-top-color: var(--ink-4); }
.band-alt .compare > div { background: var(--paper); }
.compare h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { font-family: var(--sans); font-size: var(--step--1); color: var(--ink-2);
  padding: 0.42rem 0; border-bottom: 1px dotted var(--paper-edge); }
.compare li:last-child { border-bottom: 0; }

/* --- spec / detail table --- */
.spec { width: 100%; border-collapse: collapse; margin: var(--sp-4) 0; font-size: var(--step--1); }
.spec th, .spec td { text-align: left; vertical-align: top;
  padding: 0.62rem var(--sp-3) 0.62rem 0; border-bottom: 1px solid var(--paper-edge); }
.spec th { font-family: var(--sans); font-weight: 600; color: var(--ink-3);
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.74rem;
  white-space: nowrap; width: 10.5rem; padding-top: 0.78rem; }
.spec td { font-family: var(--sans); color: var(--ink-2); line-height: 1.55; }
.spec caption { caption-side: top; text-align: left; font-family: var(--sans);
  font-size: var(--step--1); color: var(--ink-3); padding-bottom: var(--sp-2); }

/* --- callout --- */
.callout { background: var(--oxblood-tint); border-left: 3px solid var(--oxblood);
  padding: var(--sp-4); border-radius: 0 var(--radius) var(--radius) 0; max-width: 74ch; }
.callout p { color: var(--ink-2); margin-bottom: var(--sp-2); }
.callout p:last-child { margin-bottom: 0; }
.callout .eyebrow { color: var(--oxblood-deep); }

/* --- small note --- */
.note { font-family: var(--sans); font-size: var(--step--1); color: var(--ink-3);
  line-height: 1.55; max-width: 70ch; }

/* --- long-form article prose --- */
.prose { max-width: 34em; }
.prose p { margin-bottom: var(--sp-3); }
.prose h2 { font-size: var(--step-2); margin: var(--sp-5) 0 var(--sp-3); line-height: 1.2; }
.prose h3 { font-size: var(--step-1); margin: var(--sp-5) 0 var(--sp-2); line-height: 1.25; }
.prose ul, .prose ol { margin: 0 0 var(--sp-3) 1.15rem; padding: 0; }
.prose li { margin-bottom: var(--sp-2); color: var(--ink-2); }
.prose blockquote {
  margin: var(--sp-4) 0; padding-left: var(--sp-4);
  border-left: 3px solid var(--oxblood); font-family: var(--serif);
  font-style: italic; font-size: var(--step-1); color: var(--ink-2); line-height: 1.5;
}
.prose hr { border: 0; border-top: 1px solid var(--paper-edge); margin: var(--sp-5) 0; }
.prose .standfirst { font-family: var(--serif); font-size: var(--step-1);
  font-style: italic; color: var(--oxblood-deep); line-height: 1.5; margin-bottom: var(--sp-4); }

/* --- article header / byline --- */
.postmeta { font-family: var(--sans); font-size: var(--step--1); color: var(--ink-3);
  letter-spacing: 0.04em; display: flex; flex-wrap: wrap; gap: 0 var(--sp-3);
  align-items: center; margin-top: var(--sp-3); }
.postmeta .cat {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  color: var(--oxblood-deep); background: var(--oxblood-tint);
  border: 1px solid #e2cfcb; padding: 0.16rem 0.5rem; border-radius: var(--radius);
}
.postmeta time { font-variant-numeric: tabular-nums lining-nums; }

/* --- series strip --- */
.series { background: var(--paper-2); border: 1px solid var(--paper-edge);
  border-radius: var(--radius); padding: var(--sp-3) var(--sp-4);
  font-family: var(--sans); font-size: var(--step--1); color: var(--ink-2);
  max-width: 34em; margin-bottom: var(--sp-5); }
.series strong { color: var(--ink); font-weight: 600; }

/* --- journal archive --- */
.postlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5) var(--sp-4); }
.postcard { display: flex; flex-direction: column;
  border-top: 2px solid var(--oxblood); padding-top: var(--sp-3); }
.postcard .cat { align-self: flex-start; margin-bottom: var(--sp-3);
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600; color: var(--oxblood-deep); }
.postcard h3 { font-size: var(--step-1); line-height: 1.28; margin-bottom: var(--sp-2); }
.postcard h3 a { color: var(--ink); }
.postcard h3 a:hover { color: var(--oxblood); text-decoration: none; }
.postcard p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.55;
  margin-bottom: var(--sp-3); }
.postcard .foot { margin-top: auto; font-family: var(--sans); font-size: 0.78rem;
  color: var(--ink-2); letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums lining-nums; }

.postcard.lede { grid-column: 1 / -1; display: grid;
  grid-template-columns: 1.15fr 1fr; gap: var(--sp-5); align-items: start; }
.postcard.lede h3 { font-size: var(--step-3); line-height: 1.14; }
.postcard.lede p { font-size: var(--step-0); }

/* --- pagination --- */
.pagination { display: flex; gap: var(--sp-2); align-items: center;
  margin-top: var(--sp-6); font-family: var(--sans); font-size: var(--step--1); }
.pagination a, .pagination span {
  border: 1px solid var(--paper-edge); border-radius: var(--radius);
  padding: 0.4rem 0.78rem; color: var(--ink-2);
  font-variant-numeric: tabular-nums lining-nums; }
.pagination .on { background: var(--oxblood); border-color: var(--oxblood); color: var(--paper); }
.pagination a:hover { background: var(--paper-3); text-decoration: none; }

/* --- post navigation (prev / next) --- */
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4);
  border-top: 1px solid var(--paper-edge); padding-top: var(--sp-4); margin-top: var(--sp-6); }
.postnav .dir { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2); display: block; margin-bottom: var(--sp-1); }
.postnav a { font-family: var(--serif); font-size: var(--step-0); }
.postnav .next { text-align: right; }

/* --- booking form --- */
.form { max-width: 34em; }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-family: var(--sans); font-size: var(--step--1);
  font-weight: 600; color: var(--ink-2); margin-bottom: var(--sp-1); letter-spacing: 0.02em; }
.field .hint { display: block; font-family: var(--sans); font-size: 0.78rem;
  color: var(--ink-3); font-weight: 400; margin-bottom: var(--sp-2); letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: var(--step-0); color: var(--ink);
  background: var(--paper); border: 1px solid var(--paper-edge);
  border-radius: var(--radius); padding: 0.6rem 0.7rem; }
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--oxblood); box-shadow: var(--focus); }
.field-check { display: flex; gap: var(--sp-2); align-items: flex-start;
  font-family: var(--sans); font-size: var(--step--1); color: var(--ink-2); line-height: 1.5; }
.field-check input { width: auto; margin-top: 0.28rem; flex: none; }

/* --- pattern library --- */
.pat { border: 1px solid var(--paper-edge); border-radius: var(--radius);
  background: var(--paper); margin-bottom: var(--sp-6); overflow: hidden; }
.pat > header { background: var(--paper-2); border-bottom: 1px solid var(--paper-edge);
  padding: var(--sp-3) var(--sp-4); display: flex; flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3); align-items: baseline; justify-content: space-between; }
.pat > header h3 { font-size: var(--step-1); margin: 0; }
.pat .where { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-3);
  letter-spacing: 0.04em; }
.pat .demo { padding: var(--sp-5) var(--sp-4); }
.pat .demo.on-alt { background: var(--paper-2); }
.pat .demo.on-deep { background: var(--paper-3); }
.pat .demo.on-ink { background: var(--ink); }
.pat details.src { border-top: 1px solid var(--paper-edge); }
.pat details.src summary { cursor: pointer; padding: var(--sp-2) var(--sp-4);
  font-family: var(--sans); font-size: var(--step--1); color: var(--ink-3);
  letter-spacing: 0.04em; background: var(--paper-2); }
.pat details.src summary:hover { color: var(--oxblood); }
.pat details.src summary:focus-visible { outline: none; box-shadow: var(--focus); }
.pat pre { margin: 0; padding: var(--sp-4); background: var(--ink); color: #ddd4c2;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem; line-height: 1.55; overflow-x: auto; }
.pat pre .c { color: #8f897a; font-style: italic; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
.swatches li { border: 1px solid var(--paper-edge); border-radius: var(--radius); overflow: hidden; }
.swatches .chip { height: 3.4rem; display: block; }
.swatches .lab { padding: var(--sp-2); font-family: var(--sans); font-size: 0.74rem;
  line-height: 1.45; color: var(--ink-2); }
.swatches .lab b { display: block; color: var(--ink); font-weight: 600; }
.swatches .lab code { display: block; color: var(--ink-3); font-size: 0.72rem;
  font-variant-numeric: tabular-nums lining-nums; }
.swatches .lab .use { display: block; margin-top: var(--sp-1); color: var(--ink-2); }
.swatches .lab .slot { display: block; margin-top: var(--sp-1);
  padding-top: var(--sp-1); border-top: 1px solid var(--paper-edge);
  color: var(--ink-3); font-size: 0.7rem; letter-spacing: 0.04em; }

/* --- utility --- */
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.center { text-align: center; }
.center .sec-intro { margin-left: auto; margin-right: auto; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }

/* =====================================================================
   PART 2 — responsive
   ===================================================================== */
@media (max-width: 980px) {
  .steps, .steps.steps-4 { grid-template-columns: 1fr 1fr; }
  .postlist { grid-template-columns: 1fr 1fr; }
  .postcard.lede { grid-template-columns: 1fr; gap: var(--sp-3); }
}
@media (max-width: 720px) {
  .steps, .steps.steps-4 { grid-template-columns: 1fr; gap: var(--sp-5); }
  .compare { grid-template-columns: 1fr; gap: var(--sp-4); }
  .postlist { grid-template-columns: 1fr; }
  .postnav { grid-template-columns: 1fr; gap: var(--sp-3); }
  .postnav .next { text-align: left; }
  .hero-simple .wrap > * { max-width: none; }
  .spec th { width: auto; white-space: normal; display: block; border-bottom: 0;
    padding-bottom: 0.1rem; }
  .spec td { display: block; padding-top: 0; }
  .spec tr { display: block; border-bottom: 1px solid var(--paper-edge); padding: 0.5rem 0; }
  .spec th, .spec td { border-bottom: 0; }
  .pat > header { flex-direction: column; gap: var(--sp-1); }
}



/* =====================================================================
   PART 6 — RESPONSIVE
   ===================================================================== */

/* ---------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 320px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root {
    --step-3: 1.7rem;
    --step-4: 2.05rem;
    --sp-6: 2.8rem;
  }
  .brand-row { flex-direction: column; gap: var(--sp-3); }
  .brand-actions { padding-top: 0; }
  .sitenav ul { flex-wrap: wrap; row-gap: 0; column-gap: var(--sp-4); padding: var(--sp-1) var(--sp-4); }
  .sitenav a {
    white-space: nowrap; font-size: var(--step--1);
    letter-spacing: 0.02em; padding: 0.42rem 0; border-bottom-width: 2px;
  }
  .sitenav a:hover { background: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: var(--sp-4); }
  h1.page-title, h2.sec-title { max-width: none; }
  .pull { font-size: var(--step-1); }
  .foot-grid { grid-template-columns: 1fr; }
  .colophon { flex-direction: column; }
}

@media (max-width: 460px) {
  :root { --step-4: 1.85rem; --step-3: 1.55rem; }
  .quadrants { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   PART 2 — components added for the inner pages, journal, and patterns
   ===================================================================== */
