/* netanelzeevi.com
   Design: the Apple direction ChatGPT proposed (6.10.2026), on our static site.
   Quiet white surfaces, one blue action colour, system fonts, translucency only where it does a job. */

:root {
  /* Global tokens */
  --white: #FFFFFF;
  --gray-50: #F5F5F7;
  --ink: #1D1D1F;
  --ink-soft: #646469;
  --line-gray: #D2D2D7;
  --blue: #0066CC;
  --blue-press: #005BB5;

  /* Role tokens: components use these */
  --color-bg: var(--white);
  --color-surface: var(--white);
  --color-raised: var(--gray-50);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-soft);
  --color-border: var(--line-gray);
  --color-accent: var(--blue);
  --color-accent-press: var(--blue-press);
  --color-on-accent: var(--white);
  --color-action: var(--blue);
  --color-action-press: var(--blue-press);
  --color-thumb: #ECECEF;
  --shadow-color: 29, 29, 31;
  --color-todo: rgba(210, 210, 215, .55);
  --glass: rgba(250, 250, 252, .86);
  --glass-edge: rgba(255, 255, 255, .9);
  --scene-text: #FFFFFF;
  --scene-muted: #E4E7EB;
  --scene-scrim: linear-gradient(270deg, rgba(14, 21, 29, .9), rgba(14, 21, 29, .66) 48%, rgba(14, 21, 29, .12));
  --scene-scrim-phone: linear-gradient(0deg, rgba(14, 21, 29, .94), rgba(14, 21, 29, .65) 60%, rgba(14, 21, 29, .25));

  /* Type: the device's own fonts (San Francisco on Apple, Segoe on Windows). Big text tighter, small text looser */
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body: var(--font-display);
  --text-xs: .8125rem;                                  /* 13 meta, nav */
  --text-sm: 1rem;                                      /* 16 cards, buttons */
  --text-md: 1.0625rem;                                 /* 17 body */
  --text-lg: 1.25rem;                                   /* 20 intros */
  --text-xl: 1.5rem;                                    /* 24 card titles, article h2 */
  --text-2xl: clamp(2.25rem, 1.6rem + 2.6vw, 4rem);     /* 36-64 section titles */
  --text-3xl: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);      /* 40-64 page titles */
  --text-hero: clamp(3rem, 1rem + 6.8vw, 6rem);         /* 48-96 the name */
  --leading-tight: 1.05;
  --leading-snug: 1.15;
  --leading-body: 1.65;
  --leading-read: 1.8;

  /* Space: 4px base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 88px;
  --section: clamp(56px, 7vw, 88px);

  /* Layout */
  --container: 72rem;
  --margin: clamp(20px, 4vw, 32px);
  --gutter: clamp(16px, 2vw, 24px);
  --measure: 38ch;
  --header-h: 6.25rem;

  /* Shape and motion */
  --radius-sm: .875rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-pill: 999px;
  --line: 1px;
  --dur: .2s;
}

:root { color-scheme: light; }

/* Dark mode: soft greys, not black. Follows the device until the visitor picks light or dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --color-bg: #1C1C1E;
  --color-surface: #2C2C2E;
  --color-raised: #232326;
  --color-text: #ECECEF;
  --color-text-muted: #A5A5AB;
  --color-border: #3A3A3D;
  --color-accent: #5AA9FF;
  --color-action: #0071E3;
  --color-action-press: #0077ED;
  --color-thumb: #3A3A3D;
  --color-todo: rgba(165, 165, 171, .22);
  --glass: rgba(44, 44, 46, .74);
  --glass-edge: rgba(255, 255, 255, .08);
  --shadow-color: 0, 0, 0;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-bg: #1C1C1E;
  --color-surface: #2C2C2E;
  --color-raised: #232326;
  --color-text: #ECECEF;
  --color-text-muted: #A5A5AB;
  --color-border: #3A3A3D;
  --color-accent: #5AA9FF;
  --color-action: #0071E3;
  --color-action-press: #0077ED;
  --color-thumb: #3A3A3D;
  --color-todo: rgba(165, 165, 171, .22);
  --glass: rgba(44, 44, 46, .74);
  --glass-edge: rgba(255, 255, 255, .08);
  --shadow-color: 0, 0, 0;
  color-scheme: dark;
}

/* Accessibility menu */
html.a11y-size-1 { font-size: 112.5%; }
html.a11y-size-2 { font-size: 125%; }
html.a11y-size-3 { font-size: 140%; }
html.a11y-contrast { --color-text-muted: var(--color-text); --color-border: #6E6E73; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: var(--leading-snug); text-wrap: balance; }
p, figure, ul, ol, blockquote { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: .28em; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--color-action); color: var(--color-on-accent); }

