/* Shared tokens. Palette colors are supplied by palettes.js. */
:root {
  --paper: #fff;
  --strong: #252530;
  --drawer-ink: #fff;
  --display: Impact, 'Arial Narrow', sans-serif;
  --headline: 'Arial Narrow', Arial, 'Microsoft YaHei', sans-serif;
  --body: Arial, 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --heading-weight: 800;
  --rule: 2px;
  --link-hover: #b52673;
  --header-expanded: 120px;
  --header-collapsed: 60px;
  --logo-expanded: clamp(46px, 4.4vw, 88px);
  --logo-collapsed: 36px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 154px;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
summary,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: transparent;
  border-radius: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.35;
}
button,
select {
  min-height: 40px;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--tag);
  outline-offset: 5px;
}
h1,
h2,
h3,
h4 {
  font-weight: var(--heading-weight);
  text-transform: uppercase;
}
svg {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  stroke-width: 1.7;
}
p {
  margin: 0;
}
button svg {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
.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;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: var(--mark);
  z-index: 5;
}
.skip:focus {
  top: 10px;
}

/* Header and inline search. Layer order: header 3, top button 4, native dialog above both. */
.page-width {
  width: 70%;
  margin: 0 auto;
}
.header-space {
  height: var(--header-expanded);
  position: relative;
}
#compactTrigger {
  position: absolute;
  top: 96px;
  width: 1px;
  height: 1px;
}
.masthead {
  position: fixed;
  top: 0;
  left: 15%;
  margin: 0;
  height: var(--header-expanded);
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  column-gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  z-index: 3;
}
.wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-self: center;
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: var(--logo-expanded);
  letter-spacing: -0.025em;
  line-height: 1.1;
  white-space: nowrap;
  padding: 7px 8px;
  color: var(--logo);
}
.brand-initial,
.brand-rest {
  display: flex;
}
.masthead svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.8;
}
.wordmark svg {
  height: 0.8em;
  width: auto;
  flex: none;
  stroke: none;
}
.masthead.compact {
  height: var(--header-collapsed);
}
.masthead.compact .wordmark {
  font-size: var(--logo-collapsed);
  letter-spacing: -0.035em;
}
.icon-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
}
.masthead .search-toggle,
.masthead .menu-toggle {
  grid-row: 1;
  justify-self: end;
  z-index: 1;
}
.search-toggle {
  grid-column: 2;
}
.menu-toggle {
  grid-column: 3;
}
.header-search {
  display: flex;
  align-items: center;
  position: absolute;
  right: 112px;
  top: 50%;
  transform: translateY(-50%);
  width: 154px;
  min-height: 36px;
  height: 36px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  z-index: 2;
}
.header-search label {
  font-weight: 700;
  font-size: 13px;
}
.header-search input {
  width: 100%;
  height: 35px;
  min-width: 0;
  min-height: 0;
  flex: 1;
  padding: 6px 5px;
  background: transparent;
  border: 0;
  font-family: Consolas, 'Microsoft YaHei', monospace;
  font-size: 13px;
  letter-spacing: 0.035em;
  outline: none;
  outline-offset: 0;
}
.header-search input::placeholder {
  color: var(--ink);
  opacity: 1;
}
.header-search:focus-within {
  border-bottom-color: var(--tag);
}
.back-top {
  position: fixed;
  bottom: 60px;
  right: calc(15% - 1px);
  background: var(--mark);
  border: var(--rule) solid var(--ink);
  z-index: 4;
}

