/* What Special Day — design system
   Calendar/tool feel: information first, one accent colour, theme colours on chips only. */

/* Inter (variable, 400–800), self-hosted. From Google Fonts v20; licence in fonts/LICENSE.txt.
   Filenames carry the version because /assets/ is cached as immutable. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin-ext-v20.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: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin-v20.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 {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f1f1ee;
  --ink: #18181b;
  --ink-2: #52525b;
  --ink-3: #8a8a93;
  --line: #e6e6e1;
  --line-2: #d6d6d0;
  --accent: #e5484d;          /* calendar red */
  --accent-ink: #ffffff;
  --accent-soft: #fdecec;
  --focus: #2563eb;

  /* theme chip colours: [bg, fg] */
  --t-food-bg: #fff1e6;     --t-food: #b4500f;
  --t-drinks-bg: #fdf4d7;   --t-drinks: #8a6100;
  --t-animals-bg: #e8f5ea;  --t-animals: #24733a;
  --t-fun-bg: #f3ecfd;      --t-fun: #6b3fb8;
  --t-kind-bg: #fde9f1;     --t-kind: #b0306a;
  --t-tech-bg: #e7f0fd;     --t-tech: #1f5fbf;
  --t-words-bg: #e9f6f6;    --t-words: #19706f;
  --t-games-bg: #eef0f3;    --t-games: #44505f;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 2px 8px rgba(20, 20, 20, .04);
  --max: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113; --surface: #19191c; --surface-2: #222226;
    --ink: #f2f2f3; --ink-2: #b4b4bb; --ink-3: #7f7f88;
    --line: #2a2a2f; --line-2: #36363c;
    --accent: #f05a5f; --accent-soft: #3a1d1f;
    --t-food-bg: #3a2414;   --t-food: #ffb27a;
    --t-drinks-bg: #352b10; --t-drinks: #f3cf63;
    --t-animals-bg: #16301d;--t-animals: #7fd896;
    --t-fun-bg: #2a1f40;    --t-fun: #c2a2f5;
    --t-kind-bg: #3a1828;   --t-kind: #f59cc4;
    --t-tech-bg: #172a45;   --t-tech: #8ab8fa;
    --t-words-bg: #12302f;  --t-words: #79d4d2;
    --t-games-bg: #25282d;  --t-games: #b8c0cc;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #111113; --surface: #19191c; --surface-2: #222226;
  --ink: #f2f2f3; --ink-2: #b4b4bb; --ink-3: #7f7f88;
  --line: #2a2a2f; --line-2: #36363c;
  --accent: #f05a5f; --accent-soft: #3a1d1f;
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--surface); border: 1.5px solid var(--ink);
  display: grid; grid-template-rows: 9px 1fr; overflow: hidden; font-size: 13px; line-height: 1;
}
.logo-mark::before { content: ""; background: var(--accent); }
.logo-mark span { display: grid; place-items: center; font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.search { margin-left: auto; position: relative; }
.search input {
  width: 240px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg);
  padding: 0 40px 0 36px; font: inherit; font-size: 15px; color: var(--ink);
}
.search input::placeholder { color: var(--ink-3); }
.search svg { position: absolute; left: 11px; top: 11px; color: var(--ink-3); }
.search kbd {
  position: absolute; right: 9px; top: 9px; font: 500 12px var(--font); color: var(--ink-3);
  border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; background: var(--surface);
}
@media (max-width: 860px) {
  .nav { display: none; }
  .search input { width: 100%; }
  .search { flex: 1; }
  .search kbd { display: none; }
}

