/* Rocking Chair Puzzles — rockingchairpuzzles.com
   Layout idea: a porch at dusk. Navy roof (header and hero), lamplit cream below,
   white book pages on top, and the pencil-gold capsule that circles a found word
   as the one signature shape (buttons are capsules too). Big type everywhere:
   the reader may be 70 and holding a tablet at arm's length. */

@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --navy: #22385A;       /* porch navy: the brand, header, hero */
  --night: #18283F;      /* deepest navy: body text, footer */
  --navy-lift: #2A4570;  /* the big soft circle from the book cover */
  --cream: #FFF7E8;      /* lamplight cream: page background */
  --paper: #FFFFFF;      /* book pages and puzzle sheets */
  --gold: #F2B544;       /* pencil gold: found-word capsules, main buttons */
  --gold-soft: #FAE0AF;  /* capsule fill */
  --gold-deep: #C98A12;  /* capsule outline on white paper */
  --ink-2: #3B4C66;      /* quieter text on cream (8:1) */
  --mist: #D6DCE6;       /* quieter text on navy (8:1) */
  --rule: #E7D9BE;       /* hairlines on cream */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible", Verdana, "Segoe UI", Tahoma, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --focus: var(--night);
  --sheet-shadow: 0 1px 1px rgba(24, 40, 63, .08), 0 10px 24px -8px rgba(24, 40, 63, .28);
  color-scheme: light;
}

/* text size control: 100 / 112.5 / 125 % */
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.ts-1 { font-size: 112.5%; }
html.ts-2 { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--night);
  font-family: var(--body);
  font-size: 1.25rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (max-width: 600px) { body { font-size: 1.1875rem; } }

img, svg { max-width: 100%; }
img { height: auto; display: block; }
picture { display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: 2.75rem; font-size: clamp(2.6rem, 5.4vw, 4.25rem); }
h2 { font-size: 2.1rem; font-size: clamp(2rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--gold-deep); text-decoration-thickness: 3px; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--gold); }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.dark { background: var(--navy); color: var(--cream); --focus: var(--gold); }
.dark a { color: var(--cream); }
.dark a:hover { text-decoration-color: var(--gold); }

.skip {
  position: absolute; left: 1rem; top: -200px; z-index: 300;
  background: var(--gold); color: var(--night); font-weight: 700;
  padding: .8rem 1.4rem; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------------------------------------------------------------- buttons (capsules) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: .7rem 1.75rem;
  border: 3px solid transparent; border-radius: 999px;
  font: 700 1.1875rem/1.2 var(--body); letter-spacing: .01em;
  text-align: center; text-decoration: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn-gold:hover { background: #F7C766; border-color: #F7C766; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--night); border-color: var(--night); }
.btn-line { background: transparent; border-color: currentColor; color: inherit; }
.btn-line:hover { background: rgba(34, 56, 90, .06); }
.dark .btn-line:hover { background: rgba(255, 247, 232, .1); }
.dark a.btn-gold { color: var(--night); }
.btn-soon { background: transparent; border: 3px dashed currentColor; color: inherit; opacity: .8; cursor: default; }
.btn-soon:hover { background: transparent; }
.btn-small { min-height: 3rem; padding: .5rem 1.25rem; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; margin: -.4rem; }
.btn-row > * { margin: .4rem; }
.btn svg { width: 1.15em; height: 1.15em; margin-right: .5em; flex: none; }

/* ---------------------------------------------------------------- header */
.site-head { background: var(--navy); color: var(--cream); --focus: var(--gold); position: relative; z-index: 20; }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 5.5rem; }
.brand { display: inline-flex; align-items: center; min-width: 0; color: var(--cream); text-decoration: none; margin-right: 1.5rem; }
.brand:hover { text-decoration: none; }
.brand svg { width: 3.25rem; height: 3.25rem; flex: none; margin-right: .75rem; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1.05; letter-spacing: -.005em; }
.brand-name span { display: block; color: var(--gold); font-size: .78em; font-weight: 600; letter-spacing: .01em; }

.site-nav { display: flex; align-items: center; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.site-nav li { margin: 0 .2rem; }
.site-nav a {
  display: block; padding: .55rem .8rem; color: var(--cream);
  font-weight: 700; font-size: 1.125rem; text-decoration: none; border-radius: 999px;
}
.site-nav a:hover { background: rgba(255, 247, 232, .1); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 0 0 3px var(--gold); }

.textsize { display: flex; align-items: center; margin-left: 1.1rem; padding-left: 1.1rem; border-left: 2px solid rgba(255, 247, 232, .22); }
.textsize-label { font-size: .95rem; color: var(--mist); margin-right: .55rem; white-space: nowrap; }
.textsize button {
  width: 2.75rem; height: 2.75rem; margin: 0 .15rem; padding: 0;
  border: 2px solid rgba(255, 247, 232, .55); border-radius: 50%;
  background: transparent; color: var(--cream); cursor: pointer;
  font-family: var(--display); font-weight: 800; line-height: 1;
}
.textsize button[data-ts="0"] { font-size: 1rem; }
.textsize button[data-ts="1"] { font-size: 1.2rem; }
.textsize button[data-ts="2"] { font-size: 1.45rem; }
.textsize button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); }

