/* Palette: restrained primaries on neutral light and dark surfaces. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #3e4349;
  --muted: #626a73;
  --rule: #dde1e5;
  --red: #d94b30;
  --blue: #4a7194;
  --yellow: #d9ba3d;
  --link: #3c6488;
  --accent-font: "Google Sans Code", "Courier New", monospace;
  --quote-font: Arial, Helvetica, sans-serif;
  --quote-weight: 400;
  --quote-size: 18px;
  --quote-scale: 1;
  --quote-leading: 1.4;
  --menu-glass: rgba(255, 255, 255, .60);
  --menu-shadow: 0 12px 32px rgba(32, 35, 40, .09);
  --header-height: 96px;
  --gutter: clamp(22px, 5.7vw, 92px);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #2d3238;
  --ink: #e0e3e7;
  --muted: #b9c1c9;
  --rule: #4c535b;
  --red: #e45b35;
  --blue: #85b0d0;
  --yellow: #d9ba3d;
  --link: #9abed9;
  --menu-glass: rgba(45, 50, 56, .66);
  --menu-shadow: 0 12px 32px rgba(0, 0, 0, .20);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:hover { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 5px;
}
.skip {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 20px;
  padding: 9px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.frame { max-width: 1500px; margin: auto; padding-inline: var(--gutter); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  column-gap: 28px;
}
/* Keep the glass on its own layer so dropdowns can blur the page independently. */
.site-header::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline: calc(-1 * var(--gutter));
  z-index: -1;
  pointer-events: none;
  background: var(--paper);
  opacity: 0;
  transition: opacity 160ms ease-out;
}
.site-header.is-scrolled::before { opacity: 1; }
.brand { font-size: 18px; font-weight: 600; letter-spacing: -.6px; white-space: nowrap; }
.red-dot, .title-dot, .heading-stop { display: inline-block; width: var(--dot-size, 6px); height: var(--dot-size, 6px); border-radius: 50%; background: var(--red); flex: none; vertical-align: -.012em; }
/* Global heading punctuation. Placement comes from the shared heading type. */
.title-dot { --dot-size: .105em; margin-left: .08em; }
.heading-ending { white-space: nowrap; }
.heading-stop { --dot-size: .12em; margin-left: .07em; }
.heading-ending .heading-punctuation::after { width: .12em; height: .12em; }
/* One quotation voice for testimonials, the author's pull quotes, and inline quotes. */
blockquote, q, .quotation {
  font-family: var(--quote-font);
  font-style: italic;
  font-weight: var(--quote-weight);
  font-synthesis: none;
  letter-spacing: 0;
  color: var(--ink);
}
blockquote, .quotation--pull, .quotation-source { --quote-indent: calc(var(--quote-size) * var(--quote-scale)); }
blockquote, .quotation--pull { position: relative; padding-inline-start: var(--quote-indent); font-size: calc(var(--quote-size) * var(--quote-scale)); line-height: var(--quote-leading); }
blockquote { margin: 0 0 1em; }
q { font-size: calc(1em * var(--quote-scale)); line-height: inherit; }
q::before { content: ''; display: inline-block; width: 2px; height: .9em; margin-inline-end: .45em; background: var(--red); vertical-align: -.05em; }
q::after { content: none; }
.quotation-mark { position: absolute; inset-inline-start: 0; top: .15em; width: 2px; height: 1.1em; overflow: hidden; color: transparent; background: var(--red); font-style: normal; pointer-events: none; user-select: none; }
.quotation p { font-family: inherit; font-style: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; }
cite, .quotation-source { font-family: var(--accent-font); font-style: normal; font-weight: 400; font-size: 11px; line-height: 1.8; color: var(--muted); }
blockquote + .quotation-source { padding-inline-start: var(--quote-indent); }
.navigation > a[aria-current="page"]::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 1px; border-radius: 50%; background: var(--red); vertical-align: -.016em; }
.brand-mark { --dot-size: .74em; margin-right: .45em; }
.read-more .red-dot { margin-left: 6px; }
.copyright .red-dot { margin-right: 8px; }
.navigation { display: flex; align-items: center; justify-self: end; gap: clamp(16px, 1.9vw, 29px); }
.navigation > a, .navigation summary { font-family: var(--accent-font); font-size: 11px; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
details { position: relative; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; display: inline-block; margin-left: 6px; color: var(--muted); }
details[open] > summary::after { content: '−'; }
.dropdown {
  position: absolute;
  /* Start below the header so two glass surfaces never overlap. */
  top: calc(50% + var(--header-height) / 2 + 8px);
  right: -20px;
  z-index: 1;
  width: 266px;
  border: 1px solid var(--rule);
  box-shadow: var(--menu-shadow);
  padding: 12px 20px;
}
.dropdown::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--paper);
}
/* Both declarations support Safari and other browsers. */
@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  .site-header::before, .dropdown::before {
    background: var(--menu-glass);
    -webkit-backdrop-filter: blur(14px) saturate(110%);
    backdrop-filter: blur(14px) saturate(110%);
  }
}
/* Animate layout and labels, leaving the glass layer free of transforms/opacity. */
details[open] > .dropdown {
  animation: dropdown-appear 140ms ease-out;
}
details[open] > .dropdown > a {
  animation: dropdown-label-appear 140ms ease-out;
}
@keyframes dropdown-appear {
  from { margin-top: -4px; }
  to { margin-top: 0; }
}
@keyframes dropdown-label-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}
.dropdown a { display: block; padding: 10px 0; font-size: 13px; line-height: 1.45; }
.dropdown a + a { border-top: 1px solid var(--rule); }
.header-actions { display: flex; align-items: center; gap: 19px; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 0 4px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}
.theme-toggle svg { width: 17px; height: 17px; }
.mobile-toggle { display: none; min-height: 44px; padding: 5px 0; border: 0; background: transparent; font-size: 12px; cursor: pointer; }
.hero { position: relative; padding: 37px 0 42px; border-bottom: 1px solid var(--rule); }
.hero-meta { font-family: var(--accent-font); display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
h1 { font-weight: 400; font-size: clamp(105px, 16.8vw, 240px); letter-spacing: -.075em; line-height: 1.04; margin: 39px 0 34px -.065em; white-space: nowrap; }
.punctuation {
  position: relative;
  color: var(--ink);
  letter-spacing: 0;
  margin-right: -.075em;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .punctuation {
    /* Hide the font's square dot; keep its original stem. */
    background: linear-gradient(to bottom, var(--ink) 0 68%, transparent 68% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .punctuation::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: .21em;
    width: .10em;
    height: .10em;
    border-radius: 50%;
    background: var(--red);
    transform: translateX(-50%);
    pointer-events: none;
  }
}
@media (forced-colors: active) {
  .punctuation { background: none; color: CanvasText; }
  .punctuation::after { display: none; }
}
.hero-bottom { min-height: 70px; }
.hero p { font-size: clamp(17px, 1.7vw, 23px); line-height: 1.5; letter-spacing: -.4px; margin: 0; max-width: 470px; }
.posts { padding-top: 8px; }
.post { display: grid; grid-template-columns: 120px minmax(0, 1fr) 110px; gap: 34px; padding: 43px 0; border-bottom: 1px solid var(--rule); }
.date { display: flex; flex-direction: column; align-items: flex-start; padding-top: 6px; }
.date-day { font-family: var(--accent-font); font-size: 72px; line-height: .9; letter-spacing: -5px; font-weight: 400; }
.date-month { font-family: var(--accent-font); margin-top: 14px; font-size: 10px; letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
h2 { margin: 0 0 18px; font-size: clamp(26px, 2.7vw, 37px); font-weight: 400; line-height: 1.18; letter-spacing: -1px; max-width: 790px; text-wrap: pretty; }
.post p { margin: 0; max-width: 74ch; font-size: 15px; line-height: 1.8; color: var(--muted); }
.read-more { color: var(--link); white-space: nowrap; }
.read-more:hover { text-decoration: underline; }
.post .tags { font-family: var(--accent-font); margin-top: 20px; font-size: 11px; line-height: 1.7; }
.post-image { align-self: start; margin-top: 5px; }
.post-image img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; mix-blend-mode: normal; }
.pagination { font-family: var(--accent-font); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 32px 0 55px; font-size: 12px; }
.pagination span { color: var(--muted); }
.pagination a { border-bottom: 1px solid var(--ink); padding: 5px 0; }
footer { border-top: 1px solid var(--rule); padding: 30px 0 38px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.socials { font-family: var(--accent-font); display: flex; gap: 25px; font-size: 12px; }
.copyright { font-family: var(--accent-font); font-size: 11px; color: var(--muted); margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1079px) {
  :root { --header-height: 84px; }
  .site-header { grid-template-columns: 1fr auto; grid-template-rows: calc(var(--header-height) - 1px) auto; min-height: var(--header-height); column-gap: 18px; }
  .brand { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .mobile-toggle { display: inline-block; }
  .navigation { display: none; grid-column: 1 / -1; grid-row: 2; width: 100%; align-items: stretch; gap: 0; padding: 8px 0 19px; }
  .navigation.is-open {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .navigation > a, .navigation > details { padding: 13px 0; border-top: 1px solid var(--rule); }
  .navigation > a, .navigation summary { font-size: 12px; }
  .dropdown { position: static; width: 100%; border: 0; box-shadow: none; padding: 8px 0 0 19px; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dropdown::before { display: none; }
  .dropdown a { font-size: 14px; padding: 11px 0; }
  .dropdown a + a { border: 0; }
  .post { grid-template-columns: 85px minmax(0, 1fr) 85px; gap: 25px; }
  .date-day { font-size: 63px; }
  h2 { font-size: 30px; }
}
@media (max-width: 640px) {
  :root { --header-height: 78px; --quote-size: 17px; }
  .site-header { min-height: var(--header-height); }
  .brand { font-size: 16px; letter-spacing: -.5px; }
  .header-actions { gap: 16px; }
  .theme-toggle { padding: 5px 0; }
  .theme-label { display: none; }
  .hero { padding-top: 27px; padding-bottom: 31px; }
  .hero-meta { font-size: 8px; letter-spacing: .8px; }
  h1 { white-space: normal; font-size: 30vw; line-height: .9; margin: 37px 0 30px -.06em; letter-spacing: -.07em; }
  h1 .word { display: block; }
  .hero p { font-size: 17px; }
  .post { grid-template-columns: 49px minmax(0, 1fr); gap: 19px; padding: 30px 0; }
  .date-day { font-size: 45px; letter-spacing: -3px; }
  .date-month { font-size: 8px; letter-spacing: .3px; margin-top: 10px; }
  h2 { font-size: 26px; letter-spacing: -.7px; }
  .post-image { display: none; }
  .post p { font-size: 14px; line-height: 1.75; }
  .post .tags { font-size: 10px; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 20px; }
  .pagination { padding-bottom: 40px; }
}
@media (max-width: 360px) {
  .header-actions { gap: 11px; }
  .brand { font-size: 14px; }
  .post { grid-template-columns: 41px minmax(0, 1fr); gap: 14px; }
  h2 { font-size: 24px; }
  .hero p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