/* Month strip: one-click month navigation */
.month-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.month-strip ol {
  list-style: none; margin: 0 auto; padding: 8px 16px; display: flex; gap: 4px; overflow-x: auto;
  max-width: var(--max); scrollbar-width: none;
}
@media (min-width: 720px) { .month-strip ol { padding: 8px 24px; } }
.month-strip ol::-webkit-scrollbar { display: none; }
.month-strip li { flex: 1 0 auto; }
.month-strip a {
  display: block; text-align: center; padding: 5px 10px; border-radius: 7px; font-size: 13.5px; font-weight: 500;
  color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em;
}
.month-strip a:hover { background: var(--surface-2); color: var(--ink); }
.month-strip a.is-now { color: var(--accent); }
.month-strip a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* ---------- Layout ---------- */
main { padding: 28px 0 64px; }
.grid-2 { display: grid; gap: 24px; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; } }
.stack > * + * { margin-top: 24px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
@media (min-width: 720px) { .card-pad { padding: 24px; } }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.card-title a { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.card-title a:hover { color: var(--accent); }

.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--line-2); }

/* ---------- Date block (tear-off calendar) ---------- */
.dateblock {
  flex: none; width: 112px; border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-2); text-align: center; box-shadow: var(--shadow);
}
.dateblock .db-m { background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; letter-spacing: .12em; padding: 6px 0; text-transform: uppercase; }
.dateblock .db-d { font-size: 54px; font-weight: 750; line-height: 1; padding: 10px 0 2px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dateblock .db-w { font-size: 13px; color: var(--ink-3); padding-bottom: 10px; font-weight: 500; }
.dateblock.sm { width: 64px; border-radius: 10px; }
.dateblock.sm .db-m { font-size: 10.5px; padding: 3px 0; }
.dateblock.sm .db-d { font-size: 26px; padding: 6px 0 6px; }

/* ---------- Page heading ---------- */
.page-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 750; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); }
.page-head .pager { margin-left: auto; }
@media (max-width: 640px) {
  .page-head { flex-wrap: wrap; gap: 14px; }
  .page-head .pager { margin-left: 0; width: 100%; }
}

