:root {
  color-scheme:light;
  --ink:#192e28;
  --green:#23553e;
  --muted:#4b5f54;
  --line:#b9c5b7;
  --paper:#f8f8f1;
  --mint:#e7efda;
  --rust:#87421e;
  font-family:"Instrument Sans","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-size:100%;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

a {
  color:var(--green);
  text-underline-offset:.23em;
}

a,button {
  touch-action:manipulation;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid #b04c1b;
  outline-offset:3px;
}

.wrap {
  max-width:1140px;
  padding:0 clamp(18px,5vw,72px);
  margin:auto;
}

.skip {
  position:absolute;
  left:1rem;
  top:-6rem;
  background:white;
  padding:.5rem;
}

.skip:focus {
  top:1rem;
  z-index:10;
}

header {
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--ink);
}

.brand {
  font-weight:800;
  font-size:1.18rem;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  white-space:nowrap;
}

.pencil {
  width:8px;
  height:26px;
  background:linear-gradient(to bottom,#df956d 0 15%,#f5e9bf 15% 25%,#b48a3c 25% 83%,#263c30 83%);
  transform:rotate(33deg);
  clip-path:polygon(0 0,100% 0,100% 78%,50% 100%,0 78%);
  display:inline-block;
}

nav {
  display:flex;
  align-items:center;
  gap:clamp(10px,2.6vw,30px);
}

nav a {
  color:var(--ink);
  font-weight:650;
  font-size:.91rem;
  text-decoration:none;
  padding:.55rem 0;
  border-bottom:2px solid transparent;
}

nav a:hover,nav a[aria-current] {
  border-color:var(--green);
}

.hero {
  display:grid;
  grid-template-columns:1.2fr minmax(230px,.85fr);
  gap:clamp(20px,5vw,76px);
  align-items:center;
  padding:clamp(28px,5vw,62px) 0;
}

.mascot {
  width:100%;
  height:auto;
  max-width:352px;
  border-radius:38% 48% 43% 40%;
  justify-self:end;
  display:block;
}

.topic {
  font-size:.9rem;
  letter-spacing:.08em;
  font-weight:780;
  color:var(--green);
  margin:0 0 .9rem;
}

.hero h1,.intro h1 {
  font-family:"Hedvig Letters Serif","Hiragino Mincho ProN","Yu Mincho",serif;
  letter-spacing:-.055em;
  margin:0;
  font-weight:650;
  line-height:1.12;
}

.hero h1 {
  font-size:clamp(2.85rem,6.9vw,5.5rem);
}

h1 em {
  font-style:normal;
  color:var(--green);
}

.lede,.reading p,.card p,#detail,#trace>p {
  line-height:1.85;
}

.lede {
  font-size:clamp(1rem,1.7vw,1.16rem);
  margin:1.2rem 0 0;
  color:var(--muted);
}

.intro {
  padding:clamp(28px,5.4vw,65px) 0 30px;
  max-width:810px;
}

.intro h1 {
  font-size:clamp(2rem,4.8vw,3.65rem);
}

