/* The Clifford Ray Foundation — "The Game Plan" */

:root {
  --cream: #f4efe3;
  --cream-2: #efe6d2;
  --cream-3: #e4dbc5;
  --paper: #fdfaf2;
  --ink: #1f241f;
  --ink-2: #3c4038;
  --ink-3: #4a4d43;
  --muted: #7c7461;
  --line: #c9c2ac;
  --board: #263832;
  --board-2: #2a3d36;
  --board-line: #94a096;
  --orange: #cf5c2c;
  --orange-2: #b84e22;
  --gold: #d9a13b;
  --slab: 'Alfa Slab One', 'Archivo Black', Georgia, serif;
  --sans: 'Archivo', 'Work Sans', Helvetica, Arial, sans-serif;
  --chalk: 'Caveat', 'Comic Sans MS', cursive;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-2); }
h1, h2, h3 { font-family: var(--slab); font-weight: 400; line-height: 1.02; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(44px, 7.5vw, 92px); }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 46ch; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 2px solid var(--ink); }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.chalk { font-family: var(--chalk); font-size: clamp(20px, 2vw, 26px); color: var(--gold); line-height: 1.1; }
.chalk.dark { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: #f8f3e6; text-decoration: none;
  font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 4px; border: 2px solid var(--orange);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--orange-2); border-color: var(--orange-2); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(0,0,0,.06); }
.on-board .btn.ghost { color: var(--cream-2); }
.on-board .btn.ghost:hover { background: rgba(255,255,255,.08); }
.link { font-weight: 700; text-decoration: none; color: var(--orange-2); border-bottom: 2px solid var(--gold); }
.link:hover { border-color: var(--orange-2); }

