/* ---------- tokens ---------- */
:root {
  --navy: #0f2e3d;
  --ink: #15242b;
  --teal: #127e86;
  --mint: #1fc79b;
  --coral: #ff6b6b;
  --muted: #5e7681;
  --line: #dce7e9;
  --tint: #ddf0ef;
  --bg: #f6f9f9;
  --card: #ffffff;
  --focus: #1fc79b;
  --radius: 14px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e6eef0;
    --muted: #9ab0b6;
    --line: #23404b;
    --tint: #16404a;
    --bg: #0b1c24;
    --card: #10262f;
    --teal: #3fb6bd;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e6eef0;
  --muted: #9ab0b6;
  --line: #23404b;
  --tint: #16404a;
  --bg: #0b1c24;
  --card: #10262f;
  --teal: #3fb6bd;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- hub page ---------- */
.hub-head {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hub-head::after {
  /* echo of the big circles on the decks' title slides */
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: #17414f;
  pointer-events: none;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.hub-head .wrap { padding-top: 56px; padding-bottom: 48px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hub-head h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.hub-head p { margin: 12px 0 0; max-width: 34em; color: #b9cfd5; font-size: 16px; }

.hub-main { padding-top: 36px; padding-bottom: 56px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.list-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--muted); }
.search {
  font: inherit; font-size: 15px; color: var(--ink);
  width: min(320px, 100%);
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card);
}
.search[hidden] { display: none; }

.talks { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.talk {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.talk:hover { border-color: var(--teal); box-shadow: 0 6px 24px rgba(15, 46, 61, .10); }
.talk-thumb { display: block; background: var(--navy); aspect-ratio: 16 / 9; }
.talk-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.talk-body { padding: 22px 26px; display: flex; flex-direction: column; min-width: 0; }
.talk-series { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--teal); }
.talk-title { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 800; letter-spacing: -0.01em; }
.talk-title a { text-decoration: none; }
.talk-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.talk-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.talk-meta { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); padding: 0; list-style: none; }
.talk-meta li + li::before { content: "·"; margin-right: 14px; }
.talk-actions { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--line); color: var(--ink); background: transparent;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { border-color: var(--teal); color: var(--teal); }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
:root[data-theme="dark"] .btn.primary { background: var(--mint); border-color: var(--mint); color: var(--navy); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.primary { background: var(--mint); border-color: var(--mint); color: var(--navy); }
  :root:not([data-theme="light"]) .talk-thumb { background: #000; }
}
.empty { color: var(--muted); padding: 24px 0; }

.keys { margin-top: 36px; padding: 18px 22px; border-radius: var(--radius); background: var(--tint); font-size: 14px; color: var(--ink); }
.keys h2 { margin: 0 0 8px; font-size: 14px; }
.keys ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
kbd {
  display: inline-block; min-width: 1.8em; padding: 1px 6px; margin-right: 4px;
  font: 600 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: center;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--card);
}
.hub-foot { padding-bottom: 40px; color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
  .talk { grid-template-columns: 1fr; }
  .talk-body { padding: 18px 18px 20px; }
  .talk-title { font-size: 20px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hub-head .wrap { padding-top: 40px; padding-bottom: 36px; }
  .hub-head::after { width: 260px; height: 260px; right: -110px; top: -110px; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 12px; padding: 24px; }
.notfound h1 { margin: 0; font-size: 28px; }
.notfound p { margin: 0 0 8px; color: var(--muted); }
