@import url("./intro.css");
@import url("./pages.css");

:root {
  --ink: #070810;
  --ink-raised: #0b0c18;
  --ink-soft: #101326;
  --panel: #15182b;
  --panel-light: #1c2035;
  --text: #e8e9f2;
  --text-soft: #b7b9cc;
  --text-muted: #85899f;
  --line: rgba(190, 200, 235, 0.13);
  --line-strong: rgba(190, 204, 245, 0.26);
  --blue: #7ea9ff;
  --blue-bright: #b1ceff;
  --blue-deep: #315bbf;
  --ice: #d2efff;
  --violet: #9f92e8;
  --silver: #d8dce8;
  --serif: "Cormorant Garamond", "Noto Serif SC", "Times New Roman", serif;
  --sans: "Manrope", "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --type-caption: 0.75rem;
  --type-meta: 0.8125rem;
  --type-ui: 0.875rem;
  --type-body-sm: 0.9375rem;
  --type-body: 1rem;
  --type-body-lg: 1.125rem;
  --leading-caption: 1.55;
  --leading-ui: 1.6;
  --leading-body: 1.75;
  --tracking-caption: 0.1em;
  --tracking-label: 0.08em;
  --page-width: 1580px;
  --gutter: clamp(22px, 4.5vw, 76px);
  --header-height: 86px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-editorial: cubic-bezier(0.76, 0, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-color: #384162 var(--ink);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 90% 2%, rgba(34, 52, 112, 0.13), transparent 28rem),
    var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--type-body);
  font-weight: 300;
  line-height: var(--leading-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.intro-active,
body.search-open,
body.menu-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(107, 143, 224, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 1px solid var(--blue-bright);
  outline-offset: 5px;
}

img {
  display: block;
  max-width: 100%;
}

svg,
video,
canvas {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

#app,
#page-content,
.page-view,
.page-container,
main,
section,
article,
aside,
header,
footer {
  min-width: 0;
}

#page-content .page-view {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.page-view h1,
.page-view h2,
.page-view h3,
.prose,
.global-results strong {
  overflow-wrap: break-word;
}

.noscript-message {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  font-family: var(--serif);
  font-size: 2rem;
}

.page-container {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-meta);
  font-weight: 400;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.section-index {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-meta);
  letter-spacing: 0.18em;
}

.section-heading,
.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(42px, 6vw, 88px);
}

.section-heading h2,
.split-heading h2 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 92px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

.section-heading h2 em,
.split-heading h2 em {
  color: var(--blue-bright);
  font-weight: 400;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: var(--type-meta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.35s, color 0.35s;
}

.text-link span {
  color: var(--blue);
  font-size: var(--type-ui);
  transition: transform 0.35s var(--ease-out);
}

.text-link:hover {
  border-color: var(--blue);
  color: var(--text);
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 210px;
  padding: 14px 17px;
  border: 1px solid rgba(164, 190, 255, 0.25);
  background: rgba(88, 126, 213, 0.08);
  color: var(--text);
  font-family: var(--mono);
  font-size: var(--type-meta);
  letter-spacing: 0.13em;
  transition: background 0.3s, border-color 0.3s;
}

.primary-link span {
  color: var(--blue-bright);
}

.primary-link:hover {
  border-color: rgba(176, 202, 255, 0.58);
  background: rgba(90, 130, 224, 0.16);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row.compact {
  gap: 5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-meta);
  letter-spacing: 0.06em;
  line-height: 1;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.tag:hover {
  border-color: rgba(128, 169, 255, 0.42);
  background: rgba(91, 126, 204, 0.09);
  color: var(--blue-bright);
}

.circle-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--blue-bright);
  transition: background 0.3s, transform 0.4s var(--ease-out);
}

.circle-link:hover {
  background: rgba(92, 132, 218, 0.16);
  transform: rotate(45deg);
}

.article-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-meta);
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.article-kicker i {
  width: 15px;
  height: 1px;
  background: var(--line-strong);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-meta);
  letter-spacing: 0.12em;
  transition: color 0.25s;
}

.back-link span {
  color: var(--blue);
  font-size: var(--type-body);
}

.back-link:hover {
  color: var(--text);
}

/* Site header */
.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition:
    height 0.4s var(--ease-out),
    background 0.4s,
    border-color 0.4s,
    backdrop-filter 0.4s;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(7, 8, 16, 0.9), rgba(7, 8, 16, 0));
  opacity: 0.72;
  transition: opacity 0.35s;
}

.site-header.is-scrolled,
.site-header:not(.on-dark-hero) {
  height: 70px;
  border-color: var(--line);
  background: rgba(7, 8, 16, 0.76);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled::before,
.site-header:not(.on-dark-hero)::before {
  opacity: 0;
}

.brand {
  display: inline-grid;
  grid-template-columns: 18px auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-self: start;
  column-gap: 9px;
  line-height: 1;
}

.brand-symbol {
  grid-row: 1 / 3;
  color: var(--blue-bright);
  font-size: var(--type-body);
  transition: transform 0.5s var(--ease-out);
}

.brand:hover .brand-symbol {
  transform: rotate(90deg);
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.brand small {
  margin-top: 5px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.19em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.2vw, 52px);
}

.desktop-nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--text-soft);
  font-size: var(--type-meta);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.desktop-nav a span {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.desktop-nav a b,
.mobile-nav-links a b,
.footer-links a b {
  font-weight: 400;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 24px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--type-caption);
  line-height: 1;
}

