:root {
  --ink: #17191d;
  --muted: #6f7379;
  --paper: #f5f3ef;
  --white: #fffdf9;
  --line: #e1ddd6;
  --orange: #ff6a1a;
  --orange-deep: #cf4510;
  --orange-wash: #ffe8d8;
  --green: #21855a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --measure: 1240px;
  --radius: 1.25rem;
  --shadow: 0 1.5rem 4rem rgba(31, 26, 21, .09);
  color-scheme: light;
}
html[data-theme="dark"], html.dark {
  --ink: #f5f3ef;
  --muted: #aaa7a0;
  --paper: #17181b;
  --white: #222428;
  --line: #37383a;
  --orange-wash: #4a2719;
  --shadow: 0 1.5rem 4rem rgba(0, 0, 0, .24);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.55 var(--font-body); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(16px); }
.header-inner { width: min(calc(100% - 3rem), var(--measure)); min-height: 5.25rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; min-height: 3rem; }
.brand-mark { width: 2.55rem; height: 2.55rem; flex: none; }
.brand-name { font: 700 1.34rem/1 var(--font-display); letter-spacing: -.045em; }
.brand-name span { color: var(--orange); }
.primary-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.primary-nav a { color: var(--muted); text-decoration: none; font-size: .86rem; font-weight: 600; letter-spacing: .02em; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
[data-delta6f], .nova-1b15 { border: 1px solid var(--line); background: var(--white); color: var(--ink); width: 2.55rem; height: 2.55rem; display: grid; place-items: center; border-radius: 50%; }
[data-delta6f] { font-size: .9rem; }
.nova-1b15 { display: none; }
.page-wrap { width: min(calc(100% - 3rem), var(--measure)); margin: 0 auto; }
.cedar-ebe3 { display: grid; grid-template-columns: minmax(0, 1fr) 11.5rem; gap: 3.2rem; align-items: start; padding: 3.25rem 0 6rem; }
.cedar-ebe3:has([data-flint4d][hidden]), .cedar-ebe3:has([data-flint4d]:empty) { grid-template-columns: minmax(0, 1fr); }
[data-flint4d][hidden], [data-flint4d]:empty { display: none; }
.nickel-f213 { position: sticky; top: 6.8rem; border-top: 2px solid var(--orange); padding-top: .75rem; }
.nickel-f213 h2 { margin: 0 0 .85rem; font: 700 .68rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--orange); }
.nickel-f213 ol { margin: 0; padding: 0; list-style: none; }
.nickel-f213 li { border-bottom: 1px solid var(--line); padding: .65rem 0; font-size: .8rem; }
.nickel-f213 a { text-decoration: none; }
.nickel-f213 a:hover { color: var(--orange); }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--orange); font: 700 .68rem/1 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 1.8rem; height: 2px; background: var(--orange); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.065em; line-height: .98; }
h1 { max-width: 12ch; margin: 1rem 0 1.4rem; font-size: clamp(3.2rem, 7vw, 7.2rem); }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); }
h3 { margin: 0; font-size: 1.35rem; }
p { margin: 0; }
.lede { max-width: 39rem; color: var(--muted); font-size: 1.12rem; line-height: 1.65; }
.mono { font-family: var(--font-mono); }
.hero { position: relative; min-height: 33rem; display: grid; align-items: end; padding: 5rem; overflow: hidden; border-radius: 0 0 2rem 2rem; background: #1e2024; color: #fffdf9; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,13,.88) 0%, rgba(10,11,13,.54) 45%, rgba(255,106,26,.18) 100%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .68; }
.hero-content { position: relative; z-index: 1; max-width: 50rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lede { color: #e9e6df; max-width: 34rem; }
.hero .eyebrow { color: #ffb184; }
.hero .eyebrow::before { background: #ffb184; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 999px; background: var(--orange); color: #fff; text-decoration: none; font-weight: 700; }
.button:hover { background: #ff8545; transform: translateY(-1px); }
.button.secondary { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.08); color: #fff; }
.button.ink { background: var(--ink); color: var(--paper); }
.kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 4rem 0 1.5rem; }
.kicker-row h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); }
.text-link { color: var(--orange); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.news-grid, .pine-040c { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: start; gap: 1.3rem; }
.copper-5956 { min-width: 0; }
.copper-d09a { display: block; position: relative; aspect-ratio: 1.38 / 1; overflow: hidden; border-radius: .85rem; background: var(--orange-wash); }
.copper-d09a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.copper-5956:hover .copper-d09a img { transform: scale(1.045); }
.flint-e28e { padding: 1rem .1rem 0; }
.nova-6615 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; color: var(--muted); font: 700 .65rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.pearl-b933 { color: var(--orange); }
.copper-5956 h3 { margin-top: .65rem; font-size: 1.3rem; line-height: 1.05; }
.copper-5956 h3 a { text-decoration: none; }
.copper-5956 h3 a:hover { color: var(--orange); }
.copper-5956 p { margin-top: .55rem; color: var(--muted); font-size: .9rem; }
.amber-25f8 { color: var(--muted); border: 1px dashed var(--line); border-radius: .9rem; padding: 1.5rem; }
.intro-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4rem; padding: 5.25rem 0 1rem; }
.intro-split h2 { max-width: 11ch; }
.intro-split .lede { padding-top: .4rem; }
.numbered-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 4rem; }
.numbered-item { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.numbered-item .num { color: var(--orange); font: 700 .7rem var(--font-mono); }
.numbered-item h3 { margin: .8rem 0 .55rem; }
.numbered-item p { color: var(--muted); font-size: .92rem; }
.photo-band { min-height: 21rem; margin: 5rem 0; position: relative; overflow: hidden; border-radius: 1rem; color: #fff; background: #292a2c; }
.photo-band img { width: 100%; height: 100%; min-height: 21rem; object-fit: cover; opacity: .58; }
.photo-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,18,18,.86), rgba(18,18,18,.2)); }
.photo-band-copy { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 3rem; max-width: 40rem; }
.photo-band-copy h2 { margin: .8rem 0; }
.photo-band-copy p { color: #e7e2dc; }
.page-heading { padding: 1rem 0 3.4rem; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin-top: .85rem; max-width: 10ch; }
.page-heading .lede { max-width: 44rem; }
.archive-tools { display: flex; align-items: center; gap: .7rem; margin: 2rem 0; }
.search-box { display: flex; flex: 1; min-height: 3rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--white); overflow: hidden; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 1rem; color: var(--ink); background: transparent; }
.search-box button { border: 0; padding: 0 1.2rem; background: var(--ink); color: var(--paper); font-weight: 700; }
.filter-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-list a { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .75rem; font: 700 .7rem var(--font-mono); text-decoration: none; }
.filter-list a:hover { border-color: var(--orange); color: var(--orange); }
.calculator-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .8fr); gap: 3rem; align-items: end; padding-bottom: 3.25rem; border-bottom: 1px solid var(--line); }
.calculator-hero h1 { max-width: 10ch; }
.calc-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.calc-card h2 { font-size: 1.35rem; letter-spacing: -.04em; }
.calc-row { display: grid; gap: .45rem; margin-top: 1.05rem; }
.calc-row label { color: var(--muted); font: 700 .68rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.calc-row input, .calc-row select { width: 100%; min-height: 2.8rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--paper); color: var(--ink); }
.calc-button { width: 100%; border: 0; margin-top: 1.25rem; }
.calc-result { margin-top: 1.35rem; padding: 1rem; border-radius: .7rem; background: var(--orange-wash); }
.calc-result small { display: block; color: var(--muted); font-size: .75rem; }
.calc-result strong { display: block; margin-top: .2rem; color: var(--orange-deep); font: 700 2rem/1 var(--font-display); }
html[data-theme="dark"] .calc-result strong, html.dark .calc-result strong { color: #ff9b6a; }
.rate-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin-top: 3rem; }
.rate-item { padding: 1rem; border-left: 2px solid var(--orange); background: var(--white); }
.rate-item strong { display: block; font-family: var(--font-display); }
.rate-item span { display: block; margin-top: .2rem; color: var(--muted); font: .7rem var(--font-mono); }
.disclaimer { margin-top: 1.5rem; color: var(--muted); font-size: .8rem; }
.story-shell { max-width: 900px; }
.byline { display: flex; align-items: center; gap: .8rem; margin: 1.5rem 0 2rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .7rem; }
.byline img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; background: var(--orange-wash); }
.byline p { color: var(--muted); font-size: .85rem; }
.quiet-a192 h1 { max-width: 18ch; font-size: clamp(2.8rem, 6vw, 5.8rem); }
.anchor-e206 { max-width: 44rem; color: var(--muted); font-size: 1.15rem; }
.frost-3595 { margin: 2rem 0 3rem; border-radius: 1rem; overflow: hidden; max-height: 34rem; }
.frost-3595 img { width: 100%; max-height: 34rem; object-fit: cover; }
.prose { max-width: 47rem; }
.prose p { margin: 0 0 1.25rem; font-size: 1.08rem; line-height: 1.82; }
.prose h2, .prose h3 { margin: 2.7rem 0 1rem; letter-spacing: -.045em; }
.prose a { color: var(--orange-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul { margin: 1rem 0 1.6rem; padding-left: 1.3rem; }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found h1 { margin-left: auto; margin-right: auto; }
.not-found .lede { margin: 0 auto 2rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1.4rem 0 2rem; color: var(--muted); font-size: .78rem; }
.footer-inner { width: min(calc(100% - 3rem), var(--measure)); display: flex; justify-content: space-between; gap: 1rem; margin: 0 auto; }
@media (max-width: 800px) {
  .header-inner, .page-wrap, .footer-inner { width: min(calc(100% - 2rem), var(--measure)); }
  .primary-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 4.8rem; padding: .75rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); box-shadow: var(--shadow); }
  .primary-nav.mercury-08ac { display: grid; gap: 0; }
  .primary-nav a { padding: .8rem; }
  .nova-1b15 { display: grid; }
  .hero { min-height: 33rem; padding: 2rem; border-radius: 0 0 1.25rem 1.25rem; }
  .cedar-ebe3 { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 2rem; }
  .nickel-f213 { position: static; order: 2; }
  .intro-split, .calculator-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .numbered-list, .rate-strip { grid-template-columns: 1fr 1fr; }
  .photo-band, .photo-band img { min-height: 25rem; }
}
@media (max-width: 520px) {
  .brand-name { font-size: 1.12rem; }
  .hero h1, h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .hero { padding: 1.35rem; }
  .kicker-row { align-items: flex-start; flex-direction: column; }
  .numbered-list, .rate-strip { grid-template-columns: 1fr; }
  .archive-tools { align-items: stretch; flex-direction: column; }
  .search-box { flex: none; }
  .photo-band-copy { padding: 1.5rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
