:root {
  --blue: #AFCBD3;
  --green: #2E7D6B;
  --sun: #E8752B;
  --cloud: #F7F4EC;
  --ink: #17324D;
  --gray: #4E5A64;
  --paper: #EFE6D5;
  --mint: #DDEEEA;
  --border: #C9BFAE;
  --deep: #1E4F4A;
  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shell-max: 1240px;
  --gutter: clamp(14px, 3vw, 28px);
  --shadow-print: 6px 6px 0 rgba(23, 50, 77, 0.10);
  --shadow-print-strong: 8px 8px 0 rgba(23, 50, 77, 0.14);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 9.5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--cloud);
  background-image:
    radial-gradient(circle at 12% -4%, rgba(175, 203, 211, 0.45), transparent 34rem),
    linear-gradient(90deg, rgba(23, 50, 77, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 50, 77, 0.025) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

body,
button {
  font-family: var(--font-body);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--sun);
}

button {
  color: inherit;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

::selection {
  color: var(--ink);
  background: rgba(232, 117, 43, 0.38);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell-max), calc(100% - var(--gutter) - var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 120;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-180%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  isolation: isolate;
  background: var(--cloud);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 220ms var(--ease);
}

.site-header[data-scrolled] {
  box-shadow: 0 14px 34px rgba(23, 50, 77, 0.16);
}

.read-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 5;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(23, 50, 77, 0.10);
}

.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--sun));
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: transform 120ms linear;
}

.header-top {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: var(--blue);
}

.header-top::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 0 49.7%, rgba(23, 50, 77, 0.12) 49.7% 50%, transparent 50%),
    linear-gradient(0deg, transparent 0 49.5%, rgba(247, 244, 236, 0.24) 49.5% 50%, transparent 50%);
  background-size: 72px 72px;
  opacity: 0.55;
}

.header-top::after {
  content: "";
  position: absolute;
  top: -105px;
  right: -55px;
  width: 270px;
  height: 270px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, rgba(232, 117, 43, 0.50), rgba(232, 117, 43, 0) 64%);
}

.header-top__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(0, 0.9fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 92px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(to bottom, transparent 0 57%, rgba(247, 244, 236, 0.70) 57% 59%, transparent 59%),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(23, 50, 77, 0.13) 13px 14px),
    linear-gradient(145deg, var(--green) 0 52%, var(--mint) 52% 100%);
  box-shadow: 4px 4px 0 var(--paper);
}

.brand__mark::before {
  content: "";
  position: absolute;
  bottom: -23%;
  left: -20%;
  width: 135%;
  height: 62%;
  border-radius: 50% 50% 0 0;
  background: var(--deep);
  opacity: 0.9;
  transform: rotate(-4deg);
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 10px;
  border-top: 1px solid rgba(247, 244, 236, 0.55);
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(247, 244, 236, 0.44) 7px 8px);
}

.brand__sun {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 3px rgba(232, 117, 43, 0.18);
}

.brand__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.brand__line {
  display: block;
  overflow: hidden;
  color: var(--deep);
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.header-meta__item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 2px 16px;
  border-left: 1px solid rgba(23, 50, 77, 0.28);
}

.header-meta__item:first-child {
  border-left: 0;
}

