/* HaulMP.online */

@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/big-shoulders-display-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/big-shoulders-display-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --surface: #121418;
  --surface-2: #181b21;
  --border: #23262e;
  --border-2: #31353f;
  --text: #eceae4;
  --text-2: #b4b2ab;
  --muted: #7f7d77;
  --amber: #f5a524;
  --amber-2: #ffbe4f;
  --ink: #161006;
  --ok: #34d17a;
  --bad: #f06a6a;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--amber); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--amber); color: var(--ink); padding: 8px 14px; font-weight: 600; text-decoration: none; border-radius: 8px; }
.skip:focus { top: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(11,12,15,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 900 22px/1 var(--display); letter-spacing: .01em; text-decoration: none; }
.brand-mark { width: 4px; height: 22px; background: repeating-linear-gradient(180deg, var(--amber) 0 6px, transparent 6px 9px); border-radius: 2px; }
.top-nav { display: flex; align-items: center; gap: 24px; }
.top-nav > a { font-size: 14px; color: var(--text-2); text-decoration: none; }
.top-nav > a:hover { color: var(--text); }
.lang { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.lang button { font: 500 12px/1 var(--mono); background: none; color: var(--muted); border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 640px) { .top-nav > a { display: none; } }

/* hero */
.hero { padding-top: clamp(64px, 11vw, 128px); padding-bottom: clamp(24px, 4vw, 40px); }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.lane-mark { width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--amber) 0 10px, transparent 10px 16px); }
h1 { margin: 0; font: 900 clamp(56px, 11vw, 132px)/.9 var(--display); letter-spacing: -.005em; }
.lead { max-width: 520px; margin: 28px 0 0; font-size: clamp(17px, 1.8vw, 19px); color: var(--text-2); }
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; }
.jump a {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px;
  font: 500 13px/1 var(--mono); color: var(--text-2); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  transition: border-color .15s, color .15s;
}
.jump a:hover { border-color: var(--border-2); color: var(--text); }

/* status dots */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
[data-state="checking"] .dot, .dot[data-state="checking"] { animation: blink 1s ease-in-out infinite; }
[data-state="online"] .dot, .dot[data-state="online"] { background: var(--ok); box-shadow: 0 0 0 3px rgba(52,209,122,.18); }
[data-state="offline"] .dot, .dot[data-state="offline"] { background: var(--bad); }
.dot-ext, [data-state="external"] .dot { background: var(--amber); }
@keyframes blink { 50% { opacity: .3; } }

/* sections */
.section { padding-top: clamp(56px, 8vw, 96px); }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 8px 40px; align-items: end; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.section-head h2 { margin: 0; font: 900 clamp(36px, 5vw, 52px)/1 var(--display); }
.section-head p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 24px 24px;
  transition: border-color .2s;
}
.card:hover { border-color: var(--border-2); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.num { font: 500 12px/1 var(--mono); color: var(--amber); letter-spacing: .08em; }
.status { display: inline-flex; align-items: center; gap: 7px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card h3 { margin: 0; font: 900 34px/1 var(--display); }
.host { margin: 8px 0 0; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.desc { margin: 18px 0 0; color: var(--text); font-size: 16px; }
.list { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.list li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--amber); border-radius: 1px; }

.btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--amber); color: var(--ink); text-decoration: none;
  font: 600 14px/1 var(--sans);
  transition: background .15s;
}
.btn:hover { background: var(--amber-2); }
.btn-ghost { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 0 16px; align-self: stretch; }

/* badge generator */
.gen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 960px) { .gen { grid-template-columns: 1fr; } }
.gen-form, .preview { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; min-width: 0; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; margin-bottom: 22px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.seg input:checked + span { background: var(--text); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

.field { display: block; }
.field-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field-row { display: flex; gap: 8px; }
.field input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border-2); border-radius: 10px;
  font: 500 15px/1 var(--mono);
}
.field input:focus { outline: none; border-color: var(--amber); }
.field-hint { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

.codes { display: grid; gap: 8px; margin-top: 24px; }
.code { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.code-k { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.code code { font: 500 12.5px/1.4 var(--mono); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy { font: 600 12px/1 var(--sans); padding: 8px 12px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.copy:hover { background: var(--border); }
.copy.done { background: var(--ok); color: #05210f; }
@media (max-width: 480px) { .code { grid-template-columns: minmax(0, 1fr) auto; } .code-k { grid-column: 1 / -1; } }

.preview { display: flex; flex-direction: column; }
.preview-k { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.preview-box {
  flex: 1; display: grid; place-items: center; min-height: 200px; margin: 16px 0;
  border-radius: 10px; padding: 24px;
  background: var(--bg) radial-gradient(var(--border) 1px, transparent 1px) 0 0 / 16px 16px;
}
.preview-box img { width: 420px; transition: opacity .2s; }
.preview-box img.loading { opacity: .4; }
.preview-note { margin: 0; font-size: 13px; color: var(--muted); }

/* crew */
.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .crew { grid-template-columns: 1fr; } }
.crew figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.crew img { width: 420px; margin: 0 auto; }
.crew figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.crew figcaption span { font: 900 22px/1 var(--display); }
.crew figcaption a { font: 500 13px/1.4 var(--mono); color: var(--amber); text-decoration: none; }
.crew figcaption a:hover { text-decoration: underline; }

/* footer */
.foot { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--border); }
.foot-in { padding-top: 28px; padding-bottom: 40px; display: grid; gap: 6px; }
.foot p { margin: 0; color: var(--text-2); font-size: 14px; max-width: 680px; }
.foot .foot-small { color: var(--muted); font-size: 13px; }