/* Category bar and three-column news layout. */
.categories {
  display: flex;
  justify-content: safe center;
  align-items: center;
  gap: clamp(4px, 0.7vw, 14px);
  padding: 7px 0;
  min-height: 44px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.category {
  flex: 0 0 auto;
  font-family: var(--headline);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  padding: 6px 8px;
  min-height: 28px;
}
.category[aria-pressed='true'] {
  background: var(--selected);
}
.layout {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 206px;
  gap: 28px;
  padding-top: 34px;
  align-items: start;
  min-height: calc(100dvh - 267px);
}
.rail {
  position: sticky;
  top: 164px;
  align-self: start;
}
.rail-nav {
  display: flex;
  flex-direction: column;
}
.rail-link {
  font-family: var(--display);
  font-weight: 900;
  font-size: 31px;
  letter-spacing: -0.02em;
  line-height: 1.16;
  display: block;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
.rail-link:first-child {
  padding-top: 0;
  padding-bottom: 36px;
}
.rail-link:last-child {
  border-bottom: 0;
}
.rail-link span {
  padding: 2px 5px 3px 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.rail-link[aria-current='page'] span {
  background: var(--selected);
  padding-left: 5px;
}
.feed {
  min-width: 0;
  padding: 0 26px;
}
.news-layout > .feed {
  margin-left: 60px;
}
.feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  gap: 12px;
  text-transform: uppercase;
}
.news-item {
  position: relative;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line);
}
.news-item:first-of-type {
  padding-top: 0;
}
.news-item h2 {
  font-family: var(--headline);
  font-size: 23px;
  line-height: 1.24;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.news-item p {
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  font-size: 11px;
  line-height: 1.5;
}
.tag {
  font-size: 11px;
  color: var(--tag);
  font-weight: 700;
  padding: 0;
  min-height: 24px;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.item-meta time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.time-clock::before {
  content: ', ';
}
.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin: 27px 0 48px;
  padding: 12px;
  border: var(--rule) solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 47px;
  text-transform: uppercase;
}
.feed-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 27px 0 42px;
  gap: 14px;
}
.feed-actions .load-more {
  margin: 0;
}
.search-results-heading {
  margin-top: 28px;
}
.search-results-heading:first-child {
  margin-top: 0;
}
.empty {
  padding: 48px 0 65px;
  line-height: 1.6;
  font-size: 16px;
}
.empty button {
  margin-top: 20px;
  padding: 8px 13px;
  background: var(--mark);
  font-size: 13px;
  font-weight: 700;
}

/* Calendar: enabled dates have content in the current archive/category. */
.calendar {
  position: sticky;
  top: 164px;
  min-width: 0;
  border: 1px solid var(--strong);
  padding: 0 10px 10px;
}
.calendar-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px;
  justify-content: space-between;
  align-items: center;
  background: var(--calendar);
  gap: 2px;
  margin: 0 -10px 10px;
  padding: 10px 7px;
  border-bottom: 1px solid var(--strong);
}
.calendar-heading select {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  min-height: 30px;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.calendar-heading svg {
  width: 12px;
  height: 12px;
}
.calendar-arrows {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.calendar-arrows button {
  width: 28px;
  min-height: 28px;
  padding: 0;
}
.calendar-arrows svg {
  width: 17px;
  height: 17px;
}
.calendar-arrows button:hover {
  background: var(--selected);
}
.month-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px 2px;
  text-align: center;
}
.weekday {
  font-size: 10px;
  font-weight: 700;
  padding-bottom: 9px;
  margin-bottom: 3px;
}
.day {
  font-size: 12px;
  padding: 0;
  min-height: 29px;
  width: 100%;
  font-variant-numeric: tabular-nums;
  color: #080808;
}
.day.has-data {
  font-weight: 700;
}
.day:disabled {
  color: #a4a4a4;
  opacity: 1;
}
.day:hover:not(:disabled),
.day[aria-pressed='true'] {
  background: var(--selected);
  opacity: 1;
}

/* Daily and weekly archives share the same list and reader. */
.archive-layout {
  padding-top: 42px;
  min-height: calc(100dvh - 204px);
}
.archive-intro h1 {
  font-family: var(--display);
  font-size: 43px;
  letter-spacing: -0.02em;
  line-height: 1.03;
  margin: 0 0 22px;
}
.archive-intro p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 25px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  min-height: 36px;
}
.back-link svg {
  width: 17px;
  height: 17px;
}
.report-item {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.report-item:first-of-type {
  padding-top: 8px;
}
.report-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--headline);
  font-size: 23px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.report-date svg {
  width: 21px;
  height: 21px;
}
.report-item h2 {
  font-family: var(--headline);
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.report-item p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.reader-layout {
  padding-top: 40px;
  grid-template-columns: 156px minmax(0, 1fr);
  padding-right: 64px;
}
.reader {
  padding-left: 28px;
  min-width: 0;
  padding-bottom: 70px;
}
.reader-meta {
  font-size: 12px;
  color: var(--tag);
  font-weight: 700;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.reader > h1 {
  font-family: var(--headline);
  font-size: clamp(28px, 2.1vw, 44px);
  line-height: 1.17;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.reader-summary {
  font-size: 18px;
  line-height: 1.7;
  border-bottom: var(--rule) solid var(--ink);
  padding-bottom: 28px;
  margin-bottom: 32px;
}
.reader h2 {
  font-size: 22px;
  margin: 36px 0 18px;
}
.reader h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 26px 0 9px;
}
.reader p,
.reader li {
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.reader li {
  margin-bottom: 13px;
}
.reader ul {
  padding-left: 19px;
}
.reader .significance {
  margin-top: 10px;
  color: var(--muted);
}

/* Drawer, about and contact. Root scroll locking preserves the page width. */
html:has(#menu[open]) {
  overflow: hidden;
}
#menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: 380px;
  max-width: 92vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0 36px;
  border: 0;
  background: var(--drawer);
  color: var(--drawer-ink);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#menu::backdrop {
  background: transparent;
}
#menu .menu-close {
  margin: 25px 0 0 auto;
  color: var(--drawer-ink);
}
#menu .menu-close:hover {
  background: #fffa00;
  color: #080808;
}
#menu :focus-visible {
  outline-color: var(--drawer-ink);
}
.drawer-links {
  display: grid;
  gap: 32px;
  margin-top: 61px;
}
.drawer-links > a,
.drawer-links summary {
  font-family: var(--display);
  font-size: 49px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
}
.drawer-links details {
  margin-top: 8px;
}
.drawer-links summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 37px;
  list-style: none;
  min-height: 44px;
}
.drawer-links summary::-webkit-details-marker {
  display: none;
}
.drawer-links summary svg {
  width: 23px;
}
.drawer-links details:not([open]) summary svg {
  transform: rotate(-90deg);
}
.languages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 27px;
}
.languages button {
  font-size: 16px;
  font-weight: 700;
  padding: 6px 0;
  min-height: 34px;
  color: var(--drawer-ink);
}
.languages button[aria-pressed='true'] {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}
.plain-page {
  max-width: 640px;
  margin: 70px auto;
  padding-bottom: 80px;
}
.plain-page h1 {
  font-family: var(--display);
  font-size: 66px;
  margin: 0 0 30px;
}
.plain-page p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 24px;
}
.plain-page label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 25px 0 10px;
}
.plain-page textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 14px;
  line-height: 1.7;
}
.plain-page button[type='submit'] {
  padding: 12px 22px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  margin-top: 18px;
}
.plain-page output {
  display: block;
  font-size: 13px;
  margin-top: 15px;
}

