/*
 * Lennon Stolk — site styles
 * Built on the "Lennon Stolk" design system: tokens, then components (ls-*), then page layout.
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=JetBrains+Mono:wght@400;600&family=Space+Grotesk:wght@600;700&display=swap");

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --surface: #FFF8EE;
  --surface-raised: #FFFFFF;
  --ink: #1A1714;
  --ink-muted: #5E564C;
  --line: #E6DCCB;
  --brand: #FF5A36;
  --brand-text: #C2361A;
  --sun: #FFC93C;
  --mint: #2EC4A6;
  --on-accent: #1A1714;
  --danger: #C62828;

  --shadow-pop: 4px 4px 0 0 var(--ink);
  --shadow-pop-lg: 6px 6px 0 0 var(--ink);
  --shadow-pop-sm: 2px 2px 0 0 var(--ink);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --page-width: 1040px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #15130F;
    --surface-raised: #221F1A;
    --ink: #F7F1E6;
    --ink-muted: #B5AC9F;
    --line: #3A352D;
    --brand: #FF6B4A;
    --brand-text: #FF8466;
    --mint: #3DD6B6;
    --danger: #FF7A7A;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #15130F;
  --surface-raised: #221F1A;
  --ink: #F7F1E6;
  --ink-muted: #B5AC9F;
  --line: #3A352D;
  --brand: #FF6B4A;
  --brand-text: #FF8466;
  --mint: #3DD6B6;
  --danger: #FF7A7A;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: var(--font-sans); font-size: 16px; line-height: 24px;
  background: var(--surface); color: var(--ink);
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; }
a { color: var(--brand-text); }
::selection { background: var(--sun); color: var(--on-accent); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--page-width); margin: 0 auto; padding: 0 var(--gutter); }
.page { flex: 1; padding: 56px 0 96px; }
.section { margin-top: 80px; }
.section:first-child { margin-top: 0; }
.section-spaced { margin-top: 128px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.section-head .ls-section-title { margin: 0; }
.section-link { font-family: var(--font-display); font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.section-link:hover { color: var(--brand-text); }
.page-intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); max-width: 720px; margin-bottom: 56px; }
.page-title { font-size: 64px; line-height: 64px; letter-spacing: -.03em; }
.page-title .hl { background: var(--sun); color: var(--on-accent); padding: 0 .12em; border-radius: var(--radius-sm); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { margin: 0; font-size: 20px; line-height: 30px; color: var(--ink-muted); }
.back-link { display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-6); font-weight: 600; font-size: 14px; color: var(--ink-muted); text-decoration: none; }
.back-link:hover { color: var(--brand-text); }
.stack-lg { display: flex; flex-direction: column; gap: 56px; }

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .page { padding: 32px 0 72px; }
  .section { margin-top: 56px; }
  .section-spaced { margin-top: 88px; }
  .page-title { font-size: 44px; line-height: 46px; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 2px solid var(--ink); }
.site-header-inner { display: flex; align-items: center; gap: var(--space-6); min-height: 68px; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark-dot { color: var(--brand); }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1; padding: 10px 14px; border: 2px solid transparent; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; }
.site-nav a:hover { border-color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--sun); color: var(--on-accent); border-color: var(--ink); box-shadow: var(--shadow-pop-sm); }
.site-nav a:focus-visible, .theme-toggle:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; }
.theme-toggle { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: var(--surface-raised); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-pop-sm); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.theme-toggle:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop); }
.theme-toggle:active { transform: translate(2px, 2px); box-shadow: none; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

@media (max-width: 720px) {
  .site-header-inner { flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding-top: var(--space-4); padding-bottom: var(--space-2); }
  .theme-toggle { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 0 -14px; overflow-x: auto; }
  .site-nav a { padding: 10px 12px; font-size: 15px; white-space: nowrap; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--ink); background: var(--ink); color: var(--surface); }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-8); padding-bottom: var(--space-8); }
.site-footer .wordmark { color: var(--surface); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--surface); font-weight: 600; font-size: 14px; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--sun); }
.footer-note { width: 100%; margin: 0; font-size: 13px; line-height: 16px; opacity: .7; }

/* ---------- Button ---------- */
.ls-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1;
  height: 44px; padding: 0 var(--space-6);
  border: 2px solid var(--ink); border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ls-btn-sm { height: 36px; padding: 0 var(--space-4); font-size: 14px; box-shadow: var(--shadow-pop-sm); }