.language-switch button {
  min-width: 24px;
  min-height: 24px;
  padding: 0 3px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  transition: color 0.25s, background 0.25s;
}

.language-switch button[aria-pressed="true"] {
  background: rgba(112, 150, 227, 0.13);
  color: var(--blue-bright);
}

.language-switch > span {
  color: #474d64;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-meta);
  letter-spacing: 0.13em;
  transition: color 0.3s;
}

.search-trigger:hover {
  color: var(--text);
}

.search-trigger i {
  color: var(--blue-bright);
  font-size: 17px;
  font-style: normal;
}

.menu-trigger {
  width: 30px;
  height: 30px;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 0;
  background: transparent;
}

.menu-trigger span {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-trigger i {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-soft);
  transition: width 0.3s;
}

.menu-trigger i:last-child {
  width: 15px;
}

.menu-trigger[aria-expanded="true"] i:first-of-type {
  width: 24px;
  transform: translateY(3.5px) rotate(45deg);
}

.menu-trigger[aria-expanded="true"] i:last-child {
  width: 24px;
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile navigation */
.mobile-navigation {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 26px var(--gutter) 36px;
  background:
    radial-gradient(circle at 80% 10%, rgba(42, 64, 135, 0.25), transparent 30rem),
    #080913;
  transform: translateY(-102%);
  transition: transform 0.65s var(--ease-editorial);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-navigation.is-open {
  transform: translateY(0);
}

.mobile-nav-top,
.mobile-nav-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-meta);
  letter-spacing: 0.15em;
}

.mobile-nav-top button {
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--text);
  font-size: 25px;
  font-weight: 200;
}

.mobile-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mobile-nav-links a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(43px, 12vw, 74px);
  line-height: 1;
}

.mobile-nav-links a span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: var(--type-meta);
}

.mobile-nav-bottom {
  align-items: flex-end;
}

.mobile-language {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.1em;
}

.mobile-nav-bottom > button {
  padding: 0;
  background: none;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: var(--type-meta);
  letter-spacing: 0.13em;
}

.nav-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

body.menu-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* Page transitions */
#page-content {
  min-height: 100vh;
  opacity: 1;
  transition: opacity 0.16s ease, transform 0.45s var(--ease-out);
}

#page-content.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

#page-content.is-entering .page-view {
  animation: page-enter 0.62s var(--ease-out) both;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.8s var(--ease-out) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Global search */
.search-overlay {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(18px, 8vh, 96px) var(--gutter);
  background: rgba(3, 4, 10, 0.87);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.search-panel {
  width: min(900px, 100%);
  max-height: min(760px, 84vh);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: #0a0b16;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  transform: translateY(-14px) scale(0.99);
  transition: transform 0.45s var(--ease-out);
}

.search-overlay.is-open .search-panel {
  transform: translateY(0) scale(1);
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding-inline: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-meta);
  letter-spacing: 0.14em;
}

.search-header button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-meta);
  letter-spacing: 0.1em;
}

.search-header button span {
  color: var(--text);
  font-size: 19px;
}

.global-search-field {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 30px;
  border-bottom: 1px solid var(--line);
}

.global-search-field > span {
  color: var(--blue-bright);
  font-size: 26px;
}

.global-search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(29px, 4vw, 47px);
  font-weight: 400;
}

.global-search-field input::placeholder {
  color: #51566c;
}

.search-content {
  min-height: 280px;
  padding: 30px;
  overflow-y: auto;
}

.search-suggestions > span,
.global-result-heading,
.search-empty-copy > span {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-meta);
  letter-spacing: 0.13em;
}

.search-suggestions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.search-suggestions button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  font-size: var(--type-meta);
  transition: border-color 0.25s, color 0.25s;
}

.search-suggestions button:hover {
  border-color: rgba(131, 170, 255, 0.45);
  color: var(--blue-bright);
}

.search-empty-copy {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.search-empty-copy p {
  max-width: 500px;
  color: var(--text-muted);
  font-size: var(--type-caption);
  line-height: 1.8;
}

.global-result-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.global-results {
  display: flex;
  flex-direction: column;
}

.global-results a {
  display: grid;
  grid-template-columns: 180px 1fr 20px;
  align-items: center;
  gap: 20px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease-out), background 0.3s;
}

.global-results a:hover {
  padding-inline: 12px;
  background: rgba(96, 126, 195, 0.06);
}

.global-results a span {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.1em;
}

.global-results a strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.global-results a i {
  color: var(--blue);
  font-style: normal;
}

.global-empty {
  padding: 40px 0;
  text-align: center;
}

.global-empty span {
  color: var(--blue);
}

.global-empty h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 400;
}

.global-empty p {
  color: var(--text-muted);
  font-size: var(--type-caption);
}

