/* IBM Plex Mono: cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* IBM Plex Mono: cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* IBM Plex Mono: vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* IBM Plex Mono: latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-ext.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;
}

/* IBM Plex Mono: latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin.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;
}

/* Inter Tight: cyrillic-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Inter Tight: cyrillic */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter Tight: greek-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}

/* Inter Tight: greek */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* Inter Tight: vietnamese */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Inter Tight: latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-latin-ext.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;
}

/* Inter Tight: latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-latin.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 {
  color-scheme: light;
  scrollbar-gutter: stable;
  --paper: #f6f6f3;
  --ink: #252724;
  --muted: #72756d;
  --focus: #47633c;
  font-family: "Inter Tight", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1b211d;
    --ink: #e5e8df;
    --muted: #adb7a9;
    --focus: #9bc9aa;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1b211d;
  --ink: #e5e8df;
  --muted: #adb7a9;
  --focus: #9bc9aa;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.shell { max-width: 1180px; margin: 0 auto; padding: 54px 42px 80px; }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 44px;
  align-items: center;
  gap: 24px;
  margin-bottom: 52px;
}
.masthead h1 { font-size: 27px; line-height: 1.2; font-weight: 600; }
.masthead h1 a:hover { text-decoration: none; }
.topics { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 16px; color: var(--muted); }
.topics [aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.theme-control { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--muted); }
.theme-control[inert] { visibility: hidden; }
.theme-control:hover { color: var(--ink); }
.theme-control:has(select:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-control select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.theme-control svg { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
:root[data-theme="system"] .theme-system,
:root[data-theme="light"] .theme-light,
:root[data-theme="dark"] .theme-dark { display: block; }

.not-found { padding: 48px 0; max-width: 48ch; }
.not-found .error-code { color: var(--muted); font: 15px/1.55 "IBM Plex Mono", monospace; }
.not-found h2 { margin: 12px 0; font-size: 32px; font-weight: 600; }
.not-found > p:not(.error-code) { color: var(--muted); }
.not-found > a { display: inline-block; margin-top: 24px; text-decoration: underline; }

.feed-catalog { list-style: none; margin: 0; padding: 0; max-width: 70ch; }
.feed-catalog li + li { margin-top: 28px; }
.feed-catalog h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.feed-catalog p { color: var(--muted); }

.feed-tabs { display: flex; gap: 24px; margin-bottom: 24px; color: var(--muted); }
.feed-tabs a { padding: 8px 0; }
.feed-tabs [aria-current] { color: var(--ink); text-decoration: underline; }

#event-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 18px; row-gap: 22px; }
.event { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: baseline; }
.event-date { color: var(--muted); white-space: nowrap; font: 15px/1.55 "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.event-date time { display: inline-grid; grid-template-columns: 8ch auto; column-gap: 12px; align-items: baseline; }
.event-clock { text-align: right; }
.event-calendar { text-align: left; }
.event-entry { font: inherit; word-spacing: .45em; }
.event-text, .event-meta a, .event-topic { word-spacing: normal; }
.event-topic { font-weight: 500; text-decoration-line: underline; text-decoration-color: color-mix(in srgb, var(--focus) 55%, transparent); text-decoration-thickness: 2px; text-underline-offset: .2em; transition: text-decoration-color .15s ease; }
.event-topic:hover, .event-topic:focus-visible { text-decoration-color: var(--focus); }
.topic-heading { margin: 36px 0 24px; }
.topic-heading h2 { margin: 0; font-size: 24px; }
.topic-heading h2 span, .topic-heading p { color: var(--muted); }
.topic-heading p { margin: 8px 0 0; }
.event-meta { display: inline-flex; align-items: baseline; gap: .45em; max-width: 100%; vertical-align: bottom; color: var(--muted); word-spacing: normal; }
.event-source:hover { color: var(--focus); }
.external-arrow { width: .85em; height: .85em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
  .event-topic { transition: none; }
}
.event-meta a { min-width: 0; overflow-wrap: anywhere; }

.event-details-toggle { flex-shrink: 0; display: inline-grid; place-items: center; width: 1lh; height: 1lh; vertical-align: bottom; padding: 0; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font: inherit; word-spacing: normal; cursor: pointer; }
.event-details-toggle:hover, .event:has(> .event-details:popover-open) .event-details-toggle { color: var(--ink); background: color-mix(in srgb, var(--muted) 12%, transparent); }
.event-details-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.event-details { position: fixed; width: 280px; max-width: calc(100vw - 32px); max-height: min(420px, calc(100dvh - 32px)); overflow: auto; padding: 20px; border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent); border-radius: 12px; color: var(--ink); background: var(--paper); box-shadow: 0 12px 36px #0002; font-size: 16px; word-spacing: normal; overflow-wrap: anywhere; }
.event-details dl { margin: 0; }
.event-details dt { margin-bottom: 6px; color: var(--muted); font: 11px/1.5 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.event-details dd { margin: 0; }
.event-details dd + dt { margin-top: 18px; }
.event-details ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.event-details a { display: inline-block; padding: 4px 0; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 40%, transparent); }
.event-details a:hover { text-decoration-color: var(--focus); }
@supports (position-area: bottom) {
  .event-details { inset: auto; margin: 8px; position-area: bottom span-left; position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline; }
}

.empty-state { grid-column: 1 / -1; padding: 32px 0; color: var(--muted); }
.pagination { display: flex; justify-content: space-between; gap: 24px; padding-top: 36px; font-size: 16px; color: var(--muted); }
.pagination:not(:has(a)) { display: none; }
.pagination .older { margin-left: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 850px) {
  .shell { padding: 36px 28px 60px; }
  .masthead { grid-template-columns: 1fr 44px; gap: 24px; margin-bottom: 38px; }
  .topics { grid-row: 2; grid-column: 1 / -1; }
  .theme-control { grid-row: 1; grid-column: 2; }
  #event-list { column-gap: 14px; }
}

@media (max-width: 550px) {
  body { font-size: 17px; }
  .shell { padding: 20px 20px 40px; }
  .masthead { gap: 12px; margin-bottom: 24px; }
  .topics { min-width: 0; flex-wrap: nowrap; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .topics a { display: flex; flex: none; align-items: center; min-height: 44px; padding: 0 4px; }
  .topics a:focus-visible { outline-offset: -2px; }
  #event-list { display: block; }
  .event { display: block; margin-bottom: 20px; }
  .event-date { margin-bottom: 6px; }
  .event-date time { display: inline-flex; flex-direction: row-reverse; gap: 12px; }
  .event-clock:empty { display: none; }
  .event-entry { overflow-wrap: anywhere; }
  .pagination { padding-top: 8px; }
  .pagination a { display: flex; align-items: center; min-height: 44px; }
}
