/* ─── Tokens ─────────────────────────────────────────────────────────────── */

/* ─── Alcyone (self-hosted) ──────────────────────────────────────────────── */
@font-face {
  font-family: 'Alcyone';
  src: url('/assets/fonts/Alcyone-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alcyone';
  src: url('/assets/fonts/Alcyone-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alcyone';
  src: url('/assets/fonts/Alcyone-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Alcyone';
  src: url('/assets/fonts/Alcyone-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alcyone';
  src: url('/assets/fonts/Alcyone-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alcyone';
  src: url('/assets/fonts/Alcyone-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alcyone';
  src: url('/assets/fonts/Alcyone-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Palette — dark by default; light variant below */
  --bg:       #0a0a09;
  --bg2:      #131311;
  --fg:       #ece9e2;
  --fg2:      #b8b4a8;
  --muted:    #84807a;
  --border:   #20201d;
  --border2:  #2c2c28;
  --faint:    #181815;

  /* Accent aliases (kept as variables so existing rules continue to work,
     but resolved to ink/bone — the design has no chromatic accent) */
  --gold:     var(--fg);
  --gold-dim: var(--fg2);

  /* Typography */
  --font-sans:  'Alcyone', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Alcyone', Georgia, serif;

  /* Type scale (ratio 1.2) */
  --fs-xs:  0.694rem;
  --fs-sm:  0.833rem;
  --fs-base: 1rem;
  --fs-md:  1.2rem;
  --fs-lg:  1.44rem;
  --fs-xl:  1.728rem;
  --fs-2xl: 2.074rem;
  --fs-3xl: 2.488rem;

  /* Spacing */
  --max-w:    1100px;
  --gap:      clamp(2rem, 5vw, 4rem);
  --section-py: clamp(5rem, 10vw, 9rem);

  /* Radii — flatter; editorial design uses sharp edges */
  --radius-sm:  0;
  --radius-md:  0;
  --radius-lg:  0;
  --radius-pill: 0;

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast: 0.15s;

  /* Focus */
  --ring: var(--fg);
}

[data-theme="light"] {
  --bg:       #f5f4f0;
  --bg2:      #ecebe6;
  --fg:       #0e0e0c;
  --fg2:      #3a3a36;
  --muted:    #6b6b66;
  --border:   #d8d6cf;
  --border2:  #b8b6ad;
  --faint:    #e6e4dd;
  --gold:     var(--fg);
  --gold-dim: var(--fg2);
  --ring:     var(--fg);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:       #f5f4f0;
    --bg2:      #ecebe6;
    --fg:       #0e0e0c;
    --fg2:      #3a3a36;
    --muted:    #6b6b66;
    --border:   #d8d6cf;
    --border2:  #b8b6ad;
    --faint:    #e6e4dd;
    --gold:     var(--fg);
    --gold-dim: var(--fg2);
    --ring:     var(--fg);
  }
}

/* ─── Focus ring (global) ────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── High contrast ──────────────────────────────────────────────────────── */
@media (prefers-contrast: more) {
  :root {
    --fg2:    #d8d4c7;
    --muted:  #a8a49a;
    --border: #38382f;
    --border2:#48483d;
  }
  [data-theme="light"] {
    --fg2:    #14140f;
    --muted:  #2e2e26;
    --border: #8a8a7a;
    --border2:#6e6e5e;
  }
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

html.switching * {
  transition:
    background-color 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    color            0.35s cubic-bezier(0.25, 1, 0.5, 1),
    border-color     0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.7;
  overflow-x: hidden;
}

.not-found {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 10vw, 7rem);
}

.not-found-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; }

/* Visually hide while keeping content available to assistive tech & crawlers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Grain overlay ──────────────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-2%,-3%); }
  20% { transform: translate(3%,2%); }
  30% { transform: translate(-1%,4%); }
  40% { transform: translate(4%,-1%); }
  50% { transform: translate(-3%,1%); }
  60% { transform: translate(2%,-4%); }
  70% { transform: translate(-4%,3%); }
  80% { transform: translate(1%,-2%); }
  90% { transform: translate(3%,4%); }
}

/* ─── Container ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section {
  padding-block: var(--section-py);
  border-top: 1px solid var(--fg);    /* editorial: ink rules, not muted ones */
}

.s-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.s-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--fg);
}
.s-num { color: var(--fg); font-variant-numeric: tabular-nums; font-weight: 700; }

.s-heading {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;                    /* Alcyone Light */
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fg);
}
.s-heading em {
  font-style: italic;
  font-weight: 700;                    /* Alcyone Bold Italic — matches hero */
  color: var(--fg);
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1.25rem;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav-header.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-color: var(--border);
  padding-block: 0.9rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--fg);
  flex-shrink: 0;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-items a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.nav-items a:hover,
.nav-items a.active { color: var(--fg); }

.nav-contact {
  color: var(--gold) !important;
  border: 1px solid var(--border) !important;
}
.nav-contact:hover {
  background: var(--faint) !important;
  border-color: var(--gold-dim) !important;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
}
.theme-btn:hover { color: var(--fg); background: var(--faint); }
.theme-btn svg { width: 15px; height: 15px; }

.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Mobile nav ─────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .nav-burger { display: flex; }

  .nav-items {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 99;
  }
  .nav-items.open { opacity: 1; pointer-events: auto; }
  .nav-items a { font-size: 1rem; padding: 0.75rem 1.5rem; }
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: 0;            /* sharp editorial edges */
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
  white-space: nowrap;
  border: 1px solid var(--fg);
}
.btn:active { transform: translateY(1px); }

