/* Art of Race — token & dasar. Warna diambil dari logo: helm kuning pelat, mata merah, wajah abu keunguan. */
:root {
  --asphalt: #0e0d13;
  --asphalt-2: #181621;
  --asphalt-3: #272336;
  --line: #322e45;
  --plate: #ffb81c;
  --plate-deep: #e58a00;
  --eye: #ff3b3f;
  --slate: #9a98bf;
  --bone: #f6f1e7;
  --muted: #bcb9d2;
  --ok: #46d39a;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--asphalt); color: var(--bone);
  font: 400 1.0625rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: .92; margin: 0; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--plate); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plate); color: #111; padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* tombol: satu pojok dipotong seperti sudut bib nomor */
.btn {
  --cut: 14px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 30px; border: 0; cursor: pointer; text-decoration: none; overflow: hidden;
  font: 800 1.3rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  background: var(--plate); color: #17120a;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: color .2s;
}
.btn::before { content: ''; position: absolute; inset: 0; background: var(--bone); transform: translateY(101%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); z-index: 0; }
.btn > * , .btn { z-index: 0; }
.btn:hover::before { transform: translateY(0); }
.btn { isolation: isolate; }
.btn::before { z-index: -1; }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--asphalt-3); color: #8a86a3; cursor: not-allowed; }
.btn[disabled]::before, .btn[aria-disabled="true"]::before { display: none; }
.btn.ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 2px var(--line); clip-path: none; transition: box-shadow .15s, color .2s; }
.btn.ghost::before { background: var(--plate); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--plate); color: #17120a; }
.btn.small { min-height: 44px; padding: 0 22px; font-size: 1.15rem; }
.btn.wa { background: #25d366; color: #05220f; }
.btn.wa::before { background: #7bf0a7; }
.btn.danger { background: var(--eye); color: #fff; }
.btn.danger::before { background: #ff8587; }

/* form */
.field { display: grid; gap: 6px; }
.field > label, .field > .lbl { font-weight: 600; font-size: .98rem; }
.field .hint { color: var(--muted); font-size: .9rem; margin-top: -2px; }
.req { color: var(--eye); margin-left: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 4px;
  background: var(--asphalt-2); color: var(--bone); border: 2px solid var(--line);
  font: 500 1.0625rem var(--font-body); transition: border-color .15s, background .15s;
}
textarea { min-height: 90px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:hover, select:hover, textarea:hover { border-color: #5a5480; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--plate); background: #231f31; box-shadow: 0 0 0 3px rgba(255, 184, 28, .25); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--eye); }
.err { color: #ff8d90; font-weight: 600; font-size: .95rem; display: none; }
.field.invalid .err { display: block; }
.err::before { content: '! '; font-weight: 800; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.check input { width: 26px; height: 26px; accent-color: var(--plate); margin: 2px 0 0; }

/* penanda kotak-kotak balap, dipakai hemat */
.checker { height: 18px; background: repeating-conic-gradient(var(--bone) 0 25%, var(--asphalt) 0 50%) 0 0 / 18px 18px; opacity: .92; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