/* Header */
.site-head { border-bottom: 2px solid var(--ink); background: var(--cream); position: relative; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; }
.brand .name { font-family: var(--slab); font-size: 15px; letter-spacing: .01em; line-height: 1.05; }
.brand .sub { font-size: 10.5px; letter-spacing: .2em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a[aria-current] { border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.nav .btn { padding: 11px 22px; color: #f8f3e6; }
.nav-toggle { display: none; }
.nav-toggle-btn { display: none; }

@media (max-width: 860px) {
  .nav-toggle-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 4px; background: none; cursor: pointer;
    font: inherit; color: var(--ink);
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 2px solid var(--ink);
  }
  .nav a { padding: 16px var(--gutter); border-top: 1px solid var(--line); }
  .nav a[aria-current] { border-bottom: none; background: var(--cream-2); }
  .nav .btn { margin: 14px var(--gutter) 18px; justify-content: center; border-radius: 4px; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .brand .name { font-size: 13px; }
  .brand .sub { display: none; }
  .brand img { width: 40px; height: 40px; }
}

/* Chalkboard */
.board {
  background: var(--board);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 2px, transparent 2px 14px);
  color: var(--cream-2);
}
.board h1, .board h2 { color: var(--cream-2); }
.board .lead { color: #d7d2c0; }
.board-frame { border: 2px dashed rgba(148,160,150,.45); margin: 22px; }

/* Hero */
.hero .board-frame { padding: clamp(40px, 6vw, 80px) clamp(22px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border: 3px solid var(--cream-2); box-shadow: 10px 10px 0 rgba(0,0,0,.25); }
.hero-photo .cap { position: absolute; left: -10px; bottom: -22px; background: var(--gold); color: var(--ink); font-family: var(--chalk); font-size: 24px; padding: 4px 14px; transform: rotate(-2deg); }
.xo { display: flex; align-items: center; gap: 8px; font-family: var(--chalk); font-size: 26px; color: var(--cream-2); margin-top: 34px; }
.xo .x { color: var(--gold); }
.xo .dash { width: 44px; border-top: 2px dashed var(--board-line); }
.xo .o { width: 26px; height: 26px; border: 2px solid var(--cream-2); border-radius: 50%; }
.xo-note { font-family: var(--chalk); color: var(--board-line); font-size: 20px; margin-top: 4px; }
@media (max-width: 860px) {
  .hero .board-frame { grid-template-columns: 1fr; margin: 14px; }
  .hero-photo { order: -1; max-width: 420px; }
  .hero-photo img { aspect-ratio: 4 / 3; }
}

/* Page hero (interior) */
.page-hero .board-frame { padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 64px); }
.page-hero h1 { max-width: 14ch; }
.page-hero .split h1 { font-size: clamp(38px, 5.4vw, 68px); }

/* Play strip */
.plays { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 2px solid var(--ink); }
.plays a { display: flex; flex-direction: column; gap: 4px; padding: 18px var(--gutter); text-decoration: none; color: var(--ink); border-right: 2px solid var(--ink); }
.plays a:last-child { border-right: none; }
.plays a:hover { background: var(--cream-2); }
.plays .n { font-size: 11px; letter-spacing: .2em; color: var(--muted); font-weight: 700; }
.plays .t { font-family: var(--slab); font-size: 15px; }
@media (max-width: 860px) { .plays { grid-template-columns: repeat(2, 1fr); } .plays a { border-bottom: 2px solid var(--ink); } .plays a:nth-child(2n) { border-right: none; } .plays a:last-child { grid-column: span 2; } }

/* Photo tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.tile .cap { font-family: var(--chalk); font-size: 22px; color: var(--muted); margin-top: 16px; }
.tiles.two { grid-template-columns: 1fr 1fr; }
.tiles.square img { aspect-ratio: 1 / 1; }
@media (max-width: 760px) { .tiles, .tiles.two { grid-template-columns: 1fr; } }

/* Stat block */
.stat { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-top: 44px; padding: 26px 30px; border: 2px solid var(--ink); background: var(--paper); }
.stat .big { font-family: var(--slab); font-size: clamp(44px, 6vw, 72px); color: var(--orange); line-height: 1; }
.stat .txt { font-size: 18px; }
.stat .src { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.stats .stat { grid-template-columns: 1fr; margin-top: 0; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .stat { grid-template-columns: 1fr; } }

/* Split (text + photo) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.split .portrait { aspect-ratio: 3 / 4; }
.split .tall { aspect-ratio: 5 / 6; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

/* Player card */
.card { border: 2px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.card .head { display: flex; justify-content: space-between; padding: 12px 18px; background: var(--ink); color: var(--cream-2); font-size: 12px; letter-spacing: .18em; font-weight: 700; }
.card dl { margin: 0; padding: 8px 18px 14px; }
.card dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.card dl div:last-child { border-bottom: none; }
.card dt { font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--muted); padding-top: 3px; }
.card dd { margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; counter-reset: step; }
.step { border: 2px solid var(--ink); background: var(--paper); padding: 26px 24px 24px; box-shadow: 6px 6px 0 var(--ink); }
.step .num { font-family: var(--slab); font-size: 40px; color: var(--orange); line-height: 1; margin-bottom: 12px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); }
.steps.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps, .steps.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .steps.four { grid-template-columns: 1fr; } }

/* Whiteboard x's on the board */
.board .step { background: var(--board-2); border-color: var(--board-line); box-shadow: none; }
.board .step .num { color: var(--gold); font-family: var(--chalk); font-size: 48px; }
.board .step h3 { color: var(--cream-2); }
.board .step p { color: #d7d2c0; }

/* Lineup card */
.lineup { border: 2px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); margin-top: 36px; position: relative; }
.lineup .head { display: flex; justify-content: space-between; padding: 12px 22px; background: var(--ink); color: var(--cream-2); font-size: 12px; letter-spacing: .18em; font-weight: 700; }
.lineup a { display: grid; grid-template-columns: 44px 210px 1fr 30px; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.lineup a:last-child { border-bottom: none; }
.lineup a:hover { background: var(--cream-2); }
.lineup .n { font-family: var(--slab); font-size: 22px; color: var(--orange); }
.lineup .t { font-family: var(--slab); font-size: 16px; letter-spacing: .02em; }
.lineup .d { color: var(--ink-2); }
.lineup .arr { color: var(--orange); font-weight: 700; text-align: right; }
.lineup .note { position: absolute; right: 22px; top: -30px; font-family: var(--chalk); color: var(--muted); font-size: 22px; transform: rotate(-2deg); }
@media (max-width: 760px) { .lineup a { grid-template-columns: 36px 1fr 24px; } .lineup .d { grid-column: 2; } .lineup .arr { grid-row: 1; grid-column: 3; } }

/* Book aside */
.book { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding: 30px; border: 2px dashed var(--line); background: var(--paper); }
.book img { border: 2px solid var(--ink); }
.book h3 { font-size: clamp(22px, 2.6vw, 30px); }
@media (max-width: 760px) { .book { grid-template-columns: 1fr; } }

/* Quote */
.quote { text-align: center; max-width: 900px; margin: 0 auto; }
.quote blockquote { margin: 0; font-family: var(--slab); font-size: clamp(24px, 3.4vw, 40px); line-height: 1.15; color: var(--cream-2); }
.quote cite { display: block; margin-top: 20px; font-style: normal; font-family: var(--chalk); font-size: 24px; color: var(--gold); }

/* Testimonial */
.testi { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: center; }
.testi img { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.testi blockquote { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-family: var(--slab); line-height: 1.2; }
.testi cite { display: block; margin-top: 14px; font-style: normal; color: var(--muted); }
@media (max-width: 760px) { .testi { grid-template-columns: 1fr; } .testi img { max-width: 220px; } }

/* Receipt / box score */
.receipt { border: 2px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); font-variant-numeric: tabular-nums; }
.receipt .head { padding: 12px 22px; background: var(--ink); color: var(--cream-2); font-size: 12px; letter-spacing: .18em; font-weight: 700; display: flex; justify-content: space-between; }
.receipt .row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 22px; border-bottom: 1px dashed var(--line); }
.receipt .row:last-child { border-bottom: none; }
.receipt .v { font-family: var(--slab); color: var(--orange); }
.receipt .foot { padding: 12px 22px; font-family: var(--chalk); font-size: 20px; color: var(--muted); background: var(--cream-2); }
.banners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.banner { background: var(--board); color: var(--cream-2); padding: 26px 18px 30px; text-align: center; clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%); }
.banner .big { font-family: var(--slab); font-size: 36px; color: var(--gold); line-height: 1; }
.banner .t { font-size: 12px; letter-spacing: .16em; font-weight: 700; margin-top: 10px; }
.banner .w { font-size: 11px; color: var(--board-line); margin-top: 6px; letter-spacing: .1em; }
.banner.next { background: var(--cream-3); color: var(--ink); border: 2px dashed var(--line); }
.banner.next .big { color: var(--orange); }
@media (max-width: 760px) { .banners { grid-template-columns: 1fr 1fr; } }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checks li::before { content: 'o'; font-family: var(--chalk); font-size: 26px; color: var(--orange); line-height: 1; }

/* Address / contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.contact .box { border: 2px solid var(--ink); background: var(--paper); padding: 24px; }
.contact .box h3 { font-size: 18px; margin-bottom: 10px; }
.contact address { font-style: normal; line-height: 1.5; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* Closing CTA + footer */
.closer .board-frame { padding: clamp(40px, 6vw, 64px) clamp(22px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.closer .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.follow { border: 2px dashed rgba(148,160,150,.55); padding: 22px 24px; }
.follow .t { font-size: 12px; letter-spacing: .18em; font-weight: 700; color: var(--gold); }
.follow p { color: #d7d2c0; margin: 8px 0 14px; }
.follow a.handle { color: var(--cream-2); font-family: var(--slab); font-size: 20px; text-decoration: none; border-bottom: 2px solid var(--gold); }
@media (max-width: 860px) { .closer .board-frame { grid-template-columns: 1fr; margin: 14px; } }
.site-foot { border-top: 2px solid var(--ink); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }
.site-foot a { color: var(--muted); }

/* Contact flow */
.flow { border: 2px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); padding: 26px clamp(18px, 3vw, 34px) 30px; margin-top: 30px; }
.flow fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.flow-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 22px; font-size: 12px; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.flow-steps li { padding: 6px 12px; border: 2px solid var(--line); border-radius: 4px; }
.flow-steps li.on { border-color: var(--orange); color: var(--orange); }
.flow-steps li.done { border-color: var(--ink); color: var(--ink); }
.flow-q { font-family: var(--slab); font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 18px; padding: 0; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pos { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 14px 16px; border: 2px solid var(--line); border-radius: 4px; cursor: pointer; background: var(--cream); }
.pos:hover { border-color: var(--ink); }
.pos input { position: absolute; opacity: 0; width: 0; height: 0; }
.pos .n { grid-row: span 2; font-family: var(--slab); font-size: 22px; color: var(--orange); }
.pos .t { font-family: var(--slab); font-size: 15px; }
.pos .d { font-size: 13px; color: var(--muted); }
.pos:has(input:checked) { border-color: var(--orange); background: var(--paper); box-shadow: 4px 4px 0 var(--orange); }
.pos:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.fields label.full { grid-column: 1 / -1; }
.fields input, .fields textarea { font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 12px 14px; border: 2px solid var(--line); border-radius: 4px; background: var(--cream); }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--orange); }
.fields .hp { position: absolute; left: -9999px; }
.flow-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.flow-err { margin: 16px 0 0; padding: 10px 14px; border: 2px solid var(--orange); color: var(--orange-2); background: var(--paper); font-weight: 600; }
.flow-done h3 { font-size: clamp(26px, 3vw, 36px); }
.flow-done .small { color: var(--muted); font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: default; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
