/* Themeable shared stylesheet — variables set per-variant on :root */
:root {
  --bg: #faf8f4;
  --fg: #1a1a1a;
  --fg-soft: rgba(26, 26, 26, 0.62);
  --fg-muted: rgba(26, 26, 26, 0.42);
  --rule: rgba(26, 26, 26, 0.12);
  --accent: #2d4a2b;
  --accent-soft: rgba(45, 74, 43, 0.08);
  --paper: #ffffff;
  --serif: 'Instrument Serif', 'Newsreader', Georgia, serif;
  --serif-display: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1240px;
  --gutter: 48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ── Layout ─────────────────────────────────────────── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Top nav ────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav-mark {
  font-family: var(--serif-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  font-style: italic;
}
.nav-mark span { font-style: normal; font-family: var(--sans); font-weight: 500; font-size: 14px; opacity: 0.55; margin-left: 8px; letter-spacing: 0; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--fg-soft);
  transition: color .18s;
  position: relative;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  font-size: 13px;
  padding: 9px 16px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  transition: background .18s, color .18s;
}
.nav-cta:hover { background: var(--fg); color: var(--bg); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--fg-muted);
}
.hero h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 460px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--fg); color: var(--bg);
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  border-color: var(--rule);
  color: var(--fg-soft);
}
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* Hero portrait */
.portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.portrait-stripes {
  position: absolute; inset: 10px;
  background-image: url("image.png");
  background-size: cover;
  background-position-y: bottom;
}
.portrait-caption {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--bg);
  display: flex; justify-content: space-between;
}

/* Hero meta strip */
.hero-meta {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.meta-item .meta-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.meta-item .meta-v {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}

/* ── Section header ─────────────────────────────────── */
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--rule);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.section-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.section-title em { font-style: italic; color: var(--accent); }

/* ── Services ───────────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.service {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 36px 44px;
  position: relative;
  transition: background .25s;
}
.service:hover { background: var(--accent-soft); }
.service-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.14em;
  margin-bottom: 28px;
}
.service-title {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.service-title em { font-style: italic; color: var(--accent); }
.service-desc {
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.55;
  max-width: 38ch;
  margin-bottom: 28px;
}
.service-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  border: 1px solid var(--rule);
  padding: 5px 9px;
  border-radius: 2px;
}

/* ── About ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 96px;
}
.about-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 32px;
}
.about-stack p {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.about-stack p em { font-style: italic; color: var(--accent); }
.about-side {
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.6;
}
.about-side dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.about-side dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.about-side dd { font-family: var(--serif); font-size: 16px; }

/* ── Contact ────────────────────────────────────────── */
.contact {
  padding: 140px 0 120px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.contact h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 56px;
  max-width: 14ch;
}
.contact h2 em { font-style: italic; color: var(--accent); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.contact-card {
  background: var(--paper);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .2s;
}
.contact-card:hover { background: var(--accent-soft); }
.contact-card .ck {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.contact-card .cv {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.contact-card .ch {
  font-size: 13px; color: var(--fg-soft); margin-top: auto; padding-top: 24px;
  display: flex; align-items: center; gap: 6px;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--bg);
  padding: 64px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.footer h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-size: 14px;
  color: var(--fg-soft);
  transition: color .18s;
}
.footer ul a:hover { color: var(--fg); }
.footer-mark {
  font-family: var(--serif-display);
  font-size: 28px;
  font-style: italic;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.footer-tag {
  font-size: 13px;
  color: var(--fg-soft);
  max-width: 32ch;
  line-height: 1.5;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.footer-bottom .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: middle;
}

/* ── Legal pages ────────────────────────────────────── */
.legal {
  padding: 96px 0 120px;
}
.legal-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--rule);
  align-items: end;
}
.legal-head h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.legal-head h1 em { font-style: italic; color: var(--accent); }
.legal-head .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.legal-body {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 64px;
  align-items: start;
}
.legal-toc {
  position: sticky; top: 96px;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex; flex-direction: column; gap: 12px;
  border-left: 1px solid var(--rule);
  padding-left: 20px;
}
.legal-toc li {
  counter-increment: toc;
  font-size: 13px;
  color: var(--fg-soft);
  position: relative;
}
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-muted);
  margin-right: 10px;
  letter-spacing: 0.1em;
}
.legal-toc a:hover { color: var(--fg); }
.legal-content article {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.legal-content article:last-child { border-bottom: none; }
.legal-content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  display: flex; align-items: baseline; gap: 14px;
}
.legal-content h2 .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.14em;
}
.legal-content p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-soft);
  margin-bottom: 14px;
  max-width: 60ch;
}
.legal-content p strong { color: var(--fg); font-weight: 500; }
.legal-content dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  margin: 16px 0;
  font-size: 14px;
}
.legal-content dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 4px;
}
.legal-content dd { color: var(--fg-soft); }

/* ── Sitemap ────────────────────────────────────────── */
.sitemap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.sitemap section h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.sitemap ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
}
.sitemap li a {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 12px;
  transition: color .15s;
}
.sitemap li a:hover { color: var(--accent); }
.sitemap li a::before {
  content: attr(data-num);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}

/* ── Variant: Encre (B&W + terracotta) ──────────────── */
.theme-encre {
  --bg: #ffffff;
  --fg: #0d0d0d;
  --fg-soft: rgba(13, 13, 13, 0.65);
  --fg-muted: rgba(13, 13, 13, 0.42);
  --rule: rgba(13, 13, 13, 0.14);
  --accent: #b8472b;
  --accent-soft: rgba(184, 71, 43, 0.06);
  --paper: #f7f5f1;
}

/* ── Variant: Brume (Premium navy/ivory) ────────────── */
.theme-brume {
  --bg: #f5f1ea;
  --fg: #14233d;
  --fg-soft: rgba(20, 35, 61, 0.66);
  --fg-muted: rgba(20, 35, 61, 0.42);
  --rule: rgba(20, 35, 61, 0.14);
  --accent: #14233d;
  --accent-soft: rgba(20, 35, 61, 0.06);
  --paper: #ffffff;
}
.theme-brume .hero h1 em,
.theme-brume .section-title em,
.theme-brume .service-title em,
.theme-brume .contact h2 em,
.theme-brume .legal-head h1 em,
.theme-brume .about-stack p em {
  color: #b87333;
}
.theme-brume .nav-cta { border-color: var(--accent); }
.theme-brume .footer-bottom .dot { background: #b87333; }

/* ── Forêt is the default :root, no override needed ──── */

/* ── Responsive (in-artboard preview is forced to desktop) ── */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .hero-grid, .section-head, .about-grid, .legal-head, .legal-body { grid-template-columns: 1fr; gap: 32px; }
  .services, .footer-top, .sitemap, .contact-grid, .hero-meta { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