.pager { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: 500 14.5px var(--font); cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { opacity: .9; }
.pager .btn { flex: 1; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.chip.lg { height: 32px; padding: 0 13px; font-size: 14px; }
a.chip:hover { filter: brightness(.96); }
.chip[data-t="food"]    { background: var(--t-food-bg);    color: var(--t-food); }
.chip[data-t="drinks"]  { background: var(--t-drinks-bg);  color: var(--t-drinks); }
.chip[data-t="animals"] { background: var(--t-animals-bg); color: var(--t-animals); }
.chip[data-t="fun"]     { background: var(--t-fun-bg);     color: var(--t-fun); }
.chip[data-t="kind"]    { background: var(--t-kind-bg);    color: var(--t-kind); }
.chip[data-t="tech"]    { background: var(--t-tech-bg);    color: var(--t-tech); }
.chip[data-t="words"]   { background: var(--t-words-bg);   color: var(--t-words); }
.chip[data-t="games"]   { background: var(--t-games-bg);   color: var(--t-games); }
.chip .ico { font-size: 13px; }

/* filter chips */
.filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.filter button {
  height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface);
  font: 500 14px var(--font); color: var(--ink-2); cursor: pointer;
}
.filter button:hover { color: var(--ink); border-color: var(--ink-3); }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Today hero ---------- */
.today { display: flex; gap: 24px; align-items: flex-start; }
.today .eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.today h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 750; margin: 4px 0 16px; }
.today-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.today-list a {
  display: flex; align-items: center; gap: 14px; padding: 10px; margin: 0 -10px; border-radius: 12px;
}
.today-list a:hover { background: var(--surface-2); }
.today-list img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.today-list strong { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.today-list .sub { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 2px; }
.today-next { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 15px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.today-next a { font-weight: 600; color: var(--ink); }
.today-next a:hover { color: var(--accent); }
@media (max-width: 560px) {
  .today { flex-direction: column; gap: 16px; }
  .today .dateblock { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; text-align: left; }
  .today .dateblock .db-m { writing-mode: horizontal-tb; padding: 0 14px; height: 100%; display: grid; place-items: center; }
  .today .dateblock .db-d { font-size: 34px; padding: 10px 14px; }
  .today .dateblock .db-w { padding: 0 14px; }
}

/* ---------- Agenda (date-grouped rows) ---------- */
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda > li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.agenda > li:first-child { border-top: 0; padding-top: 0; }
.agenda .when { font-variant-numeric: tabular-nums; }
.agenda .when a { display: block; }
.agenda .when b { display: block; font-size: 15px; font-weight: 650; }
.agenda .when small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.agenda .when a:hover b { color: var(--accent); }
.agenda .items { display: grid; gap: 4px; }
.agenda .items a { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 550; padding: 2px 0; }
.agenda .items a:hover { color: var(--accent); }
.agenda .items .chip { flex: none; }
.agenda .is-today b { color: var(--accent); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-left: 6px; vertical-align: 1px; }

/* ---------- Mini calendar ---------- */
.mini-cal .mc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mini-cal .mc-head strong { font-size: 16px; font-weight: 650; }
.mini-cal .mc-head a { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); }
.mini-cal .mc-head a:hover { background: var(--surface-2); color: var(--ink); }
.mini-cal table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.mini-cal th { font-size: 11.5px; color: var(--ink-3); font-weight: 600; padding-bottom: 6px; }
.mini-cal td { text-align: center; padding: 1px; }
.mini-cal td a, .mini-cal td span {
  position: relative; display: grid; place-items: center; height: 36px; border-radius: 9px; font-size: 14px; color: var(--ink-3);
}
.mini-cal td a.has { color: var(--ink); font-weight: 550; }
.mini-cal td a.has::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.mini-cal td a:hover { background: var(--surface-2); }
.mini-cal td .is-today, .mini-cal td a.has.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.mini-cal td .is-sel, .mini-cal td a.has.is-sel { background: var(--ink); color: var(--bg); }
.mini-cal td a.is-sel::after { background: var(--bg); }
.mini-cal .legend { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.mini-cal .legend i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ---------- Month tiles ---------- */
.months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .months { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .months { grid-template-columns: repeat(6, 1fr); } }
.months a {
  display: block; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.months a:hover { border-color: var(--ink-3); }
.months b { display: block; font-size: 16px; font-weight: 650; }
.months small { color: var(--ink-3); font-size: 13px; }
.months a.is-now { border-color: var(--accent); }
.months a.is-now b { color: var(--accent); }

/* ---------- Theme tiles ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.theme-grid a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); font-weight: 550; font-size: 15px;
}
.theme-grid a:hover { border-color: var(--ink-3); }
.theme-grid .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; flex: none; }
.theme-grid small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }

/* ---------- Month calendar (big) ---------- */
.cal { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cal th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 0 0 8px; text-align: left; padding-left: 10px; }
.cal td { vertical-align: top; height: 116px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 0; background: var(--surface); }
.cal tr td:last-child { border-right: 1px solid var(--line); }
.cal tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.cal tbody tr:first-child td:first-child { border-top-left-radius: var(--radius); }
.cal tbody tr:first-child td:last-child { border-top-right-radius: var(--radius); }
.cal tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }
.cal tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }
.cal td.out { background: var(--surface-2); }
.cal .d { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 4px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal .d a:hover { color: var(--accent); }
.cal td.out .d { color: var(--ink-3); font-weight: 400; }
.cal td.empty .d { color: var(--ink-3); }
.cal .cnt { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.cal ul { list-style: none; margin: 0; padding: 0 6px 6px; display: grid; gap: 3px; }
.cal li a {
  display: block; font-size: 12.5px; font-weight: 550; line-height: 1.3; padding: 4px 7px; border-radius: 6px;
  background: var(--surface-2); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal li a[data-t="food"]    { background: var(--t-food-bg);    color: var(--t-food); }
.cal li a[data-t="drinks"]  { background: var(--t-drinks-bg);  color: var(--t-drinks); }
.cal li a[data-t="animals"] { background: var(--t-animals-bg); color: var(--t-animals); }
.cal li a[data-t="fun"]     { background: var(--t-fun-bg);     color: var(--t-fun); }
.cal li a[data-t="kind"]    { background: var(--t-kind-bg);    color: var(--t-kind); }
.cal li a[data-t="tech"]    { background: var(--t-tech-bg);    color: var(--t-tech); }
.cal li a[data-t="words"]   { background: var(--t-words-bg);   color: var(--t-words); }
.cal li a[data-t="games"]   { background: var(--t-games-bg);   color: var(--t-games); }
.cal li a:hover { filter: brightness(.95); }
.cal li.more a { background: none; color: var(--ink-2); padding: 2px 7px; }
.cal td.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal td.is-today .d > span:first-child { color: var(--accent); }
.is-hidden { display: none !important; }

.view-switch { display: none; }
@media (max-width: 760px) {
  .cal-wrap { display: none; }
}
@media (min-width: 761px) {
  .month-agenda-title { margin-top: 32px; }
}

/* ---------- Event cards (day page) ---------- */
.event-cards { display: grid; gap: 14px; }
.event-card { display: grid; grid-template-columns: 180px 1fr; overflow: hidden; }
.event-card img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; background: var(--surface-2); }
.event-card .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.event-card h2 { font-size: 22px; font-weight: 700; }
.event-card h2 a:hover { color: var(--accent); }
.event-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.event-card .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 4px; }
.event-card .rule { font-size: 13px; color: var(--ink-3); }
@media (max-width: 560px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card img { height: 160px; }
}

/* week strip */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week a { display: block; text-align: center; padding: 8px 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.week a:hover { border-color: var(--ink-3); }
.week small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.week b { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.week span { display: block; font-size: 11.5px; color: var(--ink-3); }
.week a.has b { color: var(--ink); }
.week a.has span { color: var(--accent); font-weight: 600; }
.week a[aria-current="page"] { background: var(--ink); border-color: var(--ink); }
.week a[aria-current="page"] * { color: var(--bg) !important; }
.week a.no b { color: var(--ink-3); font-weight: 500; }

/* ---------- Event page ---------- */
.event-head h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 780; letter-spacing: -.03em; margin: 8px 0 12px; }
.event-head .lead { font-size: 19px; color: var(--ink-2); max-width: 62ch; margin: 0 0 16px; }
.datepill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 14.5px;
}
.datepill:hover { filter: brightness(.97); }
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--ink-3); font-size: 13.5px; padding-top: 1px; }
.facts dd { margin: 0; font-weight: 550; }
.facts dd small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13.5px; }
.countdown { display: flex; align-items: baseline; gap: 6px; }
.countdown b { font-size: 34px; font-weight: 780; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

.hero-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: var(--surface-2); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 17.5px; line-height: 1.7; max-width: 68ch; }
.prose h2 { font-size: 24px; font-weight: 720; margin: 36px 0 10px; scroll-margin-top: 80px; }
.prose p { margin: 0 0 16px; color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.toc { list-style: none; margin: 0; padding: 0; font-size: 14.5px; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--ink-2); }
.toc a:hover { color: var(--ink); border-color: var(--accent); }
.sticky { position: sticky; top: 84px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--line); }
.rows a { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.rows a:hover strong { color: var(--accent); }
.rows img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; background: var(--surface-2); }
.rows strong { display: block; font-weight: 600; font-size: 15px; }
.rows small { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Theme page ---------- */
.theme-head { display: flex; gap: 20px; align-items: center; }
.theme-icon { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-size: 38px; flex: none; background: var(--t-food-bg); }
.next-up { display: flex; align-items: center; gap: 18px; }
.next-up .eyebrow { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 650; }
.next-up h2 { font-size: 24px; font-weight: 720; margin: 2px 0 4px; }
.next-up p { margin: 0; color: var(--ink-2); font-size: 15px; }
.next-up .btn { margin-left: auto; }
@media (max-width: 640px) { .next-up { flex-wrap: wrap; } .next-up .btn { margin-left: 0; width: 100%; } }

.jump { display: flex; gap: 4px; flex-wrap: wrap; }
.jump a { padding: 4px 10px; border-radius: 7px; font-size: 13.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.jump a:hover { color: var(--ink); border-color: var(--ink-3); }
.jump span { padding: 4px 10px; font-size: 13.5px; font-weight: 600; color: var(--line-2); border: 1px solid transparent; }

.year-table { width: 100%; border-collapse: collapse; }
.year-table caption { text-align: left; font-size: 18px; font-weight: 720; padding: 22px 0 8px; letter-spacing: -.01em; scroll-margin-top: 80px; }
.year-table caption small { color: var(--ink-3); font-weight: 500; font-size: 14px; margin-left: 6px; }
.year-table td { padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.year-table td.dt { width: 110px; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 15px; }
.year-table td.dt a:hover { color: var(--accent); }
.year-table td.dt small { display: block; font-size: 12.5px; color: var(--ink-3); }
.year-table td.nm a { font-weight: 620; }
.year-table td.nm a:hover { color: var(--accent); }
.year-table td.nm p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.year-table tr.soon td.dt { color: var(--accent); font-weight: 600; }
.year-table tr.past { opacity: .5; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0; font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--ink); }


/* icon tile used when an event has no photo */
.thumb { display: grid; place-items: center; flex: none; background: var(--surface-2); font-size: 24px; }
.thumb[data-t="food"] { background: var(--t-food-bg); }
.thumb[data-t="drinks"] { background: var(--t-drinks-bg); }
.thumb[data-t="animals"] { background: var(--t-animals-bg); }
.thumb[data-t="fun"] { background: var(--t-fun-bg); }
.thumb[data-t="kind"] { background: var(--t-kind-bg); }
.thumb[data-t="tech"] { background: var(--t-tech-bg); }
.thumb[data-t="words"] { background: var(--t-words-bg); }
.thumb[data-t="games"] { background: var(--t-games-bg); }
.today-list .thumb { width: 56px; height: 56px; border-radius: 10px; }
.rows .thumb { width: 44px; height: 44px; border-radius: 9px; font-size: 20px; }
.event-card .thumb { min-height: 150px; font-size: 56px; }

/* fixes: keep long event names inside calendar cells */
.cal td { overflow: hidden; }
.cal li { min-width: 0; }
.filter button { display: inline-flex; align-items: center; gap: 6px; }

/* empty states */
.empty-state { padding: 28px 20px; text-align: center; color: var(--ink-2); }
.empty-state strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.empty-state p { margin: 0; font-size: 15px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.3em; }
.error-trace { font: 12.5px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; overflow-x: auto; background: var(--surface-2); padding: 14px; border-radius: 10px; margin-top: 16px; text-align: left; }
.mini-cal .mc-head strong a { display: inline; width: auto; height: auto; color: var(--ink); }
picture { display: contents; }
.event-card > a { display: grid; }
.prose .video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 16px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.agenda .items a { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .agenda > li { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; } }

/* theme subscribe card */
.sub-text { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.sub-actions { display: grid; gap: 8px; }
.sub-url { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.sub-url summary { cursor: pointer; }
.sub-url summary:hover { color: var(--ink); }
.sub-url input { width: 100%; margin-top: 8px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-2); font: 13px ui-monospace, Menlo, monospace; }

/* themes index */
.theme-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .theme-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .theme-cards { grid-template-columns: repeat(3, 1fr); } }
.theme-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.theme-card:hover { border-color: var(--ink-3); }
.theme-card .tc-head { display: flex; align-items: center; gap: 12px; }
.theme-card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none; background: var(--surface-2); }
.theme-card h2 { font-size: 18px; font-weight: 700; }
.theme-card .tc-count { font-size: 13px; color: var(--ink-3); }
.theme-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.theme-card .tc-next { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }
.theme-card .tc-next b { color: var(--ink); font-weight: 600; }

/* keep long imported summaries scannable in lists */
.year-table td.nm p, .theme-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.next-up p, .event-card p, .today-list .sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
