/* Buzzer Desk: "Playbook" brand. Green board, chalk text, yellow marker. */

@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("/fonts/sofia-sans-extra-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("/fonts/sofia-sans-extra-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("/fonts/sofia-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("/fonts/sofia-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Permanent Marker";
  src: url("/fonts/permanent-marker-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --board: #0E3B2C;
  --deep: #082419;
  --chalk: #F3F1E7;
  --yellow: #FFD84D;
  --chalk-soft: rgba(243, 241, 231, 0.78);
  --chalk-line: rgba(243, 241, 231, 0.22);

  --display: "Sofia Sans Extra Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.5;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 4px;
}

/* The board: wiped-chalk smudges over board green */
.board {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(20px, 5vw, 64px);
  background:
    radial-gradient(60% 45% at 78% 30%, rgba(243, 241, 231, 0.07), transparent 70%),
    radial-gradient(45% 40% at 12% 85%, rgba(243, 241, 231, 0.05), transparent 70%),
    radial-gradient(120% 90% at 50% 40%, var(--board) 55%, var(--deep) 130%);
}

.top, .hero, .foot {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.handle {
  font-weight: 600;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.handle:hover { color: var(--yellow); }

/* Logo: two chalk flip-card tiles and a yellow colon (logo.png, transparent) */
.logo {
  display: block;
  height: 40px;
  width: auto;
}
.logo-small { height: 26px; }

/* Hero */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(8px, 2vh, 32px) clamp(32px, 5vh, 64px);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.75rem, 8vw, 7rem);
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 em, .card-headline em {
  font-style: normal;
  color: var(--yellow);
}

.lede {
  margin: 28px 0 0;
  max-width: 30em;
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
}

.more {
  margin: 12px 0 0;
  max-width: 34em;
  color: var(--chalk-soft);
}

.follow {
  display: inline-block;
  margin-top: 32px;
  padding: 15px 30px 13px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--deep);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--deep);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.follow:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--deep); }
.follow:active { transform: translateY(5px); box-shadow: 0 0 0 var(--deep); }
.follow:focus-visible { outline-color: var(--chalk); }

.leagues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.leagues li {
  padding: 6px 12px 4px;
  border: 2px solid var(--chalk-line);
  border-radius: 7px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

/* Sample card with marker notes */
.sample {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: start;
}

.card {
  grid-column: 1;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 16px;
  border-radius: 14px;
  background: var(--deep);
  border: 2px solid var(--chalk-line);
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.65);
  transform: rotate(-2.2deg);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-tag {
  font-family: var(--marker);
  font-size: 1rem;
  line-height: 1;
  color: var(--yellow);
  transform: rotate(-3deg);
}

.play {
  display: block;
  width: 100%;
  margin-block: auto;
}

.card-headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4.4vw, 3.25rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 2px solid var(--chalk-line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--chalk-soft);
}

.notes {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 18px 0 64px;
  list-style: none;
}

.note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--marker);
  font-size: 1.22rem;
  line-height: 1.15;
  color: var(--chalk);
}
.note span { max-width: 8.5em; }
.note-1 { transform: rotate(-3deg); }
.note-2 { transform: rotate(2deg); margin-left: 14px; }
.note-3 { transform: rotate(-2deg); }

.arrow {
  flex: none;
  width: 58px;
  height: 34px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

figcaption {
  grid-column: 1;
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--chalk-soft);
  text-align: center;
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
  padding-block: 22px 28px;
  border-top: 2px solid var(--chalk-line);
  font-size: 0.98rem;
}
.foot p { margin: 0; }
.foot .contact { margin-right: auto; }
.foot .contact a {
  font-weight: 600;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.foot nav { display: flex; gap: 22px; }
.foot nav a { text-underline-offset: 4px; }
.foot a:hover { color: var(--yellow); }
.foot .legal { color: var(--chalk-soft); }

/* Tablet and phone: one column, notes move under the card */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding-top: 12px;
  }

  .sample {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .card { width: min(100%, 340px); }

  .notes {
    grid-column: 1;
    grid-row: 2;
    align-self: auto;
    align-items: center;
    gap: 10px;
    padding: 34px 0 0;
  }
  .note span { max-width: none; }
  .note-2 { margin-left: 0; }
  .arrow { display: none; }

  figcaption { grid-row: 3; }
}

@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .top { padding-block: 20px; }
  .wordmark { font-size: 1.5rem; }
  .logo { height: 34px; }
  .logo-small { height: 26px; }
  .follow { display: block; text-align: center; }
  .note { font-size: 1.1rem; }
  .foot { flex-direction: column; gap: 10px; }
}
