/* =========================================================
   KarenFerrero.com — inner page styles (About, Impact, Work With Me,
   Speaking, Contact, Privacy, Terms, 404)
   ---------------------------------------------------------
   Same "model card" look as the landing page (model-card.css):
   a white documentation page, ink text, hairline rules, and one
   highlighter-yellow accent. Colors and fonts live in :root below.
   The design system is described in DESIGN.md.
   ========================================================= */

:root {
  /* Colors (same values as model-card.css) */
  --paper: #ffffff;        /* page */
  --ink: #111114;          /* headings, values, primary text */
  --ink-2: #3f3f46;        /* body text */
  --ink-3: #5b5b66;        /* labels, metadata (6.6:1 on white) */
  --rule: #e4e4e7;         /* hairline dividers and outlines */
  --chip: #f4f4f5;         /* tag and control fills */
  --well: #f7f7f8;         /* quiet wells */
  --hi: #ffd21e;           /* highlighter yellow: the one accent */
  --hi-hover: #ffdc4f;
  --hi-edge: #e3b500;      /* yellow outline */
  --hi-soft: #fff6cc;      /* row highlight */

  /* Older names some pages still use in inline styles */
  --text: var(--ink);

  /* Type */
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --radius-sm: 10px;
  --section-y: clamp(56px, 7vw, 96px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #d4d4d8 transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--hi); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.15; text-wrap: balance; }
h1 { font: 900 clamp(2.6rem, 1.8rem + 3.6vw, 4.5rem)/.98 var(--sans); letter-spacing: -0.04em; }
h2 { font: 800 clamp(1.5rem, 1.3rem + .7vw, 1.9rem)/1.15 var(--sans); letter-spacing: -0.02em; }
h3 { font: 700 clamp(1.1rem, 1.05rem + .25vw, 1.25rem)/1.3 var(--sans); letter-spacing: -0.01em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--hi); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn--primary { background: var(--hi); border-color: var(--hi-edge); color: var(--ink); box-shadow: 0 1px 2px rgba(17,17,20,.08); }
.btn--primary:hover { background: var(--hi-hover); box-shadow: 0 6px 16px -8px rgba(17,17,20,.35); }
.btn--ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn--ghost:hover { background: var(--chip); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arrow { transition: none; } .btn:hover .arrow { transform: none; } }

.text-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Header (repository-path bar + menu) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__name { font: 800 1.1rem/1.2 var(--sans); letter-spacing: -0.01em; }
.brand__path { display: flex; align-items: center; gap: 8px; min-width: 0; font: 500 15px/1.2 var(--mono); color: var(--ink-3); }
.brand__slash { color: #a1a1aa; }
.brand__page { color: var(--ink); font-weight: 700; white-space: nowrap; }
.brand:hover .brand__page { text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 1px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; list-style: none; gap: 2px; }
.nav__list a { display: block; padding: 9px 11px; border-radius: 8px; font: 500 15px/1.2 var(--sans); color: var(--ink-3); text-decoration: none; }
.nav__list a:hover { color: var(--ink); background: var(--chip); }
.nav__list a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.nav .btn { margin-left: 10px; min-height: 40px; padding: 8px 14px; font-size: 15px; }
.header-cta { min-height: 40px; padding: 8px 14px; font-size: 15px; white-space: nowrap; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--ink); }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__list a { padding: 14px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 16px; }
  .nav__list a[aria-current="page"] { box-shadow: none; text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .nav .btn { margin: 12px 0 0; }
}
@media (max-width: 560px) {
  .brand__owner, .brand__slash { display: none; }
  .brand__path { font-size: 13px; }
  .brand__mark { width: 24px; height: 24px; }
}

/* ---------- Sections (documentation rhythm: white page, hairline between sections) ---------- */
.section { padding: var(--section-y) 0; }
.section + .section, .page-hero + .section { border-top: 1px solid var(--rule); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--deep, .section--light, .section--white, .section--ice { background: var(--paper); color: var(--ink-2); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lede { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.35rem); line-height: 1.45; font-weight: 600; color: var(--ink); max-width: 62ch; }
.muted { color: var(--ink-3); }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* Reveal: content is always visible (no per-section entrance animation) */
.reveal { opacity: 1; transform: none; }

/* ---------- Page intros ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 60px); }
.page-hero h1 { max-width: 18ch; margin-bottom: .35em; }
.page-hero .lede { max-width: 62ch; }

/* About page intro (text + small photo) */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.hero__grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(28px, 5vw, 64px); align-items: start; }
.hero__sub { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; color: var(--ink); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.portrait { width: 120px; }
.portrait img { width: 100%; aspect-ratio: 896 / 1088; object-fit: cover; border-radius: var(--radius-sm); background: var(--chip); border: 1px solid var(--rule); }
@media (max-width: 720px) { .hero__grid { grid-template-columns: 1fr; } .portrait { width: 96px; grid-row: 1; } }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Cards (flat panels with a hairline) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 40px); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .cards, .cards--2 { grid-template-columns: 1fr; } }
/* "Cards" are rule-divided blocks (hairline on top), not outlined panels */
.card { display: flex; flex-direction: column; padding: 20px 0 0; border-top: 1px solid var(--rule); background: transparent; }
.card h2, .card h3, .card__title { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card .check-list { margin-bottom: 22px; }
/* Decorative icon tiles are not part of this system: the heading carries each card */
.card__icon { display: none; }
.card__for { margin: -2px 0 14px; font: 600 14px/1.35 var(--sans); color: var(--ink-3); }

/* Checklists */
.check-list { list-style: none; display: grid; gap: 10px; margin: 6px 0 18px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { /* ink line check, no fill: yellow is reserved for primary actions */
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111114' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/18px no-repeat;
}
.check-list li strong { color: var(--ink); }

/* Quotes */
.pull-quote { margin: 0; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.pull-quote blockquote { margin: 0 0 12px; font: 500 clamp(1.1rem, 1rem + .4vw, 1.3rem)/1.5 var(--sans); color: var(--ink); letter-spacing: -0.005em; }
.pull-quote blockquote p { margin: 0; }
.pull-quote figcaption { font-size: 15px; color: var(--ink-3); }
.pull-quote figcaption strong { color: var(--ink); }

/* ---------- Impact page: case studies ---------- */
.case { display: grid; grid-template-columns: 290px 1fr; gap: clamp(24px, 5vw, 64px); padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--rule); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case__meta h2 { font: 800 clamp(1.5rem, 1.3rem + .6vw, 1.85rem)/1.15 var(--sans); letter-spacing: -0.02em; margin-bottom: 10px; }
.case__role { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); margin-bottom: 6px; }
.case__years { font: 500 13.5px/1.3 var(--mono); color: var(--ink-3); }
.case__stats { list-style: none; display: grid; margin: 20px 0 0; }
.case__stats li { display: grid; grid-template-columns: 7.5ch 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); }
.case__stats li:last-child { border-bottom: 1px solid var(--rule); }
.case__stats b { font: 700 1.15rem/1.2 var(--mono); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.case__stats span { font-size: 14px; line-height: 1.35; color: var(--ink-3); }
.case__body h3 { font-size: 1.05rem; margin: 0 0 10px; }
.case__body h3:not(:first-child) { margin-top: 26px; }
.case__body .check-list { margin-bottom: 0; }
.case__body .pull-quote { margin-top: 26px; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* Jump links (Impact page) */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; background: var(--chip); font: 500 14.5px/1.35 var(--sans); color: var(--ink); }
.tags li:not(:has(a)) { padding: 5px 11px; }
.tags a { display: block; padding: 5px 11px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.tags a:hover { background: var(--rule); }

/* ---------- About page ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); }
.timeline__when { font: 500 14px/1.5 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.timeline__what strong { display: block; color: var(--ink); font-size: 16.5px; }
.timeline__what span { display: block; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

.table-wrap { overflow-x: auto; }
.cred-table { width: 100%; border-collapse: collapse; }
.cred-table th, .cred-table td { padding: 14px 12px 14px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.cred-table th { width: 36%; font-weight: 700; color: var(--ink); }
.cred-table td { color: var(--ink-2); }

.impact-list { list-style: none; display: grid; gap: 0; margin: 8px 0 1.4em; }
.impact-list li { display: grid; grid-template-columns: 6.2ch 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.impact-list b { font: 700 1.3rem/1 var(--mono); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- Work With Me: steps ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 40px); margin: 0; padding: 0; }
/* Step number sits beside the heading (left key column), never above it */
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6ch 1fr; column-gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step); grid-column: 1; grid-row: 1; align-self: baseline; font: 700 1.05rem/1.3 var(--mono); color: var(--ink-3); }
.steps h3 { grid-column: 2; grid-row: 1; align-self: baseline; margin-bottom: 6px; }
.steps p { grid-column: 2; margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 0 0; border-top: 1px solid var(--rule); }
.contact-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.contact-card p { color: var(--ink-2); }
.contact-card .btn { margin-top: auto; align-self: flex-start; }
/* Booking is the one primary route: its button stays yellow; the card itself is not filled */
.email-text { font-weight: 700; word-break: break-all; }

/* ---------- Long-form text (Privacy, Terms) ---------- */
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose p, .prose li { color: var(--ink-2); max-width: 70ch; }
.prose .big { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.3rem); line-height: 1.5; font-weight: 600; color: var(--ink); }
.prose strong { color: var(--ink); }

/* ---------- Closing call to action ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font: 800 clamp(1.5rem, 1.3rem + .6vw, 1.85rem)/1.15 var(--sans); letter-spacing: -0.02em; max-width: 30ch; margin: 0 auto 12px; }
.cta-band .lede { margin: 0 auto 24px; max-width: 58ch; }
.cta-band .hero__actions { justify-content: center; margin-top: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 58vh; display: grid; place-items: center; text-align: center; }
.notfound__code { display: inline-block; margin: 0 0 12px; padding: 0 .18em; background: var(--hi); color: var(--ink); font: 700 clamp(4rem, 2.5rem + 7vw, 7.5rem)/1.05 var(--mono); letter-spacing: -0.04em; border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 56px 0 28px; border-top: 1px solid var(--rule); background: var(--paper); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer__grid--landing { grid-template-columns: 2fr 1fr; }
.footer__tagline { margin-top: 14px; max-width: 34ch; color: var(--ink-3); }
.site-footer h2 { margin-bottom: 12px; font: 700 14px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__social { display: inline-flex; align-items: center; gap: 8px; }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }
.site-footer .footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

@media print {
  .site-header, .site-footer, .hero__actions { display: none !important; }
}
