/* XODraw site: a coach's whiteboard on the field.
   Marker black, blue and red on a white board; one athletic display face, one very readable text face. */
@font-face { font-family: "Big Shoulders"; src: url("/fonts/big-shoulders.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --turf: #ffffff;
  --mint: #f3f9f0;
  --line: #d9e6d3;
  --band: #e4efde;
  --on-turf: #1b1e23;
  --on-turf-muted: #4a5058;
  --board: #fbfcfa;
  --frame: #272b32;
  --frame-dark: #181b20;
  --ink: #1b1e23;
  --muted: #4a5058;
  --blue: #1e56c8;
  --red: #c8202f;
  --red-dark: #a31523;
  --field: #c9cfd4;
  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --text: "Atkinson", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 18px/1.55 var(--text);
  background: var(--turf); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header on the wall */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 18px; }
.wordmark { font: 900 30px/1 var(--display); letter-spacing: 0.01em; text-decoration: none; color: var(--on-turf); }
.top nav a { font-size: 16px; font-weight: 700; color: var(--on-turf-muted); }
.top nav a:hover { color: var(--on-turf); }

/* Top of the page: white fading into the pastel grass green */
.top-area { background: #ffffff; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "title title" "lead play" "form play";
  grid-template-rows: auto auto 1fr;
  column-gap: 64px;
  padding: 26px 0 64px;
}
.hero h1 { grid-area: title; }
.hero .lead { grid-area: lead; }
.hero .play-area { grid-area: play; align-self: start; margin-top: -8px; }
.hero .form-area { grid-area: form; }

h1 {
  font: 900 clamp(54px, 7.6vw, 100px)/0.86 var(--display);
  text-transform: uppercase; letter-spacing: -0.005em;
  margin: 0 0 18px;
}
h1, h2 { text-wrap: balance; }
h2 { font: 800 clamp(38px, 5.4vw, 58px)/0.92 var(--display); text-transform: uppercase; margin: 0 0 14px; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
.lead { text-wrap: pretty; font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 22px; max-width: 30em; }

/* The self-drawing play */
.board-play { display: block; width: 100%; height: auto; max-height: 470px; overflow: visible; }
.board-play .ink { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--t, 0.35s) var(--d, 0s) ease-out forwards; }
.board-play .yard { stroke: var(--line); stroke-width: 2; }
.board-play .yard-num { font-family: var(--display); font-size: 15px; font-weight: 700; fill: #9db59a; }
.board-play .los { stroke: var(--ink); stroke-width: 2.5; opacity: 0.55; }
.board-play .man { stroke: var(--ink); stroke-width: 3.5; fill: none; }
.board-play .route { stroke: var(--blue); stroke-width: 4.5; }
.board-play .throw { stroke: var(--red); stroke-width: 3.5; }
.board-play .ball { fill: var(--red); opacity: 0; animation: show 0.2s var(--d) forwards; }
.board-play .label { opacity: 0; animation: show 0.25s var(--d) forwards; font-family: var(--display); text-anchor: middle; }
.board-play .who { font-size: 21px; font-weight: 900; fill: var(--ink); }
.board-play .name { font-size: 19px; font-weight: 800; fill: var(--blue); text-transform: uppercase; letter-spacing: 0.02em; }
html.js .board-play:not(.drawing) { visibility: hidden; }
html.js .board-play:not(.drawing) * { animation-play-state: paused; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .board-play .ink { animation: none; stroke-dashoffset: 0; }
  .board-play .label, .board-play .ball { animation: none; opacity: 1; }
}

/* The sign-up card: a laminated play card on the board */
.card {
  background: var(--mint); border: 2px solid var(--ink); border-radius: 12px;
  padding: 22px; max-width: 470px;
}
.card label.field { display: block; font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.card .opt { font-weight: 400; color: var(--muted); }
.card input[type="email"], .card select {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: #fff;
  border: 2px solid #c8d8c2; border-radius: 8px; padding: 11px 13px; margin: 0 0 16px; appearance: none;
}
.card select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.card input:focus, .card select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #1e56c833; }
.go {
  display: flex; align-items: center; justify-content: center; width: 100%;
  font: 800 24px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em;
  color: #fff; background: var(--red); border: 0; border-radius: 6px; padding: 16px 20px 15px;
  cursor: pointer; text-decoration: none; box-shadow: 0 3px 0 var(--red-dark);
}
.go:hover { background: var(--red-dark); }
.go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-dark); }
.go:disabled { opacity: 0.65; cursor: wait; }
.go.inline { display: inline-flex; width: auto; padding-left: 28px; padding-right: 28px; }
.error { color: var(--red); font-size: 15px; font-weight: 700; margin: 12px 0 0; }
.error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 14px; line-height: 1.45; color: var(--muted); margin: 12px 0 0; }
.done { outline: none; }
.done h3 { font: 900 34px/0.95 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.done p { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.done .help { font-size: 14px; margin: 14px 0 0; }

/* Sections on the wall */
.section { padding: 84px 0 0; }
.section { color: var(--on-turf); }
.section-lead { color: var(--on-turf-muted); max-width: 36em; margin: 0 0 30px; }
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.wall img { width: 100%; aspect-ratio: 1080 / 1160; object-fit: cover; object-position: top; background: #fff; border-radius: 3px; box-shadow: 0 10px 22px -12px #00000080; }
.wall .more {
  display: flex; flex-direction: column; justify-content: center; padding: 20px;
  aspect-ratio: 1080 / 1160; border: 2.5px dashed var(--on-turf-muted); color: var(--on-turf); text-decoration: none;
}
.wall .more b { font: 900 clamp(44px, 6vw, 72px)/0.85 var(--display); }
.wall .more span { font-size: 16px; margin-top: 8px; color: var(--on-turf-muted); }
.wall .more:hover { background: #ffffff80; }
.inside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 40px; margin: 34px 0 0; padding: 0; list-style: none; }
.inside li { font-size: 16.5px; color: var(--on-turf-muted); padding-top: 12px; border-top: 2.5px solid var(--on-turf); }
.inside b { color: var(--on-turf); }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 56px; margin-top: 8px; }
.faq p { margin: 0; color: var(--on-turf-muted); font-size: 17px; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px 44px; margin-top: 84px; background: var(--band); border-radius: 14px; }
.closing h2 { margin: 0; }
footer.site { padding: 64px 0 40px; font-size: 15px; color: var(--on-turf-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Real pages from the PDF */
.pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; }
.pages figure { margin: 0; }
.pages img { width: 100%; background: #fff; border-radius: 4px; box-shadow: 0 2px 4px #0000000f, 0 22px 40px -26px #1f3d2a88; }
.pages figcaption { margin-top: 14px; font-size: 16px; color: var(--muted); }
.pages figcaption b { color: var(--ink); display: block; }

/* Plain pages (privacy, 404) */
.prose { max-width: 680px; padding: 20px 0 44px; }
.prose h1 { font-size: clamp(48px, 8vw, 72px); }
.prose h2 { font-size: 30px; margin-top: 34px; }
.prose p, .prose li { color: #33383f; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "title" "lead" "form" "play"; grid-template-rows: none; padding: 18px 0 40px; }
  .pages { grid-template-columns: 1fr 1fr; }
  .pages figure:first-child { display: none; }
  .hero .play-area { margin: 30px auto 0; width: 100%; max-width: 440px; }
  .board-play { max-height: 380px; }
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inside { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .top { padding: 14px 4px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 10px 0 32px; }
  .pages { gap: 12px; }
  .pages figcaption { font-size: 14px; }
  h1 { margin-bottom: 16px; }
  .lead { font-size: 17.5px; margin-bottom: 20px; }
  .card { padding: 16px; }
  .section { padding-top: 64px; }
  .wall { grid-template-columns: 1fr 1fr; gap: 10px; }
  .inside { grid-template-columns: 1fr; }
  .closing { padding: 24px 18px; margin-top: 64px; }
}
