/* erdalerdas.com prototype: shared template for every page.
   Layout: sticky header (name left, menu right), page header band, content in a 1200px column, footer.
   Light-only by Erdal's choice; every color is a token below. */
:root {
  --paper: #F4F3F2;          /* page */
  --surface: #FFFFFF;        /* panels, code */
  --hero: #E4EAEB;           /* map band, thumbnails */
  --ink: #181A1B;            /* text 15.8:1 */
  --muted: #5D6467;          /* secondary text 5.4:1 */
  --line: #4A6A73;           /* map dots, role line */
  --accent: #157A8A;         /* fills, underlines, focus */
  --accent-ink: #0F6574;     /* accent used as text: 6.0:1 on paper, 5.5:1 on hero */
  --rule: #D5D9DA;           /* dividers (decorative) */
  --control: #848D91;        /* borders that identify a control: 3.1:1 */
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-head: var(--font);  /* headings; the prototype's font picker can set a different face */
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .15s; --t: .25s;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Skip link */
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--ink); color: #FFFFFF; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; transition: top var(--t-fast); }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color var(--t); }
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 10px; flex-wrap: wrap; }
.logo { font-weight: 600; font-size: 19px; text-decoration: none; letter-spacing: -.01em; min-height: 44px; display: inline-flex; align-items: center; }
.right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { position: relative; text-decoration: none; font-size: 16px; color: var(--muted); transition: color var(--t-fast); display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
.main-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.main-nav a[aria-current] { font-weight: 500; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font: 500 15px var(--font); color: var(--ink); background: none; border: 1px solid var(--control); border-radius: var(--radius); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.lang { display: flex; list-style: none; margin: 0; padding: 0; font-size: 14px; border: 1px solid var(--control); border-radius: var(--radius); overflow: hidden; }
.lang a { text-decoration: none; min-height: 36px; min-width: 42px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: background var(--t-fast), color var(--t-fast); }
.lang a[aria-current] { background: var(--ink); color: #FFFFFF; }
.lang a:not([aria-current]):hover { color: var(--accent-ink); background: var(--hero); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font: 500 16px var(--font); text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.btn.primary { background: var(--ink); color: #FFFFFF; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }

.text-link { color: var(--accent-ink); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Page header band (every page except home) */
.page-head { background: var(--hero); border-bottom: 1px solid var(--rule); }
.page-head .wrap { padding-block: 56px 44px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--accent-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.page-head .lead { margin: 0; max-width: 60ch; color: var(--muted); font-size: 19px; }

.section { padding-block: 56px; }
.section + .section { border-top: 1px solid var(--rule); }
h2 { font-size: 26px; font-weight: 600; line-height: 1.25; margin: 0 0 18px; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 44px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

/* Home hero */
.hero { position: relative; background: var(--hero); height: clamp(400px, 64vh, 620px); height: clamp(400px, 64svh, 620px); overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .title { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; pointer-events: none;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.panel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; max-width: 100%; pointer-events: auto;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 5vw, 60px); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 18px 50px -24px rgba(15, 42, 49, .35); }
.panel h1 { margin: 0; font-weight: 300; font-size: clamp(36px, 7vw, 80px); line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: #0F2A31; }
.panel .role { margin: 0; font-size: clamp(13px, 1.6vw, 16px); letter-spacing: .2em; text-transform: uppercase; color: var(--line); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

.intro { text-align: center; padding-block: 64px 56px; }
.intro p { max-width: 46ch; margin: 0 auto 14px; }
.intro .hi { font-size: 22px; font-weight: 500; }

/* Tags: plain labels, not controls (no hover state on purpose) */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 14px; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 12px; background: var(--surface); }
.intro .tags { justify-content: center; margin-top: 22px; }

/* Cards */
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.row-head h2 { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; border-radius: var(--radius); }
.thumb { aspect-ratio: 3 / 2; max-width: 100%; overflow: hidden; background: var(--hero); border-radius: var(--radius); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s, opacity .4s, transform .6s var(--ease); }
@media (hover: hover) {
  .card .thumb img { filter: grayscale(1); opacity: .85; }
  .card:hover .thumb img, .card:focus-visible .thumb img { filter: none; opacity: 1; transform: scale(1.04); }
}
.card .meta { font-size: 13px; letter-spacing: .03em; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 6px; }
.card h3 { margin: 0; font-size: 21px; font-weight: 500; line-height: 1.3; transition: color var(--t-fast); text-wrap: balance; }
.card:hover h3 { color: var(--accent-ink); }
.card p { margin: 0; font-size: 16px; color: var(--muted); }
.card[hidden] { display: none !important; }

/* Filters (Projects) */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 32px; padding: 0; list-style: none; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--control); background: var(--surface); color: var(--ink); font: 500 15px var(--font); cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.chip:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.result-count { font-size: 15px; color: var(--muted); margin: -16px 0 24px; font-variant-numeric: tabular-nums; }
.empty { padding: 32px; border: 1px dashed var(--control); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* Fact list (About, project detail) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px 28px; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--rule); }
.facts dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 17px; font-weight: 500; }
.facts .mono { font-family: var(--mono); font-size: 15px; }

/* Two-column (About) */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.aside { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 28px; position: sticky; top: 96px; }
.aside h2 { font-size: 18px; margin-bottom: 14px; }
.aside .facts { grid-template-columns: 1fr; border-top: 0; padding-top: 0; gap: 14px; }
.aside .btn { width: 100%; margin-top: 22px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline .when { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline h3 { font-size: 18px; margin: 0 0 2px; }
.timeline p { margin: 0; font-size: 16px; color: var(--muted); }

.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.skills h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; margin-bottom: 12px; }

/* Figures, code */
figure { margin: 32px 0; }
figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--hero); }
figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
.codeblock { position: relative; margin: 24px 0; }
pre { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; overflow-x: auto; font: 14.5px/1.6 var(--mono); }
code { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--hero); padding: 2px 6px; border-radius: 4px; }
.copy { position: absolute; top: 8px; right: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--control); border-radius: var(--radius); background: var(--paper); font: 500 13px var(--font); color: var(--ink); cursor: pointer; }
.copy:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

/* Prev / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; background: var(--surface); transition: border-color var(--t-fast); }
.pager a:hover { border-color: var(--accent); }
.pager span { font-size: 14px; color: var(--muted); }
.pager strong { font-weight: 500; }
.pager .next { text-align: right; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.gallery button { all: unset; display: block; cursor: zoom-in; border-radius: var(--radius); width: 100%; }
.gallery button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gallery .thumb { aspect-ratio: 3 / 2; }
.gallery .cap { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-top: 8px; }
.gallery .cap span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .gallery img { filter: grayscale(1); opacity: .85; }
  .gallery button:hover img, .gallery button:focus-visible img { filter: none; opacity: 1; transform: scale(1.03); }
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(14, 22, 26, .82); }
.lightbox .box { background: var(--paper); border-radius: 10px; overflow: hidden; }
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; background: var(--hero); }
.lightbox .bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.lightbox .bar p { margin: 0; flex: 1; min-width: 0; font-size: 16px; }
.lightbox .bar button { min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--control); border-radius: var(--radius); background: var(--surface); font: 500 15px var(--font); cursor: pointer; }
.lightbox .bar button:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

/* Blog list */
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { border-top: 1px solid var(--rule); }
.posts li:last-child { border-bottom: 1px solid var(--rule); }
.posts a { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 26px 0; text-decoration: none; }
.posts time { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.posts h3 { margin: 0 0 6px; font-size: 21px; font-weight: 500; transition: color var(--t-fast); }
.posts a:hover h3 { color: var(--accent-ink); }
.posts p { margin: 0 0 10px; color: var(--muted); font-size: 16px; }
.post-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--muted); margin-top: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.contact-card h2 { font-size: 18px; margin: 0; }
.contact-card .value { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; user-select: all; }
.contact-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.contact-card .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* Headings use their own token so a pairing can be tried */
h1, h2, h3, .logo, .panel h1 { font-family: var(--font-head); }
/* Small data labels (years, tools, dates, fact titles) can take a label face, e.g. a monospace */
.card .meta, .posts time, .timeline .when, .facts dt, .panel .role, .gallery .cap span:last-child, .post-meta { font-family: var(--font-label, var(--font)); }

/* Prototype-only font picker (not part of the real site) */
.fontpick { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 35;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--control); border-radius: 10px; padding: 8px 10px 8px 14px; box-shadow: 0 10px 30px -14px rgba(15, 42, 49, .45);
  font: 500 14px/1.2 system-ui, "Segoe UI", sans-serif; }
.fontpick label { color: var(--muted); }
.fontpick select { min-height: 40px; max-width: 62vw; padding: 0 10px; border: 1px solid var(--control); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 500 14px system-ui, "Segoe UI", sans-serif; cursor: pointer; }
.fontpick button { min-height: 40px; min-width: 40px; border: 1px solid var(--control); border-radius: var(--radius); background: var(--paper); cursor: pointer; font: 500 14px system-ui, sans-serif; color: var(--ink); }
.fontpick.min select, .fontpick.min label span { display: none; }

/* Draft marker */
.draft { font-size: 13px; color: var(--muted); }
.placeholder { background: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--accent) 10%, transparent) 6px 12px); border-radius: 3px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; z-index: 40; background: var(--ink); color: #FFFFFF; padding: 12px 18px; border-radius: var(--radius); font-size: 15px; pointer-events: none; transition: opacity var(--t), transform var(--t) var(--ease); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: 40px; }
.site-footer .wrap { padding-block: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.site-footer ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.site-footer a:hover { color: var(--accent-ink); }

@media (max-width: 1000px) {
  .cards, .gallery, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .aside { position: static; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .right { display: contents; }
  .site-header .wrap { gap: 10px; row-gap: 0; }
  .logo { margin-right: auto; }
  .lang { order: 1; }
  .menu-btn { order: 2; }
  .main-nav { order: 3; flex-basis: 100%; }
  .main-nav ul { display: none; flex-direction: column; gap: 0; padding-block: 6px 12px; }
  .main-nav.open ul { display: flex; }
  .main-nav a { padding: 0; font-size: 18px; }
  .main-nav a::after { left: 0; right: auto; width: 32px; }
}
@media (max-width: 620px) {
  .cards, .gallery, .contact-grid, .skills { grid-template-columns: minmax(0, 1fr); }
  .timeline li, .posts a { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .page-head .wrap { padding-block: 40px 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ===================== v2 =====================
   Type: Inter Tight for headings (built for display sizes), Inter for text.
   Hero: name left-aligned, solid weight, normal spacing; map sits to the right and fades out under the text.
   Colour: three versions switched with <html data-variant="a|b|c">:
     A  one paper tone everywhere (calmest)
     B  dark ink-teal hero and footer bracket a light page
     C  hero runs paper -> pale sea, like a depth tint; footer repeats the sea tone */
:root {
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-head: "Inter Tight", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-label: var(--font);
  /* variant tokens, A by default */
  --band-bg: var(--paper);            /* hero + page-head background (may be a gradient) */
  --band-ink: var(--ink);
  --band-muted: var(--muted);
  --band-accent: var(--accent-ink);
  --band-rule: var(--rule);
  --dot: #8E9DA2;
  --dot-hot: var(--accent);
  --foot-bg: var(--paper);
  --foot-ink: var(--ink);
  --foot-muted: var(--muted);
  --foot-rule: var(--rule);
  --foot-link-hover: var(--accent-ink);
}
:root[data-variant="b"] {
  --band-bg: #0F2A31;
  --band-ink: #FFFFFF;
  --band-muted: #B9CDD1;
  --band-accent: #7FD0DC;
  --band-rule: #24434B;
  --dot: #3F6770;
  --dot-hot: #7FD0DC;
  --foot-bg: #0F2A31;
  --foot-ink: #FFFFFF;
  --foot-muted: #B9CDD1;
  --foot-rule: #24434B;
  --foot-link-hover: #7FD0DC;
}
:root[data-variant="c"] {
  --band-bg: linear-gradient(180deg, #F4F3F2 0%, #E8F0F0 50%, #D3E5E6 100%);
  --band-muted: #4F5D61;
  --dot: #6F8F97;
  --foot-bg: #DCEAEA;
  --foot-muted: #4A5559;
  --foot-rule: #C2D6D7;
}

h1, h2, h3, .logo { font-family: var(--font-head); letter-spacing: -.01em; }

/* Hero v2 */
.hero { height: auto; min-height: clamp(460px, 68svh, 640px); background: var(--band-bg); color: var(--band-ink); display: flex; align-items: center; border-bottom: 1px solid var(--band-rule); }
.hero canvas { -webkit-mask-image: linear-gradient(90deg, transparent 26%, #000 58%); mask-image: linear-gradient(90deg, transparent 26%, #000 58%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-block: 64px; }
.hero-text { max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.eyebrow { margin: 0; font-size: 17px; font-weight: 500; color: var(--band-accent); }
.hero h1 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(48px, 7.2vw, 92px); line-height: .98; letter-spacing: -.02em; color: var(--band-ink); text-transform: none; }
.hero-lede { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--band-muted); max-width: 32ch; }
.hero .hero-actions { margin-top: 8px; justify-content: flex-start; }
.hero-tags { margin-top: 10px; }
.hero-tags li { background: transparent; border-color: var(--band-rule); color: var(--band-muted); }
:root[data-variant="b"] .hero .btn.primary { background: #FFFFFF; border-color: #FFFFFF; color: #0F2A31; }
:root[data-variant="b"] .hero .btn.primary:hover { background: #7FD0DC; border-color: #7FD0DC; }
:root[data-variant="b"] .hero .btn.ghost { border-color: #B9CDD1; color: #FFFFFF; }
:root[data-variant="b"] .hero .btn.ghost:hover { border-color: #7FD0DC; color: #7FD0DC; }
:root[data-variant="b"] .hero :focus-visible, :root[data-variant="b"] .site-footer :focus-visible, :root[data-variant="b"] .page-head :focus-visible { outline-color: #7FD0DC; }

/* Inner page heads follow the band colours */
.page-head { background: var(--band-bg); border-bottom: 1px solid var(--band-rule); color: var(--band-ink); }
.page-head .lead, .page-head .post-meta { color: var(--band-muted); }
.page-head .crumbs { color: var(--band-muted); }
.page-head .crumbs a { color: var(--band-accent); }

/* Footer v2 */
.site-footer { background: var(--foot-bg); color: var(--foot-ink); border-top: 1px solid var(--foot-rule); margin-top: 72px; }
.site-footer .wrap { display: block; padding-block: 48px 28px; color: inherit; font-size: 16px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot-name { font-family: var(--font-head); font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.foot-id p:not(.foot-name) { color: var(--foot-muted); margin: 0 0 14px; max-width: 36ch; }
.foot-label { font-size: 13px; font-weight: 500; color: var(--foot-muted); margin: 0 0 6px; }
.site-footer ul { display: flex; flex-direction: column; gap: 0; }
.site-footer a { padding: 0; min-height: 40px; color: inherit; }
.site-footer a:hover { color: var(--foot-link-hover); }
.foot-mail { font-weight: 500; text-decoration: underline !important; text-underline-offset: 4px; text-decoration-color: var(--foot-rule) !important; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--foot-rule); font-size: 14px; color: var(--foot-muted); }
.foot-base .draft { color: inherit; font-size: inherit; }

/* Version switcher (prototype tool) */
.variantpick { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 35; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: calc(100vw - 32px);
  background: #FFFFFF; color: #181A1B; border: 1px solid var(--control); border-radius: 10px; padding: 6px 6px 6px 12px; box-shadow: 0 10px 30px -14px rgba(15, 42, 49, .45); font: 500 14px/1.2 system-ui, "Segoe UI", sans-serif; }
.variantpick span { color: #5D6467; margin-right: 4px; }
.variantpick button { min-height: 40px; padding: 0 12px; border: 1px solid var(--control); border-radius: var(--radius); background: #F4F3F2; color: #181A1B; font: 500 14px system-ui, "Segoe UI", sans-serif; cursor: pointer; }
.variantpick button[aria-pressed="true"] { background: #181A1B; color: #FFFFFF; border-color: #181A1B; }

@media (max-width: 860px) {
  .hero { align-items: flex-start; min-height: 620px; }
  .hero canvas { -webkit-mask-image: linear-gradient(180deg, transparent 52%, #000 80%); mask-image: linear-gradient(180deg, transparent 52%, #000 80%); }
  .hero-inner { padding-block: 40px 260px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-id { grid-column: 1 / -1; }
}
:root { --readout-bg: #FFFFFF; }
:root[data-variant="b"] { --readout-bg: #0F2A31; }
.hero-text > * { max-width: 100%; }
.hero-tags { align-self: stretch; }
.timeline .org { color: var(--ink); font-size: 15px; margin: 0 0 4px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 500; letter-spacing: 0; margin-right: 4px; }
[hidden] { display: none !important; }

/* Blog: categories and post states */
.posts a { grid-template-columns: 170px minmax(0, 1fr); }
.post-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 3px; }
.cat { display: inline-block; font-size: 13px; font-weight: 500; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; }
.cat-cbs { color: #0F6574; }
.cat-kent { color: #8A4B1F; }
.cat-gundelik { color: #5A4A8A; }
.post-state, .posts time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-meta-line { font-size: 14px !important; margin: 0 !important; }
.page-head .cat { color: #7FD0DC; }
.draft-banner { margin: 0 0 24px; padding: 10px 14px; border: 1px dashed var(--control); border-radius: var(--radius); font-size: 15px; color: var(--muted); }
@media (max-width: 620px) { .post-side { flex-direction: row; align-items: center; } }
