:root {
  --ink: #243044;
  --ink-soft: #3d4b60;
  --paper: #f7f1e8;
  --card: #fffdf9;
  --line: #e4d8c8;
  --oak: #8a4b24;
  --oak-dark: #6d3a1b;
  --sage: #2f6f5e;
  --amber: #8a4b12;
  --shadow: 0 16px 40px rgba(36, 48, 68, 0.08);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--sans); }
a { color: var(--oak-dark); }
a:hover { color: var(--oak); }
img { max-width: 100%; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: white; padding: .4rem .7rem; }
.skip:focus { top: 1rem; }
.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700; }
.mark { width: 1.3rem; height: 1rem; border: 2px solid var(--ink); border-bottom-width: 5px; position: relative; }
.mark::before { content: ""; position: absolute; left: .15rem; right: .15rem; top: -6px; border-top: 2px solid var(--oak); }
.menu { display: none; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; }
nav { display: flex; gap: 1.1rem; }
nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.hero { padding: 3.2rem 0 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 650; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .2rem 0 .8rem; }
.eyebrow { letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; color: var(--sage); font-weight: 700; }
.actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.2rem; }
.button, button.button { display: inline-block; background: var(--oak); color: white; text-decoration: none; border: 0; border-radius: 999px; padding: .7rem 1.1rem; font: inherit; cursor: pointer; }
.button:hover { background: var(--oak-dark); color: white; }
.text-link { color: var(--ink); font-weight: 650; }
.bunk-art { height: 220px; position: relative; }
.bunk-art .rail, .bunk-art .slat, .bunk-art .ladder { position: absolute; background: var(--ink); }
.bunk-art .rail { left: 10%; right: 18%; top: 36px; height: 10px; background: var(--oak); }
.bunk-art .slat { left: 12%; right: 22%; top: 58px; height: 18px; border-radius: 2px; }
.bunk-art .slat.lower { top: 128px; background: var(--sage); }
.bunk-art .ladder { width: 28px; right: 8%; top: 58px; bottom: 24px; background: repeating-linear-gradient(var(--oak) 0 4px, transparent 4px 22px); }
.route, .section { padding: 1rem 0 2.4rem; }
.section-title, .band { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.route-grid, .card-grid, .hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.route-grid a, .card, .hub-grid a, .product, .result { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.route-grid a, .hub-grid a { color: inherit; text-decoration: none; display: block; }
.route-grid span, .hub-grid span { color: var(--oak); font-size: .8rem; font-weight: 700; }
.band { display: block; background: var(--ink); color: #f4efe7; padding: 1.6rem 0; margin: .5rem 0 1rem; }
.band a, .band .band-copy { color: #f4efe7; }
.hub-hero { padding: 2rem 0 1rem; }
.article-shell { padding-bottom: 3rem; }
.prose { max-width: 74ch; }
.dek { font-size: 1.15rem; }
.meta, .fine, .note, .form-note { color: var(--ink-soft); font-size: .95rem; }
.disclosure { border-left: 4px solid var(--amber); background: #fff6ea; padding: .8rem 1rem; margin: 1.2rem 0; }
.product { margin: 1rem 0; }
.untested { font-size: .95rem; }
.sources { font-size: .95rem; }
.card-grid .card h3 { margin: .2rem 0; font-size: 1.2rem; }
.link-list a { display: grid; gap: .2rem; padding: .8rem 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.breadcrumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--ink-soft); }
details { border-top: 1px solid var(--line); padding: .6rem 0; }
summary { cursor: pointer; font-weight: 650; }
.calculator .fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.calculator label, .contact-form label { display: grid; gap: .25rem; font-size: .95rem; }
input, select, textarea { font: inherit; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }
textarea { min-height: 8rem; }
.contact-form { display: grid; gap: .8rem; max-width: 36rem; }
.check { grid-template-columns: auto 1fr; align-items: center; }
.hp { position: absolute; left: -9999px; }
.result { margin-top: 1rem; }
.result p { margin: .4rem 0; }
footer { background: #efe6da; border-top: 1px solid var(--line); padding: 2rem 0 1rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 1rem; }
footer h2 { font-size: 1rem; }
footer a, footer span { display: block; color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
footer .brand { color: var(--ink); }
@media (max-width: 800px) {
  .hero-grid, .route-grid, .card-grid, .hub-grid, .calculator .fields, .footer-grid { grid-template-columns: 1fr; }
  .menu { display: inline-block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 4.2rem; background: var(--card); border-bottom: 1px solid var(--line); padding: .8rem 1rem 1rem; }
  nav.open { display: grid; }
  .bunk-art { display: none; }
}