.ls-btn-primary { background: var(--brand); color: var(--on-accent); }
.ls-btn-secondary { background: var(--surface-raised); color: var(--ink); }
.ls-btn-ghost { background: transparent; color: var(--ink); border-color: transparent; box-shadow: none; }
.ls-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop-lg); }
.ls-btn-sm:hover { box-shadow: var(--shadow-pop); }
.ls-btn:active { transform: translate(2px, 2px); box-shadow: var(--shadow-pop-sm); }
.ls-btn-sm:active { transform: translate(2px, 2px); box-shadow: none; }
.ls-btn-ghost:hover { transform: none; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ls-btn-ghost:active { transform: none; box-shadow: none; }
.ls-btn:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; }

/* ---------- Tag ---------- */
.ls-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 600;
  padding: 4px 10px;
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  white-space: nowrap;
}
.ls-tag-neutral { background: var(--surface-raised); color: var(--ink); }
.ls-tag-brand { background: var(--brand); color: var(--on-accent); }
.ls-tag-sun { background: var(--sun); color: var(--on-accent); }
.ls-tag-mint { background: var(--mint); color: var(--on-accent); }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Card ---------- */
.ls-card {
  display: flex; flex-direction: column;
  background: var(--surface-raised); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  overflow: hidden; text-decoration: none;
}
.ls-card-link { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.ls-card-link:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop-lg); }
.ls-card-link:active { transform: translate(2px, 2px); box-shadow: var(--shadow-pop-sm); }
.ls-card-link:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; }
.ls-card-band { min-height: var(--space-4); padding: var(--space-4) var(--space-6); border-bottom: 2px solid var(--ink); color: var(--on-accent); }
.ls-card-band:empty { padding: 0; min-height: var(--space-4); }
.ls-card-band-brand { background: var(--brand); }
.ls-card-band-sun { background: var(--sun); }
.ls-card-band-mint { background: var(--mint); }
.ls-card-eyebrow { display: block; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ls-card-eyebrow-plain { color: var(--ink-muted); margin-bottom: var(--space-2); }
.ls-card-body { padding: var(--space-6); }
.ls-card-title { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); }
.ls-card-content { margin-top: var(--space-2); font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.ls-card-content p { margin: 0; }
.ls-card-footer { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding: var(--space-4) var(--space-6); border-top: 2px solid var(--line); margin-top: auto; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-8) var(--space-6); align-items: stretch; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.card-grid-2 > .card-wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .card-grid-2 { grid-template-columns: 1fr; } }

/* ---------- GameCard ---------- */
.ls-game-cover { position: relative; aspect-ratio: 16 / 9; border-bottom: 2px solid var(--ink); overflow: hidden; background: var(--brand); }
.ls-game-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ls-card-link:hover .ls-game-cover img { transform: scale(1.03); }
.ls-game-status { position: absolute; top: var(--space-4); left: var(--space-4); box-shadow: var(--shadow-pop-sm); }
.card-wide .ls-game-cover { aspect-ratio: 21 / 9; }
@media (max-width: 720px) { .card-wide .ls-game-cover { aspect-ratio: 16 / 9; } }

/* ---------- Meta ---------- */
.ls-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.ls-meta-dot { opacity: .6; }

/* ---------- PostCard ---------- */
.ls-post .ls-meta { margin-bottom: var(--space-2); }
.ls-post-featured .ls-card-title { font-size: 28px; line-height: 34px; }

