/* coachginge.com: the channel's palette (tools/packaging_art.py) and the
   game's two fonts, served from this site (no third-party requests). */
@font-face { font-family: "Lilita One"; src: url("fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #3a1d5c;          /* the game's dark purple outline */
  --ink-soft: #5a4178;
  --gold: #ffd23f;
  --gold-deep: #ffaa28;
  --rose: #ff4f8b;
  --rose-light: #ffd3e4;
  --sky: #a8e2ff;
  --sky-deep: #3d8fe8;
  --grass: #d6f4c8;
  --cream: #fff6e3;
  --white: #ffffff;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0, #d8f1ff 520px, var(--cream) 1100px, var(--grass) 100%);
  line-height: 1.5;
  font-size: 18px;
}

a { color: var(--sky-deep); }
a:focus-visible, button:focus-visible { outline: 4px solid var(--rose); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .pill, .brand span, .btn, .time {
  font-family: "Lilita One", "Fredoka", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* the sticker lettering of the thumbnails: gold fill, dark purple outline */
h1, h2 {
  color: var(--gold);
  -webkit-text-stroke: 0.09em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--ink);
  line-height: 1.05;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.8rem, 8vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); text-align: center; }
h3 { font-size: 1.5rem; margin: 0 0 0.3em; line-height: 1.15; }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto; padding: 14px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 3px 0 var(--ink); }
.brand span { font-size: 1.6rem; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a {
  text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, 0.75);
  padding: 6px 14px; border-radius: 999px; font-size: 0.95rem;
}
.top nav a:hover { background: var(--white); }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 24px;
  max-width: 1120px; margin: 0 auto; padding: 18px 16px 40px;
}
.pill {
  display: inline-block; margin: 0 0 14px; padding: 6px 18px;
  background: var(--rose); color: var(--white); border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink); font-size: 1.05rem; text-transform: uppercase;
}
.lead { font-size: 1.2rem; max-width: 34em; margin: 0 0 12px; }
.moves {
  display: inline-block; margin: 0 0 12px; padding: 6px 16px; border-radius: 999px;
  background: var(--white); border: 3px solid var(--ink); font-family: "Lilita One", sans-serif;
  text-transform: uppercase; font-size: 1.1rem;
}
.ages { margin: 0 0 22px; font-weight: 600; font-size: 1.05rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; text-decoration: none; font-size: 1.25rem;
  padding: 12px 22px; border-radius: 999px; border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink); transition: transform 0.08s, box-shadow 0.08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-play { background: var(--gold); color: var(--ink); }
.btn-alt { background: var(--white); color: var(--ink); }
.btn-small { font-size: 1rem; padding: 6px 16px; box-shadow: 0 3px 0 var(--ink); background: var(--gold); color: var(--ink); }
.hero-cats {
  border-radius: 28px; border: 6px solid var(--white);
  box-shadow: 0 10px 0 rgba(58, 29, 92, 0.25);
}

/* videos */
.videos, .teachers { max-width: 1120px; margin: 0 auto; padding: 32px 16px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 940px; margin: 0 auto; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
  display: flex; flex-direction: column;
}
.video {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--ink); aspect-ratio: 16 / 9;
}
.video img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: var(--rose); border: 4px solid var(--white);
  box-shadow: 0 4px 0 var(--ink);
}
.play::after {
  content: ""; position: absolute; left: 27px; top: 19px;
  border-style: solid; border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--white);
}
.video:hover .play { background: #ff2f76; }
.player { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body p { margin: 0; }
.time {
  font-size: 0.85rem; background: var(--sky); padding: 2px 10px; border-radius: 999px;
  vertical-align: middle; margin-left: 4px;
}
.card-moves { color: #b8135a; font-size: 0.95rem; }
.yt { margin-top: auto; padding-top: 6px; }
/* an odd last card sits in the middle, the same width as the others */
.cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 11px); }
.note { text-align: center; color: var(--ink-soft); font-size: 0.95rem; margin: 22px auto 0; max-width: 40em; }

/* teachers */
.teachers { background: rgba(255, 255, 255, 0.6); border-radius: 32px; }
.teach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.teach-grid ul { padding-left: 1.2em; margin: 0 0 20px; }

/* the about page (about/) */
.hero-photo {
  width: 100%; max-width: 380px; justify-self: center; border-radius: 28px; border: 6px solid var(--white);
  box-shadow: 0 10px 0 rgba(58, 29, 92, 0.25); transform: rotate(2deg);
}
.story { max-width: 860px; margin: 0 auto 24px; }
.story p { max-width: 40em; margin: 0 auto 14px; }
.story .links { justify-content: center; }
.story p strong { color: #b8135a; }  /* the privacy page's lead-ins, as on the feather hunt's rules */
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 4px solid var(--white); box-shadow: 0 4px 0 rgba(58, 29, 92, 0.2); }
.photo-wide { margin: 22px auto; max-width: 300px; text-align: center; }
.photo-wide img { border-radius: 16px; border: 4px solid var(--white); box-shadow: 0 4px 0 rgba(58, 29, 92, 0.2); }
.photo-wide figcaption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 8px; }

