/* FireMikeWhite.com - hardwood court, painted key, shot clock at 00 */
:root {
  --maple: #d6a15c;
  --maple-dark: #c38b45;
  --seam: rgba(94, 54, 14, .22);
  --paint: #18605c;
  --paint-deep: #124a47;
  --line: #f6f1e7;
  --amber: #ffb300;
  --housing: #26292c;
  --ink: #2a1c0f;
  --dim: #4a3218;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: inherit; }
html, body { margin: 0; }
body {
  background-color: var(--maple);
  /* floor planks: seams every 46px, alternating board tone */
  background-image:
    repeating-linear-gradient(90deg, transparent 0 45px, var(--seam) 45px 46px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.05) 46px 92px),
    repeating-linear-gradient(0deg, transparent 0 311px, var(--seam) 311px 312px);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}
main {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 4rem) clamp(1rem, 5vw, 3rem) clamp(2rem, 5vw, 4rem);
  display: grid;
  gap: clamp(5.5rem, 15vw, 7.5rem) clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  main { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

/* Hero = the painted key, with the free-throw circle at its foot */
.hero {
  position: relative;
  background: var(--paint);
  color: var(--line);
  border: 5px solid var(--line);
  padding: clamp(1.25rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2.25rem) clamp(4rem, 9vw, 5.5rem);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: clamp(9rem, 26vw, 12rem);
  aspect-ratio: 1;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  border: 5px solid var(--line);
}
/* inside the key the circle is dashed, outside it is solid (like a real court) */
.hero::before { border-style: dashed; clip-path: inset(0 0 50% 0); }
.hero::after { clip-path: inset(50% 0 0 0); }

.clock { width: clamp(8.5rem, 22vw, 11rem); height: auto; display: block; margin-bottom: 1.25rem; }
.clock .housing { fill: var(--housing); }
.clock .face { fill: #151719; }
.clock .digits { fill: var(--amber); }
.clock .unlit { fill: #2c2a24; }
.clock .digits { animation: buzzer .32s steps(1) .5s 3; }
@keyframes buzzer { 50% { fill: #3a3424; } }
@media (prefers-reduced-motion: reduce) { .clock .digits { animation: none; } }

.domain {
  font-family: "Saira Extra Condensed", "Arial Narrow", Impact, sans-serif;
  font-weight: 800;
  font-size: clamp(4.25rem, 17vw, 8.25rem);
  line-height: .86;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0;
}
.domain span { display: block; }
.domain .tld { font-size: .42em; line-height: 1; margin-top: .3em; color: #cfe5e2; }
.lede { max-width: 32rem; margin: 1.5rem 0 0; color: #e2efed; font-size: 1.15rem; }
.lede strong { color: #fff; font-weight: 600; }
.count {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .35rem .85rem;
  border: 2px solid var(--amber);
  color: #fff;
  font-weight: 600;
}
.count[hidden] { display: none; }

/* Form */
form {
  background: #fffdf8;
  color: var(--ink);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-radius: 6px;
  box-shadow: 0 3px 0 var(--maple-dark), 0 3px 0 1px rgba(60,30,0,.25);
}
form h2 {
  font-family: "Saira Extra Condensed", "Arial Narrow", Impact, sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
label { display: block; font-weight: 600; font-size: .95rem; margin: 1rem 0 .35rem; }
.hint { font-weight: 400; color: #6b5338; }
input, textarea {
  width: 100%;
  font: inherit;
  padding: .7rem .8rem;
  border: 2px solid #b9a588;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 6rem; resize: vertical; }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); font-weight: 600; }
.money input { padding-left: 1.75rem; }
input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--paint);
  outline-offset: 2px;
  border-color: var(--ink);
}
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin-top: 1.25rem; }
.check input { width: auto; margin-top: .3rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button {
  margin-top: 1.5rem;
  width: 100%;
  font-family: "Saira Extra Condensed", "Arial Narrow", Impact, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  text-transform: uppercase;
  padding: .55rem 1rem;
  background: var(--amber);
  color: var(--ink);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
button:hover { background: #f0a400; }
button[disabled] { opacity: .6; cursor: wait; }
.status { margin: 1rem 0 0; font-weight: 600; min-height: 1.5em; }
.status.ok { color: var(--paint); }
.status.bad { color: #9b1c0c; }

footer {
  grid-column: 1 / -1;
  border-top: 5px solid var(--line);
  padding-top: 1.25rem;
  font-size: .9rem;
  color: var(--ink);
}
footer p { margin: 0 0 .6rem; max-width: 46rem; }
.noscript { background: #fff1c7; color: var(--ink); padding: .75rem 1rem; font-weight: 600; }
