/* Jonkerbijl Racing Team — jonkerbijl.racing
   Colours and logo shapes taken from the JB 2026 team artwork.
   Ethnocentric / Eurostile Extended (the brand fonts) live only in the
   outlined logo SVGs; Orbitron + Saira are the closest free web faces. */

:root {
  --bg: #000;
  --text: #f4f5f7;
  --muted: #9aa0a8;
  --dim: #6b7079;
  --line: #26282e;
  --panel: #0e0f13;

  --amber: #ED9E40;
  --red: #DB4B2E;
  --blue: #4572AB;
  --yt: #FF0033;
  --fb: #1877F2;

  --stripe: linear-gradient(90deg,
      var(--amber) 0 33.333%,
      var(--red) 0 66.666%,
      var(--blue) 0 100%);

  --font-display: "Orbitron", "Saira", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --skew: -11deg;
  --unskew: 11deg;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- backdrop ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 620px at 50% -12%, #1b1e24, transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 10px),
    #000;
}

body::after {
  content: "";
  position: fixed;
  right: -7vw;
  bottom: -9vh;
  z-index: -1;
  width: min(55vw, 620px);
  aspect-ratio: 179.5 / 76.5;
  background: url("bars.svg") right bottom / contain no-repeat;
  opacity: .07;
  pointer-events: none;
}

/* ---------- top rule ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--stripe);
  z-index: 10;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 6vh, 4rem);
  padding: clamp(1.75rem, 5vw, 3.25rem) clamp(1.25rem, 5vw, 3rem);
  text-align: center;
}

.brand { margin: 0; width: 100%; }
.brand img {
  width: min(100%, 520px);
  height: auto;
  display: block;
  margin-inline: auto;
}

.hero {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.85rem;
}

.badge {
  width: min(72%, 220px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(69, 114, 171, .35));
}

.tagline {
  margin: 0;
  max-width: min(44ch, 100%);
  color: var(--muted);
  font-size: clamp(1rem, .92rem + .4vw, 1.2rem);
  line-height: 1.65;
  text-wrap: balance;
}

/* ---------- social buttons ---------- */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14rem;
  max-width: 100%;
  padding: 1.05em 1.75em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  transform: skewX(var(--skew));
  transition: transform .18s ease, background-color .18s ease,
              color .18s ease, border-color .18s ease;
}

.btn > .lbl {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  transform: skewX(var(--unskew));
}

.btn svg {
  width: 1.4em;
  height: 1.4em;
  fill: currentColor;
  flex: none;
}

.btn.yt { border-left: 3px solid var(--red); }
.btn.fb { border-left: 3px solid var(--blue); }

.btn:hover { transform: skewX(var(--skew)) translateY(-2px); }
.btn.yt:hover { background: var(--yt); border-color: var(--yt); color: #fff; }
.btn.fb:hover { background: var(--fb); border-color: var(--fb); color: #fff; }

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

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

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  color: var(--dim);
  font-size: .82rem;
}

.foot p {
  margin: 0;
  letter-spacing: .04em;
  text-wrap: balance;
}

.stripe-mini {
  width: 120px;
  height: 4px;
  background: var(--stripe);
}

/* ---------- larger screens ---------- */

@media (min-width: 720px) {
  .badge { width: 240px; }
  .hero { gap: 2.25rem; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .badge { animation: badge-glow 4.5s ease-in-out infinite; }
  @keyframes badge-glow {
    50% { filter: drop-shadow(0 0 44px rgba(219, 75, 46, .32)); }
  }
}