.btn-fill {
  background: var(--fg);
  color: var(--bg);
}
.btn-fill:hover { background: var(--bg); color: var(--fg); }

.btn-ring {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn-ring:hover { background: var(--fg); color: var(--bg); }

/* ─── Hero label / dot ───────────────────────────────────────────────────── */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  border-left: none;
  border-right: none;
  border-radius: 0;
  padding: 0.45rem 0.1rem 0.45rem 0;
  width: fit-content;
}

.hero-dot {
  width: 8px;
  height: 8px;
  background: var(--fg);
  border-radius: 0;            /* square indicator */
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.35; transform: scale(0.85); }
}

/* ─── Form fields ────────────────────────────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  color: var(--fg);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
  width: 100%;
  appearance: none;
}
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 4%, var(--bg2));
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-status {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.success {
  display: block;
  color: #4ade80;
  background: color-mix(in srgb, #4ade80 8%, transparent);
  border: 1px solid color-mix(in srgb, #4ade80 20%, transparent);
}
.form-status.error {
  display: block;
  color: #f87171;
  background: color-mix(in srgb, #f87171 8%, transparent);
  border: 1px solid color-mix(in srgb, #f87171 20%, transparent);
}

[data-theme="light"] .form-status.success {
  color: #15803d;
  background: color-mix(in srgb, #15803d 8%, transparent);
  border-color: color-mix(in srgb, #15803d 25%, transparent);
}
[data-theme="light"] .form-status.error {
  color: #b91c1c;
  background: color-mix(in srgb, #b91c1c 8%, transparent);
  border-color: color-mix(in srgb, #b91c1c 25%, transparent);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .form-status.success {
    color: #15803d;
    background: color-mix(in srgb, #15803d 8%, transparent);
    border-color: color-mix(in srgb, #15803d 25%, transparent);
  }
  :root:not([data-theme="dark"]) .form-status.error {
    color: #b91c1c;
    background: color-mix(in srgb, #b91c1c 8%, transparent);
    border-color: color-mix(in srgb, #b91c1c 25%, transparent);
  }
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 1.75rem;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.f-name {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg2);
}
.f-copy {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ─── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease-out-quart), transform 0.75s var(--ease-out-quart);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Skip link ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  min-width: 44px;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* ─── Reduced motion (supplements) ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-anim { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 10vw, 7rem) clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

/* Hairline editorial grid — quietly visible, gives texture without colour */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  position: relative;
  z-index: 1;
}

.hero-mid { overflow: hidden; }

.hero-name {
  font-size: clamp(3rem, 10vw, 8.5rem);
  font-weight: 500;             /* Alcyone Medium — first name */
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.hero-name em {
  font-style: normal;            /* upright — weight contrast carries the hierarchy */
  font-weight: 900;              /* Alcyone Black */
  color: var(--fg);
  letter-spacing: -0.04em;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--fg);  /* thicker editorial rule, ink not muted */
}

.hero-title {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-sub {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-rise 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.45s; }

@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .hero-foot { flex-direction: column; align-items: flex-start; }
}

/* ─── Metrics strip ──────────────────────────────────────────────────────── */
.metrics-strip {
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  overflow: hidden;
  background: var(--bg);
}
.metrics-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 700px) { .metrics-inner { grid-template-columns: 1fr 1fr; } }

.metric {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--border);
  position: relative;
}
.metric:last-child { border-right: none; }