/* Footer. The category index appears only on news pages. */
.site-footer {
  margin-top: 52px;
}
.category-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: var(--rule) solid var(--ink);
  padding: 34px 0 40px;
}
.category-index nav {
  min-width: 0;
  grid-column: 2;
}
.index-category {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-family: var(--headline);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 44px;
}
.index-category:last-child {
  border-bottom: 0;
}
.index-category > span:first-child {
  padding: 3px 5px;
}
.current-marker {
  display: inline-flex;
  align-items: center;
  color: var(--marker);
}
.current-marker svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}
.footer-band {
  border-top: var(--rule) solid var(--ink);
  padding: 34px 20px 28px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}
.discord-mark {
  display: inline-flex;
  color: var(--tag);
}
.discord-mark svg {
  width: 27px;
  height: 27px;
}
.footer-labels {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
}
.footer-labels > * {
  padding: 0 17px;
}
.footer-labels > * + * {
  border-left: 1px solid var(--ink);
}
.footer-brand {
  padding: 3px 0 5px;
  color: var(--logo);
}
.footer-brand svg {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  stroke: none;
}

/* Hover styles, palette exceptions and optional typography comparison. */
.tag:hover,
.back-link:hover,
.footer-labels a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.news-title:hover,
.report-item:hover .report-date,
.report-item:hover h2 {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #fffa00;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.drawer-links > a:hover,
.drawer-links summary:hover,
.languages button:hover {
  color: #fffa00;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
[data-view='daily'] .back-link,
[data-view='weekly'] .back-link {
  color: #132d70;
}
[data-palette='violet'] {
  --strong: var(--ink);
}
[data-palette='violet'] .load-more,
[data-palette='violet'] .back-top {
  border-color: var(--logo);
  color: var(--logo);
}
[data-palette='violet'] .category-index,
[data-palette='violet'] .footer-band {
  border-color: var(--line);
}
html[data-type='body'] {
  --display: var(--body);
  --headline: var(--body);
}
html[data-type='body']
  body
  *:not(.wordmark):not(.wordmark *):not(.footer-brand):not(.footer-brand *) {
  font-family: var(--body) !important;
}

/* Responsive layout. */
@media (min-width: 2100px) {
  .layout {
    grid-template-columns: 180px minmax(0, 1fr) 224px;
    gap: 34px;
  }
  .reader-layout {
    grid-template-columns: 156px minmax(0, 1fr);
  }
  .news-item h2 {
    font-size: 26px;
  }
  .news-item p {
    font-size: 17px;
  }
  .item-meta,
  .tag {
    font-size: 12px;
  }
  .rail-link {
    font-size: 36px;
  }
}
@media (max-width: 1650px) and (min-width: 1024px) {
  .layout {
    grid-template-columns: 126px minmax(0, 1fr) 172px;
    gap: 21px;
  }
  .feed {
    padding-left: 20px;
    padding-right: 20px;
  }
  .rail-link {
    font-size: 27px;
  }
  .news-item h2 {
    font-size: 21px;
  }
  .news-item p {
    font-size: 14px;
  }
  .item-meta,
  .tag {
    font-size: 10px;
  }
  .reader-layout {
    grid-template-columns: 126px minmax(0, 1fr);
    padding-right: 0;
  }
  .archive-intro h1 {
    font-size: 36px;
  }
}
@media (max-width: 1279px) {
  .page-width {
    width: calc(100% - 64px);
  }
  .masthead {
    left: 32px;
  }
  .back-top {
    right: 32px;
  }
}
@media (max-width: 1023px) {
  .layout {
    grid-template-columns: 130px minmax(0, 1fr) 172px;
    gap: 20px;
  }
  .feed {
    padding: 0 20px;
  }
  .rail-link {
    font-size: 28px;
  }
  .news-item h2 {
    font-size: 21px;
  }
  .archive-intro h1 {
    font-size: 37px;
  }
  .reader-layout {
    grid-template-columns: 110px minmax(0, 1fr);
    padding-right: 0;
  }
  .masthead:has(.header-search:not([hidden])) .wordmark {
    visibility: hidden;
  }
}
@media (max-width: 767px) {
  :root {
    --header-expanded: 84px;
    --header-collapsed: 56px;
    --logo-expanded: clamp(22px, 6.7vw, 46px);
    --logo-collapsed: clamp(21px, 6.4vw, 30px);
  }
  .page-width {
    width: calc(100% - 32px);
  }
  .masthead {
    left: 16px;
    grid-template-columns: minmax(0, 1fr) 36px 36px;
    column-gap: 5px;
  }
  #compactTrigger {
    top: 65px;
  }
  .wordmark {
    padding: 5px;
  }
  .masthead svg {
    width: 25px;
    height: 25px;
  }
  .wordmark svg {
    height: 0.8em;
    width: auto;
  }
  .icon-button {
    width: 36px;
    height: 40px;
  }
  .header-search {
    right: 82px;
    width: min(154px, calc(100% - 88px));
  }
  .header-search label {
    font-size: 11px;
  }
  .categories {
    scrollbar-width: none;
  }
  .categories::-webkit-scrollbar {
    display: none;
  }
  .layout,
  .reader-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 23px 0 0;
  }
  .layout {
    min-height: calc(100dvh - 184px);
  }
  .archive-layout {
    min-height: calc(100dvh - 204px);
  }
  .rail {
    position: static;
  }
  .rail-nav {
    flex-direction: row;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    padding: 0 0 16px;
    margin: 0 0 12px;
  }
  .rail-link,
  .rail-link:first-child {
    font-size: 23px;
    padding: 0;
    border: 0;
  }
  .feed {
    padding: 0;
  }
  .news-layout > .feed {
    margin-left: 0;
  }
  .calendar {
    position: static;
    margin: 25px 0 40px;
    max-width: 320px;
    width: 100%;
    justify-self: start;
  }
  .day {
    min-height: 35px;
    font-size: 13px;
  }
  .news-item h2 {
    font-size: 22px;
  }
  .news-item p {
    font-size: 15px;
    line-height: 1.7;
  }
  .item-meta,
  .tag {
    font-size: 11px;
  }
  .load-more {
    margin-bottom: 12px;
  }
  .back-top {
    right: 16px;
    bottom: 48px;
    width: 40px;
    height: 40px;
  }
  #menu {
    width: 320px;
    padding: 0 26px;
  }
  .drawer-links {
    margin-top: 45px;
    gap: 30px;
  }
  .drawer-links > a {
    font-size: 46px;
  }
  .drawer-links summary {
    font-size: 32px;
  }
  .archive-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .archive-intro h1 {
    font-size: 33px;
    margin: 0 0 12px;
    grid-column: 1;
  }
  .archive-intro p {
    font-size: 13px;
    margin: 0;
    grid-column: 1;
    max-width: 240px;
  }
  .archive-intro .back-link {
    grid-column: 2;
    grid-row: 1/3;
    align-self: start;
    font-size: 10px;
  }
  .reader-layout .archive-intro {
    display: block;
  }
  .reader {
    padding-left: 0;
  }
  .reader > h1 {
    font-size: 30px;
  }
  .reader-summary {
    font-size: 16px;
  }
  .plain-page {
    margin-top: 38px;
  }
  .plain-page h1 {
    font-size: 48px;
  }
  .plain-page p {
    font-size: 16px;
  }
  .site-footer {
    margin-top: 32px;
  }
  .category-index {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 0;
  }
  .category-index nav {
    grid-column: 1;
  }
  .footer-labels > * {
    padding: 0 13px;
  }
  .footer-band {
    padding: 30px 10px;
  }
}

