/* Hamazon Heavy Freight. Layout: white page, ink type, fleet-blue accent, one dark footer.
   Tokens use the --hhf- prefix and match branding/. Light by choice: the livery is white. */
:root {
  --hhf-white: #ffffff;
  --hhf-mist: #f1f4f8;
  --hhf-line: #d9e0e8;
  --hhf-ink: #0d1117;
  --hhf-body: #3b4654;
  --hhf-dim: #5d6876;
  --hhf-blue: #2f6fd8;
  --hhf-blue-dk: #1f55b0;
  --hhf-silver: #b4bdc8;
  --hhf-display: 'Syncopate', 'Arial Black', 'Arial Narrow', sans-serif;
  --hhf-sans: 'Saira', 'Arial Narrow', system-ui, sans-serif;
  --hhf-mono: 'JetBrains Mono', ui-monospace, monospace;
  --hhf-max: 1200px;
  --hhf-gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--hhf-white); color: var(--hhf-body);
  font: 400 18px/1.6 var(--hhf-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--hhf-blue-dk); }
:focus-visible { outline: 3px solid var(--hhf-blue); outline-offset: 3px; }
.wrap { max-width: var(--hhf-max); margin: 0 auto; padding-inline: var(--hhf-gutter); }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: var(--hhf-ink); color: var(--hhf-white); padding: 10px 14px; }

/* type */
h1, h2, h3 { font-family: var(--hhf-display); font-weight: 700; color: var(--hhf-ink); margin: 0 0 .5em; text-wrap: balance; letter-spacing: .02em; text-transform: uppercase; line-height: 1.12; }
h1 { font-size: clamp(30px, 5.6vw, 64px); }
h2 { font-size: clamp(22px, 3.4vw, 36px); }
h3 { font-size: 16px; letter-spacing: .06em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(19px, 2.2vw, 23px); color: var(--hhf-body); max-width: 38em; }
.eyebrow { font: 600 13px/1 var(--hhf-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--hhf-blue-dk); display: block; margin-bottom: 18px; }
.mono { font-family: var(--hhf-mono); }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hhf-line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--hhf-ink); text-decoration: none; font: 600 14px/1 var(--hhf-sans); letter-spacing: .2em; text-transform: uppercase; padding: 12px 12px; }
.nav a:hover { color: var(--hhf-blue-dk); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--hhf-blue); }
.nav .btn { margin-left: 10px; padding: 13px 18px; color: var(--hhf-white); }
.nav-toggle { display: none; background: none; border: 2px solid var(--hhf-ink); color: var(--hhf-ink); font: 700 13px/1 var(--hhf-sans); letter-spacing: .2em; padding: 11px 13px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--hhf-white); border-bottom: 1px solid var(--hhf-line); padding: 8px var(--hhf-gutter) 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--hhf-line); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--hhf-blue); padding-left: 14px; }
  .nav .btn { margin: 14px 0 0; text-align: center; }
}

