@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.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,
[data-theme="day"] {
  color-scheme: light;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --t1-size: 32px;
  --t1-weight: 600;
  --t1-lh: 1.15;
  --t1-track: -0.03em;
  --t2-size: 24px;
  --t2-weight: 560;
  --t2-lh: 1.25;
  --t2-track: -0.02em;
  --t3-size: 17px;
  --t3-weight: 400;
  --t3-lh: 1.7;
  --t3-track: 0;
  --t4-size: 15px;
  --t4-weight: 450;
  --t4-lh: 1.5;
  --t4-track: 0;
  --t5-size: 14px;
  --t5-weight: 520;
  --t5-lh: 1.4;
  --t5-track: 0;
  --t6-size: 12px;
  --t6-weight: 500;
  --t6-lh: 1.3;
  --t6-track: 0.02em;
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-soft: #f7f7f7;
  --ink: #0a0a0a;
  --ink-soft: #2e2e2e;
  --muted: #6b6b6b;
  --muted-soft: #8a8a8a;
  --line: #ebebeb;
  --line-strong: #dcdcdc;
  --accent: #0a0a0a;
  --hover-tint: rgba(0, 0, 0, 0.03);
  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow: none;
  --measure-home: 36rem;
  --pad-x: var(--s-4);
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue",
    "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

[data-theme="night"] {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #141414;
  --surface-soft: #1a1a1a;
  --ink: #f5f5f5;
  --ink-soft: #d6d6d6;
  --muted: #9a9a9a;
  --muted-soft: #7a7a7a;
  --line: #2a2a2a;
  --line-strong: #3a3a3a;
  --accent: #f5f5f5;
  --hover-tint: rgba(255, 255, 255, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]):not([data-theme="night"]) {
    color-scheme: dark;
    --bg: #0d0d0d;
    --surface: #141414;
    --surface-soft: #1a1a1a;
    --ink: #f5f5f5;
    --ink-soft: #d6d6d6;
    --muted: #9a9a9a;
    --muted-soft: #7a7a7a;
    --line: #2a2a2a;
    --line-strong: #3a3a3a;
    --accent: #f5f5f5;
    --hover-tint: rgba(255, 255, 255, 0.04);
  }
}

@media (min-width: 640px) {
  :root {
    --t1-size: 40px;
    --t3-size: 18px;
  }
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-optical-sizing: auto;
  font-feature-settings: "ss01" on, "cv11" on;
  font-weight: 400;
  line-height: var(--t3-lh);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: var(--s-1);
}

.top {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: var(--s-7);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.top-inner,
main,
.colophon {
  width: 100%;
  max-width: var(--measure-home);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-width: 0;
}

.wordmark {
  position: relative;
  color: var(--muted);
  font-size: var(--t5-size);
  font-weight: 480;
  line-height: var(--t5-lh);
  letter-spacing: var(--t5-track);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.seg {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  color: var(--muted-soft);
  font-size: var(--t6-size);
  font-weight: var(--t6-weight);
  line-height: var(--t6-lh);
  letter-spacing: var(--t6-track);
  white-space: nowrap;
}

.seg-gap {
  color: var(--muted-soft);
  font-weight: 400;
  letter-spacing: 0;
}

.seg button {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  line-height: 1;
}

.seg button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

.seg button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

main { padding-top: var(--s-8); }

h1 {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--t1-size);
  font-weight: var(--t1-weight);
  line-height: var(--t1-lh);
  letter-spacing: var(--t1-track);
  text-wrap: balance;
}

.lede {
  margin: var(--s-3) 0 0;
  color: var(--muted);
  font-size: var(--t3-size);
  font-weight: var(--t3-weight);
  line-height: var(--t3-lh);
  letter-spacing: var(--t3-track);
}

.entries {
  margin-top: var(--s-8);
  border-top: 1px solid var(--line);
}

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--s-4);
  row-gap: var(--s-1);
  align-items: baseline;
  padding-block: var(--s-5);
  padding-inline: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.entry-title {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  overflow-wrap: break-word;
  color: var(--ink);
  font-size: var(--t5-size);
  font-weight: var(--t5-weight);
  line-height: var(--t5-lh);
  letter-spacing: var(--t5-track);
}

.entry-hint {
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-size: var(--t6-size);
  font-weight: var(--t6-weight);
  line-height: var(--t6-lh);
  letter-spacing: var(--t6-track);
}

.entry-blurb {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  overflow-wrap: break-word;
  color: var(--muted);
  font-size: var(--t4-size);
  font-weight: var(--t4-weight);
  line-height: var(--t4-lh);
  letter-spacing: var(--t4-track);
}

.entry-meta {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  overflow-wrap: break-word;
  color: var(--muted-soft);
  font-size: var(--t6-size);
  font-weight: var(--t6-weight);
  line-height: var(--t6-lh);
  letter-spacing: var(--t6-track);
}

.entry:hover,
.entry:focus-visible {
  background: var(--hover-tint);
  text-decoration: none;
}

.entry:hover .entry-hint,
.entry:focus-visible .entry-hint {
  color: var(--ink);
}

.colophon {
  margin-top: var(--s-8);
  padding-bottom: var(--s-8);
}

.colophon p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: var(--s-4);
  color: var(--muted);
  font-size: var(--t6-size);
  font-weight: var(--t6-weight);
  letter-spacing: var(--t6-track);
  line-height: var(--t6-lh);
}

@media (prefers-reduced-motion: no-preference) {
  body,
  .top,
  .wordmark,
  .lede,
  .entry,
  .entry-title,
  .entry-blurb,
  .entry-hint,
  .entry-meta,
  .colophon p,
  .seg,
  .seg-gap,
  .seg button {
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  }
}

@media (max-width: 380px) {
  :root { --pad-x: var(--s-3); }

  /* Brand on row 1; .seg on its own line so Night cannot leave the viewport. */
  .top {
    height: auto;
    min-height: var(--s-7);
    align-items: stretch;
  }

  .top-inner {
    flex-wrap: wrap;
    align-items: center;
    row-gap: var(--s-2);
    padding-bottom: var(--s-2);
  }

  .wordmark {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: var(--s-7);
  }

  .seg {
    flex: 1 0 100%;
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
}
