/* Cezanne Consulting site. Editorial long-scroll: a slate hero over the mountain range,
   stone sections below, one booking action repeated. Tokens from the Cezanne design system. */

@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --slate-900: #1f2a33; --slate-700: #3a4a57; --slate-500: #62717d;
  --stone-50: #f7f3ec; --stone-100: #efe8dc; --stone-300: #d6cbb8;
  --ochre-500: #b8743a; --ochre-700: #8a5222; --ochre-300: #e0ad7a;
  --cobalt: #2e4c86; --cobalt-300: #5c7dba;

  --bg: var(--stone-50); --surface: #ffffff; --inset: var(--stone-100);
  --ink: var(--slate-900); --ink-muted: var(--slate-700); --ink-faint: var(--slate-500);
  --rule: var(--stone-300); --border-strong: var(--slate-500);
  --accent-text: var(--ochre-700); --focus: var(--ochre-700);
  --primary: var(--slate-900); --primary-ink: var(--stone-50); --primary-hover: var(--slate-700);
  --danger: #a3332a; --success: #4f6b5c;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", Arial, Helvetica, sans-serif;

  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  --max: 75rem;
  --radius: 2px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #19222a; --surface: #222d36; --inset: #1f2a33;
    --ink: var(--stone-50); --ink-muted: var(--stone-300); --ink-faint: #a9b3bb;
    --rule: rgb(255 255 255 / 0.12); --border-strong: rgb(214 203 184 / 0.55);
    --accent-text: var(--ochre-300); --focus: var(--ochre-300);
    --primary: var(--ochre-300); --primary-ink: var(--slate-900); --primary-hover: #ebc59d;
    --danger: #f2b8b0; --success: #b9d1c3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #19222a; --surface: #222d36; --inset: #1f2a33;
  --ink: var(--stone-50); --ink-muted: var(--stone-300); --ink-faint: #a9b3bb;
  --rule: rgb(255 255 255 / 0.12); --border-strong: rgb(214 203 184 / 0.55);
  --accent-text: var(--ochre-300); --focus: var(--ochre-300);
  --primary: var(--ochre-300); --primary-ink: var(--slate-900); --primary-hover: #ebc59d;
  --danger: #f2b8b0; --success: #b9d1c3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font-sans); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.eyebrow { font: 600 13px/16px var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 12px 16px; background: var(--primary); color: var(--primary-ink); }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }
.ph { background: rgb(184 116 58 / 0.14); color: var(--ink); padding: 0 4px; border-radius: var(--radius); font-weight: 600; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius); border: 1.5px solid transparent; font: 600 16px/1.2 var(--font-sans); text-decoration: none; cursor: pointer; transition: background 160ms ease-out, box-shadow 160ms ease-out; }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: inset 0 0 0 var(--ochre-500); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: inset 0 -3px 0 var(--ochre-500); }
.btn-light { background: var(--stone-50); color: var(--slate-900); }
.btn-light:hover { background: var(--stone-100); box-shadow: inset 0 -3px 0 var(--ochre-500); }
.btn-ghost-light { border-color: var(--stone-300); color: var(--stone-50); background: transparent; }
.btn-ghost-light:hover { background: rgb(255 255 255 / 0.08); }
.btn:disabled { background: var(--stone-300); color: var(--slate-700); box-shadow: none; cursor: progress; }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--slate-900); border-bottom: 1px solid rgb(255 255 255 / 0.08); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--slate-900); z-index: 21; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--stone-50); text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand span { font: 600 20px/1 var(--font-serif); letter-spacing: 0.08em; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { display: none; color: var(--stone-300); text-decoration: none; font-size: 15px; font-weight: 400; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--stone-50); border-bottom-color: var(--ochre-500); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (min-width: 760px) { .nav a:not(.btn) { display: inline-block; } .nav { gap: 32px; } }

/* ---------- hero (slate in both themes) ---------- */
.hero { position: relative; background: var(--slate-900); color: var(--stone-50); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding-block: 56px 200px; display: grid; gap: 24px; }
.hero .eyebrow { color: var(--ochre-300); }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); line-height: 1.08; letter-spacing: -0.01em; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--ochre-300); }
.hero .lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--stone-300); max-width: 36rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding-top: 8px; }
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 190px; }
@media (min-width: 760px) { .hero .wrap { padding-block: 96px 240px; } .ridge { height: 240px; } }
@media (min-width: 1200px) { .ridge { height: 300px; } .hero .wrap { padding-block: 112px 280px; } }

/* ---------- credentials strip ---------- */
.creds { border-bottom: 1px solid var(--rule); }
.creds ul { list-style: none; margin: 0; padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; color: var(--ink-muted); }
.creds li { display: flex; align-items: center; gap: 10px; }
.creds li::before { content: ""; width: 8px; height: 8px; background: var(--ochre-500); clip-path: polygon(0 0, 100% 0, 100% 100%); flex: none; }

/* ---------- sections ---------- */
section.block { padding-block: 72px; }
@media (min-width: 760px) { section.block { padding-block: 96px; } }
.section-head { display: grid; gap: 12px; max-width: 44rem; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); line-height: 1.2; }
.section-head p { color: var(--ink-muted); }
.alt { background: var(--inset); }