/* the feather hunt page (feathers/) */
.feathers { max-width: 860px; margin: 0 auto 24px; }
.feathers ol, .feathers ul { padding-left: 1.4em; margin: 0 auto; max-width: 40em; }
.feathers li { margin-bottom: 12px; }
.steps li::marker, .rules li::marker { font-family: "Lilita One", sans-serif; color: #b8135a; }
.rules li { font-size: 0.98rem; }
.feathers li strong { color: #b8135a; }
.feathers ol, .feathers ul { width: min(100%, 44em); }
.btn-wait { cursor: default; }
.btn-wait:active { transform: none; box-shadow: 0 5px 0 var(--ink); }
.teach-grid li { margin-bottom: 8px; }
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; margin-top: 8px; }
.dl { margin: 0; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 14px; box-shadow: 0 5px 0 var(--ink); }
.dl img { border-radius: 10px; border: 1px solid #e3dbe9; }
.dl figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dl-links { display: flex; gap: 8px; }
.downloads .dl img { max-height: 420px; width: auto; margin: 0 auto; }

/* Halloween: pumpkin orange on twilight purple, the Halloween card's colours */
.halloween {
  width: min(1088px, calc(100% - 24px)); margin: 8px auto 24px; padding: 32px 20px 30px;
  background: linear-gradient(160deg, #4f2687 0%, #2f1555 100%); border-radius: 32px;
  border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); color: var(--white); text-align: center;
}
.pill-night { background: #ff8a1f; }
.hw-lead { max-width: 38em; margin: 0 auto 22px; color: #f1e7ff; }
.hw-list { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; display: grid; gap: 12px; text-align: left; }
.hw-list li {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center;
  background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 18px; padding: 10px;
}
.hw-thumb img { border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.hw-list h3 { color: var(--white); font-size: 1.3rem; margin: 0 0 4px; }
.hw-list p { margin: 0 0 4px; color: #eadcff; }
.hw-list .time { background: #c9a2ff; color: var(--ink); }
.day {
  display: inline-block; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 0.85rem;
  padding: 1px 10px; border-radius: 999px; border: 2px solid #ffb35c; color: #ffd08a; vertical-align: middle; white-space: nowrap;
}
.day-now { background: #ff8a1f; border-color: #ff8a1f; color: var(--white); }
.hw-list .yt { color: #ffc477; }
.hw-note { color: #d9c7f5; font-size: 0.95rem; margin: 16px 0 18px; }
.hw-buttons { justify-content: center; }

/* about */
.about {
  display: flex; align-items: center; gap: 28px;
  max-width: 900px; margin: 0 auto; padding: 40px 16px;
}
.about img { border-radius: 50%; border: 5px solid var(--white); box-shadow: 0 5px 0 var(--ink); flex: none; }
.about h2 { text-align: left; }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

footer { text-align: center; padding: 24px 16px 40px; color: var(--ink-soft); font-size: 0.9rem; }
footer p { margin: 4px 0; }

/* phones and small tablets */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-cats { width: 100%; max-width: 420px; margin: 0 auto; order: -1; }
  .hero-photo { max-width: 300px; order: -1; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead { margin-left: auto; margin-right: auto; }
  .buttons { justify-content: center; }
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .cards > .card:last-child:nth-child(odd) { width: 100%; }
  .teach-grid, .downloads { grid-template-columns: minmax(0, 1fr); }
  .about { flex-direction: column; text-align: center; }
  .about h2 { text-align: center; }
  .links { justify-content: center; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .top { flex-direction: column; gap: 8px; padding-bottom: 4px; }
  .brand span { white-space: nowrap; }
  .top nav { justify-content: center; }
  .top nav a { padding: 5px 10px; font-size: 0.85rem; }
  .brand span { font-size: 1.3rem; }
  .dl figcaption { flex-direction: column; align-items: flex-start; }
  .halloween { padding: 26px 12px 24px; }
  .hw-list li { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 8px; align-items: start; }
  .hw-list h3 { font-size: 1.1rem; }
  .hw-list p { font-size: 0.95rem; }
}