.container { width: min(var(--container), 100% - 2 * var(--margin)); margin-inline: auto; }
.narrow { width: min(680px, 100% - 2 * var(--margin)); margin-inline: auto; }
.todo { background: var(--color-todo); outline: 1.5px dashed var(--color-text-muted); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; inset-inline-start: var(--space-4); top: -100px; z-index: 60;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--color-text); color: var(--color-surface); text-decoration: none;
}
.skip:focus { top: var(--space-3); }

/* The one filled action per view */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 12px 28px; border-radius: var(--radius-pill);
  background: var(--color-action); color: var(--color-on-accent);
  font-size: var(--text-sm); font-weight: 500; text-decoration: none;
  transition: background-color 120ms ease-out;
}
.button:hover { background: var(--color-action-press); }
.button:active { background: var(--color-action-press); transform: scale(.97); transition: none; }
.button { transition: background-color 120ms ease-out, transform 160ms ease-out; }
.icon { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon .fill { fill: currentColor; stroke: none; }

.text-button {
  background: none; border: 0; padding: var(--space-1);
  text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: .28em;
}

/* Header: a floating translucent bar, content scrolls under it */
.site-header { position: sticky; top: 1rem; z-index: 30; margin-block: 1rem; }
.site-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  min-height: 4.25rem; padding: .5rem 1.5rem; isolation: isolate; overflow: hidden;
  background: var(--glass); border: var(--line) solid var(--glass-edge); border-radius: 1.5rem;
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 .5rem 2rem rgba(var(--shadow-color), .07);
}
.wordmark { font-size: 1.125rem; font-weight: 650; letter-spacing: -.02em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; font-size: var(--text-xs); font-weight: 550; letter-spacing: .01em; }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-accent); }

/* Light / dark button */
.site-bar__end { display: flex; align-items: center; gap: 1.25rem; }
.theme-toggle {
  flex: none; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; padding: 0;
  color: var(--color-bg); background: var(--color-text); border: 0; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(var(--shadow-color), .18);
  transition: transform 160ms ease-out;
}
.theme-toggle:hover { background: var(--color-accent); color: #fff; }
.theme-toggle:active { transform: scale(.94); transition: none; }
.theme-toggle .icon { width: 1.25rem; height: 1.25rem; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.cs .theme-toggle {
  position: fixed; top: 2.25rem; left: 2.25rem; z-index: 20;
  color: #fff; background: rgba(14, 21, 29, .62); border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.cs .theme-toggle:hover { background: rgba(14, 21, 29, .8); }

/* Switching light and dark fades over the page instead of a hard flash */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, stroke .45s ease !important;
}

/* Hero: the name and the photo together, one action */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 19rem); align-items: center;
  gap: clamp(2rem, 7vw, 6rem); max-width: 66rem; padding: 4rem 2rem 5.5rem;
}
.eyebrow { font-size: 1.0625rem; font-weight: 550; letter-spacing: .005em; color: var(--color-text-muted); }
.hero__name { margin-block: 1rem 1.75rem; font-size: var(--text-hero); line-height: var(--leading-tight); letter-spacing: -.045em; font-weight: 700; }
.hero__intro { max-width: var(--measure); font-size: var(--text-lg); line-height: 1.65; color: var(--color-text-muted); text-wrap: pretty; }
.hero__sub { margin-top: var(--space-3); max-width: var(--measure); font-size: var(--text-md); color: var(--color-text-muted); }
.hero__sub a { color: var(--color-text); }
.hero__action { margin-top: 2rem; }
.portrait {
  width: 100%; max-width: 19rem; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--color-raised); box-shadow: 0 1.5rem 3.5rem rgba(var(--shadow-color), .1);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.portrait--empty { display: grid; place-items: center; padding: var(--space-5); text-align: center; color: var(--color-text-muted); }

