/* netanelzeevi.com
   Design: the Apple direction (6.10.2026) in its original colours (white, #F5F5F7, #1D1D1F, blue #0066CC),
   and the Assistant font (decision 48). Palette D cream is for reels, carousels and animations, not the site.
   Translucency only where it does a job. */

/* Assistant, self-hosted (SIL Open Font License 1.1, see fonts/OFL-assistant.txt). One variable file per script, weights 200 to 800 */
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/assistant-hebrew.woff2') format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/assistant-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/assistant-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Global tokens: the site's original Apple colours (decision 47, corrected 15.10) */
  --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: Assistant everywhere (decision 48), the device's font only as a fallback. Big text tighter, small text looser */
  --font-display: 'Assistant', -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: .9375rem; 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; }
.bar-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--color-text); text-decoration: none; }
.bar-icon:hover { color: var(--color-accent); }
.menu-button {
  display: none; flex: none; width: 2.5rem; height: 2.5rem; place-items: center; padding: 0;
  background: var(--color-raised); border: var(--line) solid var(--color-border); border-radius: 50%;
}
.menu-button .icon { width: 1.25rem; height: 1.25rem; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li + li { border-top: var(--line) solid var(--color-border); }
.menu-list a { display: flex; align-items: center; min-height: 3.5rem; font-size: var(--text-lg); font-weight: 600; text-decoration: none; }
.menu-list a[aria-current="page"] { color: var(--color-accent); }
.menu-instagram { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-5); font-weight: 550; text-decoration: none; }
.sheet .menu-list { margin-top: 0; }
.menu-extra { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-4); font-weight: 550; }
.menu-extra a { text-decoration: none; color: var(--color-accent); }
.listing__extra { margin-top: var(--space-4); }
.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: like a profile on Instagram (decision 58). The photo in a circle, the handle, his words and the buttons, centred.
   No name in the opening (his request 15.10); the circle shows only once a photo is set */
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 42rem; padding: 4rem 2rem 5.5rem;
}
.hero__avatar {
  width: 7.5rem; height: 7.5rem; margin-bottom: 1.25rem; border-radius: 50%; object-fit: cover; object-position: 50% 20%;
  background: var(--color-raised); box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 5.5px var(--color-border);
}
.hero__handle { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.hero__intro { margin-top: 1.25rem; max-width: 34rem; font-size: var(--text-lg); line-height: 1.65; color: var(--color-text-muted); text-wrap: balance; }
.hero__sub { margin-top: var(--space-2); max-width: 34rem; font-size: var(--text-md); color: var(--color-text-muted); text-wrap: balance; }
.hero__sub a { color: var(--color-text); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: 2rem; }
.button--quiet { background: transparent; color: var(--color-text); box-shadow: inset 0 0 0 1.5px var(--color-border); }
.button--quiet:hover, .button--quiet:active { background: transparent; box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.brand { width: 1.25rem; height: 1.25rem; flex: none; }
.button .brand { width: 1.125rem; height: 1.125rem; }

/* 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; }

/* Home: one section per tab, alternating backgrounds */
.band { background: var(--color-raised); }
.home-section { padding-block: 4.5rem; }
.home-section:not(.band) .card { box-shadow: 0 0 0 1px var(--color-border); }
.home-section + .about { margin-top: 5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-3) var(--space-5); }
.section-head h2 { font-size: var(--text-2xl); line-height: 1.1; font-weight: 650; letter-spacing: -.02em; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 550; color: var(--color-accent); text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.cards--videos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.card__thumb.card__thumb--tall { aspect-ratio: 3 / 4; }
.card__thumb img.is-wide { object-fit: contain; background: var(--color-thumb); }
.card__icon { color: var(--color-accent); }
.card__icon .icon { width: 3rem; height: 3rem; stroke-width: 1.5; }
.card__missing { font-size: var(--text-xs); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 600; color: var(--color-text); }
.badge .icon { width: 1rem; height: 1rem; color: var(--color-accent); }
.badge .icon--small { width: .875rem; height: .875rem; color: var(--color-text-muted); }
.badge .brand { width: 1.125rem; height: 1.125rem; }
.badge--big { margin-top: var(--space-5); font-size: var(--text-sm); }
.badge--mark .icon { width: 1.375rem; height: 1.375rem; }
.badge--mark .brand { width: 1.5rem; height: 1.5rem; }
.chip--mark { display: inline-grid; place-items: center; min-width: 52px; padding-inline: 14px; }
.chip--mark .icon { width: 1.25rem; height: 1.25rem; color: var(--color-accent); }
.chip--mark .brand { width: 1.375rem; height: 1.375rem; }
.chip--mark[aria-pressed="true"] .icon { color: var(--color-on-accent); }
.chip--mark[aria-pressed="true"] .brand--instagram { color: var(--color-on-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.badge--big .icon { width: 1.25rem; height: 1.25rem; }
.tag--accent { background: color-mix(in srgb, var(--color-accent) 13%, transparent); color: var(--color-accent); }

.feed { display: flex; flex-direction: column; gap: var(--space-4); max-width: 46rem; }
.feed-item__link {
  display: flex; gap: 1.25rem; padding: 1rem; text-decoration: none;
  background: var(--color-surface); border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--color-border);
}
.band .feed-item__link { box-shadow: none; }
.feed-item__link:hover .feed-item__title { color: var(--color-accent); }
.feed-item__link:focus-visible { outline-offset: -3px; border-radius: var(--radius-md); }
.feed-item__thumb {
  flex: none; width: 5.5rem; aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center;
  background: var(--color-raised); border-radius: .75rem; color: var(--color-accent);
}
.feed-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.feed-item__thumb .icon { width: 2rem; height: 2rem; stroke-width: 1.5; }
.feed-item__body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.feed-item__body .card__tags time { align-self: center; font-size: var(--text-xs); color: var(--color-text-muted); }
.feed-item__title { font-size: var(--text-lg); line-height: 1.3; font-weight: 650; transition: color var(--dur); }
.feed-item__excerpt {
  font-size: var(--text-sm); line-height: 1.55; color: var(--color-text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.latest { padding-block: 5rem; }
.section-head { margin-bottom: 2.5rem; }
.listing__intro { margin-top: var(--space-4); max-width: var(--measure); color: var(--color-text-muted); }
.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 { max-height: 520px; width: auto; margin-inline: auto; 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; }

.linked-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--space-3); }
.linked-list a, .linked-list span { display: flex; align-items: center; gap: var(--space-3); }
.linked-list > li > a, .linked-list > li > span { min-height: 64px; padding: 12px 16px; background: var(--color-surface); border: var(--line) solid var(--color-border); border-radius: var(--radius-md); text-decoration: none; }
.linked-list > li > a:hover { border-color: var(--color-accent); }
.linked__mark { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--color-raised); color: var(--color-accent); }
.linked__mark .icon { width: 1.125rem; height: 1.125rem; }
.linked__mark .brand { width: 1.25rem; height: 1.25rem; }
.linked__title { font-weight: 650; line-height: 1.35; }
.signature { margin-top: var(--space-7); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.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); }
.related > h2 { margin-bottom: 2.5rem; } /* same gap as the home sections, so the heading does not sit on the cards */

/* An update: the slides swipe on phones and step with arrows on a computer */
.post__lead { margin-top: var(--space-4); font-size: var(--text-lg); line-height: 1.6; color: var(--color-text-muted); }
.gallery { width: min(880px, 100% - 2 * var(--margin)); margin: var(--space-7) auto 0; }
.gallery__track {
  display: flex; gap: var(--space-4); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  /* room on both sides, so the first and last slide can sit in the middle */
  padding-inline: max(0px, calc((100% - 26rem) / 2));
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: 4px; }
.gallery__slide {
  flex: 0 0 min(100%, 26rem); scroll-snap-align: center; overflow: hidden;
  background: var(--color-raised); border-radius: 18px; box-shadow: 0 0 0 1px var(--color-border);
}
.gallery__slide img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery__nav { display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-4); }
.gallery__btn {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  background: var(--color-surface); border: var(--line) solid var(--color-border); border-radius: 50%;
  transition: border-color var(--dur), opacity var(--dur);
}
.gallery__btn:hover { border-color: var(--color-accent); }
.gallery__btn[disabled] { opacity: .35; cursor: default; }
.gallery__count { min-width: 5ch; text-align: center; font-size: var(--text-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.slide-text { padding-inline-start: 1.4em; }
.slide-text li + li { margin-top: .6em; }

/* A tool: the link, file or prompt, then what to check before using it */
.tool__get { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); margin-top: 2em; }
.tool__get .prompt { align-self: stretch; }
.check { margin-top: 2em; padding: 1.25rem 1.5rem; background: var(--color-raised); border-radius: var(--radius-md); }
.check h2 { margin-top: 0; font-size: var(--text-md); }
.check p { margin-top: .5em; font-size: var(--text-sm); }
.tool__license { font-size: var(--text-xs); color: var(--color-text-muted); }

/* 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; }

/* The tabs move into the menu before they run out of room */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-button { display: grid; }
}

@media (max-width: 1100px) {
  .hero { padding-inline: 1rem; }
  .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-bar__end { gap: .5rem; }
  .hero { padding: 2.25rem 0 3rem; }
  .hero__avatar { width: 6rem; height: 6rem; }
  .hero__actions { margin-top: 1.5rem; }
  .home-section { padding-block: 3rem; }
  .feed-item__link { gap: 1rem; padding: .875rem; }
  .feed-item__thumb { width: 4.5rem; }
  .feed-item__title { font-size: var(--text-md); }
  .gallery__slide { flex-basis: 86%; }
  .gallery__track { padding-inline: 7%; }
  .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); }