/* ---------- PostHeader ---------- */
.ls-post-header { max-width: 720px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.ls-post-header-title { margin: 0; font-family: var(--font-display); font-size: 48px; line-height: 52px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.ls-post-header-lede { margin: 0; font-size: 20px; line-height: 30px; color: var(--ink-muted); }
.ls-byline { display: flex; align-items: center; gap: var(--space-4); padding-top: var(--space-2); }
.ls-byline-name { display: block; font-weight: 600; font-size: 15px; line-height: 20px; color: var(--ink); }
.ls-avatar { width: 44px; height: 44px; flex: none; border-radius: var(--radius-pill); border: 2px solid var(--ink); background: var(--brand); object-fit: cover; box-shadow: var(--shadow-pop-sm); }
@media (max-width: 720px) { .ls-post-header-title { font-size: 36px; line-height: 40px; } }

/* ---------- Prose ---------- */
.ls-prose { max-width: 680px; font-size: 18px; line-height: 30px; color: var(--ink); }
.ls-prose > * { margin: 0 0 var(--space-6); }
.ls-prose > *:last-child { margin-bottom: 0; }
.ls-prose h2 { font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 700; margin-top: 56px; }
.ls-prose h3 { font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; margin-top: var(--space-8); margin-bottom: var(--space-2); }
.ls-prose a { color: var(--brand-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; border-radius: 3px; }
.ls-prose a:hover { background: var(--sun); color: var(--on-accent); text-decoration-color: var(--on-accent); }
.ls-prose a:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 2px; }
.ls-prose strong { font-weight: 700; }
.ls-prose ul, .ls-prose ol { padding-left: var(--space-6); }
.ls-prose li { margin-bottom: var(--space-2); }
.ls-prose li::marker { color: var(--brand-text); font-weight: 700; }
.ls-prose blockquote { position: relative; margin-left: 0; margin-right: 0; padding: var(--space-2) 0 0 56px; font-family: var(--font-display); font-size: 22px; line-height: 32px; font-weight: 600; }
.ls-prose blockquote::before { content: "C"; position: absolute; left: 0; top: -8px; font-size: 80px; line-height: 1; color: var(--brand); font-family: var(--font-display); }
.ls-prose blockquote p { margin: 0; }
.ls-prose code { font-family: var(--font-mono); font-size: .85em; padding: 2px 6px; border-radius: var(--radius-sm); background: var(--line); color: var(--ink); }
.ls-prose pre { font-family: var(--font-mono); font-size: 14px; line-height: 22px; padding: var(--space-4) var(--space-6); background: var(--surface-raised); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); overflow-x: auto; }
.ls-prose pre code { padding: 0; background: none; font-size: inherit; }
.ls-prose hr { border: 0; height: 8px; width: 96px; background: var(--brand); border-radius: var(--radius-pill); margin: 56px auto; }
.ls-prose .cols { columns: 2; column-gap: var(--space-8); }
@media (max-width: 560px) { .ls-prose .cols { columns: 1; } }

/* Figures inside posts can break out of the 680px text column. */
.figure { margin: var(--space-8) 0; }
.figure-wide { width: min(880px, calc(100vw - 2 * var(--gutter))); }
.figure-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.figure-row.uneven { grid-template-columns: 1fr 2fr; }
@media (max-width: 560px) { .figure-row, .figure-row.uneven { grid-template-columns: 1fr; } }
.figure img, .figure video { display: block; width: 100%; border: 2px solid var(--ink); border-radius: var(--radius-md); background: var(--surface-raised); }
.figure-plain img { background: #FFFFFF; }
.figure.narrow { max-width: 440px; }
.figure figcaption { margin-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.zoomable { cursor: zoom-in; }

/* ---------- Callout ---------- */
.ls-callout { position: relative; margin: var(--space-8) 0; padding: var(--space-6) var(--space-6) var(--space-4); background: var(--surface-raised); border: 2px solid var(--ink); border-radius: var(--radius-md); font-size: 16px; line-height: 24px; color: var(--ink); max-width: 680px; }
.ls-callout-label { position: absolute; top: -14px; left: var(--space-4); box-shadow: var(--shadow-pop-sm); }
.ls-callout-body > :first-child { margin-top: 0; }
.ls-callout-body > :last-child { margin-bottom: 0; }
.ls-callout ul { margin: var(--space-2) 0 0; padding-left: var(--space-6); }

/* ---------- shared ---------- */
.ls-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.ls-section-title { margin: 0 0 var(--space-6); font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 700; color: var(--ink); }

/* ---------- GameHero ---------- */
.ls-game-hero { display: flex; flex-direction: column; gap: var(--space-8); }
.ls-game-hero-media { aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); overflow: hidden; background: var(--brand); }
.ls-game-hero-media > * { display: block; width: 100%; height: 100%; object-fit: cover; }
.ls-game-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); max-width: 720px; }
.ls-game-hero-text .page-title { margin-top: var(--space-2); }
.tagline { margin: 0; font-size: 20px; line-height: 30px; color: var(--ink-muted); font-style: italic; }