/* Scenes: the blurred stage photo in a rounded card, darkened behind white text (about and coming soon) */
.scene {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  width: min(82rem, 100% - 3rem); margin-inline: auto; border-radius: var(--radius-lg); color: var(--scene-text);
}
.scene__img {
  position: absolute; inset: -1%; z-index: -2; width: 102%; height: 102%; max-width: none;
  object-fit: cover; object-position: var(--focus); filter: blur(4px); transform: scale(1.025);
}
.scene::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--scene-scrim); }
.scene__copy { padding: 5rem; max-width: 45rem; }
.scene .todo { background: rgba(255, 255, 255, .14); outline-color: rgba(255, 255, 255, .6); }
.about { min-height: 39rem; margin-bottom: 5rem; }
.about h2 { margin-bottom: 2rem; font-size: var(--text-2xl); line-height: 1.1; font-weight: 650; letter-spacing: -.02em; }
.about__body { font-size: var(--text-lg); line-height: 1.75; max-width: 46ch; font-weight: 500; }
.about__body > * + * { margin-top: 1em; }

/* Guides band */
.band { background: var(--color-raised); }
.latest { padding-block: 5rem; }
.section-head { margin-bottom: 2.5rem; }
.latest h2, .contact h2, .related h2 { font-size: var(--text-2xl); line-height: 1.1; font-weight: 650; letter-spacing: -.02em; }
.latest__empty { max-width: var(--measure); color: var(--color-text-muted); }
.latest__more { margin-top: var(--space-7); display: flex; justify-content: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.card { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; }
.listing .card, .related .card { box-shadow: 0 0 0 1px var(--color-border); }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card__link:focus-visible { outline-offset: -3px; border-radius: var(--radius-lg); }
.card__link:hover .card__title { color: var(--color-accent); }
.card__thumb {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: var(--color-raised); font-size: var(--text-xs); color: var(--color-text-muted);
}
.listing .card__thumb, .related .card__thumb { background: var(--color-raised); }
.band .card__thumb { background: var(--color-thumb); }
.card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__play { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--color-surface); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(var(--shadow-color), .12); }
.icon-play { width: 16px; height: 16px; fill: var(--color-accent); }
.card__body { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; padding: 1.5rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag, .draft {
  display: inline-flex; align-items: center; padding: 2px 10px;
  font-size: var(--text-xs); font-weight: 550; line-height: 1.5;
  background: var(--color-raised); border-radius: var(--radius-pill);
}
.draft { background: none; border: 1px dashed var(--color-text-muted); color: var(--color-text-muted); }
.card__title { font-size: var(--text-xl); line-height: 1.25; font-weight: 650; letter-spacing: -.01em; transition: color var(--dur); }
.card__excerpt { flex: 1; font-size: var(--text-sm); line-height: 1.6; color: var(--color-text-muted); }
.card__date { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Contact */
.contact { padding-block: 5.5rem; text-align: center; }
.contact__text { margin: 1.5rem auto 0; max-width: 36ch; font-size: 1.125rem; color: var(--color-text-muted); }
.contact__mail { margin-top: 1rem; font-size: var(--text-lg); }
.contact__mail a { color: var(--color-accent); text-decoration: none; font-weight: 550; }
.contact__mail a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--color-raised); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6);
  padding-block: 1.5rem calc(1.5rem + 56px); font-size: var(--text-xs); color: var(--color-text-muted);
}
.site-footer__group { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--color-text); text-decoration: underline; }

/* All guides */
.listing { padding-block: clamp(56px, 8vw, 96px) var(--section); }
.listing h1, .legal h1 { font-size: var(--text-3xl); line-height: var(--leading-tight); }
.search { position: relative; margin-top: var(--space-6); }
.search input {
  width: 100%; padding: 18px 56px 18px 20px; padding-inline: 56px 20px;
  font: inherit; font-size: var(--text-lg); color: var(--color-text);
  background: var(--color-surface); border: var(--line) solid var(--color-border); border-radius: var(--radius-md);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--color-text-muted); }
