@font-face { font-family: 'Encode Sans Semi Expanded'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/encode-sans-semi-expanded-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Encode Sans Semi Expanded'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/encode-sans-semi-expanded-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Encode Sans Semi Expanded'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/encode-sans-semi-expanded-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Encode Sans Semi Expanded'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/encode-sans-semi-expanded-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Encode Sans Semi Expanded'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/encode-sans-semi-expanded-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Encode Sans Semi Expanded'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/encode-sans-semi-expanded-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Encode Sans Semi Expanded'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/encode-sans-semi-expanded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Encode Sans Semi Expanded'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/encode-sans-semi-expanded-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Encode Sans Semi Expanded'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/encode-sans-semi-expanded-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira Semi Condensed'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/saira-semi-condensed-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira Semi Condensed'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/saira-semi-condensed-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira Semi Condensed'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/saira-semi-condensed-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira Semi Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/saira-semi-condensed-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira Semi Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/saira-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/saira-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira Semi Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/saira-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira Semi Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/saira-semi-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira Semi Condensed'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/saira-semi-condensed-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #ffffff;
  --fg-light-base-body: #1b2310;
  --fg-light-base-heading: #1b2310;
  --fg-light-base-muted: #535e45;
  --fg-light-base-link: #4b6d00;
  --fg-light-base-inverse: #1b2310;
  --bg-light-card: #f6f9ec;
  --fg-light-card-body: #1b2310;
  --fg-light-card-heading: #1b2310;
  --fg-light-card-muted: #535e45;
  --fg-light-card-link: #4b6d00;
  --fg-light-card-inverse: #1b2310;
  --bg-light-elevated: #ecf3d6;
  --fg-light-elevated-body: #1b2310;
  --fg-light-elevated-heading: #1b2310;
  --fg-light-elevated-muted: #535e45;
  --fg-light-elevated-link: #4b6d00;
  --fg-light-elevated-inverse: #1b2310;
  --brand-light-accent: #4b6d00;
  --brand-light-accent-hover: #344d00;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #4b6d00;
  --border-light-default: #7d8a6b;
  --border-light-subtle: #d6dfc2;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

:root {
  --font-head: 'Encode Sans Semi Expanded', Verdana, sans-serif;
  --font-body: 'Saira Semi Condensed', 'Arial Narrow', sans-serif;
  --band-1: color-mix(in srgb, var(--brand-light-accent) 14%, #ffffff);
  --band-2: color-mix(in srgb, var(--brand-light-accent) 34%, #ffffff);
  --band-3: color-mix(in srgb, var(--brand-light-accent) 62%, #ffffff);
  --band-4: var(--brand-light-accent);
  --band-5: var(--brand-light-accent-hover);
  --rail: 15.5rem;
  --measure: 40rem;
  --gutter: clamp(1rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); font-weight: 700; max-width: 18ch; }
h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

.frame { min-height: 100vh; }

/* Header: sticky top bar on small screens, sticky side rail on desktop */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem var(--gutter);
  border-bottom: 1px solid var(--border-light-subtle);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}
.brand .site-logo { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-name { max-width: 12rem; }

.rail-scale { display: none; }

nav.site-nav { display: none; }
nav.site-nav ul { list-style: none; margin: 0; padding: 0; }

details.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border-light-default);
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.15;
  color: var(--fg-heading);
}
.menu-icon {
  position: relative;
  display: inline-block;
  width: 1.2rem;
  height: 2px;
  background: var(--brand-light-accent);
  box-shadow: 0 -6px 0 var(--band-3), 0 6px 0 var(--brand-light-accent-hover);
}
details.site-menu[open] > ul {
  position: absolute;
  inset: 100% 0 auto 0;
  margin: 0;
  padding: 0.75rem var(--gutter) 1.25rem;
  list-style: none;
  background: var(--bg-light-card);
  border-bottom: 4px solid var(--brand-light-accent);
  max-height: calc(100vh - 4.5rem);
  overflow-y: auto;
}
details.site-menu ul ul { list-style: none; padding-left: 1rem; }
details.site-menu li a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-light-subtle);
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .frame {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
  }
  .site-header {
    top: 0;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    padding: 1.75rem 1.25rem;
    border-bottom: 0;
    border-right: 1px solid var(--border-light-subtle);
  }
  .brand { flex-direction: column; align-items: flex-start; font-size: 1.05rem; }
  .brand .site-logo { width: 3rem; height: 3rem; }
  details.site-menu { display: none; }
  nav.site-nav { display: block; }
  nav.site-nav li { border-left: 3px solid var(--band-2); }
  nav.site-nav li:nth-child(2) { border-left-color: var(--band-3); }
  nav.site-nav li:nth-child(3) { border-left-color: var(--band-4); }
  nav.site-nav li:nth-child(n+4) { border-left-color: var(--band-5); }
  nav.site-nav a {
    display: block;
    padding: 0.55rem 0 0.55rem 0.85rem;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    text-decoration: none;
  }
  nav.site-nav a:hover { text-decoration: underline; }
  .rail-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    margin-top: auto;
    height: 0.5rem;
  }
  .rail-scale span:nth-child(1) { background: var(--band-1); }
  .rail-scale span:nth-child(2) { background: var(--band-2); }
  .rail-scale span:nth-child(3) { background: var(--band-3); }
  .rail-scale span:nth-child(4) { background: var(--band-4); }
  .rail-scale span:nth-child(5) { background: var(--band-5); }
}

