/* hyperfiddle.net — stealth mode. One narrow column, serif display, mono labels.
   Styles the shared engine's markup (websites/_build/render-core.mjs):
   section.band[.hero] > .container, .eyebrow, .section-lede/.section-sub, .hero-sub,
   .talks > figure.talk, and about.md's raw .team-* islands. */

:root {
  --paper: #f6f4ef;
  --ink: #1b1a18;
  --muted: #6d6a63;
  --rule: #dcd8cf;
  --accent: #7d5f91;
  --card: #fbfaf7;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --col: 680px;
  --wide: 960px;
  --gutter: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131312;
    --ink: #ecebe6;
    --muted: #9a978f;
    --rule: #2c2b28;
    --accent: #c3abd3;
    --card: #1a1a18;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
img { max-width: 100%; }

/* ---- chrome ---- */
.site-nav, .site-footer {
  max-width: var(--wide);
  margin: 0 auto;
  width: 100%;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 500 22px/1 var(--serif);
  letter-spacing: -0.01em;
}
.wordmark img { width: 26px; height: auto; }
.wordmark:hover { color: inherit; }
.nav-links { display: flex; gap: 24px; }
.nav-links a, .site-footer {
  font: 13px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.nav-links a.active { color: var(--ink); }
.site-footer { border-top: 1px solid var(--rule); padding-top: 24px; padding-bottom: 32px; }
.site-footer a { text-decoration: none; }
.footer-links { display: flex; gap: 20px; }

/* ---- sections ---- */
.band { padding: 56px var(--gutter); }
.container { max-width: var(--col); margin: 0 auto; }
.band + .band .container { border-top: 1px solid var(--rule); padding-top: 56px; }
.band:has(.talks) .container, .band:has(.team-grid) .container { max-width: var(--wide); }

.eyebrow {
  font: 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; margin: 0 0 20px; }
h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; }
p { margin: 0 0 16px; }
.hero-sub, .section-sub { font-size: 19px; color: var(--muted); }
.section-lede { margin-bottom: 32px; }

/* The landing page: one hero, vertically centred in the viewport. */
body[data-section="home"] main { display: flex; align-items: center; }
body[data-section="home"] .band { width: 100%; padding-bottom: 12vh; }
body[data-section="home"] .hero-sub { max-width: 34em; }

/* ---- team (about.md raw islands) ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.team-stack, .team-cards { display: contents; }
.team-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.team-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; filter: grayscale(1); }
.team-name { font: 500 20px/1.2 var(--serif); }
.team-role { font: 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.team-bio { font-size: 15px; margin: 0; }

/* ---- talks ---- */
.talks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px 20px; }
.talk { margin: 0; }
.talk-poster, .talk iframe {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
}
.talk-poster img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: filter .2s; }
.talk-poster:hover img, .talk-poster:focus-visible img { filter: none; }
.talk-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 20, 18, .75);
}
.talk-play::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 11px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}
.talk figcaption { margin-top: 10px; }
.talk-title { display: block; font: 500 17px/1.3 var(--serif); }
.talk-title p { margin: 0; }
.talk-meta { display: block; margin-top: 4px; font: 12px/1.5 var(--mono); color: var(--muted); }

/* ---- contact (ConvertKit embed) ---- */
.convert-kit-embed { margin-top: 24px; }

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .site-nav, .site-footer { padding-top: 20px; padding-bottom: 20px; }
  .band { padding-top: 40px; padding-bottom: 40px; }
  .team-card { padding: 16px; flex-direction: column; gap: 12px; }
  .team-photo { width: 56px; height: 56px; }
}
