/* Watts Up Science — static site. No external fonts, no scripts, no trackers. */
:root {
  --bg: #fcfbf7;
  --surface: #ffffff;
  --ink: #1d2126;
  --muted: #5b6470;
  --accent: #b7821a;        /* amber: "watts" */
  --accent-ink: #1d2126;
  --accent-bright: #f2b32e;
  --line: #e4e0d5;
  --shadow: 0 1px 3px rgba(29, 33, 38, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --surface: #1d2127;
    --ink: #e9e7e0;
    --muted: #9aa3ad;
    --accent: #f2b32e;
    --accent-ink: #15181c;
    --accent-bright: #f2b32e;
    --line: #2b3038;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; }

/* Header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 14px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-left: auto;
  align-items: center;
}
.top nav a { color: var(--muted); padding: 4px 2px; font-weight: 500; }
.top nav a.current { color: var(--ink); border-bottom: 2px solid var(--accent); }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top nav a.yt {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
}

/* Layout */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-left)) 48px max(16px, env(safe-area-inset-right));
}
section { margin-bottom: 44px; }
.lede { color: var(--muted); max-width: 64ch; }

/* Hero */
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); margin: 0 0 12px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { max-width: 62ch; color: var(--muted); font-size: 17px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }

/* Video cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.shorts-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 15.5px; margin: 10px 4px 4px; font-weight: 600; }
.card .label {
  margin: 2px 4px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.player.short { aspect-ratio: 9 / 16; }
.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Series cards on home */
.series-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.series {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.series:hover { text-decoration: none; border-color: var(--accent); }
.series h3 { margin: 0 0 8px; }
.series p { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.series span { color: var(--accent); font-weight: 700; font-size: 14px; }

/* About */
.about { max-width: 70ch; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 14.5px;
}
