@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --orange: #e85d24;
  --orange-warm: #d97932;
  --orange-bright: #ff4f00;
  --black: #151515;
  --charcoal: #242424;
  --steel: #55595c;
  --galvanized: #a7aaac;
  --paper: #f2efe6;
  --white: #fafaf7;
  --light-rule: #cdcac1;
  --dark-rule: #484a49;
  --up: #2e7d32;
  --down: #c62828;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--black); font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
h2 { font-size: clamp(2.3rem, 4.5vw, 4.1rem); font-weight: 600; letter-spacing: -0.045em; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
::selection { background: var(--orange); color: var(--black); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.container { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; }
.section-light { background: var(--paper); }
.section-dark { background: var(--black); color: var(--paper); }
.section-space { padding-block: clamp(4rem, 7.5vw, 7.5rem); }
.metadata, .eyebrow { font-family: var(--mono); font-size: 0.7rem; line-height: 1.6; letter-spacing: 0.04em; }
.eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; }
.section-dark .eyebrow { color: var(--galvanized); }
.square-marker { display: inline-block; flex: 0 0 0.5rem; width: 0.5rem; height: 0.5rem; background: var(--orange-bright); }
.title-period { color: var(--orange); }
.section-heading { display: grid; gap: 1.5rem; margin-bottom: 3rem; }
.section-heading > p { max-width: 31rem; color: var(--steel); }
.section-dark .section-heading > p { color: var(--galvanized); }
.skip-link { position: fixed; z-index: 10; top: 0.75rem; left: 1rem; padding: 0.75rem 1rem; background: var(--black); color: var(--white); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--light-rule); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand-mark { position: relative; flex: 0 0 auto; width: 3.5rem; height: 3.5rem; background: var(--orange); color: var(--black); font-family: var(--mono); line-height: 1; }
.el-number, .el-mass { position: absolute; top: 0.3rem; font-size: 0.5rem; }
.el-number { left: 0.3rem; }
.el-mass { right: 0.3rem; }
.el-symbol { position: absolute; top: 0.9rem; left: 50%; width: 1.05rem; height: 1.5rem; transform: translateX(-50%); border-left: 0.3rem solid currentColor; border-bottom: 0.3rem solid currentColor; }
.el-name { position: absolute; inset-inline: 0; bottom: 0.3rem; font-size: 0.55rem; text-align: center; }
.brand-name { font-size: 0.84rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.primary-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.primary-nav a { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; font-family: var(--mono); font-size: 0.75rem; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { text-decoration: underline; }
.primary-nav a > span { color: var(--steel); font-size: 1.25rem; }

.hero { padding-top: clamp(2rem, 4.2vw, 4rem); }
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--steel); }
.hero-meta p:first-child { display: flex; align-items: center; gap: 0.75rem; }
.hero-meta p:nth-child(2) { display: none; }
.hero-layout { display: grid; gap: 2.5rem; margin-top: clamp(2rem, 4vw, 4.5rem); }
h1 { font-size: clamp(2.65rem, 10.6vw, 9.8rem); line-height: 0.91; font-weight: 700; letter-spacing: -0.065em; }
.hero-intro { max-width: 28rem; }
.hero-tagline { margin-bottom: 1.2rem; font-size: clamp(1.3rem, 2.15vw, 2rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.04em; }
.hero-tagline span { color: var(--steel); }
.hero-intro > p:not(.hero-tagline) { max-width: 25rem; color: var(--steel); }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2.5rem; margin-bottom: 3rem; }
.button-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 52px; padding: 0.9rem 1.1rem; border: 1px solid transparent; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; transition: background-color 150ms, color 150ms; }
.button > span { font-size: 1.25rem; line-height: 1; }
.button-orange { background: var(--orange); color: var(--black); }
.button-orange:hover { background: var(--black); color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 1.25rem; min-height: 44px; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; }
.hero-note { display: none; color: var(--steel); }
.discipline-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 1rem; border-top: 1px solid var(--light-rule); gap: 0.75rem; font-size: 0.65rem; }
.discipline-rail > li { display: flex; gap: 0.55rem; }
.rail-number { color: var(--steel); }

.service-list { border-top: 1px solid var(--paper); }
.service-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.9rem; padding-block: 1.75rem; border-bottom: 1px solid var(--dark-rule); }
.service-number { font-family: var(--mono); font-size: 0.75rem; line-height: 1.7; color: var(--orange-warm); }
.service-row h3 { font-size: clamp(1.2rem, 2.1vw, 1.8rem); }
.service-row p { grid-column: 2; max-width: 32rem; color: var(--galvanized); font-size: 0.925rem; }

