/*
 * HaulX LLC, the parent company. Deliberately quiet: neutral paper, ink, one
 * typeface, no accent color. The brands carry the color; this page frames them.
 *
 * Each brand plate below borrows that brand's own tokens and typeface so the
 * plate reads as a window into the brand rather than HaulX's take on it.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --hx-bg: #f5f4f0;
  --hx-surface: #ffffff;
  --hx-ink: #111214;
  --hx-muted: #5b5d63;
  --hx-rule: #dcdad3;
  --hx-wrap: 1120px;
  --hx-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--hx-bg);
  color: var(--hx-ink);
  font-family: var(--hx-font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--hx-wrap);
  margin: 0 auto;
  padding: 0 20px;
}

:focus-visible {
  outline: 2px solid var(--hx-ink);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- header */

.hx-top {
  border-bottom: 1px solid var(--hx-rule);
  background: var(--hx-bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.hx-top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.hx-mark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.hx-mark small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--hx-muted);
}

.hx-nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
}

.hx-nav a {
  text-decoration: none;
  color: var(--hx-muted);
  padding: 10px 0;
}

.hx-nav a:hover { color: var(--hx-ink); }

/* ------------------------------------------------------------------ hero */

.hx-hero { padding: 88px 0 72px; }

.hx-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hx-muted);
}

.hx-hero h1 {
  margin-top: 18px;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 16ch;
}

.hx-hero p.lede {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 19px;
  color: var(--hx-muted);
}

/* ---------------------------------------------------------------- brands */

.hx-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hx-rule);
}

.hx-section-head h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hx-section-head span {
  font-size: 14px;
  color: var(--hx-muted);
}

.plates {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.plate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 48px;
  min-height: 340px;
  overflow: hidden;
  position: relative;
}

.plate-kind {
  display: block;
  margin-bottom: 22px;
}

/* TCG Bolt: ink, hairlines, amber for the action only. */

.plate-tcg {
  background: #12161c;
  color: #eff1ec;
  border-radius: 3px;
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 15px;
}

.plate-tcg .plate-kind,
.plate-tcg .micro {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #8b939c;
}

.plate-tcg .wordmark { width: min(300px, 100%); height: auto; }

.plate-tcg h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.plate-tcg p { margin-top: 14px; color: #8b939c; max-width: 46ch; }

.plate-tcg .plate-actions { margin-top: 26px; }

.plate-tcg .go {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 3px;
  background: #e0a03a;
  color: #12161c;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: background 0.12s;
}

.plate-tcg .go:hover { background: #ce8f2c; }
.plate-tcg :focus-visible { outline: 2px solid #e0a03a; outline-offset: 2px; }

.plate-tcg .ext {
  margin-left: 18px;
  font-size: 13px;
  color: #eff1ec;
  text-underline-offset: 3px;
}

/* DotSurvive: dark arcade, the game's own colors and Fredoka. */

.plate-ds {
  background:
    radial-gradient(60% 90% at 12% 0%, rgba(47, 128, 255, 0.28), transparent 70%),
    radial-gradient(50% 80% at 100% 100%, rgba(138, 60, 255, 0.22), transparent 70%),
    #07060f;
  color: #ffffff;
  border-radius: 22px;
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}

.plate-ds .plate-kind {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2f80ff;
}

.plate-ds .ds-id {
  display: flex;
  align-items: center;
  gap: 18px;
}

.plate-ds .ds-id img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 40px rgba(47, 128, 255, 0.55);
}

.plate-ds .ds-name {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 0.95;
  text-shadow:
    0 0 24px rgba(47, 128, 255, 0.75),
    0 4px 0 rgba(0, 0, 0, 0.35);
}

.plate-ds h3 {
  font-family: inherit;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.1;
}

.plate-ds h3 span {
  color: #ffd60a;
  text-shadow: 0 0 18px rgba(255, 214, 10, 0.55);
}

.plate-ds p { margin-top: 10px; color: rgba(255, 255, 255, 0.78); max-width: 44ch; }

.plate-ds .plate-actions { margin-top: 26px; }

.plate-ds .go {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  background: #ffd60a;
  border-radius: 999px;
  padding: 13px 26px;
  text-decoration: none;
  box-shadow:
    0 5px 0 #b39400,
    0 12px 32px rgba(255, 214, 10, 0.3);
  transition: transform 0.12s;
}

.plate-ds .go:hover { transform: translateY(-2px); }
.plate-ds :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Jovvy: warm paper, a soft serif, terracotta. */

.plate-jv {
  background: #fbf8f3;
  color: #1f1b16;
  border: 1px solid #e8e2d8;
  border-radius: 22px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.plate-jv .plate-kind {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #645d54;
}

.plate-jv .jv-name,
.plate-jv h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-variation-settings: "SOFT" 60, "opsz" 96;
  letter-spacing: -0.4px;
}

.plate-jv .jv-name {
  font-size: clamp(56px, 8vw, 88px);
  line-height: 1;
  color: #a8502f;
}

.plate-jv h3 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; }

.plate-jv p { margin-top: 12px; color: #645d54; max-width: 44ch; }

.plate-jv .plate-actions { margin-top: 26px; }

.plate-jv .go {
  display: inline-block;
  padding: 15px 24px;
  border-radius: 14px;
  background: #a8502f;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.plate-jv .go:hover { background: #5e2b18; }
.plate-jv :focus-visible { outline: 2px solid #a8502f; outline-offset: 3px; }

/* ----------------------------------------------------------------- about */

.hx-about { padding: 96px 0 0; }

.hx-about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  margin-top: 32px;
}

.hx-about h3 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  max-width: 18ch;
}

.hx-about p { margin-top: 16px; color: var(--hx-muted); max-width: 58ch; }

.hx-facts {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hx-rule);
}

.hx-facts div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hx-rule);
  font-size: 15px;
}

.hx-facts dt { color: var(--hx-muted); }
.hx-facts dd { margin: 0; font-weight: 600; text-align: right; }

/* --------------------------------------------------------------- contact */

.hx-contact { padding: 96px 0; }

.hx-contact-card {
  margin-top: 24px;
  background: var(--hx-surface);
  border: 1px solid var(--hx-rule);
  padding: 40px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hx-contact-card h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hx-contact-card p { margin-top: 6px; color: var(--hx-muted); max-width: 52ch; }

.hx-btn {
  display: inline-block;
  padding: 15px 26px;
  background: var(--hx-ink);
  color: var(--hx-bg);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.hx-btn:hover { background: #2a2c30; }

/* ---------------------------------------------------------------- footer */

.hx-foot {
  border-top: 1px solid var(--hx-rule);
  padding: 28px 0 44px;
  font-size: 14px;
  color: var(--hx-muted);
}

.hx-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
}

.hx-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hx-foot a { text-decoration: none; }
.hx-foot a:hover { color: var(--hx-ink); text-decoration: underline; }

/* ---------------------------------------------------------------- narrow */

@media (max-width: 820px) {
  .plate {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 24px;
    min-height: 0;
  }
  .hx-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .hx-hero { padding: 56px 0 48px; }
  .hx-about { padding-top: 64px; }
  .hx-contact { padding: 64px 0; }
  .hx-contact-card { padding: 28px 24px; }
  .hx-section-head span { display: none; }
}

@media (max-width: 480px) {
  .hx-nav { gap: 18px; font-size: 14px; }
  .plate-tcg .ext { display: block; margin: 16px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate-ds .go, .plate-tcg .go { transition: none; }
}