.metric-n {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 700;              /* Alcyone Bold — solid presence without brick */
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 0.6rem;
}
.metric-l {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg2);
  line-height: 1.5;
  display: block;
}
.metric-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ─── About + Profile Snapshot (shared treatment) ────────────────────────── */
.about-layout,
.answer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 700px) {
  .about-layout,
  .answer-layout { grid-template-columns: 1fr; }
}

/* Tagline-style headings on About + Snapshot — sized to fit two-line statements */
#about .s-heading,
.answer-section .s-heading {
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.15;
}

.about-lead,
.answer-copy > p:first-child {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--fg);
  margin-bottom: 1rem;
}

.about-copy,
.answer-copy {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
}
.about-copy p + p,
.answer-copy p + p { margin-top: 0.9rem; color: var(--fg2); }

/* ─── Profile answers ───────────────────────────────────────────────────── */
.answer-section {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--faint) 18%, transparent), transparent 42%),
    var(--bg);
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.answer-item {
  background: var(--bg);
  padding: clamp(1.35rem, 2.5vw, 2rem);
}

.answer-item h3 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.answer-item p {
  color: var(--fg2);
  font-size: 0.88rem;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .answer-layout { grid-template-columns: 1fr; }
  .answer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .answer-grid { grid-template-columns: 1fr; }
}

/* ─── Experience ─────────────────────────────────────────────────────────── */
.exp { padding-block: clamp(2rem, 4vw, 3rem); }
.exp-rule {
  height: 1px;
  background: var(--border);
}

.exp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.exp-company {
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  line-height: 1.2;
}
.exp-role {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
  font-weight: 500;
}

.exp-meta {
  text-align: right;
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.exp-list li {
  font-size: clamp(0.88rem, 1.4vw, 0.95rem);
  color: var(--fg2);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.65;
}
.exp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 1px;
  background: var(--gold);
}
.exp-list strong { color: var(--fg); font-weight: 600; }

@media (max-width: 600px) {
  .exp-head { flex-direction: column; gap: 0.5rem; }
  .exp-meta { text-align: left; }
}

/* ─── Skills ─────────────────────────────────────────────────────────────── */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 700px) { .skill-groups { grid-template-columns: 1fr; } }

.skill-group {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
}

.skill-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.skill-list {
  font-size: 0.88rem;
  color: var(--fg2);
  line-height: 1.8;
}

/* ─── Credentials ────────────────────────────────────────────────────────── */
.creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);          /* match skills: subtle hairlines, not ink */
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 900px) { .creds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .creds { grid-template-columns: 1fr; } }

.cred {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0;                              /* manage spacing per element so cards align */
  min-height: 17rem;                   /* uniform card height across the grid */
}

.cred-type {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 1.25rem;
}
.cred-name {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 600;                    /* Alcyone SemiBold — system weight */
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 0.4rem;
}
.cred-sub {
  font-size: 0.76rem;
  color: var(--muted);
  min-height: 1.4rem;                  /* always reserves a line so footer aligns */
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}
.cred-inst {
  font-size: 0.82rem;
  color: var(--fg2);
  font-weight: 500;
}
.cred-year {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg2);
  margin-top: auto;                    /* push footer block to bottom */
  padding-top: 1.5rem;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cred-grade {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 0.4rem;
  line-height: 1.3;
  min-height: 1rem;                    /* uniform footer regardless of grade text */
}
.cred-note {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
  line-height: 1.3;
}

