/* Hard Diesel website. Colours and type follow the game's own menus. */
:root {
  --ink: #120b07;
  --ink-2: #1a0d07;
  --plate: #2a150b;
  --rust: #5a2c16;
  --rust-hi: #9a6440;
  --sand: #ead9b5;
  --sand-2: #c4a985;
  --text: #d8c7a0;
  --accent: #f2b51b;
  --ash: #8fb3c9;
  --red: #e0522a;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1.3px);
  background-size: 4px 4px;
  color: var(--text);
  font-family: 'Teko', 'Arial Narrow', sans-serif;
  font-size: 23px;
  line-height: 1.2;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--sand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.stencil, h1, h2, h3 { font-family: 'Black Ops One', Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.mono { font-family: 'VT323', monospace; letter-spacing: .05em; }
h1, h2 { color: var(--sand); text-shadow: 3px 3px 0 #7a2f0e, 6px 6px 0 #000; margin: 0; line-height: 1; }
h1 { font-size: clamp(42px, 7vw, 84px); }
h2 { font-size: clamp(32px, 5vw, 54px); }
h3 { color: var(--sand); font-size: 24px; margin: 0; line-height: 1.05; }
p { margin: 0; }
.kicker { font-family: 'VT323', monospace; font-size: 24px; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.lead { font-size: clamp(23px, 2.3vw, 29px); color: var(--text); max-width: 46ch; }
.muted { color: var(--sand-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.sec { padding: 80px 16px; }
.sec.alt { background: var(--ink-2); border-top: 3px solid var(--rust); border-bottom: 3px solid var(--rust); }
.head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.head .lead { max-width: 60ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.haz { height: 8px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px); }

/* bolted metal plate */
.plate {
  position: relative;
  background: var(--plate) repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 6px, rgba(0,0,0,.05) 6px 13px);
  border: 3px solid; border-color: var(--rust-hi) #150a05 #150a05 var(--rust-hi);
  box-shadow: 6px 6px 0 rgba(0,0,0,.7);
  padding: 24px;
}
.plate::before, .plate::after {
  content: ""; position: absolute; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: #d8b48a; box-shadow: 0 0 0 2px #3a1d0e;
}
.plate::before { left: 7px; }
.plate::after { right: 7px; }
.plate .tag { display: inline-block; font-family: 'VT323', monospace; font-size: 20px; letter-spacing: .08em; color: var(--ink); background: var(--accent); padding: 0 8px; margin-bottom: 10px; }
.plate p { color: var(--text); }
.plate h3 + p { margin-top: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 6px 28px 0; border: 3px solid var(--ink);
  background: var(--accent); color: var(--ink); text-decoration: none;
  font-family: 'Black Ops One', Impact, sans-serif; font-size: 22px; text-transform: uppercase;
  box-shadow: 5px 5px 0 #000; transform: skewX(-8deg);
}
.btn:hover { background: var(--sand); color: var(--ink); }
.btn.ghost { background: rgba(20,10,6,.75); color: var(--sand); border-color: var(--rust); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btns { display: flex; flex-wrap: wrap; gap: 18px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(18,11,7,.94); border-bottom: 3px solid var(--rust); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 16px; }
.top img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--sand); text-decoration: none; font-size: 25px; text-transform: uppercase; letter-spacing: .06em; padding-top: 4px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.menu { display: none; background: none; border: 3px solid var(--rust); color: var(--sand); font: inherit; font-size: 22px; text-transform: uppercase; padding: 4px 14px 0; cursor: pointer; min-height: 44px; }
@media (max-width: 960px) {
  .menu { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 3px solid var(--rust); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0 6px; }
}

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 3px solid var(--rust); }
.hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) brightness(.62); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,11,7,.15) 0%, rgba(18,11,7,.25) 55%, var(--ink) 100%), repeating-linear-gradient(180deg, transparent 0 2px, rgba(0,0,0,.18) 2px 3px); pointer-events: none; }
.hero .in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 70px 16px 90px; }
.hero h1 picture { display: block; width: min(760px, 100%); margin: 0 auto; }
.hero .logo { width: 100%; height: auto; filter: drop-shadow(8px 8px 0 rgba(0,0,0,.6)); }
.hero .say { font-family: 'Black Ops One', Impact, sans-serif; font-size: clamp(22px, 3vw, 34px); color: var(--sand); text-shadow: 3px 3px 0 #000; text-transform: uppercase; }
.hero .lead { color: var(--sand); text-shadow: 2px 2px 0 #000; max-width: 40ch; }
.hero .state { font-family: 'VT323', monospace; font-size: 24px; letter-spacing: .1em; color: var(--accent); text-shadow: 2px 2px 0 #000; }
.band .in { padding: 64px 16px 56px; }
.band h1 { text-align: center; }

/* screenshots */
.shot { margin: 0; border: 3px solid; border-color: var(--rust-hi) #150a05 #150a05 var(--rust-hi); box-shadow: 6px 6px 0 rgba(0,0,0,.7); background: #000; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { padding: 8px 12px 6px; font-family: 'VT323', monospace; font-size: 20px; letter-spacing: .06em; color: var(--sand-2); background: var(--ink-2); text-transform: uppercase; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.gallery a { display: block; text-decoration: none; }
.gallery a:hover .shot { border-color: var(--accent); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 16px; background: rgba(0,0,0,.92); }
.lightbox.open { display: flex; }
.lightbox img { max-height: calc(100vh - 110px); width: auto; border: 3px solid var(--rust-hi); }
.lightbox p { font-family: 'VT323', monospace; font-size: 22px; color: var(--sand); text-transform: uppercase; text-align: center; }
.lightbox button { position: absolute; background: var(--ink); border: 3px solid var(--rust); color: var(--sand); font-family: 'Black Ops One', Impact, sans-serif; font-size: 22px; min-width: 48px; min-height: 48px; cursor: pointer; }
.lightbox button:hover { border-color: var(--accent); color: var(--accent); }
.lightbox .x { top: 14px; right: 14px; }
.lightbox .prev { left: 14px; top: 50%; }
.lightbox .next { right: 14px; top: 50%; }

/* modes */
.mode { display: flex; flex-direction: column; gap: 8px; }
.mode .sizes { font-family: 'VT323', monospace; font-size: 22px; color: var(--accent); letter-spacing: .06em; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 22px; }
th, td { text-align: left; padding: 8px 12px 4px; border-bottom: 2px solid var(--rust); vertical-align: top; }
th { font-family: 'VT323', monospace; font-weight: 400; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
td.key { font-family: 'VT323', monospace; font-size: 22px; color: var(--sand); white-space: nowrap; }

/* stat list */
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; }
dl.facts dt { font-family: 'VT323', monospace; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
dl.facts dd { margin: 0; color: var(--sand); }
ul.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
ul.ticks li { padding-left: 26px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; background: var(--accent); transform: skewX(-10deg); }

/* faq */
details { border-bottom: 2px solid var(--rust); padding: 14px 0 10px; }
summary { cursor: pointer; font-family: 'Black Ops One', Impact, sans-serif; font-size: 22px; color: var(--sand); text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); }
details[open] summary::after { content: "-"; }
details p { margin-top: 10px; max-width: 70ch; }

/* accounts: forms, messages and lists */
[hidden] { display: none !important; }
.wrap.narrow { max-width: 680px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-family: 'VT323', monospace; font-size: 22px; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
  width: 100%; min-height: 50px; padding: 8px 12px 4px; margin: 0;
  font: inherit; font-size: 23px; color: var(--sand); background: var(--ink);
  border: 3px solid; border-color: #150a05 var(--rust-hi) var(--rust-hi) #150a05; border-radius: 0;
}
textarea { resize: vertical; min-height: 100px; }
select { width: auto; cursor: pointer; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.hint { font-size: 20px; color: var(--sand-2); }
.shows { font-family: 'VT323', monospace; font-size: 22px; letter-spacing: .06em; color: var(--sand); min-height: 1em; }
.check { display: flex; align-items: center; gap: 12px; color: var(--sand); cursor: pointer; }
.check input { width: 26px; height: 26px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.msg { padding: 10px 14px 6px; border-left: 6px solid var(--red); background: rgba(224,82,42,.14); color: var(--sand); }
.msg.good { border-left-color: var(--accent); background: rgba(242,181,27,.1); }
button.btn { cursor: pointer; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.small { min-height: 40px; padding: 4px 16px 0; font-size: 18px; box-shadow: 3px 3px 0 #000; }
.btn.ghost.small { box-shadow: none; }
.or { display: flex; align-items: center; gap: 14px; font-family: 'VT323', monospace; font-size: 22px; color: var(--sand-2); text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 2px; background: var(--rust); }
.state { font-family: 'Black Ops One', Impact, sans-serif; font-size: 30px; color: var(--accent); text-transform: uppercase; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.bar h3 { margin-right: auto; }
.bar input { flex: 1; min-width: 12ch; }
ul.rows { margin: 0; padding: 0; list-style: none; }
ul.rows:empty { display: none; }
ul.rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0 8px; border-bottom: 2px solid var(--rust); }
ul.rows .who { flex: 1; min-width: 10ch; font-family: 'VT323', monospace; font-size: 26px; letter-spacing: .06em; color: var(--sand); }
.status { font-family: 'VT323', monospace; font-size: 22px; letter-spacing: .06em; color: var(--sand-2); text-transform: uppercase; }
.status.on { color: var(--accent); }
.status.on::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--accent); transform: skewX(-10deg); }
.wrap.wide { max-width: 1560px; }
table.admin th, table.admin td { padding: 8px 8px 4px; }
table.admin th { letter-spacing: .04em; }
table.admin td { font-size: 21px; }
table.admin td.note { min-width: 14ch; max-width: 40ch; white-space: pre-wrap; overflow-wrap: anywhere; }
table.admin .seen { display: block; color: var(--sand-2); }
table.admin .actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
table.admin .actions .btn { transform: none; white-space: nowrap; min-height: 34px; padding: 3px 10px 0; font-size: 16px; }
.access { font-family: 'VT323', monospace; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.access.applied { color: var(--accent); }
.access.granted { color: var(--ash); }
.access.revoked { color: var(--red); }
.nav a.me { border: 3px solid var(--rust); padding: 4px 12px 0; }
.nav a.me:hover, .nav a.me[aria-current] { border-color: var(--accent); }
@media (max-width: 960px) { .nav a.me { border-width: 0 0 3px; border-color: transparent; padding: 10px 0 6px; } }

/* footer */
.foot { border-top: 3px solid var(--rust); background: var(--ink-2); padding: 40px 16px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { color: var(--sand-2); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
.foot a:hover { color: var(--accent); }
.foot small { font-family: 'VT323', monospace; font-size: 20px; color: var(--sand-2); letter-spacing: .06em; }