.menu-btn {
  display: none; min-height: 3rem; padding: .45rem 1.3rem;
  background: transparent; color: var(--cream); border: 3px solid var(--cream); border-radius: 999px;
  font: 700 1.125rem/1 var(--body); cursor: pointer;
}

@media (max-width: 1040px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); padding: .75rem var(--gutter) 1.5rem; flex-direction: column; align-items: stretch; box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .45); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav li { margin: 0; border-bottom: 1px solid rgba(255, 247, 232, .14); }
  .site-nav a { padding: 1rem .25rem; font-size: 1.375rem; border-radius: 0; }
  .site-nav a:hover { background: transparent; text-decoration: underline; }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--gold); }
  .textsize { margin: 1.25rem 0 0; padding: 0; border: 0; }
  .textsize-label { font-size: 1.125rem; }
  .textsize button { width: 3.25rem; height: 3.25rem; }
}


/* ---------------------------------------------------------------- sections */
.sec { padding: 4.5rem 0; padding: clamp(3.5rem, 8vw, 6.25rem) 0; }
.sec-tight { padding: 3rem 0; }
.lede { font-size: 1.375rem; line-height: 1.55; max-width: 40ch; }
.dark .lede, .dark .quiet { color: var(--mist); }
.quiet { color: var(--ink-2); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.pill {
  display: inline-block; background: var(--gold); color: var(--night);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  padding: .45rem 1.05rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.pill-line { background: transparent; box-shadow: inset 0 0 0 2px currentColor; color: inherit; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 2.1rem; margin: 0 0 .65rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%2318283F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------------------------------------------------------------- home hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 58rem; height: 58rem; border-radius: 50%;
  background: var(--navy-lift); right: -22rem; top: 6rem;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-gap: 3rem; align-items: center; padding-top: 3.5rem; padding-bottom: 5rem; }
.hero h1 { font-size: 3rem; font-size: clamp(3rem, 6.3vw, 5.1rem); line-height: 1.02; margin-bottom: .35em; }
.hero h1 span { display: block; }
.hero .lede { margin-bottom: 2rem; }
.hero-facts { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; }
.hero-facts li { display: flex; align-items: center; margin: 0 1.6rem .6rem 0; font-weight: 700; font-size: 1.0625rem; }
.hero-facts svg { width: 1.6rem; height: 1.6rem; margin-right: .55rem; flex: none; }

.book-stage { display: flex; flex-direction: column; align-items: center; }
.book { position: relative; display: block; width: 100%; max-width: 25rem; transform: rotate(-3deg); }
.book img { position: relative; z-index: 1; width: 100%; border-radius: 3px 8px 8px 3px; box-shadow: 0 2px 2px rgba(0, 0, 0, .18), 0 30px 50px -18px rgba(5, 12, 24, .7); }
.book::before { /* spine crease */
  content: ""; position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 7%;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .14) 45%, rgba(0, 0, 0, .1));
}
.book::after { /* page edges */
  content: ""; position: absolute; z-index: 0; right: -10px; top: 8px; bottom: 8px; width: 14px;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(90deg, #FFFDF8 0 2px, #E3DACA 2px 3px);
}
.book-tags { display: flex; flex-wrap: wrap; justify-content: center; margin: 2.25rem -.3rem 0; }
.book-tags span { margin: .3rem; padding: .4rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255, 247, 232, .5); font-weight: 700; font-size: 1.0625rem; }
.book-tags b { color: var(--gold); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 2.5rem; padding-bottom: 4rem; grid-gap: 3rem; }
  .hero::before { width: 40rem; height: 40rem; right: -18rem; top: auto; bottom: -14rem; }
  .book { max-width: 19rem; }
}