.cards {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.card {
  color:var(--ink);
  text-decoration:none;
  background:#fffef9;
  border:1px solid var(--line);
  border-top:4px solid var(--green);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.card:hover {
  border-color:var(--green);
  box-shadow:0 4px 0 var(--green);
}

.card:focus-visible {
  outline-offset:5px;
}

.card-body {
  padding:24px 23px 10px;
}

.card h2,.reading h2,.question h2 {
  font-family:"Hedvig Letters Serif","Hiragino Mincho ProN","Yu Mincho",serif;
  font-weight:700;
}

.card h2 {
  font-size:clamp(1.22rem,2.4vw,1.55rem);
  margin:.45rem 0;
}

.card p {
  font-size:1rem;
  margin:0;
  color:var(--muted);
}

.card .topic {
  font-size:.87rem;
}

.sample {
  margin:10px 22px 20px;
  border-top:1px solid var(--line);
  padding-top:12px;
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:6px;
}

.sample span {
  font-family:Georgia,"Yu Mincho",serif;
  font-size:1.9rem;
}

.sample small {
  font-size:.85rem;
  color:var(--muted);
}

.playback {
  border-top-color:#356375;
}

.drill {
  border-top-color:var(--rust);
}

.work {
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
  gap:clamp(16px,3vw,34px);
  align-items:start;
}

.work form,.question {
  background:#fffefa;
  border:1px solid var(--line);
  padding:clamp(16px,2.6vw,30px);
}

fieldset {
  border:0;
  margin:0 0 24px;
  padding:0;
  min-width:0;
}

legend,.question>label {
  font-weight:750;
  font-size:1.05rem;
  margin-bottom:9px;
}

fieldset+fieldset {
  border-top:1px solid var(--line);
  padding-top:9px;
}

label {
  font-size:.94rem;
  display:block;
  color:var(--muted);
  line-height:1.5;
}

input,select {
  display:block;
  min-width:0;
  max-width:100%;
  width:100%;
  font:inherit;
  font-size:1.06rem;
  color:var(--ink);
  background:#fff;
  border:1px solid #83988b;
  border-radius:3px;
  padding:.55rem .65rem;
  margin-top:4px;
  min-height:46px;
}

select {
  appearance:none;
  padding-right:1.8rem;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23244a36' stroke-width='1.7'/%3E%3C/svg%3E") no-repeat right .65rem center;
}

.fields {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.triple {
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.speed>label {
  max-width:155px;
}

.presets {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:12px;
}

.work button {
  font:inherit;
  cursor:pointer;
  border:1px solid var(--green);
  border-radius:3px;
  font-weight:700;
}

.work button[type=submit],.next {
  color:#fff;
  background:var(--green);
  min-height:46px;
  padding:.65rem 1.25rem;
}

.work button:hover {
  filter:brightness(.92);
}

.choice {
  background:#fff;
  color:var(--green);
  font-size:.93rem!important;
  padding:.45rem .75rem;
  min-height:42px;
}

.choice[aria-pressed=true] {
  background:var(--green);
  color:white;
}

.result {
  padding:clamp(20px,3vw,34px);
  background:var(--mint);
  border-top:4px solid var(--green);
  min-height:190px;
}

.result>p:first-child {
  margin:0;
  color:var(--muted);
  font-weight:700;
}

.result h2 {
  font-size:clamp(1.5rem,3.7vw,2.25rem);
  line-height:1.4;
  letter-spacing:-.03em;
  margin:.7rem 0;
}

.result #detail p {
  margin:.22rem 0;
}

.result .next {
  margin-top:16px;
}

.reading {
  max-width:780px;
  border-top:1px solid var(--line);
  margin:36px 0 0;
  padding-top:16px;
}

.reading h2 {
  font-size:1.35rem;
  margin:.4rem 0;
}

.reading p {
  margin:.65rem 0;
}

.source {
  font-size:.89rem;
}

.text-link,.source a {
  font-weight:600;
}

.question>label {
  max-width:100%;
}

.question h2 {
  font-size:1.35rem;
  margin:22px 0 8px;
}

.question p {
  line-height:1.65;
}

.question pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-family:"IBM Plex Mono","Hiragino Kaku Gothic ProN",monospace;
  line-height:1.7;
  font-size:.98rem;
  background:#eff0e7;
  border-left:4px solid #829178;
  padding:12px;
}

.rules p {
  display:flex;
  gap:.7rem;
  margin:.3rem 0;
}

.rules b {
  color:var(--rust);
}

#sequence {
  font-weight:700;
}

.question fieldset {
  margin-bottom:0;
}

.result table {
  border-collapse:collapse;
  background:#fffcf6;
  width:100%;
  font-variant-numeric:tabular-nums;
}

.result caption {
  text-align:left;
  color:var(--muted);
  padding:.45rem 0;
}

.result th,.result td {
  text-align:center;
  border-bottom:1px solid var(--line);
  padding:.43rem .18rem;
  font-size:.88rem;
}

.result tr.mark {
  background:#f9dab6;
}

.result .why {
  font-size:.98rem;
}

footer {
  border-top:1px solid var(--ink);
  display:flex;
  justify-content:space-between;
  gap:24px;
  margin-top:48px;
  padding:22px 0 68px;
  font-size:.88rem;
  line-height:1.8;
  color:var(--muted);
}

.footname {
  font-weight:750;
  color:var(--ink);
  white-space:nowrap;
}

.home-clubs,.trial {
  margin:0 0 24px;
  padding:clamp(16px,3vw,30px);
  background:var(--mint);
  border-top:3px solid var(--green);
}
.home-clubs {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.home-clubs h2,.trial h2,.issue h2 {
  font-family:"Hedvig Letters Serif","Hiragino Mincho ProN","Yu Mincho",serif;
  font-size:clamp(1.3rem,2.8vw,1.65rem);
  line-height:1.5;
  margin:0;
}
.home-clubs p {margin:.4rem 0 0}
.action {
  display:inline-block;
  background:var(--green);
  color:#fff;
  border-radius:4px;
  padding:.7rem 1rem;
  font-weight:700;
  text-decoration:none;
  text-align:center;
}
.action:hover {background:#183e2c}
.home-clubs .action {flex:none}
.issue,.trial,.termsline,.back {max-width:760px;line-height:1.85}
.issue {
  border:1px solid var(--line);
  background:#fffef9;
  padding:clamp(16px,3vw,34px);
}
.issue h2:not(:first-child) {margin-top:2rem}
.issue blockquote,.issue pre {
  margin:1rem 0;
  background:#edf1e5;
  padding:.9rem 1rem;
  border-left:4px solid #638361;
}
.issue blockquote {font-family:Georgia,serif;font-size:1.2rem;line-height:1.5}
.issue pre {overflow:auto;font-size:clamp(.8rem,2vw,.97rem);line-height:1.6}
.issue p {margin:.65rem 0}
.reveal {border-top:1px solid var(--line)}
.reveal summary {cursor:pointer;color:var(--green);font-weight:700;padding:.7rem 0}
.reveal summary:focus-visible {outline:3px solid var(--rust)}
.reveal>div {padding:0 .3rem .7rem}
.board,.run {border-collapse:collapse;margin:1rem 0;font-variant-numeric:tabular-nums}
.board caption,.run caption {text-align:left;color:var(--muted);font-size:.88rem;padding:0 0 .4rem}
.board th {font-size:.75rem;font-weight:500;color:var(--muted);white-space:nowrap}
.board tbody th {padding-right:.45rem}
.board tbody td {
  text-align:center;
  font:600 clamp(1.1rem,3.8vw,1.5rem)/1.4 Georgia,serif;
  border:1px solid #a9b5a8;
  width:clamp(28px,7.9vw,45px);
  height:clamp(28px,7.9vw,45px);
}
.board tbody tr:nth-child(odd) td {border-top:2px solid var(--green)}
.board tbody tr:last-child td {border-bottom:2px solid var(--green)}
.board tbody td:nth-child(2),.board tbody td:nth-child(5) {border-left:2px solid var(--green)}
.board tbody td:last-child {border-right:2px solid var(--green)}
.board td span[aria-hidden] {color:#808c7e}
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.run th,.run td {border:1px solid var(--line);padding:.25rem .6rem;text-align:left}
.shuttle-times th,.shuttle-times td {padding:.3rem clamp(.2rem,1.1vw,.6rem)}
.run thead {background:var(--mint)}
.trial {margin-top:1.5rem}
.club-card:nth-child(2) {border-top-color:#356375}
.club-card:nth-child(3) {border-top-color:var(--rust)}
.club-card .card-link {padding:12px 23px 20px;font-weight:700;color:var(--green)}
.termsline {color:var(--muted)}
.worksheets {display:none}
@media print {
  body:is([data-page="club-puzzle"],[data-page^="issue-puzzle-"]) {background:white;color:black}
  body:is([data-page="club-puzzle"],[data-page^="issue-puzzle-"]) .wrap {padding:0}
  body:is([data-page="club-puzzle"],[data-page^="issue-puzzle-"]) :is(header,footer,.intro,.trial,.back,.skip),
  body:is([data-page="club-puzzle"],[data-page^="issue-puzzle-"]) .issue>:not(.worksheets) {display:none}
  body:is([data-page="club-puzzle"],[data-page^="issue-puzzle-"]) .issue {border:0;background:white;padding:0}
  body:is([data-page="club-puzzle"],[data-page^="issue-puzzle-"]) .worksheets {display:block}
  .worksheets .print-title {font-size:20pt;font-weight:bold}
  .worksheets .board {break-inside:avoid}
  .worksheets .board tbody td {height:7mm;width:7mm;font-size:13pt}
  .worksheets .board caption {font-size:9pt}
  .worksheets h2,.worksheets p {margin:3mm 0!important}
}
@media(max-width:600px) {
  .home-clubs {display:block}
  .home-clubs .action {margin-top:12px}
  .club-card .card-link {padding:13px;align-self:center;text-align:center}
}
@media(max-width:360px) {
  header {flex-wrap:wrap;padding:10px 0}
}

@media(max-width:740px) {
  .cards {
    grid-template-columns:1fr;
  }

  .card {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(96px,28%);
  }

  .card-body {
    padding:17px;
  }

  .card .sample {
    align-content:center;
    justify-content:center;
    text-align:center;
    border-top:0;
    border-left:1px solid var(--line);
    padding:5px 10px;
    margin:14px 0;
  }

  .sample small {
    display:block;
    width:100%;
  }

  .sample span small {
    display:inline;
  }

  .work {
    grid-template-columns:1fr;
  }

  .hero {
    grid-template-columns:1.15fr .75fr;
    gap:12px;
  }

  .hero h1 {
    font-size:clamp(2.4rem,8vw,3.55rem);
  }

  .hero .lede {
    line-height:1.7;
  }

  .wide {
    display:none;
  }

  footer {
    display:block;
  }

  .footname {
    margin-bottom:5px;
  }

}

@media(max-width:430px) {
  header {
    min-height:64px;
    gap:9px;
  }

  .brand {
    font-size:1rem;
    gap:7px;
  }

  nav {
    gap:11px;
  }

  nav a {
    font-size:.84rem;
  }

  .hero {
    align-items:center;
    grid-template-columns:1.5fr 1fr;
  }

  .hero .topic {
    font-size:.8rem;
  }

  .hero .lede {
    font-size:.94rem;
  }

  .sample span {
    font-size:1.6rem;
  }

  .card .sample>small {
    font-size:.8rem;
  }

  .topic {
    margin-bottom:.55rem;
  }

}
.linked-answer {
  display: none;
}

#try:target .linked-answer {
  display: block;
}