/* ---------- GameFacts ---------- */
.ls-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 2px; background: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-pop); }
.ls-fact { flex: 1 1 150px; background: var(--surface-raised); padding: var(--space-4) var(--space-6); }
.ls-fact dt { display: block; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.ls-fact dd { margin: 6px 0 0; font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ink); }

/* ---------- Project body: text + sidebar ---------- */
.project-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.project-aside { display: flex; flex-direction: column; gap: var(--space-6); position: sticky; top: 100px; }
.project-aside iframe { display: block; width: 100%; border: 2px solid var(--ink); border-radius: var(--radius-md); background: var(--surface-raised); }
@media (max-width: 880px) {
  .project-body { grid-template-columns: 1fr; gap: var(--space-8); }
  .project-aside { position: static; }
}
.aside-title { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-2); font-family: var(--font-sans); }

/* ---------- Gallery ---------- */
.ls-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.ls-shot { margin: 0; }
.ls-shot-wide { grid-column: 1 / -1; }
.ls-shot-frame { aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-raised); }
.ls-shot-frame > * { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.ls-shot-frame.contain { background: #15130F; }
.ls-shot-frame.contain > img { object-fit: contain; }
.ls-shot-frame.pixel > img { image-rendering: pixelated; }
.ls-shot-caption { margin-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
@media (max-width: 560px) { .ls-gallery { grid-template-columns: 1fr; } }

/* ---------- Contributions ---------- */
.ls-contrib-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-6) var(--space-8); counter-reset: contrib; }
.ls-contrib-list.single { grid-template-columns: 1fr; }
.ls-contrib-item { display: grid; grid-template-columns: 52px 1fr; gap: var(--space-4); align-items: start; }
.ls-contrib-num { font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 700; color: var(--brand-text); letter-spacing: -.02em; }
.ls-contrib-title { margin: 4px 0 0; font-family: var(--font-display); font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink); }
.ls-contrib-title a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ls-contrib-title a:hover { color: var(--brand-text); }
.ls-contrib-detail { margin: 4px 0 0; font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.ls-contrib-detail ul { margin: 0; padding-left: 18px; }


/* ---------- AboutIntro ---------- */
.ls-about { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.ls-about-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.ls-about-role { margin: -4px 0 16px; font-family: var(--font-display); font-size: 22px; line-height: 30px; font-weight: 600; color: var(--brand-text); }
.ls-about-bio { font-size: 18px; line-height: 30px; color: var(--ink); max-width: 620px; }
.ls-about-bio p { margin: 0 0 var(--space-4); }
.ls-about-bio p:last-child { margin-bottom: 0; }
.ls-about-bio a { color: var(--brand-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ls-about-photo-wrap { position: relative; margin: 0; padding-top: 76px; }
.ls-about-photo { position: relative; display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: var(--radius-md); box-shadow: 20px 20px 0 0 var(--brand), 20px 20px 0 2px var(--ink); }
.ls-about-photo-wrap figcaption { position: relative; margin-top: 40px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.ls-about-photo-wrap figcaption a { color: inherit; text-decoration: none; cursor: default; }
@media (max-width: 800px) {
  .ls-about { grid-template-columns: 1fr; gap: var(--space-8); }
  .ls-about-photo-wrap { order: -1; width: 200px; padding-top: 0; }
  .ls-about-photo { box-shadow: 12px 12px 0 0 var(--brand), 12px 12px 0 2px var(--ink); }
  .ls-about-photo-wrap figcaption { margin-top: 28px; }
}

/* ---------- ContactLinks ---------- */
.ls-contact { display: flex; flex-direction: column; gap: var(--space-4); }
#contact { margin-bottom: 200px; }
.ls-contact-email { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.ls-contact-address { font-family: var(--font-display); font-size: 28px; line-height: 36px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 5px; word-break: break-all; }
.ls-contact-address:hover { color: var(--brand-text); }
.ls-contact-address:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 4px; border-radius: 4px; }
.ls-contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ls-contact-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-raised); color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-pop-sm); transition: transform .12s ease, box-shadow .12s ease; }
.ls-contact-link:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop); }
.ls-contact-link:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; }
.ls-contact-mono { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--on-accent); }
.ls-contact-mono svg { width: 18px; height: 18px; }
.ls-contact-mono-brand { background: var(--brand); }
.ls-contact-mono-sun { background: var(--sun); }
.ls-contact-mono-mint { background: var(--mint); }
.ls-contact-label { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.ls-contact-label strong { font-size: 15px; line-height: 20px; color: var(--ink); }
.ls-contact-label span { white-space: nowrap; }
.ls-contact-arrow { margin-left: auto; font-size: 16px; font-weight: 700; }
.copy-status { font-size: 14px; font-weight: 600; color: var(--ink-muted); min-height: 20px; }
@media (max-width: 560px) { .ls-contact-address { font-size: 22px; line-height: 30px; } }

/* ---------- Timeline ---------- */
.ls-timeline { list-style: none; margin: 0; padding: 0; max-width: 840px; }
.ls-tl-item { display: grid; grid-template-columns: 148px 32px 1fr; column-gap: var(--space-4); }
.ls-tl-period { padding-top: 4px; text-align: right; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); }
.ls-tl-rail { position: relative; display: flex; justify-content: center; }
.ls-tl-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.ls-tl-item:first-child .ls-tl-rail::before { top: 8px; }
.ls-tl-item:last-child .ls-tl-rail::before { bottom: auto; height: 8px; }
.ls-tl-node { position: relative; margin-top: 4px; width: 20px; height: 20px; border-radius: var(--radius-pill); border: 2px solid var(--ink); background: var(--surface-raised); }
.ls-tl-node-brand { background: var(--brand); }
.ls-tl-node-sun { background: var(--sun); }
.ls-tl-node-mint { background: var(--mint); }
.ls-tl-current .ls-tl-node { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--ink); }
.ls-tl-body { padding-bottom: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.ls-tl-item:last-child .ls-tl-body { padding-bottom: 0; }
.ls-tl-title { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; }
.ls-tl-meta { margin-top: -4px; }
.ls-tl-period-inline { display: none; }
.ls-tl-content { font-size: 16px; line-height: 24px; color: var(--ink); }
.ls-tl-content p { margin: 0; }
.ls-tl-content a { color: var(--brand-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ls-tl-stack { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: 4px; }
@media (max-width: 600px) {
  .ls-tl-item { grid-template-columns: 24px 1fr; column-gap: var(--space-4); }
  .ls-tl-period { display: none; }
  .ls-tl-period-inline { display: inline; }
}
.legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: 0 0 var(--space-8); padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.legend .ls-tl-node { margin: 0; width: 16px; height: 16px; }

/* ---------- SkillGroup ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-8); }
.ls-skills { display: flex; flex-direction: column; gap: var(--space-2); }
.ls-skills-title { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ink); }
.ls-skills-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: 4px; }

/* ---------- Code snippets ---------- */
.snippet-index { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 56px; padding: 0; list-style: none; }
.snippet-index a { text-decoration: none; }
.snippet-index a:hover .ls-tag { background: var(--sun); color: var(--on-accent); }
.snippet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8) 48px; align-items: start; padding-top: 56px; border-top: 2px solid var(--line); scroll-margin-top: 96px; }
.snippet:first-of-type { border-top: 0; padding-top: 0; }
.snippet + .snippet { margin-top: 56px; }
.snippet-text { display: flex; flex-direction: column; gap: var(--space-4); }
.snippet-text h2 { font-size: 28px; line-height: 34px; }
.snippet-text .ls-prose { font-size: 16px; line-height: 26px; }
.snippet-text .ls-prose > * { margin-bottom: var(--space-4); }
.snippet-text a { color: var(--brand-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.snippet-code { position: relative; }
.code-frame { position: relative; max-height: 520px; overflow: hidden; border: 2px solid var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); background: #1E1E1E; }
.code-frame img { display: block; width: 100%; }
.code-frame.is-open { max-height: none; }
.code-frame-toggle { position: absolute; left: 50%; bottom: var(--space-4); transform: translateX(-50%); }
.code-frame-toggle:hover { transform: translate(calc(-50% - 2px), -2px); }
.code-frame-toggle:active { transform: translate(calc(-50% + 2px), 2px); }
.code-frame.is-open .code-frame-toggle { position: static; transform: none; margin: var(--space-4) auto; display: flex; }
.code-lang { position: absolute; top: -12px; right: var(--space-4); z-index: 1; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 600; padding: 2px 8px; background: var(--ink); color: var(--surface); border-radius: var(--radius-sm); }
@media (max-width: 880px) { .snippet { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 56px var(--gutter) var(--gutter); background: rgba(21, 19, 15, .88); cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border: 2px solid #F7F1E6; border-radius: var(--radius-md); background: #FFFFFF; cursor: default; }
.lightbox-close { position: absolute; top: var(--space-4); right: var(--space-4); }

/* ---------- Project extras ---------- */
.controls { margin: 0; display: grid; gap: var(--space-2); }
.controls > div { display: flex; align-items: baseline; gap: var(--space-4); }
.controls dt { flex: none; min-width: 72px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.controls dd { margin: 0; color: var(--ink-muted); }
.fact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fact-list li { display: flex; align-items: center; gap: 10px; }
.fact-list li::before { content: ""; flex: none; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: var(--radius-pill); background: var(--brand); }
.ls-fact:has(.fact-list) { flex: 2 1 240px; }

/* Tabs (Ervaring). Without JS the tablist stays hidden and every panel shows with its own heading. */
.ls-tabbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-bottom: 40px; padding-bottom: var(--space-6, 24px); border-bottom: 1px solid var(--line); }
.ls-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2) 25px; }
.ls-tabbar-cv { margin-left: auto; }
.ls-tab { position: relative; }
.ls-tab + .ls-tab::before { content: ""; position: absolute; left: -15px; top: 6px; bottom: 6px; width: 1px; background: var(--line); pointer-events: none; }
.ls-tabs[hidden] { display: none; }
.ls-tab { height: 40px; padding: 0 var(--space-4); font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); background: var(--surface-raised); border: 2px solid var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-pop-sm); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.ls-tab:hover { transform: translate(-1px, -1px); }
.ls-tab[aria-selected="true"] { background: var(--sun); color: var(--on-accent); }
.ls-tab:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; }
.tab-panel + .tab-panel { margin-top: 80px; }
.tabs-ready .tab-panel + .tab-panel { margin-top: 0; }
.tabs-ready .tab-panel[hidden] { display: none; }
.tabs-ready .tab-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