.header-meta__label {
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.header-meta__value {
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.header-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(23, 50, 77, 0.55);
  background: rgba(247, 244, 236, 0.38);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.header-entry:hover {
  border-color: var(--sun);
  background: var(--paper);
  color: var(--deep);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 42px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--cloud);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.button:hover {
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.button:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.button--sun {
  background: var(--sun);
  color: var(--ink);
}

.button--sun:hover {
  background: #f0843c;
}

.button--ghost {
  border-color: var(--green);
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.button--ghost:hover {
  background: var(--mint);
  box-shadow: none;
  color: var(--deep);
  transform: none;
}

.button--compact {
  min-height: 38px;
  padding: 0 12px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 13px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.nav-toggle__lines {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 180ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.header-bottom {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--cloud);
}

.header-bottom__inner {
  display: flex;
  align-items: stretch;
  min-height: 56px;
}

.site-nav {
  width: 100%;
}

.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.site-nav__item {
  display: flex;
  flex: 0 0 auto;
}

.site-nav__link {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding: 16px 13px 13px;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.015em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.site-nav__link:hover {
  border-bottom-color: var(--sun);
  background: rgba(232, 117, 43, 0.07);
  color: var(--ink);
}

.site-nav__link[aria-current="page"] {
  border-bottom-color: var(--green);
  background: var(--mint);
  color: var(--deep);
}

.site-nav__num {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav__label {
  min-width: 0;
}

.site-nav__link[aria-current="page"] .site-nav__num {
  color: var(--sun);
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 9vw, 112px);
  background: var(--deep);
  color: var(--cloud);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(247, 244, 236, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(247, 244, 236, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -100px;
  width: 380px;
  height: 380px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 42%, rgba(232, 117, 43, 0.24), rgba(232, 117, 43, 0) 65%);
}

.footer-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.45fr);
  gap: clamp(30px, 5vw, 76px);
  padding-block: clamp(44px, 7vw, 84px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.footer-kicker {
  max-width: 10em;
  margin-bottom: 14px;
  color: var(--cloud);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.footer-kicker span {
  display: block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.footer-brand__line {
  max-width: 26em;
  margin-bottom: 22px;
  color: rgba(247, 244, 236, 0.76);
  font-size: 14px;
  line-height: 1.8;
}

.footer-mark {
  display: block;
  width: 132px;
  height: 34px;
  margin-bottom: 22px;
  border: 1px solid rgba(247, 244, 236, 0.42);
  background:
    linear-gradient(to bottom, transparent 0 58%, rgba(247, 244, 236, 0.42) 58% 60%, transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(247, 244, 236, 0.20) 12px 13px),
    linear-gradient(135deg, rgba(46, 125, 107, 0.95), rgba(175, 203, 211, 0.42));
  box-shadow: 4px 4px 0 rgba(23, 50, 77, 0.4);
}

.back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(247, 244, 236, 0.58);
  background: transparent;
  color: var(--cloud);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.back-top:hover {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--ink);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  align-content: start;
}

.footer-column {
  min-width: 0;
}

.footer-column__title {
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(247, 244, 236, 0.20);
  color: var(--sun);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-link {
  display: inline-block;
  padding-block: 3px;
  color: var(--cloud);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  text-decoration: none;
  transition: color 160ms var(--ease), transform 160ms var(--ease);
}

.footer-link:hover {
  color: var(--sun);
  transform: translateX(2px);
}

.footer-contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(0, 1.45fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  padding-top: clamp(22px, 4vw, 36px);
  border-top: 1px solid rgba(247, 244, 236, 0.22);
}

.footer-contact__label {
  margin-bottom: 0;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.footer-contact__address {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  color: rgba(247, 244, 236, 0.82);
  font-size: 13px;
  font-style: normal;
  line-height: 1.8;
}

.footer-contact__item {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  max-width: 100%;
}

.footer-contact__key {
  flex: 0 0 auto;
  color: var(--sun);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.footer-base {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(247, 244, 236, 0.18);
  background: rgba(23, 50, 77, 0.34);
}

.footer-base__inner {
  display: flex;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 17px;
  font-size: 12px;
}

.footer-copy,
.footer-icp {
  margin-bottom: 0;
  color: rgba(247, 244, 236, 0.70);
  line-height: 1.7;
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.section {
  padding-block: clamp(42px, 7vw, 96px);
}

.section--tight {
  padding-block: clamp(28px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--sun);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.tag--green {
  border-color: var(--green);
  background: var(--mint);
  color: var(--deep);
}

.tag--sun {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--ink);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.breadcrumbs {
  margin-bottom: 24px;
  color: var(--gray);
  font-size: 13px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs__item {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--border);
}

.breadcrumbs__link {
  color: var(--gray);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--sun);
}

.breadcrumbs__current {
  color: var(--ink);
  font-weight: 700;
}

.prose {
  max-width: 36em;
  color: var(--ink);
}

.prose p {
  margin-bottom: 1.1em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.55em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 1em 0;
}

.prose li + li {
  margin-top: 0.35em;
}

.grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.grid--split {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
}

.grid--thirds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--index {
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  align-items: start;
}

.card {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  background: var(--cloud);
  box-shadow: var(--shadow-print);
}

.card--paper {
  background: var(--paper);
}

.card--mint {
  background: var(--mint);
}

.card--ink {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--cloud);
  box-shadow: var(--shadow-print-strong);
}

.card--ink .card__title,
.card--ink .card__label {
  color: var(--cloud);
}

.card--ink .card__text {
  color: rgba(247, 244, 236, 0.78);
}

.card__label {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.card__title {
  margin-bottom: 10px;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.12;
}

.card__text {
  margin-bottom: 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.8;
}

.index-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.index-item {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.index-item:first-child {
  border-top: 1px solid var(--border);
}

.index-item__num {
  color: var(--sun);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.index-item__body {
  min-width: 0;
}

.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper);
  box-shadow: var(--shadow-print);
}

.media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media--wide img {
  aspect-ratio: 21 / 9;
}

.media--portrait img {
  aspect-ratio: 4 / 5;
}

.media__caption {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--cloud);
  color: var(--gray);
  font-size: 12px;
  line-height: 1.7;
}

.tabs {
  margin-block: clamp(20px, 4vw, 40px);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--border);
}

.tab {
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.tab:hover {
  border-color: var(--sun);
  background: #f4ead9;
}

.tab[aria-selected="true"] {
  border-color: var(--green);
  background: var(--mint);
  color: var(--deep);
  box-shadow: inset 0 3px 0 var(--green);
}

.tab-panel {
  animation: tab-in 320ms var(--ease) both;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

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

@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1120px) {
  .header-top__inner {
    grid-template-columns: minmax(240px, 1fr) auto;
    row-gap: 10px;
  }

  .header-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 8px;
    border-top: 1px solid rgba(23, 50, 77, 0.22);
  }

  .header-meta__item:first-child {
    padding-left: 0;
  }

  .header-meta__item--origin {
    display: flex;
  }

  .grid--split,
  .grid--index {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 6rem;
  }

  .header-top__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 76px;
    padding-block: 11px;
  }

  .header-meta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-bottom {
    height: 0;
    border-top: 0;
    background: transparent;
  }

  .header-bottom__inner {
    height: 0;
    min-height: 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 30;
    display: none;
    border: 1px solid var(--ink);
    border-top: 0;
    background: var(--paper);
    box-shadow: 0 20px 34px rgba(23, 50, 77, 0.18);
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
  }

  .site-nav__item {
    width: 100%;
  }

  .site-nav__link {
    display: flex;
    width: 100%;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    border-left: 4px solid transparent;
  }

  .site-nav__link:hover {
    border-bottom-color: var(--border);
    border-left-color: var(--sun);
  }

  .site-nav__link[aria-current="page"] {
    border-bottom-color: var(--border);
    border-left-color: var(--green);
  }

  .grid--thirds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-contact {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .brand__mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .brand__name {
    font-size: 21px;
  }

  .brand__line {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .button--compact {
    display: none;
  }

  .header-entry {
    min-height: 36px;
    padding: 0 9px;
    font-size: 12px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-contact__address {
    flex-direction: column;
    gap: 6px;
  }

  .grid--thirds {
    grid-template-columns: 1fr;
  }

  .footer-base__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 14px;
  }

  .header-top__inner {
    gap: 9px;
  }

  .brand {
    gap: 10px;
  }

  .brand__mark {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .brand__sun {
    top: 5px;
    right: 6px;
    width: 13px;
    height: 13px;
  }

  .brand__name {
    font-size: 19px;
  }

  .header-entry {
    max-width: 8.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle__text {
    display: none;
  }

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

  .footer-kicker {
    font-size: 34px;
  }

  .footer-contact__item {
    display: block;
  }

  .footer-contact__key {
    display: inline-block;
    min-width: 2.8em;
    margin-right: 6px;
  }

  .tab-list {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .tab {
    flex: 0 0 auto;
  }
}

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

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

  .read-progress__bar {
    transition: none;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
