/* FireEliDrinkwitz.com - coach's whiteboard */
:root {
  --wall: #d9dcd8;
  --board: #f7f8f6;
  --frame-hi: #e9ecee;
  --frame-lo: #a9b0b6;
  --blue: #1d4fa3;
  --blue-deep: #163d80;
  --red: #c42f27;
  --ink: #1b2127;
  --dim: #4b5762;
  --rule: #9aa3aa;
  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: var(--wall);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  padding: clamp(.5rem, 2.5vw, 2rem);
}

/* The board: aluminum frame, faint ghosting from old plays */
main {
  max-width: 70rem;
  margin: 0 auto;
  background:
    radial-gradient(ellipse 30% 18% at 78% 22%, rgba(29,79,163,.05), transparent 70%),
    radial-gradient(ellipse 26% 14% at 18% 80%, rgba(196,47,39,.04), transparent 70%),
    var(--board);
  border: clamp(8px, 1.6vw, 14px) solid var(--frame-lo);
  border-image: linear-gradient(160deg, var(--frame-hi), var(--frame-lo) 45%, var(--frame-hi) 70%, var(--frame-lo)) 1;
  box-shadow: 0 10px 0 -4px #8d949a;
  padding: clamp(1.25rem, 4.5vw, 3.5rem) clamp(1rem, 4.5vw, 3rem);
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  main { grid-template-columns: 1.15fr 1fr; align-items: start; }
}

/* Hero */
.play { width: 100%; max-width: 30rem; height: auto; display: block; margin: 0 0 .5rem -.25rem; }
.play .marker-blue { stroke: var(--blue); }
.play .marker-red { stroke: var(--red); }
.play .los { stroke: var(--dim); }
.play .exit { font-family: "Permanent Marker", "Comic Sans MS", cursive; font-size: 26px; fill: var(--red); }
.play .route path {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: draw 1.1s ease-out .4s forwards;
}
.play .route path + path { animation-delay: 1.3s; stroke-dasharray: 40; stroke-dashoffset: 40; animation-duration: .35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .play .route path, .play .route path + path { animation: none; stroke-dashoffset: 0; }
}

.domain {
  font-family: "Permanent Marker", "Comic Sans MS", cursive;
  font-weight: 400;
  font-size: clamp(3.25rem, 11.5vw, 6.75rem);
  line-height: .95;
  color: var(--blue);
  margin: 0;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.domain span { display: block; }
.domain .tld { font-size: .5em; margin-top: .15em; }
.lede { max-width: 32rem; margin: 1.75rem 0 0; color: var(--dim); font-size: 1.15rem; }
.lede strong { color: var(--ink); }
.count {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .35rem 1rem;
  border: 3px solid var(--red);
  border-radius: 48% 52% 50% 46% / 60% 50% 52% 44%;
  color: var(--red);
  font-weight: 700;
}
.count[hidden] { display: none; }

/* Form: a sheet stuck to the board with a magnet */
form {
  position: relative;
  background: #fff;
  color: var(--ink);
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid #d2d7db;
  box-shadow: 3px 4px 0 rgba(27,33,39,.12);
}
form::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8655e, var(--red) 55%, #8f1f1a);
  box-shadow: 0 2px 2px rgba(0,0,0,.25);
}
form h2 {
  font-family: "Permanent Marker", "Comic Sans MS", cursive;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 1rem;
}
label { display: block; font-weight: 700; font-size: .95rem; margin: 1rem 0 .35rem; }
.hint { font-weight: 400; color: var(--dim); }
input, textarea {
  width: 100%;
  font: inherit;
  padding: .7rem .8rem;
  border: 2px solid var(--rule);
  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: 700; }
.money input { padding-left: 1.75rem; }
input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--red);
  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: "Permanent Marker", "Comic Sans MS", cursive;
  font-size: 1.4rem;
  padding: .7rem 1rem;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
button:hover { background: var(--blue-deep); }
button[disabled] { opacity: .6; cursor: wait; }
.status { margin: 1rem 0 0; font-weight: 700; min-height: 1.5em; }
.status.ok { color: #1f6b33; }
.status.bad { color: #a3241d; }

footer {
  grid-column: 1 / -1;
  border-top: 2px dashed var(--rule);
  padding-top: 1.25rem;
  font-size: .875rem;
  color: var(--dim);
}
footer p { margin: 0 0 .6rem; max-width: 46rem; }
.noscript { background: #fff4c2; color: var(--ink); padding: .75rem 1rem; font-weight: 700; }