/* Motion: scroll-driven resize when supported; compact class is the fallback. */
@keyframes header-scroll-size {
  from {
    height: var(--header-expanded);
  }
  to {
    height: var(--header-collapsed);
  }
}
@keyframes logo-scroll-size {
  from {
    font-size: var(--logo-expanded);
  }
  to {
    font-size: var(--logo-collapsed);
  }
}
@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes search-reveal {
  from {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
    transform: translate(10px, -50%);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: translate(0, -50%);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .category,
  .icon-button,
  .day {
    transition: background-color 0.15s ease;
  }
  #menu[open] {
    animation: drawer-in 0.25s cubic-bezier(0.2, 0.75, 0.3, 1);
  }
  .header-search:not([hidden]) {
    animation: search-reveal 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .masthead {
    transition: height 0.42s cubic-bezier(0.22, 0.7, 0.2, 1);
  }
  .masthead .wordmark {
    transition: font-size 0.42s cubic-bezier(0.22, 0.7, 0.2, 1);
  }
  [data-scroll-header] #masthead,
  [data-scroll-header] #masthead .wordmark {
    transition: none;
    animation: header-scroll-size linear both;
    animation-duration: auto;
    animation-timeline: scroll(root block);
    animation-range: 0px 240px;
  }
  [data-scroll-header] #masthead .wordmark {
    animation-name: logo-scroll-size;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
