/* Heavy Duty Pickup Forum. Spec-sheet grid: gunmetal, safety yellow, steel blue. */
:root {
  --bg: #1E2327;
  --bg-2: #242A2F;
  --panel: #2A3136;
  --panel-2: #313940;
  --line: #3C464D;
  --text: #ECEDEA;
  --muted: #AEB4B6;
  --yellow: #F2C230;
  --yellow-ink: #1E2327;
  --blue: #3B6EA5;
  --blue-soft: #8DB3DC;
  --radius: 4px;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-soft); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: 2px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--yellow-ink); padding: 6px 12px; font-weight: 700; z-index: 10; }
.skip:focus { left: 16px; }

/* ---------- masthead ---------- */
.masthead { background: #1A1E21; border-bottom: 3px solid var(--yellow); }
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 14px; }
.brand { display: inline-flex; line-height: 0; }
.logo-img { height: 44px; width: auto; }
.logo-img--sm { height: 30px; }
.mast-tag { margin: 0; font-size: 13px; line-height: 1.35; color: var(--muted); text-align: right; text-transform: uppercase; letter-spacing: .06em; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.tabs a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 12px; color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
  border-right: 1px solid var(--line);
}
.tabs a:first-child { border-left: 1px solid var(--line); }
.tabs a:hover { background: var(--bg-2); color: var(--yellow); }
.tabs a[aria-current="page"] { background: var(--yellow); color: var(--yellow-ink); }
.tab-no { font-family: var(--display); font-size: 12px; opacity: .7; }