.search-footer {
  display: flex;
  gap: 24px;
  padding: 14px 30px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.08em;
}

kbd {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding-inline: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

/* Footer */
.site-footer {
  margin-top: 160px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(25, 34, 70, 0.12), transparent 50%),
    #080913;
}

.footer-main {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.8fr;
  grid-template-rows: 1fr auto;
  gap: 45px;
  padding: clamp(60px, 8vw, 115px) var(--gutter) 50px;
}

.footer-brand {
  justify-self: start;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 60px);
  letter-spacing: 0.03em;
}

.footer-brand span {
  color: var(--blue);
  font-size: 20px;
  vertical-align: top;
}

.footer-main > p {
  align-self: center;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  line-height: 1.2;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  align-self: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: var(--type-meta);
  letter-spacing: 0.08em;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links span {
  margin-right: 8px;
  color: #4e5470;
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.13em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  border-top: 1px solid var(--line);
  color: #51566c;
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.14em;
}

.footer-bottom button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.12em;
}

.footer-bottom button span {
  color: var(--blue);
}

.back-to-top {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(8, 10, 20, 0.84);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(140, 178, 255, 0.55);
}

.back-to-top span {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.1em;
}

.back-to-top i {
  color: var(--blue-bright);
  font-size: var(--type-meta);
  font-style: normal;
}

@media (max-width: 900px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .search-trigger {
    display: none;
  }

  .menu-trigger {
    display: flex;
    width: 44px;
    height: 44px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main > p {
    display: none;
  }

  .footer-links {
    justify-self: end;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 21px;
  }

  body {
    font-size: var(--type-ui);
  }

  .header-actions {
    gap: 10px;
  }

  .mobile-nav-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-heading,
  .split-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 38px;
  }

  .section-heading h2,
  .split-heading h2 {
    font-size: clamp(43px, 13vw, 64px);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-links {
    justify-self: start;
  }

  .footer-meta {
    margin-top: 25px;
  }

  .footer-meta span:last-child {
    display: none;
  }

  .footer-bottom span:first-child {
    display: none;
  }

  .search-overlay {
    align-items: stretch;
    padding: 0;
  }

  .search-panel {
    max-height: none;
    border: 0;
  }

  .global-search-field {
    padding: 24px 20px;
  }

  .global-search-field input {
    font-size: 29px;
  }

  .search-content {
    padding: 22px 20px;
  }

  .search-empty-copy {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .global-results a {
    grid-template-columns: 1fr 20px;
  }

  .global-results a span {
    grid-column: 1 / -1;
  }

  .search-footer {
    padding-inline: 20px;
  }

  .search-footer span:nth-child(2) {
    display: none;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }

  .text-link,
  .primary-link {
    min-height: 44px;
  }

  .tag,
  .filter-chip {
    min-height: 44px;
    padding: 8px 11px;
  }

  .active-tag-filter button,
  .article-end-actions button,
  .article-end-actions a,
  .copy-link,
  .copy-code {
    min-height: 44px;
  }

  .global-results a {
    overflow-wrap: anywhere;
  }
}

@media (pointer: coarse) {
  .brand,
  .menu-trigger,
  .search-header button,
  .mobile-nav-top button,
  .intro-skip,
  .text-link,
  .primary-link,
  .article-toc nav a,
  .back-link,
  .footer-bottom button {
    min-height: 44px;
  }

  .menu-trigger {
    width: 44px;
    height: 44px;
  }

  .language-switch button {
    min-width: 44px;
    min-height: 44px;
  }

  .tag,
  .filter-chip,
  .active-tag-filter button,
  .article-end-actions button,
  .article-end-actions a,
  .copy-link,
  .copy-code {
    min-height: 44px;
  }
}

html[lang="zh-CN"] {
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[lang="zh-CN"] .brand-name,
html[lang="zh-CN"] .hero-title,
html[lang="zh-CN"] .footer-brand,
html[lang="zh-CN"] .intro-wordmark,
html[lang="zh-CN"] .intro-afterlight h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

html[lang="zh-CN"] .page-masthead h1,
html[lang="zh-CN"] .article-heading h1,
html[lang="zh-CN"] .project-detail-title h1 {
  line-height: 1.04;
  letter-spacing: -0.035em;
}

html[lang="zh-CN"] .section-heading h2,
html[lang="zh-CN"] .split-heading h2,
html[lang="zh-CN"] .home-about-quote,
html[lang="zh-CN"] .archive-preview-copy h2 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

html[lang="zh-CN"] .hero-tagline {
  font-size: clamp(30px, 3vw, 45px);
  line-height: 1.15;
}

html[lang="zh-CN"] .article-deck,
html[lang="zh-CN"] .about-lede,
html[lang="zh-CN"] .project-detail-title p {
  line-height: 1.65;
  letter-spacing: 0.01em;
}

html[lang="zh-CN"] .prose {
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.95;
  letter-spacing: 0.015em;
}

html[lang="zh-CN"] .touch-label,
html[lang="zh-CN"] .enter-label {
  letter-spacing: 0.14em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