/* Page column */
.page { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.page > main { flex: 1; }

.breadcrumbs { padding: 1rem var(--gutter) 0; font-size: 0.95rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.breadcrumbs li + li { padding-left: 0.9rem; border-left: 2px solid var(--band-3); }

main { padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter) clamp(2.5rem, 6vw, 5rem); }

/* Wavelength-band divider: three passes of differing width */
.cover-band, .footer-band {
  height: 14px;
  max-width: var(--measure);
  background:
    linear-gradient(var(--band-5), var(--band-5)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--band-4), var(--band-4)) 0 5px / 72% 4px no-repeat,
    linear-gradient(var(--band-3), var(--band-3)) 0 12px / 44% 2px no-repeat;
}

/* Running text */
.journal-text { max-width: var(--measure); }
.journal-text > p, .journal-text li { margin: 0 0 1.1rem; }
.journal-text > h2 {
  margin: 2.6rem 0 0.9rem;
  padding-top: 0.9rem;
  border-top: 3px solid var(--band-2);
  box-shadow: inset 0 1px 0 var(--bg-light-base), inset 0 2px 0 var(--band-4);
}
.journal-text > h3 { margin: 1.8rem 0 0.6rem; }
.journal-text ul, .journal-text ol { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.journal-text li::marker { color: var(--brand-light-accent); }
.journal-text blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 4px solid var(--brand-light-accent);
}
.journal-text figure { margin: 1.75rem 0; }
.journal-text figure img { display: block; width: 100%; border-radius: 2px; }
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.table-scroll th, .table-scroll td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-light-subtle); text-align: left; vertical-align: top; }
.table-scroll th { font-family: var(--font-head); font-size: 0.9rem; border-bottom: 2px solid var(--brand-light-accent); }

/* Home: spectrum grid */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  align-items: start;
}
.cover h1 { max-width: 16ch; }
.readouts { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.readouts .display-line {
  margin: 0;
  padding: 1.6rem 1.2rem 1.1rem;
  background:
    linear-gradient(90deg, var(--band-1) 0 20%, var(--band-2) 20% 40%, var(--band-3) 40% 60%, var(--band-4) 60% 80%, var(--band-5) 80% 100%) 0 0 / 100% 6px no-repeat,
    var(--bg-light-card);
  border: 1px solid var(--border-light-subtle);
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--fg-body);
}
.readouts .display-line:nth-child(2) {
  background:
    linear-gradient(90deg, var(--band-1) 0 20%, var(--band-2) 20% 40%, var(--band-3) 40% 60%, var(--band-4) 60% 80%, var(--band-5) 80% 100%) 0 0 / 100% 6px no-repeat,
    var(--bg-light-elevated);
  border-left: 4px solid var(--band-5);
}
.readouts .display-line:first-child { border-left: 4px solid var(--band-3); }
.home-text .photo-hero { margin: 0 0 2rem; }
.home-text .photo-hero img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 760px) {
  .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .home-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .home-grid .cover, .home-grid .cover-band { grid-column: 1 / -1; }
  .readouts { grid-column: 2; grid-row: 3; grid-template-columns: minmax(0, 1fr); position: sticky; top: 2rem; }
  .home-text { grid-column: 1; grid-row: 3; }
}

