/* Aussie Boys Racing — socials page (always one screen, no scrolling) */
:root {
  --ink: #050b1f;
  --ink-2: #0a1430;
  --ink-3: #14224a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f1ea;
  --muted: #a9b3c9;
  --blue: #1f5fd6;
  --red: #ff2a45;
  --display: "Anton", Impact, sans-serif;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { height: 100%; overflow: hidden; }
body {
  height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none;
  display: flex; flex-direction: column; position: relative;
  font-family: "Barlow", system-ui, sans-serif; color: var(--text); background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Background photo (or a red/blue glow if there's no photo) */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(900px circle at 75% 20%, rgba(31, 95, 214, 0.35), transparent 60%),
    radial-gradient(650px circle at 10% 95%, rgba(255, 42, 69, 0.18), transparent 60%),
    var(--ink);
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.bg[style]::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 31, 0.35) 0%, rgba(5, 11, 31, 0.72) 45%, rgba(5, 11, 31, 0.88) 100%);
}

.wrap {
  position: relative; z-index: 2; flex: 1; min-height: 0;
  width: min(540px, 100% - 32px); margin: 0 auto;
  padding: clamp(14px, 4vh, 48px) 0 clamp(8px, 2vh, 24px);
  display: grid; align-content: center; gap: clamp(0.6rem, 2.2vh, 1.6rem);
}

.head { text-align: center; display: grid; justify-items: center; }
.logo {
  width: clamp(72px, 15vh, 140px); height: clamp(72px, 15vh, 140px); border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 6px var(--ink), 0 0 0 9px var(--red), 0 20px 60px -10px rgba(0, 0, 0, 0.8);
  margin-bottom: clamp(0.4rem, 1.4vh, 1rem);
}
h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.01em;
  font-size: clamp(1.9rem, min(10vw, 5.6vh), 3.4rem);
}
h1 span { color: var(--red); }
.tagline {
  font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(0.85rem, 1.9vh, 1.05rem); color: #e6e4dc; margin-top: clamp(0.2rem, 0.8vh, 0.6rem);
}
.tagline strong { color: var(--red); }
.quote {
  margin-top: clamp(0.4rem, 1.4vh, 1rem); max-width: 420px; padding: clamp(0.4rem, 1.1vh, 0.8rem) 1rem;
  font-style: italic; font-size: clamp(0.82rem, 1.9vh, 1.02rem); line-height: 1.45; color: #e6e4dc;
  background: rgba(5, 11, 31, 0.55); border-left: 4px solid var(--red); border-radius: 8px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

.links { display: grid; gap: clamp(0.45rem, 1.4vh, 0.85rem); }
.link-btn {
  display: grid; grid-template-columns: clamp(36px, 5.4vh, 46px) 1fr auto; align-items: center; gap: 1rem;
  padding: clamp(0.4rem, 1.2vh, 0.85rem) 1.2rem clamp(0.4rem, 1.2vh, 0.85rem) 0.9rem;
  border-radius: 14px; text-decoration: none; color: var(--text);
  background: rgba(10, 20, 48, 0.88); border: 1px solid var(--line); border-left: 5px solid var(--red);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}
.link-btn:hover { transform: translateY(-3px) scale(1.01); background: var(--red); color: #fff; box-shadow: 0 18px 40px -18px rgba(255, 42, 69, 0.7); }
.link-icon {
  display: grid; place-items: center; width: clamp(36px, 5.4vh, 46px); height: clamp(36px, 5.4vh, 46px);
  border-radius: 50%; background: var(--ink-3); color: var(--red); transition: 0.2s;
}
.link-btn:hover .link-icon { background: var(--ink); }
.link-icon svg { width: 22px; height: 22px; fill: currentColor; }
.link-text { display: grid; line-height: 1.1; }
.link-label { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(1.1rem, 2.6vh, 1.35rem); }
.link-sub { font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--red); margin-top: 0.2rem; }
.link-btn:hover .link-sub { color: #fff; }
.link-arrow { font-size: 1.4rem; color: var(--red); transition: transform 0.2s; }
.link-btn:hover .link-arrow { transform: translateX(5px); color: #fff; }

/* Chequered flag strip along the bottom */
.checker {
  position: relative; z-index: 2; flex: none; height: clamp(14px, 2.4vh, 24px);
  background: conic-gradient(#f3f1ea 25%, var(--ink) 0 50%, #f3f1ea 0 75%, var(--ink) 0) 0 0 / clamp(14px, 2.4vh, 24px) clamp(14px, 2.4vh, 24px);
}

@media (max-height: 720px) {
  .tagline { display: none; }
  .logo { width: clamp(64px, 12vh, 110px); height: clamp(64px, 12vh, 110px); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
