/* robertcampagnola.com: one stylesheet for every page.
   The look comes from Robert's own paintings: a deep night background, vivid
   magenta, violet and electric blue, and a touch of gold. Each page shows one
   painting behind its title (the .art-* classes below; banners in images/banners/). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0a12;
  --bg-2: #120e1b;
  --surface: #19142a;
  --surface-2: #231c38;
  --ink: #f5f0fb;
  --ink-soft: #c4bad6;
  --ink-faint: #9389a8;
  --line: rgb(255 255 255 / 11%);
  --magenta: #ff5ca8;
  --violet: #a08cff;
  --blue: #4fd3f0;
  --gold: #ffc65c;
  --link: #ff93c6;
  --link-hover: #ffd1e6;
  --focus: #4fd3f0;
  --ok: #8ff0b4;
  --ok-bg: rgb(60 200 120 / 14%);
  --error: #ffb0a8;
  --error-bg: rgb(255 80 80 / 14%);
  --grad: linear-gradient(110deg, #ff5ca8 0%, #a08cff 52%, #4fd3f0 100%);
  --grad-warm: linear-gradient(110deg, #ffc65c 0%, #ff5ca8 100%);
  --glow: 0 18px 50px rgb(160 140 255 / 18%);
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 10px 30px rgb(0 0 0 / 35%);

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-text: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --wrap: 74rem;
  color-scheme: dark;
}

/* The painting behind each page's title. */
.art-origins { --art: url("/images/banners/origins.jpg"); }
.art-breakthrough { --art: url("/images/banners/breakthrough.jpg"); }
.art-submersion { --art: url("/images/banners/submersion.jpg"); }
.art-underworldly { --art: url("/images/banners/underworldly.jpg"); }
.art-anesthesia { --art: url("/images/banners/anesthesia.jpg"); }
.art-shaken-roots { --art: url("/images/banners/shaken-roots.jpg"); }
.art-silent-splatter { --art: url("/images/banners/silent-splatter.jpg"); }
.art-primeval-burst { --art: url("/images/banners/primeval-burst.jpg"); }
.art-green-screem { --art: url("/images/banners/green-screem.jpg"); }
.art-jeweled-illusion { --art: url("/images/banners/jeweled-illusion.jpg"); }

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
}

::selection { background: rgb(255 92 168 / 45%); color: #fff; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: 0.005em; color: #fff; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.55rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

/* Links that open in a new window get a small arrow. */
a[target="_blank"]:not(.tile):not(.card-link):not(.video-card)::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.15em;
  font-size: 0.8em;
  text-decoration: none;
}

.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header and menu ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(12 10 18 / 72%);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); opacity: 0.55;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; flex-wrap: wrap; }