/* buttons */
.btn { display: inline-block; text-decoration: none; cursor: pointer; border: 0; font: 700 14px/1 var(--hhf-sans); letter-spacing: .2em; text-transform: uppercase; padding: 18px 26px; transition: background .15s ease; }
.btn-primary { background: var(--hhf-ink); color: var(--hhf-white); }
.btn-primary:hover { background: var(--hhf-blue-dk); }
.btn-ghost { background: transparent; color: var(--hhf-ink); box-shadow: inset 0 0 0 2px var(--hhf-ink); }
.btn-ghost:hover { background: var(--hhf-ink); color: var(--hhf-white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* hero */
.hero { padding: clamp(44px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.hero h1 { max-width: 15ch; }
.hero-art { margin: 0; position: relative; background: #8e90b4; }
.hero-art img { width: 100%; height: auto; }
.hero-art figcaption { position: absolute; left: var(--hhf-gutter); bottom: 14px; font: 600 12px/1 var(--hhf-mono); letter-spacing: .14em; color: var(--hhf-ink); background: rgba(255,255,255,.9); padding: 9px 12px; }
@media (max-width: 640px) { .hero-art img { min-height: 260px; object-fit: cover; object-position: 38% 50%; } }

/* stat strip */
.stats { border-bottom: 1px solid var(--hhf-line); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 28px 24px; border-left: 1px solid var(--hhf-line); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font: 700 clamp(26px, 3.6vw, 40px)/1 var(--hhf-display); color: var(--hhf-ink); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; font: 600 12px/1.4 var(--hhf-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--hhf-dim); }
@media (max-width: 720px) { .stats ul { grid-template-columns: 1fr 1fr; } .stats li:nth-child(3) { border-left: 0; padding-left: 0; } .stats li:nth-child(n+3) { border-top: 1px solid var(--hhf-line); } .stats li:nth-child(2) { padding-left: 24px; } }

/* sections */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section.alt { background: var(--hhf-mist); }
.section-head { max-width: 44em; margin-bottom: 44px; }
.page-head { background: var(--hhf-mist); border-bottom: 1px solid var(--hhf-line); padding: clamp(48px, 7vw, 92px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(28px, 5vw, 52px); }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g4 { grid-template-columns: minmax(0, 1fr); } }

.card { border-top: 4px solid var(--hhf-ink); background: var(--hhf-white); padding: 24px 22px 26px; }
.section.alt .card { background: var(--hhf-white); }
.card .code { font: 600 12px/1 var(--hhf-mono); letter-spacing: .16em; color: var(--hhf-blue-dk); display: block; margin-bottom: 16px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin: 5px 0; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev { grid-template-columns: 1fr 1.2fr; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.shot { margin: 0; background: #8e90b4; }
.shot img { width: 100%; height: auto; }
.shot figcaption { font: 600 12px/1.4 var(--hhf-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hhf-dim); background: var(--hhf-white); padding: 10px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 640px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* spec + board tables */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--hhf-line); vertical-align: top; }
.spec th { font: 600 12px/1.6 var(--hhf-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--hhf-dim); width: 42%; padding-right: 14px; }
.spec td { color: var(--hhf-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.board { width: 100%; border-collapse: collapse; font: 500 15px/1.4 var(--hhf-mono); font-variant-numeric: tabular-nums; min-width: 640px; }
.board th { font: 600 11px/1 var(--hhf-sans); letter-spacing: .24em; text-align: left; padding: 0 14px 12px 0; color: var(--hhf-dim); }
.board td { padding: 16px 14px 16px 0; border-top: 1px solid var(--hhf-line); color: var(--hhf-ink); white-space: nowrap; }
.board td:first-child { color: var(--hhf-blue-dk); font-weight: 700; }
.tag { display: inline-block; font: 700 11px/1 var(--hhf-sans); letter-spacing: .16em; padding: 6px 9px; }
.tag.go { background: var(--hhf-ink); color: var(--hhf-white); }
.tag.load { background: #dbe7fb; color: #17408a; }
.tag.hold { background: var(--hhf-mist); color: var(--hhf-dim); box-shadow: inset 0 0 0 1px var(--hhf-line); }
.note { font: 500 13px/1.5 var(--hhf-mono); color: var(--hhf-dim); margin-top: 16px; }

/* roster */
.roster .card .reg { font: 700 clamp(22px, 3vw, 30px)/1 var(--hhf-display); color: var(--hhf-ink); }
.roster .card .name { font: 600 12px/1 var(--hhf-sans); letter-spacing: .26em; color: var(--hhf-blue-dk); display: block; margin: 12px 0 14px; text-transform: uppercase; }

/* CTA */
.cta { background: var(--hhf-blue); color: var(--hhf-white); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-block: 52px; }
.cta h2 { color: var(--hhf-white); margin: 0 0 8px; }
.cta p { margin: 0; font-weight: 500; font-size: 20px; }
.cta .btn { background: var(--hhf-ink); color: var(--hhf-white); }
.cta .btn:hover { background: var(--hhf-white); color: var(--hhf-ink); }

/* form */
.form { display: grid; gap: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font: 600 12px/1 var(--hhf-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--hhf-ink); }
.field input, .field select, .field textarea { width: 100%; background: var(--hhf-white); color: var(--hhf-ink); border: 2px solid var(--hhf-silver); border-radius: 0; padding: 14px; font: 400 17px/1.4 var(--hhf-sans); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--hhf-blue); outline: none; box-shadow: 0 0 0 3px rgba(47,111,216,.25); }
.field textarea { min-height: 110px; resize: vertical; }
.hint { font-size: 15px; color: var(--hhf-dim); margin: 0; }
.manifest { white-space: pre-wrap; background: var(--hhf-ink); color: #e8edf3; padding: 22px; font: 500 14px/1.7 var(--hhf-mono); margin: 0; border-left: 6px solid var(--hhf-blue); }
[hidden] { display: none !important; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--hhf-ink); }
.timeline li { position: relative; padding: 0 0 30px 28px; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 6px; width: 17px; height: 17px; background: var(--hhf-blue); }
.timeline b { font: 700 18px/1.2 var(--hhf-display); color: var(--hhf-ink); letter-spacing: .04em; display: block; margin-bottom: 6px; }

/* footer */
.site-foot { background: var(--hhf-ink); color: #c4ccd6; padding: 60px 0 34px; font-size: 16px; }
.site-foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr; } }
.site-foot img { height: 150px; width: auto; }
.site-foot h3 { font: 600 12px/1 var(--hhf-sans); letter-spacing: .26em; color: #8d99a8; margin-bottom: 16px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 10px 0; }
.site-foot a { color: #ffffff; text-decoration: none; }
.site-foot a:hover { color: #8db4f5; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid #2a3340; font: 400 12px/1.7 var(--hhf-mono); color: #9aa5b3; }

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