/* ─── Contact ────────────────────────────────────────────────────────────── */
.contact-heading {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;                    /* Alcyone Light — matches s-heading */
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.contact-heading em {
  font-style: italic;
  font-weight: 700;                    /* Alcyone Bold Italic */
  color: var(--fg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 700px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-intro p {
  color: var(--fg2);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.contact-intro .c-link-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 1.5rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.contact-intro .c-link-row:hover { opacity: 0.7; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* ─── Brand page extras ──────────────────────────────────────────────────── */
.brand-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
}

.brand-swatch {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  border: 1px solid var(--border);
}

.swatch-item { font-size: 0.75rem; }
.swatch-hex { font-weight: 600; color: var(--fg); margin-bottom: 0.1rem; font-variant-numeric: tabular-nums; }
.swatch-name { color: var(--muted); }

.type-specimen {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fg);
  padding-block: 1.5rem;
  border-top: 1px solid var(--fg);
}

.voice-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.voice-col { background: var(--bg); padding: 1.25rem 1.5rem; }
.voice-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.voice-tag.good { color: #4ade80; }
.voice-tag.bad  { color: #f87171; }

[data-theme="light"] .voice-tag.good { color: #15803d; }
[data-theme="light"] .voice-tag.bad  { color: #b91c1c; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .voice-tag.good { color: #15803d; }
  :root:not([data-theme="dark"]) .voice-tag.bad  { color: #b91c1c; }
}
.voice-col p { font-size: 0.9rem; color: var(--fg2); line-height: 1.6; }

@media (max-width: 500px) { .voice-pair { grid-template-columns: 1fr; } }

.brand-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.brand-table th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}
.brand-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg2);
  vertical-align: top;
}
.brand-table td:first-child { color: var(--fg); font-weight: 500; }

.mono {
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--fg);
  background: var(--faint);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

/* ─── Brand page layout components ───────────────────────────────────────── */
.brand-hero {
  min-height: 60svh;
  display: flex;
  align-items: center;
  padding-block: clamp(8rem, 15vw, 12rem) clamp(4rem, 8vw, 6rem);
}

.brand-hero h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-block: 1.5rem;
}
.brand-hero h1 em { font-style: normal; font-weight: 900; color: var(--fg); letter-spacing: -0.04em; }

.brand-hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-hero > .container > p:last-of-type {
  color: var(--fg2);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.brand-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.brand-toc a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.brand-toc a:hover { color: var(--fg); border-color: var(--gold-dim); }

.brand-section {
  padding-block: var(--section-py);
  border-top: 1px solid var(--border);
}

.brand-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 700px) { .brand-grid-2 { grid-template-columns: 1fr; } }

.brand-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 700px) { .brand-grid-3 { grid-template-columns: 1fr; } }

.brand-cell {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
}

.brand-cell-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.brand-cell-val {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.brand-cell-val em { font-style: normal; font-weight: 900; color: var(--fg); }
.brand-cell p:last-child { font-size: 0.82rem; color: var(--fg2); line-height: 1.6; }

.monogram {
  font-family: var(--font-sans);
  font-size: clamp(6rem, 16vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
}

/* ─── Palette row ────────────────────────────────────────────────────────── */
.palette-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.25rem;
}

.palette-cell { display: flex; flex-direction: column; }

.palette-swatch {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  border: 1px solid var(--border);
}

.palette-meta { font-size: 0.75rem; }
.palette-name { font-weight: 600; color: var(--fg); margin-bottom: 0.15rem; }
.palette-hex { font-variant-numeric: tabular-nums; color: var(--fg2); margin-bottom: 0.1rem; }
.palette-role { color: var(--muted); font-size: 0.7rem; }

/* ─── Type row ───────────────────────────────────────────────────────────── */
.type-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 700px) { .type-row { grid-template-columns: 1fr; } }

.type-cell {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.type-meta {
  font-size: 0.78rem;
  color: var(--fg2);
  line-height: 1.65;
}
.type-meta strong { color: var(--fg); font-weight: 600; display: block; margin-bottom: 0.3rem; }

/* ─── Spacing demo ──────────────────────────────────────────────────────── */
.spacing-demo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.spacing-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1rem;
  align-items: center;
}
@media (max-width: 600px) { .spacing-row { grid-template-columns: 1fr 1fr; } }

.spacing-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg2);
}

.spacing-bar-wrap {
  height: 6px;
  background: var(--faint);
  border-radius: 3px;
  overflow: hidden;
}

.spacing-bar {
  height: 100%;
  background: var(--fg);
  border-radius: 3px;
  opacity: 0.7;
}