.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--font-display); font-size: clamp(1.45rem, 6vw, 1.9rem); font-weight: 600; letter-spacing: 0.01em; }
.brand-tag {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 420px) {
  .brand-tag { font-size: 0.62rem; letter-spacing: 0.06em; }
  .menu-button { padding: 10px 12px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.menu-button {
  display: none; align-items: center; gap: 10px;
  background: rgb(255 255 255 / 6%); color: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 0.95rem; cursor: pointer; min-height: 44px; min-width: 44px;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.site-header.is-open .menu-icon { background: transparent; }
.site-header.is-open .menu-icon::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .menu-icon::after { top: 0; transform: rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-main { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.nav-main a, .nav-more-button {
  display: block; color: var(--ink-soft); text-decoration: none; padding: 8px 11px; border-radius: 999px;
  font: inherit; font-size: 0.95rem; background: none; border: 0; cursor: pointer; position: relative;
}
.nav-main a:hover, .nav-more-button:hover { background: rgb(255 255 255 / 8%); color: #fff; }
.nav-main a[aria-current="page"] { color: #fff; }
.nav-main a[aria-current="page"]::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad);
}

.nav-more { position: relative; }
.nav-more-list {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 13rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 55%);
}
.nav-more.is-open .nav-more-list { display: block; }
.nav-more-list a { white-space: nowrap; border-radius: 10px; }

/* Without JavaScript the "More" links simply show in the menu. */
html:not(.js) .nav-more-button { display: none; }
html:not(.js) .nav-more-list { display: flex; flex-wrap: wrap; position: static; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }

@media (max-width: 1199px) {
  html.js .menu-button { display: inline-flex; }
  html.js .site-nav { display: none; width: 100%; padding-bottom: 8px; max-height: calc(100vh - 80px); overflow-y: auto; }
  html.js .site-header.is-open .site-nav { display: block; }
  .nav-main { flex-direction: column; align-items: stretch; }
  .nav-main a, .nav-more-button { padding: 13px 10px; font-size: 1.08rem; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; width: 100%; color: var(--ink); }
  .nav-main a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--magenta); padding-left: 16px; }
  .nav-main a[aria-current="page"]::after { display: none; }
  .nav-more-button { display: none; }
  .nav-more-list, html.js .nav-more-list {
    display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0;
  }
  .nav-more-list a { border-radius: 0; }
  .nav-more-list::before {
    content: "More"; display: block; padding: 16px 10px 4px; font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--ink-faint);
  }
}

/* ---------- Page heroes (a painting behind the title) ---------- */

.hero, .page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgb(12 10 18 / 35%) 0%, rgb(12 10 18 / 70%) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgb(12 10 18 / 80%) 0%, rgb(12 10 18 / 15%) 75%),
    var(--art, radial-gradient(60rem 30rem at 80% 0%, rgb(160 140 255 / 30%), transparent 60%));
  background-size: cover;
  background-position: center;
}
.page-hero { padding-block: 64px 56px; }
@media (min-width: 800px) { .page-hero { padding-block: 104px 80px; } }
.page-hero h1 { text-shadow: 0 2px 30px rgb(0 0 0 / 55%); margin-bottom: 12px; }
.page-lead { font-family: var(--font-text); font-size: 1.2rem; color: #ece6f6; max-width: 44rem; margin: 0; text-shadow: 0 1px 12px rgb(0 0 0 / 60%); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 600; color: var(--gold); margin: 0 0 14px; }
.eyebrow a { color: var(--gold); }
.art-credit {
  position: absolute; right: 16px; bottom: 12px; z-index: 1; font-size: 0.78rem; letter-spacing: 0.04em;
  color: rgb(255 255 255 / 70%); text-decoration: none; padding: 4px 10px; border-radius: 999px;
  background: rgb(12 10 18 / 45%); border: 1px solid rgb(255 255 255 / 14%);
}
.art-credit:hover { color: #fff; background: rgb(12 10 18 / 70%); }

/* Home page hero: bigger, with Robert's photo. */
.hero { min-height: min(86vh, 760px); display: grid; align-items: center; }
.hero-inner { display: grid; gap: 36px; align-items: center; padding-block: 64px 88px; }
@media (min-width: 860px) { .hero-inner { grid-template-columns: 1fr auto; } }
.hero h1 { font-size: clamp(3rem, 9vw, 6.2rem); line-height: 0.98; margin-bottom: 22px; text-shadow: 0 4px 40px rgb(0 0 0 / 50%); }
.hero h1 .gradient-text { display: block; }
.hero-lead { font-family: var(--font-text); font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.6; max-width: 36rem; color: #f1ebfa; margin: 0 0 32px; text-shadow: 0 1px 14px rgb(0 0 0 / 70%); }
.hero-photo { margin: 0; justify-self: center; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; background: var(--grad); filter: blur(0.5px);
}
.hero-photo::after {
  content: ""; position: absolute; inset: -40px; border-radius: 50%; background: var(--grad); filter: blur(50px); opacity: 0.35; z-index: -1;
}
.hero-photo img { position: relative; width: 210px; height: 210px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 4px solid var(--bg); }
@media (max-width: 859px) {
  .hero-photo { order: -1; justify-self: start; }
  .hero .hero-photo img { width: 116px; height: 116px; }
  .hero-photo::after { inset: -20px; }
}

/* ---------- Buttons ---------- */

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 10px 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button-primary { background: var(--grad); color: #160b1c; box-shadow: 0 8px 26px rgb(255 92 168 / 30%); }
.button-primary:hover { color: #160b1c; transform: translateY(-1px); box-shadow: 0 12px 34px rgb(160 140 255 / 40%); text-decoration: none; }
.button-primary[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.button-ghost { color: #fff; border-color: rgb(255 255 255 / 45%); background: rgb(12 10 18 / 30%); }
.button-ghost:hover { color: #fff; border-color: #fff; text-decoration: none; background: rgb(255 255 255 / 8%); }

/* ---------- Sections and cards ---------- */

.section { padding-block: 64px; position: relative; }
.section-tint {
  background:
    radial-gradient(50rem 24rem at 10% 0%, rgb(255 92 168 / 10%), transparent 60%),
    radial-gradient(50rem 24rem at 90% 100%, rgb(79 211 240 / 9%), transparent 60%),
    var(--bg-2);
}
.section-title { margin-bottom: 28px; }
.section-title::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 12px; border-radius: 3px; background: var(--grad); }

.cards { display: grid; gap: 22px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: linear-gradient(180deg, rgb(255 255 255 / 3%), transparent), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0 0 12px; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card-date { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold) !important; font-weight: 700; }
.read-more a { font-weight: 600; }

.card-news.has-image { display: grid; gap: 20px; align-items: start; }
@media (min-width: 520px) { .card-news.has-image { grid-template-columns: 10rem 1fr; } }
.card-news-img { border-radius: 10px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 100% center; box-shadow: var(--shadow); }

.card-link {
  display: flex; flex-direction: column; gap: 6px; height: 100%; color: var(--ink); text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card-link:hover { transform: translateY(-3px); border-color: rgb(160 140 255 / 55%); box-shadow: var(--glow); color: var(--ink); text-decoration: none; }
.card-link strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; }
.card-link span { color: var(--ink-soft); font-size: 0.97rem; }
.card-link[target="_blank"] strong::after { content: " ↗"; font-size: 0.7em; color: var(--ink-faint); }

/* Picture tiles on the home page. */
.tiles { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.tile {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.5s ease; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgb(12 10 18 / 92%) 100%); }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.tile:hover { color: #fff; text-decoration: none; }
.tile:hover img { transform: scale(1.06); }
.tile:hover::after { transform: scaleX(1); }
.tile-text { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.tile-text strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.tile-text span { font-size: 0.95rem; color: #e3dcef; }

.plain-links { padding-left: 1.2em; margin: 0; }
.plain-links li { margin: 4px 0; }

.section-lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 48rem; margin: -8px 0 26px; }
.section-cta { margin-top: 26px; }
.card-kicker { font-size: 0.76rem !important; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold) !important; font-weight: 700; }
.elsewhere { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; color: var(--ink-faint); }

/* ---------- Long text ---------- */

.prose { font-family: var(--font-text); font-size: 1.14rem; line-height: 1.78; max-width: 42rem; color: #e9e2f4; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 0.3em 0; }
.prose strong { color: #fff; }
.prose .lede { font-size: 1.32rem; line-height: 1.6; color: #fff; }

.statement { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .statement { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 64px; } }
.statement-art { margin: 0; position: relative; }
@media (min-width: 960px) { .statement-art { position: sticky; top: 96px; } }
.statement-art img { border-radius: var(--radius); box-shadow: var(--glow), var(--shadow); }
.statement-art figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--ink-faint); }
.prose-statement .lede::first-letter {
  font-family: var(--font-display); float: left; font-size: 4em; line-height: 0.8; padding: 0.08em 0.1em 0 0;
  background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.signature { font-family: var(--font-display); font-size: 1.9rem; text-align: right; color: var(--gold); }

/* ---------- About ---------- */

.about-layout { display: grid; gap: 32px; padding-block: 48px 64px; }
.about-side { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1000px) {
  .about-layout { grid-template-columns: minmax(0, 1fr) 21rem; grid-template-rows: auto 1fr; column-gap: 56px; }
  .about-intro { grid-column: 1; grid-row: 1; }
  .story { grid-column: 1; grid-row: 2; }
  .about-side { grid-column: 2; grid-row: 1 / span 2; }
  /* The chapter list stays in view while reading. */
  .toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; }
}
.about-intro { display: grid; gap: 28px; align-items: start; }
@media (min-width: 640px) { .about-intro { grid-template-columns: auto 1fr; } }
.portrait { margin: 0; position: relative; }
.portrait img { width: 198px; border-radius: 18px; box-shadow: 0 0 0 3px rgb(255 92 168 / 70%), var(--glow); }

.glance, .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); align-self: start; position: relative; overflow: hidden; }
.glance::before, .toc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.glance h2, .toc h2 { font-size: 1.55rem; margin-bottom: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; color: var(--ink-soft); }
.timeline li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.t-year { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 0.95rem; color: var(--ink-faint); }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: #fff; text-decoration: underline; }

.story section { scroll-margin-top: 92px; }
.story section + section { border-top: 1px solid var(--line); margin-top: 2.2em; padding-top: 0.6em; }
.quoted-article {
  margin: 1.6em 0; padding: 22px 26px; background: var(--surface); border-left: 3px solid var(--violet);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.03rem;
}
.quoted-label { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--violet); margin-bottom: 0.7em !important; }
.back-to-top { font-family: var(--font-ui); font-size: 0.95rem; }

/* ---------- Music player ---------- */

.player {
  display: grid; margin-block: 40px 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow), var(--glow); overflow: hidden;
}
@media (min-width: 900px) { .player { grid-template-columns: 23rem 1fr; } }

.now-playing {
  padding: 26px; color: #fff; position: relative; isolation: isolate;
  background:
    radial-gradient(22rem 18rem at 100% 0%, rgb(255 92 168 / 45%), transparent 65%),
    radial-gradient(22rem 18rem at 0% 100%, rgb(79 211 240 / 30%), transparent 65%),
    linear-gradient(160deg, #2a1d4d, #150f26);
}
@media (min-width: 900px) { .now-playing { position: sticky; top: 72px; align-self: start; min-height: 100%; } }
.np-label { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; font-weight: 700; color: var(--gold); margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.np-title { font-size: 2.2rem; margin-bottom: 4px; }
.np-meta { color: #d8cfe8; margin: 0 0 20px; }
.np-controls { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ctrl {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: rgb(255 255 255 / 10%); color: #fff; border: 1px solid rgb(255 255 255 / 20%); font-size: 1.1rem;
}
.ctrl:hover { background: rgb(255 255 255 / 20%); }
.ctrl-play { width: 68px; height: 68px; background: var(--grad); border: 0; color: #160b1c; box-shadow: 0 8px 30px rgb(255 92 168 / 45%); }
.ctrl-play:hover { background: var(--grad); filter: brightness(1.08); }
.icon-play { width: 0; height: 0; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent currentColor; margin-left: 5px; }
.is-playing .icon-play { width: 18px; height: 22px; border: 0; margin: 0; border-left: 6px solid currentColor; border-right: 6px solid currentColor; }

/* Little dancing bars while music plays. */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { display: block; width: 3px; height: 30%; background: var(--gold); border-radius: 1px; }
.is-playing .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.is-playing .eq i:nth-child(2) { animation-delay: -0.3s; }
.is-playing .eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

.np-seek { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.np-time { font-size: 0.85rem; font-variant-numeric: tabular-nums; color: #d8cfe8; min-width: 2.8em; }
.np-time:last-child { text-align: right; }
.seek { width: 100%; accent-color: var(--magenta); height: 28px; margin: 0; background: transparent; cursor: pointer; }
.np-status { min-height: 1.4em; margin: 10px 0 0; font-size: 0.92rem; color: #ffd2e6; }
.np-note { font-family: var(--font-text); font-size: 1.02rem; line-height: 1.68; color: #efe8fa; margin: 6px 0 0; }
.np-note:empty { display: none; }

.tracklist { list-style: none; margin: 0; padding: 10px; }
.track { border-radius: 12px; }
.track + .track { border-top: 1px solid var(--line); }
.track-link {
  display: grid; grid-template-columns: 2rem 1fr auto; grid-template-areas: "num name len" "num date len";
  column-gap: 12px; align-items: center; padding: 13px 12px; color: var(--ink); text-decoration: none; border-radius: 12px;
}
@media (min-width: 600px) {
  .track-link { grid-template-columns: 2rem 1fr auto auto; grid-template-areas: "num name date len"; }
}
.track-link:hover { background: var(--surface-2); color: #fff; text-decoration: none; }
.track-num { grid-area: num; color: var(--ink-faint); font-variant-numeric: tabular-nums; text-align: right; }
.track-name { grid-area: name; font-weight: 600; }
.track-date { grid-area: date; color: var(--ink-faint); font-size: 0.9rem; }
.track-len { grid-area: len; color: var(--ink-faint); font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.track-note { display: none; margin: 0; padding: 0 16px 16px 56px; font-family: var(--font-text); color: var(--ink-soft); font-size: 1.02rem; }
html:not(.js) .track-note { display: block; }
.track.is-current .track-link { background: linear-gradient(90deg, rgb(255 92 168 / 18%), rgb(160 140 255 / 8%)); box-shadow: inset 3px 0 0 var(--magenta); }
.track.is-current .track-name { color: #fff; }
.track.is-current .track-num { color: transparent; position: relative; }
.track.is-current .track-num::after {
  content: "♪"; color: var(--magenta); position: absolute; right: 0; top: 50%; transform: translateY(-50%);
}
/* On narrow screens the note shows under the playing song instead of in the panel. */
@media (max-width: 899px) { .track.is-current .track-note { display: block; } .np-note { display: none; } }

.copyright-note { font-size: 0.88rem; color: var(--ink-faint); max-width: 48rem; }

/* ---------- Videos ---------- */

.video-stage {
  margin-top: 40px; aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 20px;
  overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow), var(--glow); border: 1px solid var(--line);
}
.video-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-poster {
  position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: #000;
  color: #fff; font: inherit; cursor: pointer; display: block;
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 0.2s ease, transform 0.6s ease; }
.video-poster:hover img { opacity: 0.9; transform: scale(1.02); }
.video-poster-label {
  position: absolute; inset: auto 0 0 0; display: flex; align-items: center; gap: 18px; text-align: left;
  padding: 60px 28px 26px; font-size: 1.25rem; font-weight: 600;
  background: linear-gradient(transparent, rgb(12 10 18 / 90%));
}
.video-poster:hover .play-badge { transform: scale(1.08); }
.privacy-note { font-size: 0.88rem; color: var(--ink-faint); margin: 12px 0 40px; }

.video-grid { list-style: none; margin: 0 0 64px; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.video-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.video-card:hover { color: #fff; text-decoration: none; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; display: block; border: 1px solid var(--line); transition: box-shadow 0.2s ease; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.video-card:hover .video-thumb { box-shadow: var(--glow); }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-card .play-badge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.video-title { font-weight: 600; line-height: 1.35; }
.video-date { font-size: 0.88rem; color: var(--ink-faint); }
.video-card.is-current .video-thumb { outline: 3px solid var(--magenta); outline-offset: 2px; }

.play-badge {
  display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; flex: none;
  background: var(--grad); box-shadow: 0 8px 26px rgb(255 92 168 / 45%); transition: transform 0.15s ease;
}
.play-badge::before {
  content: ""; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #160b1c; margin-left: 4px;
}

.tip { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tip summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--link); }
.tip-body { padding: 0 20px 10px; color: var(--ink-soft); }
.tip-body ul { padding-left: 1.2em; }
.tip-body li { margin: 6px 0; }
.tip-body strong { color: #fff; }

/* ---------- News and links ---------- */

.news-list { padding-block: 48px 64px; display: grid; gap: 32px; }
.news-item { display: grid; gap: 4px 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
.news-item:last-child { border-bottom: 0; }
@media (min-width: 800px) { .news-item { grid-template-columns: 11rem 1fr; } }
.news-date { margin: 0.5em 0 0; font-weight: 700; color: var(--gold); font-size: 0.92rem; letter-spacing: 0.04em; }
.news-item h2 { margin-top: 0; }
.news-figure, .post-figure { margin: 0 0 1.3em; }
.news-figure img, .post-figure img { border-radius: 12px; box-shadow: var(--shadow); }

.link-groups { padding-block: 48px 64px; display: grid; gap: 24px; }
@media (min-width: 800px) { .link-groups { grid-template-columns: repeat(2, 1fr); } }
.link-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.link-group::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.link-group h2 { font-size: 1.6rem; }
.link-group ul { list-style: none; margin: 0; padding: 0; }
.link-group li { padding: 11px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.link-group li:first-child { border-top: 0; }
.link-group a { font-weight: 600; }
.link-group span { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Gallery ---------- */

.gallery { padding-block: 48px 64px; }
.gallery-section + .gallery-section { margin-top: 56px; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.gallery-item { display: flex; flex-direction: column; gap: 9px; color: var(--ink-soft); text-decoration: none; }
.gallery-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover { color: #fff; text-decoration: none; }
.gallery-item:hover img { transform: translateY(-3px); box-shadow: var(--glow); }
.gallery-caption { font-size: 0.95rem; font-weight: 600; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(6 5 10 / 96%); color: #f6eee2;
}
.lightbox::backdrop { background: rgb(6 5 10 / 96%); }
.lightbox-figure { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 14px; padding: 56px 72px 24px; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgb(0 0 0 / 60%); }
.lightbox-figure figcaption { font-size: 1rem; text-align: center; color: var(--ink-soft); }
.lightbox-btn {
  position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: rgb(255 255 255 / 10%); color: #fff; border: 1px solid rgb(255 255 255 / 22%); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-btn:hover { background: rgb(255 255 255 / 22%); }
.lightbox-close { top: 14px; right: 14px; font-size: 1.2rem; }
.lightbox-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 14px; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) {
  .lightbox-figure { padding: 64px 8px 84px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; translate: none; }
}

/* ---------- Blog ---------- */

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 50rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.post-card:hover { border-color: rgb(160 140 255 / 45%); box-shadow: var(--glow); }
.post-card h2 { font-size: 1.9rem; margin-bottom: 8px; }
.post-card h2 a { color: #fff; text-decoration: none; }
.post-card h2 a:hover { color: var(--link-hover); }
.post-card p { margin: 0 0 10px; font-family: var(--font-text); color: var(--ink-soft); }
.post-card .card-date, .post-card .read-more { font-family: var(--font-ui); }
.post-card p:last-child { margin-bottom: 0; }
.post-body { margin-inline: auto; }
.post-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start;
  padding-block: 8px 64px; max-width: 50rem;
}
.post-nav a { text-decoration: none; }
.post-nav span { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }
.post-nav-all { align-self: center; }
.post-nav-newer { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav-newer { text-align: left; } }

.draft-tag {
  display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.06em;
  background: var(--gold); color: #1d1404; text-transform: uppercase; font-weight: 700;
}

/* ---------- Lectures: links to the talks on harimedia.net, and how to use them ---------- */

.howto { margin-top: 28px; }
.howto h3 { font-size: 1.35rem; margin-bottom: 12px; }
.howto ol { margin: 0; padding-left: 1.3em; color: var(--ink-soft); line-height: 1.6; }
.howto li { margin: 0 0 10px; }
.howto li:last-child { margin-bottom: 0; }
.howto strong, .howto em { color: var(--ink); }
.video-subtitle { font-size: 1.6rem; margin: 40px 0 18px; }

/* ---------- Books ---------- */

.bookshelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 33rem), 1fr)); }
.book {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 24px; align-items: start; scroll-margin-top: 92px;
  background: linear-gradient(180deg, rgb(255 255 255 / 3%), transparent), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.book-cover, .shelf-book img, .excerpt-source img {
  display: block; width: 100%; height: auto; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 4px;
  box-shadow: 0 14px 34px rgb(0 0 0 / 55%), 0 0 0 1px rgb(255 255 255 / 8%);
}
.book-info h3 { font-size: 1.9rem; margin: 2px 0 4px; }
.book-info p { margin: 0 0 12px; color: var(--ink-soft); }
.book-tagline { font-family: var(--font-text); font-style: italic; font-size: 1.08rem; color: #ece6f6 !important; }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px !important; }
.book-stores { font-size: 0.92rem; color: var(--ink-faint) !important; }
@media (max-width: 559px) {
  .book { grid-template-columns: 6.5rem 1fr; gap: 16px; padding: 18px; }
  .book-info h3 { font-size: 1.6rem; }
}

.buy-soon {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 1px dashed rgb(255 198 92 / 60%); color: var(--gold); font-weight: 600; font-size: 0.95rem;
}
.buy-soon.small, .button-buy.small { min-height: 38px; padding: 6px 16px; font-size: 0.9rem; }
.text-link { font-weight: 600; }

.concept-nav { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.concept-nav a {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 0.95rem; text-decoration: none;
  color: var(--ink-soft); background: rgb(255 255 255 / 4%); border: 1px solid var(--line);
}
.concept-nav a:hover { color: #fff; border-color: rgb(160 140 255 / 60%); background: rgb(160 140 255 / 10%); text-decoration: none; }
.concept { scroll-margin-top: 92px; }
.concept + .concept { margin-top: 56px; }
.concept-title { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin-bottom: 20px; }
.excerpts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 920px) { .excerpts { grid-template-columns: repeat(2, 1fr); } }
.excerpt {
  display: flex; flex-direction: column; scroll-margin-top: 92px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow);
}
.excerpt h4 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1.2; color: #fff; margin: 0 0 14px; }
.excerpt blockquote {
  margin: 0 0 20px; padding-left: 18px; border-left: 3px solid var(--magenta);
  font-family: var(--font-text); font-size: 1.05rem; line-height: 1.72; color: #e9e2f4;
}
.excerpt blockquote p { margin: 0 0 0.9em; }
.excerpt blockquote p:last-child { margin-bottom: 0; }
.excerpt-source {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 2.6rem 1fr auto; gap: 14px; align-items: center;
}
.excerpt-source p { margin: 0; font-size: 0.9rem; color: var(--ink-faint); }
.excerpt-source cite { font-style: italic; color: #fff; }
.excerpt-source span { display: block; font-size: 0.85rem; }
@media (max-width: 559px) {
  .excerpt { padding: 20px; }
  .excerpt-source { grid-template-columns: 2.6rem 1fr; }
  .excerpt-source > :last-child { grid-column: 1 / -1; justify-self: start; }
}

/* The books on the home page. */
.shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .shelf { grid-template-columns: repeat(4, minmax(0, 12.5rem)); gap: 32px; } }
.shelf-book { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; }
.shelf-book img { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.shelf-book span { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; color: #fff; }
.shelf-book:hover { text-decoration: none; color: var(--ink); }
.shelf-book:hover img { transform: translateY(-4px); box-shadow: 0 20px 44px rgb(160 140 255 / 30%), 0 0 0 1px rgb(255 255 255 / 12%); }

/* ---------- AI work ---------- */

.ai-intro { display: grid; gap: 36px; padding-block: 48px 24px; align-items: start; }
@media (min-width: 1000px) { .ai-intro { grid-template-columns: minmax(0, 1fr) 22rem; gap: 56px; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat dt { font-size: 0.85rem; color: var(--ink-soft); }
.stat dd { margin: 0 0 4px; order: -1; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat { display: flex; flex-direction: column; }

.ai-nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
.ai-nav a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; background: rgb(255 255 255 / 3%);
}
.ai-nav a:hover { color: #fff; border-color: var(--violet); }

.ai-section { padding-block: 56px; scroll-margin-top: 80px; }
.ai-section + .ai-section { border-top: 1px solid var(--line); }
.ai-section > .prose { margin-bottom: 28px; }

.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); counter-reset: p; }
.principles li {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px 62px; color: var(--ink-soft); counter-increment: p;
}
.principles li::before {
  content: counter(p); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; color: #160b1c; background: var(--grad);
}
.principles strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 4px; }

.pull-quote {
  margin: 32px 0; padding: 26px 30px; border-radius: var(--radius); position: relative;
  background: linear-gradient(135deg, rgb(255 92 168 / 14%), rgb(79 211 240 / 8%)), var(--surface);
  border: 1px solid var(--line); font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.35; color: #fff;
}
.pull-quote p { margin: 0 0 10px; }
.pull-quote cite { display: block; font-family: var(--font-ui); font-style: normal; font-size: 0.9rem; color: var(--gold); }

.project-group + .project-group { margin-top: 44px; }
.project-group > h3 { font-size: 1.9rem; margin-bottom: 6px; }
.project-group > p { color: var(--ink-soft); margin: 0 0 18px; max-width: 48rem; }
.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.project {
  background: linear-gradient(180deg, rgb(255 255 255 / 3%), transparent), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.project:hover { border-color: rgb(160 140 255 / 45%); box-shadow: var(--glow); }
.project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.project h4 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: #fff; margin: 0; line-height: 1.1; }
.project .for { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin: 0; font-weight: 700; }
.project p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.project ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); font-size: 0.95rem; }
.project li { margin: 3px 0; }
.project .ai-role { font-size: 0.9rem; color: #d9cff0; border-left: 2px solid var(--violet); padding-left: 10px; }
.project .links { margin-top: auto; padding-top: 6px; font-weight: 600; }
.project .credit { font-size: 0.86rem; color: var(--ink-faint); border-top: 1px solid var(--line); padding-top: 8px; }
.badge {
  flex: none; display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; border: 1px solid currentColor;
}
.badge-live { color: #8ff0b4; background: rgb(60 200 120 / 12%); }
.badge-private { color: #c9b8ff; background: rgb(160 140 255 / 12%); }
.badge-dev { color: var(--gold); background: rgb(255 198 92 / 10%); }
.badge-local { color: #7fdcf0; background: rgb(79 211 240 / 10%); }

.ai-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid transparent; border-image: var(--grad) 1; max-width: 50rem; }
.ai-timeline li { position: relative; padding: 0 0 22px 18px; color: var(--ink-soft); }
.ai-timeline li::before { content: ""; position: absolute; left: -31px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--magenta); }
.ai-timeline strong { display: block; color: var(--gold); font-size: 0.9rem; letter-spacing: 0.04em; }

/* ---------- Contact ---------- */

.contact-layout { display: grid; gap: 32px; padding-block: 48px 64px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 36rem) 1fr; column-gap: 56px; } }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow), var(--glow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--bg);
  border: 1px solid rgb(255 255 255 / 16%); border-radius: 12px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 10rem; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-help { margin: 6px 0 0; font-size: 0.9rem; color: var(--ink-faint); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 16px; padding: 0; }
.form-status:empty { display: none; }
.form-status.is-error, .form-status.is-ok { padding: 12px 16px; border-radius: 12px; }
.form-status.is-error { background: var(--error-bg); color: var(--error); border: 1px solid currentColor; }
.form-status.is-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid currentColor; }
.contact-aside { font-family: var(--font-text); font-size: 1.06rem; color: var(--ink-soft); }
.contact-aside h2 { font-size: 1.7rem; }

/* ---------- Footer ---------- */

.site-footer { background: #08070d; color: var(--ink-faint); padding-block: 44px; font-size: 0.95rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); opacity: 0.7; }
.footer-inner { display: grid; gap: 18px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: auto 1fr; align-items: start; } .footer-copy { grid-column: 1 / -1; } }
.footer-name { font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin: 0; }
.footer-tag { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-start; }
@media (min-width: 800px) { .footer-links { justify-content: flex-end; } }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }

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

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .player, .video-stage, .skip-link, .art-credit { display: none !important; }
  .hero, .page-hero { background: none; }
  h1, h2, h3, .prose, .page-lead, .hero-lead { color: #000; text-shadow: none; }
}
