/* =========================================================
   Campana — site stylesheet
   Tokens first; everything else uses them.
   ========================================================= */

:root {
  /* Color */
  --ivory: #F5F2EC;
  --stone: #E8E5DE;
  --charcoal: #292D2A;
  --gray-ink: #65635D;
  --taupe: #D8D2C7;
  --emerald-deep: #1F4A3D;
  --emerald: #3B7A63;      /* decor, rules, large text only */
  --emerald-ink: #2E6652;  /* links and small accents */
  --jade: #B5CDC2;         /* secondary text on deep emerald */

  /* Type */
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  /* Layout */
  --max: 1280px;
  --gutter: 24px;
  --margin: 80px;
  --section: clamp(96px, 12vw, 160px);
}

@media (max-width: 760px) {
  :root { --margin: 24px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--emerald-ink); text-underline-offset: 6px; text-decoration-thickness: 1px; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 4px; }
.on-dark :focus-visible { outline-color: var(--ivory); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--charcoal); color: var(--ivory); padding: 12px 20px; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--ivory); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--margin); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.section { padding-block: var(--section); }
.section--tight-top { padding-top: 0; }
.bg-stone { background: var(--stone); }
.bg-deep { background: var(--emerald-deep); color: var(--ivory); }

/* Column helpers (desktop); collapse on phones */
.col-hero   { grid-column: 1 / span 10; }
.col-lead   { grid-column: 7 / span 6; }
.col-left   { grid-column: 1 / span 6; }
.col-right  { grid-column: 8 / span 5; }
.col-photo  { grid-column: 1 / span 5; }
.col-bio    { grid-column: 7 / span 6; }
.col-exp-l  { grid-column: 1 / span 5; }
.col-exp-r  { grid-column: 7 / span 6; }
.col-guide  { grid-column: 1 / span 4; }
.col-form   { grid-column: 6 / span 7; }
.col-wide   { grid-column: 1 / span 10; }

@media (max-width: 760px) {
  .grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .grid > * { grid-column: 1 / -1; }
}

.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--sm { gap: 12px; }
.stack--lg { gap: 32px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(56px, 8.4vw, 128px); line-height: 1; letter-spacing: -0.02em;
}
.display--page { font-size: clamp(48px, 7vw, 104px); }
.statement {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 4.4vw, 60px); line-height: 1.1; letter-spacing: -0.01em;
}
.statement--sm { font-size: clamp(32px, 3.4vw, 40px); line-height: 1.15; }
.h2 { font-weight: 300; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.1; letter-spacing: -0.01em; }
.h3 { font-weight: 300; font-size: 32px; line-height: 1.2; }
.h3--sm { font-size: 28px; line-height: 1.25; }
.name { font-weight: 300; font-size: 40px; line-height: 1.15; }
.lead { font-size: 22px; line-height: 1.5; font-weight: 300; }
.lead--xl { font-size: 24px; line-height: 1.55; font-weight: 300; }
.label { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.muted { color: var(--gray-ink); }
.small { font-size: 16px; }
.xsmall { font-size: 14px; }
.caption { font-size: 13px; color: var(--gray-ink); margin-top: 10px; }
.caption a { color: var(--gray-ink); }
.bg-deep .muted, .bg-deep .label { color: var(--jade); }
.measure { max-width: 760px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--taupe); position: relative; z-index: 10; background: var(--ivory); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 96px; }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--charcoal); }
.brand:hover { color: var(--charcoal); }
.brand svg { width: 22px; height: 28px; flex: none; }
.brand__word { font-size: 15px; letter-spacing: 0.4em; line-height: 1; }