.search input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(47, 111, 237, .25); }
.search__icon {
  position: absolute; inset-inline-start: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%);
  fill: none; stroke: var(--color-text-muted); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.chip {
  min-height: 40px; padding: 6px 16px; font-size: var(--text-sm);
  background: var(--color-surface); border: var(--line) solid var(--color-border); border-radius: var(--radius-pill);
  transition: border-color var(--dur);
}
.chip:hover { border-color: var(--color-accent); }
.chip[aria-pressed="true"] { background: var(--color-action); border-color: var(--color-action); color: var(--color-on-accent); }
.listing__count { margin-top: var(--space-6); font-size: var(--text-xs); color: var(--color-text-muted); }
.listing .cards { margin-top: var(--space-4); }
.empty {
  margin-top: var(--space-4); padding: var(--space-9) var(--space-5); text-align: center;
  border: var(--line) dashed var(--color-border); border-radius: var(--radius-md);
}
.empty__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.empty .text-button { margin-top: var(--space-3); }

/* Article */
.post__head { padding-top: clamp(40px, 6vw, 72px); }
.back { display: inline-flex; gap: 6px; font-size: var(--text-sm); text-decoration: none; }
.back:hover { text-decoration: underline; }
.notice {
  margin-top: var(--space-5); padding: 10px 14px; font-size: var(--text-xs);
  background: var(--color-surface); border: var(--line) solid var(--color-border); border-radius: var(--radius-sm);
}
.notice--draft { border-style: dashed; border-color: var(--color-text-muted); }
.post h1 { margin-top: var(--space-5); font-size: var(--text-3xl); line-height: 1.15; }
.post__meta {
  margin-top: var(--space-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5);
  font-size: var(--text-xs); color: var(--color-text-muted);
}
.post__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); color: var(--color-text); }

.video { width: min(880px, 100% - 2 * var(--margin)); margin: var(--space-7) auto 0; }
.video__poster, .video iframe, .video__missing { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; }
.video--vertical .video__poster, .video--vertical iframe, .video--vertical .video__missing { width: min(100%, 340px); aspect-ratio: 9 / 16; margin-inline: auto; }
.video__poster {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3);
  background: var(--color-border); text-decoration: none;
}
.video__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__play { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--color-surface); display: grid; place-items: center; }
.video__play .icon-play { width: 22px; height: 22px; }
.video__label { position: relative; padding: 2px 12px; font-size: var(--text-xs); background: var(--color-surface); border-radius: var(--radius-pill); }
.video iframe { border: 0; background: var(--color-text); }
.video__missing {
  display: grid; place-items: center; padding: var(--space-5); text-align: center;
  font-size: var(--text-sm); color: var(--color-text-muted);
  border: 1.5px dashed var(--color-text-muted);
}

.prose { margin-top: var(--space-8); line-height: var(--leading-read); }
.legal .prose { margin-top: var(--space-6); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: var(--text-xl); }
.prose h3, .prose h4 { margin-top: 1.6em; font-size: var(--text-lg); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li > ul, .prose li > ol { margin-top: .4em; }
.prose blockquote { padding-inline-start: var(--space-5); border-inline-start: 3px solid var(--color-accent); }
.prose hr { border: 0; border-top: var(--line) solid var(--color-border); }
.prose figure img { border: var(--line) solid var(--color-border); border-radius: 14px; }
.prose figcaption { margin-top: 10px; font-size: var(--text-xs); color: var(--color-text-muted); }
.prose :not(pre) > code {
  padding: .1em .35em; font-family: ui-monospace, Menlo, monospace; font-size: .88em;
  background: var(--color-surface); border: var(--line) solid var(--color-border); border-radius: 6px;
}
.prompt { overflow: hidden; background: var(--color-surface); border: var(--line) solid var(--color-border); border-radius: 14px; }
.prompt__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-2) var(--space-4); padding-inline-end: var(--space-2);
  border-bottom: var(--line) solid var(--color-border); font-size: var(--text-xs); color: var(--color-text-muted);
}
.prompt__copy {
  min-height: 32px; padding: 4px 14px; font-size: var(--text-xs);
  background: none; border: var(--line) solid var(--color-border); border-radius: var(--radius-pill);
  transition: border-color var(--dur);
}
.prompt__copy:hover { border-color: var(--color-accent); }
.prompt pre { margin: 0; padding: 18px 20px; white-space: pre-wrap; font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.8; }
.prompt pre code { font: inherit; }

.related { margin-top: var(--section); padding-block: var(--space-8) var(--section); border-top: var(--line) solid var(--color-border); }
.related .back { margin-top: var(--space-6); }

