@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #302c25;
  --oxide: #87392e;
  --paper: #efddba;
  --rule: #746954;
  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif;
  font-family: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #474b48;
}
* { box-sizing: border-box; }
body { margin: 0; padding: clamp(6px, 2vw, 28px); }
.poster {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(12px, 2.1vw, 30px);
  border: 7px solid #35332c;
  outline: 1px solid #68665a;
  box-shadow: inset 0 0 0 2px #aa9070, 2px 5px 10px #24282066;
  background: url(stock.svg), radial-gradient(ellipse at 46% 37%, #f6e7c9 12%, #ebd6b1 79%, #ddc19b);
}
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 2px solid var(--ink);
  border-bottom: 5px double var(--ink);
  padding: 8px 1.5% 12px;
}
.masthead img { width: clamp(112px, 13%, 145px); height: auto; flex: none; }
.nameplate { flex: 1; min-width: 0; }
h1 { font-size: clamp(35px, 6.4vw, 88px); line-height: .98; text-transform: uppercase; letter-spacing: -.015em; word-spacing: .035em; }
.subtitle { display: flex; align-items: center; margin: 8px 0 0 2px; }
.subtitle span {
  display: inline-block;
  padding: 1px 23px 3px 14px;
  clip-path: polygon(0 0,100% 0,97% 50%,100% 100%,0 100%);
  background: var(--oxide);
  color: #fff0cf;
  font: italic bold clamp(14px, 1.7vw, 22px) Georgia, serif;
}
.index { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.menu-label, .legend, #variants label { font-family: Georgia, "Times New Roman", serif; }
.menu-label { font-size: 17px; font-style: italic; white-space: nowrap; }
#lesson-plates { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); }
#lesson { display: none; }
select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
.situation {
  display: flex; align-items: center; gap: 8px;
  min-height: 49px; padding: 2px 9px;
  background: transparent; border: 0; border-right: 1px solid var(--rule);
  font: 700 16px/1.1 var(--display); text-align: left;
}
.situation:last-child { border: 0; }
.situation::before { content: ""; flex: 0 0 64px; height: 38px; background: url(situation-plates.svg) left center / 192px 38px no-repeat; }
.situation:nth-child(2)::before { background-position: center; }
.situation:nth-child(3)::before { background-position: right; }
.situation[aria-pressed="true"] { background-color: #cbae7938; box-shadow: inset 0 -3px var(--oxide); color: #782d22; }
.practice { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 10px; }
.plate, .role-panel, .play-panel { border: 1.5px solid var(--ink); }
.plate { display: flex; flex-direction: column; align-self: start; }
.panel-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 9px 13px; border-bottom: 1px solid var(--rule); }
.panel-heading h2, .role-panel h2 { text-transform: uppercase; font-size: 22px; line-height: 1.15; letter-spacing: -.015em; }
.scoreline { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.scoreline strong { border-right: 1px solid var(--rule); padding-right: 8px; }
#field { width: 100%; height: auto; display: block; }
.legend { border-top: 1px solid var(--rule); min-height: 47px; display: flex; align-items: center; flex-wrap: wrap; gap: 17px; padding: 6px 14px; font-size: 15px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 10px; height: 10px; }
.you { border-radius: 50%; background: var(--ink); outline: 1px solid var(--ink); outline-offset: 2px; }
.runner { transform: rotate(45deg); background: var(--oxide); }
.ball { border-radius: 50%; border: 1px solid var(--ink); background: #fff7dd; }
.legend button { margin-left: auto; background: none; border: 0; text-decoration: underline; min-height: 34px; }
.card { display: flex; flex-direction: column; gap: 9px; }
.role-panel, .play-panel { padding: clamp(14px, 1.6vw, 23px); }
.role-panel { padding-block: 13px; }
#roles { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.role, #actions button, select { border-radius: 0; border: 1px solid var(--ink); min-height: 44px; background: #faf0d340; }
.role { font: 700 15px Georgia, serif; padding: 8px 13px; }
.role[aria-pressed="true"] { background: var(--ink); color: #fff2d4; }
.role[aria-pressed="true"]::before { content: "✓ "; }
.play-panel { flex: 1; }
#prompt { font-weight: 700; text-transform: uppercase; letter-spacing: -.034em; font-size: clamp(30px, 3.4vw, 49px); line-height: 1.02; }
#prompt::after { content: ""; display: block; width: 50px; margin: 13px 0 12px; border-top: 3px solid var(--oxide); }
#cue { font-size: 17px; line-height: 1.46; }
#variants label { display: grid; gap: 5px; font-style: italic; margin-top: 15px; }
select { padding: 7px 28px 7px 10px; font: 600 15px Arial, sans-serif; width: 100%; }
#actions { display: grid; gap: 8px; }
#actions:not(:empty) { margin-top: 18px; }
#actions button { padding: 11px 15px; text-align: left; font-weight: 700; }
#actions .primary { background: var(--oxide); border-color: #672e25; color: #fff2d6; box-shadow: inset 0 0 0 2px var(--oxide), inset 0 0 0 3px #efdab277; }
button:hover { background-color: #d7c59e; }
button:focus-visible, select:focus-visible { outline: 3px solid #174f68; outline-offset: 2px; }
[hidden] { display: none !important; }
@media (max-width: 850px) {
  .index { gap: 10px; }
  .situation { font-size: 15px; gap: 4px; }
  .situation::before { flex-basis: 42px; height: 28px; background-size: 126px auto; }
  .practice { grid-template-columns: 1.45fr 1fr; }
}
@media (max-width: 690px) {
  body { padding: 5px; }
  .poster { border-width: 4px; padding: 10px; }
  .masthead { gap: 4px; padding: 9px 0; }
  .masthead img { width: clamp(52px, 16%, 78px); }
  h1 { font-size: clamp(29px, 7.8vw, 50px); }
  .subtitle { margin-top: 3px; }
  .subtitle span { font-size: 14px; padding: 1px 16px 2px 9px; }
  .menu-label { font-size: 15px; }
  #lesson-plates { display: none; }
  #lesson { display: block; min-width: 0; }
  .index { padding: 8px 0; }
  .practice { display: block; }
  .card { margin-top: 8px; gap: 7px; }
  .panel-heading { padding: 7px 9px; }
  .panel-heading h2, .role-panel h2 { font-size: 18px; }
  .scoreline { font-size: 12px; }
  .legend { min-height: 35px; padding: 5px 11px; font-size: 13px; }
  .role-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; padding: 8px 10px; }
  #roles { margin: 0; gap: 5px; }
  .role { padding: 6px 8px; font-size: 14px; }
  #players text { font-size: 15px; }
  #cue { font-size: 16px; }
  #actions:not(:empty) { margin-top: 12px; }
}
.role::before, .role[aria-pressed="true"]::before {
  content: attr(data-abbreviation);
  display: inline-block;
  margin-right: 6px;
  padding-right: 6px;
  border-right: 1px solid currentColor;
  font: 750 14px var(--display);
}

.path-key { border: 1.5px solid var(--ink); padding: 11px 15px 13px; }
.path-key h2 { text-transform: uppercase; font-size: 20px; line-height: 1.1; }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 9px; }
.samples figure { margin: 0; text-align: center; border-right: 1px solid #a59576; }
.samples figure:last-child { border: 0; }
.samples svg { width: min(84%, 94px); display: block; margin: auto; }
.samples figcaption { font: italic 14px Georgia, serif; }
.example { fill: none; stroke-width: 2; stroke-linecap: round; }
.ball-path { stroke: #57472e; stroke-dasharray: none; }
.player-path { stroke: #42372a; stroke-dasharray: 7 4; }
.runner-path { stroke: #91392a; stroke-dasharray: 2 4; }
@media (max-width: 690px) {
  .path-key { padding: 9px 12px; }
  .samples { margin-top: 4px; }
}

.home-link { margin-top: 12px; }
.home-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font: italic 16px Georgia, serif; }
.home-link a:focus-visible { outline: 3px solid #174f68; outline-offset: 2px; }