.nav { display: flex; gap: 40px; align-items: center; font-size: 15px; }
.nav a { color: var(--charcoal); text-decoration: none; padding-block: 8px; }
.nav a[aria-current="page"], .nav a:hover {
  text-decoration: underline; text-decoration-color: var(--emerald); text-underline-offset: 6px;
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--taupe); color: var(--charcoal);
  font: inherit; font-size: 15px; padding: 10px 18px; min-height: 44px; cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; top: 96px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--taupe); padding: 8px var(--margin) 24px;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 20px; padding-block: 12px; width: 100%; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; background: var(--charcoal); color: var(--ivory);
  text-decoration: none; font: inherit; font-size: 16px; border: none; cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: #111412; color: var(--ivory); }
.text-link { color: var(--charcoal); font-size: 16px; text-decoration: underline; text-decoration-color: var(--emerald); }
.text-link:hover { color: var(--emerald-ink); }
.actions { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }

/* ---------- Hero ---------- */
.hero { padding-top: 128px; padding-bottom: 96px; }
.hero .display { margin-bottom: 64px; }
@media (max-width: 760px) { .hero { padding-top: 72px; padding-bottom: 64px; } .hero .display { margin-bottom: 8px; } }

.hero-image img { width: 100%; height: clamp(320px, 42vw, 600px); object-fit: cover; object-position: 50% 62%; }

/* ---------- Practice ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid var(--charcoal);
}
.practice-row {
  display: grid; grid-template-columns: 80px minmax(0, 4fr) minmax(0, 6fr); column-gap: var(--gutter);
  padding-block: 48px; border-bottom: 1px solid var(--taupe);
}
.practice-row__num { font-size: 15px; color: var(--emerald-ink); padding-top: 8px; }
.practice-row__title { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.practice-row__body { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 760px) {
  .practice-row { grid-template-columns: 48px minmax(0, 1fr); row-gap: 12px; padding-block: 36px; }
  .practice-row__body { grid-column: 2 / -1; }
}
.tag { font-size: 13px; color: var(--emerald-ink); border: 1px solid var(--emerald); padding: 4px 10px; line-height: 1.4; }

/* ---------- Experience (deep) ---------- */
.capabilities {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px;
  margin-top: 96px; padding-top: 40px; border-top: 1px solid rgba(245, 242, 236, 0.2);
}
.capabilities p { font-size: 16px; }
@media (max-width: 760px) { .capabilities { margin-top: 56px; } }

/* ---------- Founder ---------- */
.founder { align-items: end; }
.founder--top { align-items: start; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.9) sepia(0.06); }
.aside-note { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--taupe); font-size: 15px; color: var(--gray-ink); }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
.principle { display: flex; flex-direction: column; gap: 12px; padding-block: 40px; border-bottom: 1px solid var(--taupe); }
.principle__num { font-size: 15px; color: var(--emerald-ink); }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 32px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gutter); }
@media (max-width: 760px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; }
.field .optional { font-weight: 400; color: var(--gray-ink); }
.input {
  font: inherit; font-size: 18px; font-weight: 400; color: var(--charcoal);
  padding: 12px 0; min-height: 44px; width: 100%;
  border: none; border-bottom: 1px solid var(--charcoal); border-radius: 0; background: transparent;
}
.input:focus { outline: 2px solid var(--charcoal); outline-offset: 4px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%), linear-gradient(135deg, var(--charcoal) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; }
textarea.input { resize: vertical; min-height: 160px; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 8px; }
.form-foot p { font-size: 14px; color: var(--gray-ink); max-width: 440px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 20px 24px; font-size: 16px; border-left: 2px solid var(--emerald); background: var(--stone); }
.notice--error { border-left-color: #8A3B2E; }
.bg-stone .notice { background: var(--ivory); }

.inline-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.inline-form .field { flex: 1 1 260px; }

.guide-block { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--taupe); }
.guide-block--strong { border-top-color: var(--charcoal); }
.guide-block ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--gray-ink); }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; font-weight: 500; margin: 48px 0 12px; }
.prose p, .prose ul { margin-bottom: 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--taupe); }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
  padding-block: 40px; font-size: 14px; color: var(--gray-ink);
}
.site-footer .brand__word { font-size: 13px; color: var(--charcoal); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--gray-ink); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
