/* This stylesheet is loaded only by the standalone guides. */
:root {
  color-scheme: light dark;
  --page: #f8f4ec;
  --paper: #fffcf6;
  --ink: #242d39;
  --secondary-ink: #484d52;
  --line: #cfc6b7;
  --link: #82432d;
  --button: #2e495a;
  --button-text: #fffcf6;
  --tile: #f7ecd8;
  --word-one: #c1dcc7;
  --word-two: #e9cab9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #1d2530;
    --paper: #27303b;
    --ink: #f5efe5;
    --secondary-ink: #ded6ca;
    --line: #596069;
    --link: #f3b99c;
    --button: #b6d7d2;
    --button-text: #202e2a;
    --tile: #3a4147;
    --word-one: #365a4e;
    --word-two: #6b4942;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  max-width: 48rem;
  padding: 0 clamp(1.125rem, 4vw, 2.5rem) 2.5rem;
  background: var(--page);
  color: var(--ink);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}
a { color: var(--link); text-underline-offset: .15em; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.guide-masthead {
  padding: clamp(1.1rem, 4vw, 2.2rem) 0 .9rem;
  border-bottom: 1px solid var(--line);
}
.guide-masthead a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font: 800 2rem/.95 'Fraunces', Georgia, serif;
  letter-spacing: -.04em;
}
.guide-masthead img { display: block; }
h1, h2 {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { margin: clamp(1.4rem, 5vw, 2.8rem) 0 .65rem; font-size: clamp(2.15rem, 7vw, 3.6rem); line-height: 1.03; }
h2 { margin: 0 0 .35rem; font-size: clamp(1.4rem, 4vw, 1.8rem); line-height: 1.15; }
p { margin: 0; }
section { margin-top: 1.65rem; }
p + p { margin-top: .65rem; }
.guide-intro { max-width: 60ch; color: var(--secondary-ink); font-size: 1.15rem; }
.guide-play {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  margin: 1rem 0 .2rem;
  padding: .55rem 1.25rem;
  border-radius: .65rem;
  background: var(--button);
  color: var(--button-text);
  font-weight: 700;
  text-decoration: none;
}
.guide-play:hover { text-decoration: underline; }
.guide-play:focus-visible { outline-color: var(--ink); }
.guide-example {
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--paper);
}
.guide-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 2.75rem));
  gap: .25rem;
  margin: .85rem 0 .3rem;
}
.guide-board span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: var(--tile);
  font: 700 1.4rem/1 'Fraunces', Georgia, serif;
}
.guide-example:has(details[open]) .guide-board span { background: var(--word-two); }
.guide-example:has(details[open]) .guide-board .word-one { background: var(--word-one); }
summary { width: fit-content; padding: .65rem 0; color: var(--link); font-weight: 650; cursor: pointer; }
.guide-phrase { margin: .85rem 0; font: 650 1.24rem/1.6 'Fraunces', Georgia, serif; }
.guide-phrase span { white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; margin-top: 2rem; padding-top: .65rem; border-top: 1px solid var(--line); }
nav a { padding: .55rem 0; font-weight: 600; }