/* Legal pages and 404 */
.legal { padding-block: clamp(56px, 8vw, 96px) var(--section); }
.legal__updated { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-text-muted); }
.lead { margin-top: var(--space-4); color: var(--color-text-muted); }
.notfound__links { margin-top: var(--space-5); display: flex; gap: var(--space-5); }

/* Accessibility menu and cookie notice */
.a11y-toggle {
  position: fixed; left: 20px; bottom: 20px; z-index: 40;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--color-text); border: 0; border-radius: 50%;
}
.a11y-toggle svg { width: 26px; height: 26px; fill: none; stroke: var(--color-surface); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a11y-toggle svg .fill { fill: var(--color-surface); stroke: none; }
.a11y-panel {
  position: fixed; left: 20px; bottom: 80px; z-index: 40; width: min(300px, 100vw - 40px);
  display: flex; flex-direction: column; gap: var(--space-2); padding: 18px;
  background: var(--color-surface); border: var(--line) solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(26, 26, 26, .12); font-size: var(--text-sm);
}
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.a11y-panel__head button { width: 40px; height: 40px; background: none; border: 0; font-size: 1.5rem; line-height: 1; }
.a11y-panel__size { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-2); border-bottom: var(--line) solid var(--color-border); }
.a11y-panel__size span:last-child { display: flex; gap: 6px; }
.a11y-panel__size button { width: 44px; height: 44px; background: var(--color-surface); border: var(--line) solid var(--color-border); border-radius: var(--radius-sm); }
.a11y-switch {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  min-height: 44px; padding: 10px 12px; text-align: start;
  background: var(--color-surface); border: var(--line) solid var(--color-border); border-radius: var(--radius-sm);
}
.a11y-switch[aria-pressed="true"] { background: var(--color-text); border-color: var(--color-text); color: var(--color-surface); }
.a11y-panel__theme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: var(--space-2); border-bottom: var(--line) solid var(--color-border); }
.a11y-panel__theme button { min-height: 40px; background: var(--color-surface); border: var(--line) solid var(--color-border); border-radius: var(--radius-sm); font-size: var(--text-xs); }
.a11y-panel__theme button[aria-pressed="true"] { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.a11y-panel__foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-1); font-size: var(--text-xs); }
.a11y-panel__foot button { background: none; border: 0; padding: var(--space-1) 0; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: .28em; }

.cookie {
  position: fixed; left: 80px; bottom: 20px; z-index: 39; width: min(420px, 100vw - 100px);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: 18px 20px;
  background: var(--color-surface); border: var(--line) solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(26, 26, 26, .1); font-size: var(--text-xs); line-height: 1.6;
}
.cookie__actions { display: flex; gap: var(--space-2); }
.cookie button { min-height: 40px; padding: 6px 22px; background: none; border: 1.5px solid var(--color-text); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 500; }
.cookie button:hover { background: var(--color-text); color: var(--color-surface); }
.link-button {
  padding: 0; background: none; border: 0; font: inherit; color: inherit; text-align: start;
  text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: .28em;
}

/* Accessibility, privacy and cookies: small floating windows (bottom sheet on phones) */
.sheet {
  width: min(560px, 100vw - 32px); max-height: min(80vh, 720px); padding: 0;
  color: var(--color-text); background: var(--color-surface);
  border: var(--line) solid var(--color-border); border-radius: 20px;
  box-shadow: 0 24px 64px rgba(26, 26, 26, .18); overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .22s ease-out; }