/* ---------------------------------------------------------------- big letters (specimen) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-gap: 4rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); grid-gap: 2.5rem; } }
.specimen { margin: 0; }
.spec-pair { display: flex; flex-wrap: wrap; align-items: flex-end; margin: -.75rem; }
.spec-pair > .spec { margin: .75rem; }
.spec { background: var(--paper); box-shadow: var(--sheet-shadow); border-radius: 4px; padding: 1.25rem 1.4rem 1.4rem; }
.spec-label { font-size: 1rem; font-weight: 700; color: var(--ink-2); margin: 0 0 .75rem; }
.spec-grid { display: grid; position: relative; font-family: var(--body); font-weight: 700; color: #1E1E1E; text-align: center; line-height: 1; }
.spec-grid span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.spec-small .spec-grid { grid-template-columns: repeat(6, 14pt); grid-auto-rows: 15pt; font-size: 10pt; font-weight: 400; color: #444; }
.spec-large .spec-grid { grid-template-columns: repeat(6, 30pt); grid-auto-rows: 31pt; font-size: 21pt; }
.spec-grid .cap { position: absolute; z-index: 0; grid-row: 1 / 2; grid-column: 1 / -1; top: 2pt; bottom: 2pt; left: 0; right: 0; background: var(--gold-soft); border: 3px solid var(--gold-deep); border-radius: 999px; }
.spec-small .spec-grid .cap { border-width: 2px; top: 1pt; bottom: 1pt; }
.specimen figcaption { margin-top: 1rem; font-size: 1rem; color: var(--ink-2); }
@media (max-width: 520px) {
  .spec-large .spec-grid { grid-template-columns: repeat(6, 26pt); grid-auto-rows: 27pt; font-size: 19pt; }
}

/* ---------------------------------------------------------------- word search board */
.ws { --n: 8; }
.ws-play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); grid-gap: 2.25rem; align-items: start; }
.ws-board {
  position: relative; width: 100%; max-width: 40rem;
  background: var(--paper); border: 3px solid var(--night); border-radius: 18px;
  padding: 10px; box-shadow: var(--sheet-shadow);
}
.ws-marks { position: absolute; left: 10px; top: 10px; width: calc(100% - 20px); height: calc(100% - 20px); pointer-events: none; overflow: visible; }
.ws-grid { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.ws-cell {
  -webkit-appearance: none; appearance: none; border: 0; margin: 0; padding: 0;
  background: transparent; color: var(--night); border-radius: 50%;
  height: var(--cell, 2.75rem); line-height: 1;
  font-family: var(--body); font-weight: 700; font-size: calc(var(--cell, 2.75rem) * .55);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ws-cell:hover { background: rgba(34, 56, 90, .07); }
.ws-cell:focus-visible { outline: 3px solid var(--navy); outline-offset: -2px; }
.ws-marks .o, .ws-marks .i { fill: none; stroke-linecap: round; }
.mk-found .o { stroke: var(--gold-deep); stroke-width: .82; }
.mk-found .i { stroke: var(--gold-soft); stroke-width: .68; }
.mk-sel .o { stroke: var(--navy); stroke-width: .82; opacity: .55; }
.mk-sel .i { stroke: #E6ECF4; stroke-width: .68; }
.mk-miss .o { stroke: #B24A3A; stroke-width: .82; opacity: .6; }
.mk-miss .i { stroke: #FBE9E5; stroke-width: .68; }
.mk-shown .o { stroke: #8D9AAE; stroke-width: .8; stroke-dasharray: .14 .12; }
.mk-shown .i { stroke: #F1F4F8; stroke-width: .66; }
.mk-anchor { fill: var(--gold-soft); stroke: var(--navy); stroke-width: .07; }
.mk-hint { fill: none; stroke: var(--gold-deep); stroke-width: .11; }
.mk-draw .o { transition: stroke-dashoffset .45s ease-out; }
@media (prefers-reduced-motion: no-preference) {
  .mk-hint { animation: hint-pulse 1.1s ease-in-out 4; transform-box: fill-box; transform-origin: center; }
  @keyframes hint-pulse { 50% { transform: scale(1.25); opacity: .55; } }
}

.ws-heading { font-size: 1.5rem; margin-bottom: .35rem; }
.ws-status { font-weight: 700; margin: 0 0 1rem; }
.ws-words { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: .2rem 1.25rem; }
.ws-w { display: flex; align-items: center; font-weight: 700; font-size: 1.1875rem; letter-spacing: .04em; padding: .25rem 0; min-width: 0; }
.ws-box { flex: none; width: 1.2em; height: 1.2em; margin-right: .55rem; border: 2px solid #7C889B; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); }
.ws-box svg { width: 100%; height: 100%; visibility: hidden; }
.ws-word { overflow-wrap: anywhere; }
.ws-w.is-found .ws-box { background: var(--gold); border-color: var(--gold-deep); }
.ws-w.is-found .ws-box svg { visibility: visible; }
.ws-w.is-found .ws-word { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--gold-deep); }
.ws-w.is-shown .ws-word { color: var(--ink-2); }
.ws-msg { min-height: 1.6em; margin: 0 0 1rem; color: var(--ink-2); font-size: 1.0625rem; }
.ws-done { background: var(--gold-soft); border-radius: 18px; padding: 1.25rem 1.4rem; margin: 0 0 1.25rem; }
.ws-done h3 { font-size: 1.5rem; }
.ws-help { font-size: 1.0625rem; color: var(--ink-2); }
@media (max-width: 820px) {
  .ws-play { grid-template-columns: minmax(0, 1fr); grid-gap: 1.5rem; }
  .ws-board { margin: 0 auto; }
}

/* home: try one */
.try-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-gap: 3.5rem; align-items: start; }
.try-grid .ws-play { grid-template-columns: minmax(0, 1fr) minmax(11rem, 13rem); grid-gap: 1.5rem; }
.try-grid .ws-board { max-width: 27rem; }
.try-grid .ws-words { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 980px) { .try-grid { grid-template-columns: minmax(0, 1fr); grid-gap: 2rem; } }
@media (max-width: 560px) { .try-grid .ws-play { grid-template-columns: minmax(0, 1fr); } .try-grid .ws-words { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- look inside */
.pages { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-gap: 1.5rem; }
.pages li { margin: 0; }
.page-btn { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in; border-radius: 4px; }
.page-btn img { width: 100%; background: var(--paper); border-radius: 3px; box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .6); transition: transform .2s ease; }
.page-btn:hover img { transform: translateY(-4px); }
.page-btn span { display: block; margin-top: .8rem; font-size: 1rem; line-height: 1.35; font-weight: 700; }
.page-btn small { display: block; font-weight: 400; color: var(--mist); font-size: .95rem; }
.sec:not(.dark) .page-btn small { color: var(--ink-2); }
@media (max-width: 1040px) { .pages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .page-btn img { transition: none; } .page-btn:hover img { transform: none; } }

/* lightbox */
.lb { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 400; background: rgba(12, 20, 34, .94); color: var(--cream); display: flex; flex-direction: column; --focus: var(--gold); }
.lb[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: .75rem var(--gutter); }
.lb-title { margin: 0; font-weight: 700; font-size: 1.125rem; }
.lb-stage { position: relative; flex: 1; min-height: 0; }
.lb-stage img { position: absolute; top: 0; left: var(--gutter); width: calc(100% - 2 * var(--gutter)); height: 100%; object-fit: contain; }
.lb-nav { position: relative; z-index: 1; display: flex; justify-content: center; padding: 1rem var(--gutter) 1.25rem; }
.lb-nav .btn { margin: 0 .4rem; }
.lb-bar { position: relative; z-index: 1; }
.lb .btn { color: var(--cream); }
.lb .btn-gold { color: var(--night); }
body.lb-open { overflow: hidden; }

/* ---------------------------------------------------------------- themes + levels */
.wordlist { list-style: none; margin: 1.75rem 0; padding: 0; columns: 3 14rem; column-gap: 2.5rem; }
.wordlist li { display: flex; align-items: baseline; break-inside: avoid; padding: .3rem 0; font-weight: 700; }
.wordlist li::before { content: ""; flex: none; width: 1.05em; height: 1.05em; margin-right: .7rem; border: 2px solid #7C889B; border-radius: 5px; transform: translateY(.15em); background: var(--paper); }
.wordlist .num { flex: none; min-width: 2.1em; color: var(--ink-2); font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
ol.wordlist li::before { display: none; }

.levels { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 1.5rem; }
.level { background: var(--paper); border-radius: 4px; box-shadow: var(--sheet-shadow); padding: 1.5rem 1.6rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; }
.level .compass { margin-bottom: .9rem; }
.level h3 { font-size: 1.45rem; margin: 0 0 .2rem; display: flex; flex-wrap: wrap; align-items: center; }
.level p { margin: 0; font-size: 1.0625rem; line-height: 1.45; }
.level .range { font-weight: 700; color: var(--ink-2); font-size: 1rem; margin-bottom: .35rem; }
.dots { display: inline-flex; margin-left: .6rem; }
.dots i { width: .62rem; height: .62rem; border-radius: 50%; border: 2px solid var(--night); margin-right: .22rem; }
.dots i.on { background: var(--night); }
.compass { width: 5.5rem; height: 5.5rem; flex: none; }
@media (max-width: 980px) { .levels { grid-template-columns: minmax(0, 1fr); } .level { max-width: 36rem; } }

/* ---------------------------------------------------------------- formats / buy */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 1.5rem; margin-top: 2.25rem; }
.format { background: var(--paper); border-radius: 4px; box-shadow: var(--sheet-shadow); padding: 1.75rem 1.6rem; display: flex; flex-direction: column; }
.format h3 { margin-bottom: .1rem; }
.price { font-family: var(--display); font-weight: 800; font-size: 2.25rem; line-height: 1.1; margin: .3rem 0 .6rem; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--ink-2); margin-left: .3rem; }
.format p { font-size: 1.0625rem; color: var(--ink-2); flex: 1; }
.format .price { font-size: 2.25rem; color: var(--night); flex: none; }
.format .price small { margin: 0; font-size: 1.125rem; font-weight: 700; }
.format .btn { margin-top: 1rem; width: 100%; }
@media (max-width: 900px) { .formats { grid-template-columns: minmax(0, 1fr); max-width: 32rem; } }

/* gift section */
.gift { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-gap: 3rem; align-items: center; }
@media (max-width: 900px) { .gift { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- free sampler band */
.band-gold { background: var(--gold-soft); }
.fan { position: relative; width: 100%; height: 22rem; max-width: 30rem; margin: 0 auto; }
.fan picture { position: absolute; width: 14.5rem; top: 1rem; }
.fan img { width: 100%; background: var(--paper); border-radius: 3px; box-shadow: 0 16px 30px -14px rgba(24, 40, 63, .55); }
.fan picture:nth-child(1) { left: 0; transform: rotate(-8deg); }
.fan picture:nth-child(2) { left: 24%; top: 0; transform: rotate(-1deg); z-index: 3; }
.fan picture:nth-child(3) { right: 0; transform: rotate(7deg); z-index: 2; }
@media (max-width: 520px) { .fan { height: 15rem; } .fan picture { width: 10rem; } }

/* ---------------------------------------------------------------- page intro (inner pages) */
.intro { padding: 3.5rem 0 2.5rem; }
.crumbs { font-size: 1rem; margin: 0 0 1.25rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.crumbs span { margin: 0 .4rem; }

/* books page */
.shelf { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); grid-gap: 3.5rem; align-items: start; }
.shelf .book { max-width: 20rem; transform: rotate(-2deg); margin-top: .5rem; }
@media (max-width: 820px) { .shelf { grid-template-columns: minmax(0, 1fr); } .shelf .book { max-width: 15rem; } }
.subtitle { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.3; color: var(--ink-2); margin: 0 0 1.25rem; max-width: 34ch; }
.price-line { font-weight: 700; margin-bottom: 1.5rem; }
.next-box { border: 3px dashed var(--rule); border-radius: 18px; padding: 2rem; }

/* faq */
.faq { max-width: 52rem; }
.faq details { border-bottom: 2px solid var(--rule); }
.faq details:first-of-type { border-top: 2px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 3rem 1.15rem 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; margin-top: -1.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--navy); color: var(--cream); font-family: var(--body); font-weight: 700; font-size: 1.5rem; line-height: 2.2rem; text-align: center;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.4rem; }

/* book detail page */
.product { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-gap: 4rem; align-items: start; }
.product .book { max-width: 26rem; margin: .5rem auto 0; transform: rotate(-2deg); }
@media (max-width: 900px) { .product { grid-template-columns: minmax(0, 1fr); grid-gap: 2.5rem; } .product .book { max-width: 17rem; } }
.buy { background: var(--paper); box-shadow: var(--sheet-shadow); border-radius: 4px; padding: .5rem 1.5rem; margin: 1.75rem 0; }
.buy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-gap: .5rem 1.5rem; align-items: center; padding: 1.15rem 0; border-bottom: 2px solid #EFE6D4; }
.buy-row:last-child { border-bottom: 0; }
.buy-row h3 { font-size: 1.35rem; margin: 0; }
.buy-row p { margin: .1rem 0 0; font-size: 1rem; color: var(--ink-2); }
.buy-row .price { font-size: 1.75rem; margin: 0; text-align: right; }
.buy-row .btn { grid-column: 1 / -1; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); grid-gap: .55rem 1.5rem; margin: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); grid-gap: 0; } .facts dd { margin-bottom: .7rem; } }
.cols-2 { columns: 2 20rem; column-gap: 3rem; }
.theme-group { margin-bottom: 2rem; }
.theme-group h3 { display: flex; flex-wrap: wrap; align-items: center; }
.details-table { width: 100%; max-width: 46rem; border-collapse: collapse; font-size: 1.125rem; }
.details-table th, .details-table td { text-align: left; vertical-align: top; padding: .8rem 1rem .8rem 0; border-bottom: 2px solid var(--rule); }
.details-table th { width: 38%; font-weight: 700; }

/* play page */
.play-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; margin-bottom: 1.75rem; }
.play-top h1 { margin-bottom: .2rem; }
.play-meta { margin: 0; font-size: 1.25rem; color: var(--ink-2); }
.play-meta strong { color: var(--night); }
.level-pick { border: 0; padding: 0; margin: 1rem 0 0; }
.level-pick legend { font-weight: 700; font-size: 1rem; margin-bottom: .5rem; padding: 0; }
.level-opts { display: flex; flex-wrap: wrap; margin: -.25rem; }
.level-opt { position: relative; margin: .25rem; }
.level-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.level-opt label {
  display: inline-flex; align-items: center; min-height: 3.25rem; padding: .5rem 1.25rem;
  border: 3px solid var(--navy); border-radius: 999px; font-weight: 700; cursor: pointer; background: var(--paper);
}
.level-opt input:checked + label { background: var(--navy); color: var(--cream); }
.level-opt input:checked + label .dots i { border-color: var(--cream); }
.level-opt input:checked + label .dots i.on { background: var(--cream); }
.level-opt input:focus-visible + label { outline: 4px solid var(--night); outline-offset: 3px; }
.level-opt .done-tick { margin-left: .5rem; font-size: .95rem; color: var(--gold-deep); }
.level-opt input:checked + label .done-tick { color: var(--gold); }
.tools { display: flex; flex-wrap: wrap; margin: -.3rem; }
.tools .btn { margin: .3rem; }
.practice-note { background: var(--paper); border-left: 6px solid var(--gold); padding: .8rem 1rem; border-radius: 4px; margin: 0 0 1.25rem; font-size: 1.0625rem; }
.promo { display: grid; grid-template-columns: 9rem minmax(0, 1fr); grid-gap: 2rem; align-items: center; }
.promo img { width: 9rem; border-radius: 2px 5px 5px 2px; box-shadow: 0 16px 26px -12px rgba(5, 12, 24, .7); }
@media (max-width: 520px) { .promo { grid-template-columns: 6.5rem minmax(0, 1fr); grid-gap: 1.25rem; } .promo img { width: 6.5rem; } }

/* free page */
.dl-box { background: var(--paper); box-shadow: var(--sheet-shadow); border-radius: 4px; padding: 2rem; }
.dl-box .btn { width: 100%; margin-bottom: .9rem; }
.form-row label { display: block; font-weight: 700; margin-bottom: .45rem; }
.form-row input {
  width: 100%; min-height: 3.5rem; padding: .7rem 1rem; border: 3px solid var(--navy); border-radius: 12px;
  font: 400 1.25rem/1.3 var(--body); color: var(--night); background: var(--paper);
}
.form-row input:focus { outline: 4px solid var(--gold); outline-offset: 1px; }
.form-msg { margin: 0 0 1.25rem; font-weight: 700; }
.form-msg:empty { display: none; }
.form-msg.error { color: #9B2C1F; }
.hp { position: absolute; left: -9999px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.5rem 0; }
.steps li { counter-increment: s; position: relative; padding-left: 3.4rem; margin-bottom: 1.25rem; min-height: 2.5rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--navy); color: var(--cream); font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 2.4rem; text-align: center;
}

/* about */
.promise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 1.5rem 3rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.promise li { padding-top: 1rem; border-top: 3px solid var(--gold); }
.promise h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.promise p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .promise { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.85rem; margin-top: 2.25rem; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--night); color: var(--cream); padding: 4rem 0 2.5rem; --focus: var(--gold); }
.site-foot a { color: var(--cream); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); grid-gap: 2.5rem; }
.foot-brand .brand { margin-bottom: 1rem; }
.foot-brand p { color: var(--mist); max-width: 26ch; }
.site-foot h2 { font-family: var(--body); font-weight: 700; font-size: 1.125rem; color: var(--gold); margin: 0 0 .75rem; letter-spacing: .01em; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 0 0 .55rem; overflow-wrap: anywhere; }
.foot-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 247, 232, .16); color: var(--mist); font-size: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; }
.foot-base p { margin: 0 2rem .4rem 0; max-width: none; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.maxw { max-width: 46rem; }
.print-only { display: none; }
noscript p { background: var(--gold-soft); padding: 1rem 1.25rem; border-radius: 12px; }

/* ---------------------------------------------------------------- small phones */
@media (max-width: 420px) {
  .brand { margin-right: .75rem; }
  .brand svg { width: 2.75rem; height: 2.75rem; margin-right: .55rem; }
  .brand-name { font-size: 1.2rem; }
  .menu-btn { flex: none; padding: .4rem 1rem; }
  .spec-large .spec-grid { grid-template-columns: repeat(6, 22pt); grid-auto-rows: 24pt; font-size: 17pt; }
  .spec { padding: 1rem 1.1rem 1.2rem; }
}
/* ---------------------------------------------------------------- print */
@media print {
  @page { margin: .5in; }
  html, html.ts-1, html.ts-2 { font-size: 100%; }
  body { background: #fff; color: #000; font-size: 13pt; }
  .site-head, .site-foot, .skip, .no-print, .lb { display: none !important; }
  .sec, .intro { padding: 0 !important; }
  .print-only { display: block; }
  .ws-play { display: block; }
  .ws-board { max-width: 6.6in; margin: 0 auto .25in; box-shadow: none; border: 2pt solid #000; break-inside: avoid; }
  .ws-marks, .ws-status, .ws-msg, .ws-extra { display: none; }
  .ws-cell { color: #000; }
  .ws-words { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 6.6in; margin: 0 auto; }
  .ws-w.is-found .ws-word { text-decoration: none; color: #000; }
  .ws-w.is-found .ws-box { background: #fff; border-color: #555; }
  .ws-w.is-found .ws-box svg { visibility: hidden; }
  .print-head { text-align: center; margin-bottom: .2in; }
  .print-head h1 { font-size: 26pt; margin: 0; }
  .print-head p { margin: 0 auto; font-size: 12pt; }
}
.linklike { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; cursor: pointer; }
.linklike:hover { text-decoration-color: var(--gold-deep); }