.spacing-val {
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ─── Component row ──────────────────────────────────────────────────────── */
.comp-row {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.comp-item { display: flex; flex-direction: column; gap: 1rem; }

.comp-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.comp-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.comp-note {
  font-size: 0.8rem;
  color: var(--fg2);
  line-height: 1.65;
}
.comp-note strong { color: var(--fg); font-weight: 600; }

/* ─── Contact link (brand page component demo) ───────────────────────────── */
.c-link {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  transition: background 0.2s ease;
  text-decoration: none;
}
.c-link:hover { background: var(--faint); }
.c-link:hover .c-arr { color: var(--gold); transform: translate(3px, -3px); }

.c-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.c-val {
  font-size: 0.9rem;
  color: var(--fg);
  font-weight: 500;
}
.c-arr {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

/* ─── Brand footer extra ─────────────────────────────────────────────────── */
.f-loc {
  font-size: 0.75rem;
  color: var(--muted);
}
.f-brand-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  transition: opacity 0.2s ease;
}
.f-brand-link:hover { opacity: 0.7; }

/* ─── Blog index / tag list page ─────────────────────────────────────────── */
.blog-container {
  padding-top: clamp(6rem, 12vw, 10rem);
  padding-bottom: var(--section-py);
}

.blog-header {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.blog-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.blog-header p {
  color: var(--fg2);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  max-width: 50ch;
}

.blog-tags-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  transition: opacity var(--dur-fast) ease;
}
.blog-tags-link:hover { opacity: 0.7; }

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.blog-item {
  background: var(--bg);
}

.blog-item-link {
  display: block;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  transition: background var(--dur-fast) ease;
}
.blog-item-link:hover { background: var(--faint); }

.blog-item-link time {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.blog-item-link h2 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.blog-item-link p {
  font-size: 0.88rem;
  color: var(--fg2);
  line-height: 1.6;
}

.blog-item-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

/* Tag index */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border2);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg2);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.tag-chip:hover { border-color: var(--gold); color: var(--gold); }
.tag-chip span { color: var(--muted); font-size: 0.75rem; }

.blog-empty {
  color: var(--fg2);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg2);
}
.blog-empty a { color: var(--gold); text-decoration: underline; text-underline-offset: 0.2em; }

/* ─── Post page shell ────────────────────────────────────────────────────── */
.post-container {
  padding-top: clamp(6rem, 12vw, 10rem);
  padding-bottom: var(--section-py);
  max-width: 800px;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.post-breadcrumb a {
  color: var(--fg2);
  transition: color var(--dur-fast) ease;
}
.post-breadcrumb a:hover { color: var(--gold); }

.post-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.post-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.post-meta time { font-weight: 600; }
.post-reading-time { color: var(--fg2); }
.post-byline { color: var(--fg2); }
.post-updated { color: var(--gold-dim); font-weight: 500; }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border2);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fg2);
  letter-spacing: 0.02em;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.post-tag:hover { border-color: var(--gold); color: var(--gold); }

/* TOC */
.post-toc {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  background: var(--faint);
}
.post-toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
}
.post-toc li + li { margin-top: 0.3rem; }
.post-toc a {
  font-size: 0.85rem;
  color: var(--fg2);
  transition: color var(--dur-fast) ease;
}
.post-toc a:hover { color: var(--gold); }

/* Footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.post-nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg2);
  transition: color var(--dur-fast) ease;
}
.post-nav-link:hover { color: var(--gold); }
.post-nav-next { margin-left: auto; }

.post-back {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  transition: opacity var(--dur-fast) ease;
}
.post-back:hover { opacity: 0.7; }

/* ─── Long-form reading rules ────────────────────────────────────────────── */
.prose {
  max-width: 70ch;
  line-height: 1.8;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--fg2);
}

.prose > * + * { margin-top: 1.5rem; }

.prose h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--fg);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--fg);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.prose p { margin-top: 1.25rem; }
.prose p:first-child { margin-top: 0; }

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) ease;
}
.prose a:hover { color: var(--gold-dim); }

.prose strong { color: var(--fg); font-weight: 600; }
.prose em { font-style: italic; }

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-top: 1rem;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5rem; }
.prose li { line-height: 1.7; }

.prose blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin-left: 0;
  color: var(--fg2);
  font-style: italic;
}

.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--faint);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--fg);
}

.prose pre {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

.prose pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.prose dl {
  margin-top: 1.5rem;
}
.prose dt {
  font-weight: 600;
  color: var(--fg);
  margin-top: 1rem;
}
.prose dd {
  margin-left: 1.5rem;
  color: var(--fg2);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}
.prose th,
.prose td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}
.prose th {
  background: var(--faint);
  font-weight: 600;
  color: var(--fg);
}

.prose hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ─── Shiki dual-theme bridge ────────────────────────────────────────────── */
.shiki,
.shiki span {
  color: var(--shiki-dark);
  background-color: var(--shiki-dark-bg);
}

[data-theme="light"] .shiki,
[data-theme="light"] .shiki span {
  color: var(--shiki-light);
  background-color: var(--shiki-light-bg);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .shiki,
  :root:not([data-theme="dark"]) .shiki span {
    color: var(--shiki-light);
    background-color: var(--shiki-light-bg);
  }
}

.shiki {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ─── Print styles ───────────────────────────────────────────────────────── */
@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }

  body::after,
  .nav-header,
  .theme-btn,
  .nav-burger,
  .site-footer,
  .skip-link,
  .hero-dot {
    display: none !important;
  }

  .hero-anim {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  a { color: inherit; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }

  @page { margin: 1.5cm; }
}