/* ---------- shared bits ---------- */
main { padding: 28px 0 48px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs span { margin: 0 6px; opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; padding: 2px 8px; border-radius: 2px;
  background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.chip-pin { background: var(--yellow); color: var(--yellow-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: .005em; }
.sec-title { font-size: 20px; margin: 36px 0 14px; text-transform: uppercase; }
.reply-box { margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }

/* ---------- home ---------- */
.intro h1 { font-size: clamp(28px, 5vw, 42px); margin: 0 0 8px; }
.intro p { margin: 0; max-width: 62ch; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.tile {
  display: flex; flex-direction: column; padding: 18px 18px 20px;
  background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--blue);
  color: var(--text); text-decoration: none; border-radius: var(--radius);
  transition: border-color .15s ease, transform .15s ease;
}
.tile:hover { border-top-color: var(--yellow); color: var(--text); transform: translateY(-2px); }
.tile-no { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.big { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--yellow); margin-top: 8px; }
.big-lbl { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tile-name { font-family: var(--display); font-size: 19px; margin-top: 14px; line-height: 1.2; }
.tile-desc { font-size: 14px; color: var(--muted); margin-top: 6px; }

.statbar { display: grid; grid-template-columns: repeat(3, auto) 1fr; margin-top: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.statbar > div { padding: 10px 18px; border-right: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.statbar > div:last-child { border-right: 0; }
.statbar b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--text); }
.statbar span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.statbar-note span { text-transform: none; letter-spacing: 0; font-style: italic; }

/* thread cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cards--one { grid-template-columns: 1fr; }
.tcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px;
}
.tcard h3 { font-family: var(--body); font-weight: 700; font-size: 16.5px; line-height: 1.35; margin: 2px 0 0; }
.tcard h3 a { color: var(--text); text-decoration: none; }
.tcard h3 a:hover { color: var(--yellow); text-decoration: underline; }
.tcard .by { margin: 0; font-size: 13px; color: var(--muted); }
.tcard .by b { color: var(--text); font-weight: 500; }
.nums { display: grid; grid-template-columns: auto auto 1fr; margin: 6px 0 0; border-top: 1px solid var(--line); }
.nums > div { padding: 8px 14px 0 0; margin-right: 14px; }
.nums > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.nums dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.nums dd { margin: 0; font-family: var(--display); font-size: 17px; }
.nums .last dd { font-family: var(--body); font-size: 13.5px; font-weight: 500; }

/* ---------- board page ---------- */
.board-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.board-no { font-family: var(--display); font-size: 72px; line-height: .85; color: var(--yellow); }
.board-head h1 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 6px; }
.board-head p { margin: 0; color: var(--muted); max-width: 70ch; }
.board-head p b { color: var(--text); }

/* ---------- thread ---------- */
.thread-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.thread-head h1 { font-size: clamp(22px, 3.4vw, 32px); margin: 10px 0 14px; max-width: 34ch; }
.thread-spec { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 0; border: 1px solid var(--line); }
.thread-spec > div { padding: 8px 16px; border-right: 1px solid var(--line); }
.thread-spec > div:last-child { border-right: 0; }
.thread-spec dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.thread-spec dd { margin: 0; font-weight: 700; font-size: 14px; }

.posts { display: grid; gap: 14px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.post.is-op { border-left: 4px solid var(--yellow); }
.post-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center;
  padding: 12px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--display); font-size: 18px; color: #fff; border-radius: 3px;
}
.author-name { font-weight: 700; font-size: 15.5px; word-break: break-word; }
.op-pill { font-style: normal; margin-left: 8px; padding: 1px 6px; background: var(--yellow); color: var(--yellow-ink); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; border-radius: 2px; vertical-align: 2px; }
/* the rig line looks like a door jamb loading placard */
.rig {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  padding: 1px 8px 1px 0; font-size: 12.5px; color: var(--text);
  border: 1px solid #6E6331; background: #2F2E22; border-radius: 2px;
}
.rig-lbl { background: var(--yellow); color: var(--yellow-ink); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; }
.author-spec { display: grid; grid-template-columns: repeat(4, auto); margin: 0; font-size: 12.5px; }
.author-spec > div { padding: 0 12px; border-left: 1px solid var(--line); }
.author-spec dt { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.author-spec dd { margin: 0; font-weight: 500; white-space: nowrap; }
.author-rank { font-weight: 700; }
.rank-rookie { color: var(--muted); }
.rank-hauler { color: var(--text); }
.rank-tow { color: var(--blue-soft); }
.rank-heavy { color: var(--yellow); }
.rank-mod { background: var(--blue); color: #fff; padding: 0 6px; border-radius: 2px; }
.post-stamp { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 18px 0; font-size: 13px; color: var(--muted); }
.post-number { font-family: var(--display); font-size: 15px; color: var(--muted); }
.post-content { padding: 4px 18px 6px; max-width: 76ch; }
.post-content p { margin: 10px 0; }
.post-content strong { color: var(--yellow); }
.post-content blockquote {
  margin: 12px 0; padding: 10px 14px; background: var(--bg-2);
  border-left: 3px solid var(--blue); color: var(--muted); font-size: 15px;
}
.post-content blockquote cite { display: block; font-style: normal; font-weight: 700; font-size: 12px; color: var(--text); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.post-footer { display: flex; gap: 8px; padding: 8px 18px 12px; }
.post-action {
  font: 700 12px/1 var(--body); text-transform: uppercase; letter-spacing: .06em;
  padding: 7px 12px; background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
}
.post-action:hover { color: var(--yellow); border-color: var(--yellow); }

.related { margin-top: 30px; }
.related h2 { font-size: 16px; text-transform: uppercase; margin: 0 0 10px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.related a { display: block; height: 100%; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; font-size: 14.5px; border-radius: var(--radius); }
.related a:hover { border-color: var(--yellow); }
.rel-board { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }

/* ---------- static pages ---------- */
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 16px; }
.prose h2 { font-size: 18px; text-transform: uppercase; margin: 30px 0 8px; color: var(--yellow); }
.prose li { margin-bottom: 8px; }

/* ---------- footer ---------- */
.foot { background: #191C1F; border-top: 1px solid var(--line); padding: 28px 0 0; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot-grid p { margin: 10px 0 0; max-width: 44ch; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 6px; }
.foot-links a { color: var(--text); text-decoration: none; }
.foot-links a:hover { color: var(--yellow); text-decoration: underline; }
/* receiver hitch pin holes along the bottom plate */
.foot-plate {
  display: flex; justify-content: space-between; margin-top: 24px; padding: 12px 0 18px;
  border-top: 1px solid var(--line); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em;
  background: radial-gradient(circle, #0F1214 3px, transparent 3.5px) center 0 / 26px 8px repeat-x;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .post-head { grid-template-columns: 1fr; }
  .author-spec > div:first-child { border-left: 0; padding-left: 0; }
  .statbar { grid-template-columns: repeat(3, 1fr); }
  .statbar-note { display: none !important; }
}
@media (max-width: 640px) {
  .mast-tag { display: none; }
  .logo-img { height: 36px; }
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .tabs a { border-bottom: 1px solid var(--line); font-size: 13px; }
  .tabs a:nth-child(3) { border-left: 1px solid var(--line); }
  .author-spec { grid-template-columns: repeat(2, auto); gap: 6px 0; }
  .author-spec > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .thread-spec { grid-template-columns: 1fr; }
  .thread-spec > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .thread-spec > div:last-child { border-bottom: 0; }
  .statbar > div { flex-direction: column; gap: 0; padding: 8px 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .board-no { font-size: 48px; }
  .big { font-size: 52px; }
  .post-content, .post-stamp, .post-footer { padding-left: 14px; padding-right: 14px; }
  .rig { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tile:hover { transform: none; }
}