.method-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.method-heading h2 { font-size: clamp(2.2rem, 3.7vw, 3.25rem); }
.method-heading > p { color: var(--steel); font-size: 0.94rem; }
.method-grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
.method-grid > li { padding-top: 1rem; border-top: 1px solid var(--black); }
.method-number { display: block; margin-bottom: 1.5rem; font-family: var(--mono); font-size: 0.9rem; color: var(--steel); }
.method-number::after { content: ""; display: block; float: right; width: 0.4rem; height: 0.4rem; margin-top: 0.5rem; background: var(--orange); }
.method-grid h3 { font-size: 1.4rem; line-height: 1.15; }
.method-grid p { margin-top: 1rem; max-width: 28rem; color: var(--steel); font-size: 0.9rem; }

.page-hero { padding-block: clamp(2rem, 4.2vw, 4rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { margin-top: clamp(1.5rem, 3vw, 3rem); font-size: clamp(2.5rem, 7vw, 6rem); line-height: 0.95; }
.page-hero .lede { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.35; letter-spacing: -0.02em; }
.page-hero .lede a { text-decoration: underline; }

.status-panel { padding-bottom: clamp(4rem, 7.5vw, 7.5rem); }
.panel-label { padding-bottom: 0.85rem; border-bottom: 2px solid var(--black); color: var(--steel); }
.services li { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding-block: 1rem; border-bottom: 1px solid var(--light-rule); font-size: clamp(0.95rem, 1.6vw, 1.2rem); }
.state { display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.state::before { content: ""; width: 0.5rem; height: 0.5rem; background: currentColor; }
.state.up { color: var(--up); }
.state.down { color: var(--down); }
.state.unknown { color: var(--steel); }
.muted { margin-top: 1.5rem; color: var(--steel); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.02em; }

.site-footer { padding-block: 2rem 1.5rem; border-top: 1px solid var(--light-rule); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding-bottom: 2rem; }
.footer-top > p { color: var(--steel); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--light-rule); font-size: 0.7rem; color: var(--steel); }
.footer-bottom:first-child { padding-top: 0; border-top: 0; }

@media (min-width: 480px) {
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discipline-rail { font-size: 0.7rem; }
}

@media (min-width: 768px) {
  .header-inner { flex-wrap: nowrap; }
  .primary-nav { gap: 1.5rem; }
  .primary-nav .nav-status { border-left: 1px solid var(--light-rule); padding-left: 1.5rem; }
  .hero-meta p:nth-child(2) { display: block; font-size: 0.6rem; }
  .hero-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; gap: 2.5rem; }
  h1 { font-size: clamp(3.9rem, 7.25vw, 7rem); }
  .hero-tagline { font-size: clamp(1.1rem, 2vw, 1.9rem); }
  .hero-intro > p:not(.hero-tagline) { font-size: 0.9rem; }
  .hero-bottom { margin-block: 3rem; }
  .hero-note { display: block; font-size: 0.6rem; }
  .discipline-rail { gap: 1rem; padding-block: 1.25rem; font-size: 0.65rem; }
  .discipline-rail > li { gap: 0.75rem; }
  .discipline-rail > li:not(:first-child) { border-left: 1px solid var(--light-rule); padding-left: 1rem; }
  .section-heading { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; }
  .section-heading > p { align-self: end; }
  .service-row { grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1.15fr); align-items: baseline; gap: 1.5rem; padding-block: 2rem; }
  .service-row p { grid-column: auto; }
  .method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .method-grid h3 { font-size: 1.2rem; }
}

@media (min-width: 1100px) {
  .header-inner { padding-block: 1.4rem; }
  .primary-nav { gap: 2.5rem; }
  .primary-nav .nav-status { padding-left: 2.5rem; }
  .hero-layout { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 4rem; }
  h1 { font-size: clamp(5.5rem, 7.75vw, 7.8rem); }
  .hero-intro > p:not(.hero-tagline) { font-size: 1rem; }
  .hero-note { font-size: 0.7rem; }
  .discipline-rail { font-size: 0.75rem; }
  .method-grid { gap: 3rem; }
  .method-grid h3 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  body, .section-dark { background: white; color: black; }
  .site-header, .skip-link, .button-group, .footer-top > .text-link { display: none !important; }
  .section-space { padding-block: 2rem; }
  .section-dark p, .section-dark .eyebrow { color: black; }
  .service-row, .method-grid li { break-inside: avoid; }
}