/* services: two cards with the facet corner */
.services { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.service::after { content: ""; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; clip-path: polygon(0 0, 100% 0, 100% 100%); background: var(--ochre-500); }
.service.cobalt::after { background: var(--cobalt-300); }
.service h3 { font-size: 1.5rem; line-height: 1.3; }
.service > p { color: var(--ink-muted); }
.service ul { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.service li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.service li strong { font-weight: 600; }
.service li span { color: var(--ink-muted); font-size: 15px; line-height: 1.55; }

/* secondary offerings */
.also-title { font-size: 1.25rem; line-height: 1.35; margin: 56px 0 20px; }
.also { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .also { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.minor { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.minor-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.minor h4 { margin: 0; font: 600 1.125rem/1.4 var(--font-serif); text-wrap: balance; }
.minor p { color: var(--ink-muted); font-size: 16px; }
.minor .fine { font-size: 14px; color: var(--ink-faint); }
.pill { flex: none; font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; padding: 4px 10px; border: 1px solid var(--ochre-500); background: rgb(184 116 58 / 0.12); color: var(--ink); border-radius: var(--radius); }

/* four practice areas */
.practice { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .practice { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service.slate::after { background: var(--slate-500); }
.service.stone::after { background: var(--stone-300); }
.service .fine { font-size: 14px; color: var(--ink-faint); margin-top: auto; padding-top: 4px; }
.service .minor-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }

/* where to start */
.fit { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 60rem; }
.fit li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
@media (min-width: 760px) { .fit li { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.fit span { color: var(--ink); }
.fit a { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--accent-text); }
.fit a::after { content: " \2192"; }
.fit a:hover { text-decoration: underline; }

/* about */
.about { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; } }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; width: 100%; border-radius: var(--radius); }
.cz-hatch { background-color: var(--surface); background-image: repeating-linear-gradient(135deg, rgb(98 113 125 / 0.14) 0 1px, transparent 1px 9px); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; }
.about-text { display: grid; gap: 16px; max-width: 40rem; min-width: 0; }
.about-text h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); line-height: 1.2; }
.about-text > p:not(.eyebrow) { color: var(--ink-muted); }
.about-creds { list-style: none; margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.about-creds li { display: flex; align-items: center; gap: 10px; }
.about-creds li::before { content: ""; width: 8px; height: 8px; background: var(--ochre-500); clip-path: polygon(0 0, 100% 0, 100% 100%); flex: none; }

/* how it works: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.steps li { counter-increment: step; display: grid; gap: 8px; padding-top: 20px; border-top: 2px solid var(--ink); min-width: 0; }
.steps li::before { content: counter(step); font: 600 2.5rem/1 var(--font-serif); color: var(--accent-text); }
.steps h3 { font-size: 1.25rem; line-height: 1.35; }
.steps p { color: var(--ink-muted); font-size: 16px; }

/* faq */
.faq { display: grid; max-width: 48rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 600 1.125rem/1.4 var(--font-serif); min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform 160ms ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 24px; display: grid; gap: 12px; color: var(--ink-muted); }
.faq .source { font-size: 14px; }

/* booking */
.book { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .book { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.book-aside { display: grid; gap: 20px; align-content: start; }
.book-aside .direct { display: grid; gap: 4px; padding: 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.book-aside .direct div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 8px; font-size: 15px; }
.book-aside .direct dt { color: var(--ink-faint); }
.book-aside .direct dd { margin: 0; user-select: all; }
form.contact { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; display: grid; gap: 20px; min-width: 0; }
@media (min-width: 600px) { form.contact { padding: 32px; } .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.two { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font: 600 14px/20px var(--font-sans); color: var(--ink); }
.field .hint { font-size: 14px; color: var(--ink-faint); margin-top: -4px; }
.field .opt { font-weight: 400; color: var(--ink-faint); }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: 400 17px/1.5 var(--font-sans); color: var(--ink); background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius); }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border: 1.5px solid var(--danger); }
.error { font-size: 14px; color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 12px; }
.notice { font-size: 14px; color: var(--ink-faint); line-height: 1.55; }
.status { padding: 14px 16px; border-radius: var(--radius); border: 1px solid; font-size: 15px; }
.status.ok { border-color: var(--success); background: rgb(79 107 92 / 0.14); color: var(--ink); }
.status.err { border-color: var(--danger); background: rgb(163 51 42 / 0.1); color: var(--ink); }
.status.info { border-color: var(--ochre-500); background: rgb(184 116 58 / 0.12); color: var(--ink); }

/* footer */
.site-footer { background: var(--slate-900); color: var(--stone-300); font-size: 14px; }
.site-footer .wrap { padding-block: 40px; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--stone-50); }
.site-footer p { max-width: 40rem; }

/* about page */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-compact .wrap { padding-block: 56px 150px; }
@media (min-width: 760px) { .hero-compact .wrap { padding-block: 80px 170px; } }
.hero-compact .ridge { height: 140px; }
@media (min-width: 1200px) { .hero-compact .ridge { height: 170px; } }
.bio .bio-lead { font: 600 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.45 var(--font-serif); color: var(--ink) !important; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 60rem; }
.timeline li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 40px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .timeline li { grid-template-columns: 9rem minmax(0, 1fr); } }
.timeline .when { font: 600 13px/24px var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.2rem; line-height: 1.4; }
.timeline p { color: var(--ink-muted); margin-top: 4px; }
.creds-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .creds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; } }
.creds-grid > div { min-width: 0; display: grid; gap: 12px; align-content: start; }
.sub-h { font-size: 1.5rem; line-height: 1.3; margin-bottom: 8px; }
.plain { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.plain li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.plain span { color: var(--ink-muted); font-size: 15px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.tech-label { margin-top: 24px; }
.cta-band { background: var(--slate-900); color: var(--stone-50); }
.cta-band .wrap { padding-block: 64px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.25; }