/* About: one column bench */
.bench { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.bench .cover-band { margin: 1.25rem 0 2rem; }
.bench-text > h2 {
  display: inline-block;
  border-top: 0;
  box-shadow: none;
  padding: 0.3rem 0.7rem;
  margin-top: 2.2rem;
  background: var(--bg-light-card);
  border-left: 4px solid var(--brand-light-accent);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
}

/* Article: text plus sticky spec panel */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem 3rem; }
.article-head h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); max-width: 22ch; }
.spec-panel {
  padding: 1.1rem 1.2rem 1.3rem;
  border: 1px solid var(--border-light-subtle);
  align-self: start;
}
.spec-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; height: 0.45rem; margin-bottom: 0.9rem; }
.spec-scale span:nth-child(1) { background: var(--band-1); }
.spec-scale span:nth-child(2) { background: var(--band-2); }
.spec-scale span:nth-child(3) { background: var(--band-3); }
.spec-scale span:nth-child(4) { background: var(--band-4); }
.spec-scale span:nth-child(5) { background: var(--band-5); }
.spec-caption { margin: 0 0 0.6rem; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { border-top: 1px solid var(--border-light-subtle); }
.spec-list a { display: block; padding: 0.6rem 0; font-weight: 600; line-height: 1.35; }

@media (min-width: 1100px) {
  .article-grid { grid-template-columns: minmax(0, var(--measure)) minmax(14rem, 18rem); }
  .article-head { grid-column: 1 / -1; }
  .article-text { grid-column: 1; }
  .article-grid .spec-panel { grid-column: 2; grid-row: 2; position: sticky; top: 2rem; }
}

/* Topic hub: stepped gauge */
.hub-steps .cover-band { margin: 1.25rem 0 0; }
.hub-text { margin-top: 2rem; padding-left: clamp(0rem, 3vw, 2.5rem); border-left: 2px solid var(--band-2); }
.hub-text > p:first-child { font-size: 1.2rem; }
.hub-text ul { list-style: none; padding: 0; }
.hub-text ul > li {
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-light-card);
  border-left: 4px solid var(--band-2);
}
.hub-text ul > li:nth-child(2) { margin-left: 0.6rem; border-left-color: var(--band-3); }
.hub-text ul > li:nth-child(3) { margin-left: 1.2rem; border-left-color: var(--band-3); }
.hub-text ul > li:nth-child(4) { margin-left: 1.8rem; border-left-color: var(--band-4); }
.hub-text ul > li:nth-child(5) { margin-left: 2.4rem; border-left-color: var(--band-4); }
.hub-text ul > li:nth-child(n+6) { margin-left: 3rem; border-left-color: var(--band-5); }
@media (max-width: 520px) {
  .hub-text ul > li:nth-child(n) { margin-left: 0; }
}

/* Contact: split */
.contact-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.contact-brief {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, var(--band-1) 22px 24px),
    var(--bg-light-elevated);
  border-top: 6px solid var(--brand-light-accent);
}
.contact-head h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); margin-bottom: 1.25rem; }
.quote-form {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border-light-default);
}
.field { display: grid; gap: 0.3rem; }
.field-label { font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; }
.field input {
  font: inherit;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  background: var(--bg-light-base);
  color: var(--fg-body);
  border: 1px solid var(--border-light-default);
  border-radius: 2px;
}
.field input:focus-visible { outline: 2px solid var(--brand-light-accent); outline-offset: 1px; }
.form-submit {
  justify-self: start;
  min-height: 2.75rem;
  padding: 0.6rem 1.3rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-light-on-accent);
  background: var(--brand-light-accent);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.form-submit:hover { background: var(--brand-light-accent-hover); }
.form-submit:focus-visible { outline: 2px solid var(--brand-light-accent-hover); outline-offset: 3px; }
@media (min-width: 900px) {
  .contact-split { grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 1fr); gap: 0; align-items: stretch; }
  .quote-form { border-left: 0; }
}

/* Thank you: two columns */
.thanks-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
.thanks-head h1 { margin-bottom: 1.25rem; }
@media (min-width: 960px) {
  .thanks-grid { grid-template-columns: minmax(0, var(--measure)) minmax(14rem, 18rem); }
}

/* Footer */
.site-footer {
  padding: 1.75rem var(--gutter) 2.25rem;
  border-top: 1px solid var(--border-light-subtle);
  font-size: 0.98rem;
}
.footer-band { margin-bottom: 1.1rem; max-width: 18rem; }
.footer-name { margin: 0 0 0.3rem; font-family: var(--font-head); font-weight: 700; }
.footer-note { margin: 0; max-width: 40rem; }

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