.sheet::backdrop { background: rgba(26, 26, 26, .35); }
.sheet__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) var(--space-5); border-bottom: var(--line) solid var(--color-border);
}
.sheet__head h2 { font-size: var(--text-lg); }
.sheet__close {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--color-bg); border: var(--line) solid var(--color-border); border-radius: 50%;
  font-size: 1.375rem; line-height: 1;
}
.sheet__close:hover { border-color: var(--color-accent); }
.sheet__body { overflow-y: auto; padding: var(--space-4) var(--space-5) var(--space-6); font-size: var(--text-sm); line-height: 1.75; }
.sheet .sheet__body { margin-top: 0; }
.sheet__body > * + * { margin-top: .9em; }
.sheet__body h2 { margin-top: 1.5em; font-size: var(--text-md); }
.sheet__updated { font-size: var(--text-xs); color: var(--color-text-muted); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Coming soon: the scene card fills the screen, legal links under it */
.cs__main { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; gap: var(--space-4); padding: 1.5rem 0 var(--space-4); }
.cs__scene { flex: 1; min-height: 32rem; }
.cs__title { font-size: clamp(2.75rem, 1rem + 6vw, 6rem); font-weight: 650; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.cs__title[dir="ltr"] { text-align: right; font-size: clamp(3.5rem, 1rem + 7.5vw, 7.5rem); line-height: 1; white-space: nowrap; }
.cs .scene__copy { max-width: none; }
.cs__text { margin-top: 1.5rem; max-width: 36ch; font-size: 1.125rem; line-height: 1.8; color: var(--scene-muted); }
.cs .button { margin-top: 2rem; }
.cs__legal {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  width: min(82rem, 100% - 3rem); margin-inline: auto; padding-inline: 1rem 64px; font-size: var(--text-xs); color: var(--color-text-muted);
}
.cs__legal a { text-decoration: none; }
.cs__legal a:hover { color: var(--color-text); text-decoration: underline; }

@media (max-width: 1100px) {
  .hero { padding-inline: 1rem; gap: 3rem; grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem); }
  .scene__copy { padding: 3.5rem; }
}

/* Phones: the name and the photo stay side by side */
@media (max-width: 760px) {
  :root { --radius-lg: 1.5rem; --text-hero: clamp(2.5rem, 9.6vw, 4.25rem); --text-lg: 1.0625rem; --header-h: 5rem; }
  .site-header { top: .5rem; margin-block: .5rem; }
  .site-bar { min-height: 3.75rem; padding: .25rem 1rem; gap: 1rem; border-radius: 1.25rem; }
  .wordmark { font-size: 1rem; }
  .site-nav { gap: 1rem; font-size: .75rem; }
  .site-nav a:first-child { display: none; }
  .hero { grid-template-columns: 1.15fr .85fr; gap: 1rem 1.25rem; padding: 2.5rem 0 3rem; }
  .hero__copy { display: contents; }
  .eyebrow { grid-column: 1; grid-row: 1; align-self: end; font-size: .875rem; }
  .hero__name { grid-column: 1; grid-row: 2; align-self: start; margin: 0; line-height: 1.08; }
  .hero:not(:has(.eyebrow)) .hero__name { grid-row: 1 / 3; align-self: center; }
  .portrait { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end; max-width: 11rem; border-radius: 1.25rem; }
  .hero__intro { grid-column: 1 / -1; grid-row: 3; margin-top: .5rem; max-width: none; }
  .hero__sub { grid-column: 1 / -1; grid-row: 4; margin-top: 0; max-width: none; }
  .hero__action { grid-column: 1 / -1; grid-row: 5; justify-self: start; margin-top: .5rem; }
  .scene { width: calc(100% - 1.5rem); align-items: flex-end; }
  .scene::after { background: var(--scene-scrim-phone); }
  .scene__img { object-position: 20% 50%; }
  .scene__copy { padding: 3rem 1.5rem; }
  .about { min-height: 36rem; margin-bottom: 3rem; }
  .about h2 { font-size: 2.75rem; margin-bottom: 1.5rem; }
  .latest { padding-block: 3.5rem; }
  .contact { padding-block: 4rem; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .cs__main { padding-top: .75rem; }
  .cs__scene { min-height: 0; }
  .cs__legal { width: calc(100% - 1.5rem); }
  .cs .theme-toggle { top: 1.5rem; left: 1.5rem; }
  .cs__title[dir="ltr"] { white-space: normal; }
}

@media (max-width: 760px) {
  .sheet { inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 85vh; max-height: 85svh; border-radius: 20px 20px 0 0; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Translucency only when the device allows it */
@media (prefers-reduced-transparency: reduce) {
  .site-bar { background: var(--color-raised); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --color-text-muted: var(--ink); --scene-muted: var(--scene-text); }
  .site-bar { background: var(--color-surface); border-color: var(--color-text); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
html.a11y-contrast .site-bar { background: var(--color-surface); border-color: var(--color-text); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.a11y-contrast { --scene-muted: var(--scene-text); }
html.a11y-contrast .scene::after { background: rgba(14, 21, 29, .92); }
