/* Shared base for every page: fonts, reset, the mock bar, owner notes, word reveals and the still fallback. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/fonts/bricolage-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/fraunces-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/figtree-normal.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cross-page transitions: a cross-fade between pages where the browser supports it, ordinary navigation elsewhere. */
@view-transition { navigation: auto; }
.mockbar { view-transition-name: mockbar; }

/* Word-by-word heading entrance. Pure CSS so the LCP heading paints without waiting for any script. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .w > span { animation: word-up 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both; animation-delay: calc(0.08s + var(--i) * 0.045s); }
}
@keyframes word-up { from { transform: translateY(105%); } to { transform: none; } }

/* Notes for the owner: a small "?" beside anything he needs to supply or confirm. */
.ph {
  display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; margin: 0 0.2em; padding: 0;
  vertical-align: 0.15em; border: 0; border-radius: 50%; background: #f5c400; color: #1a1a1a;
  font: 700 0.75rem/1 system-ui, sans-serif; letter-spacing: 0; text-transform: none; cursor: help; position: relative;
}
.ph::after {
  content: attr(data-note); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 50;
  width: max-content; max-width: min(16rem, 70vw); padding: 0.55rem 0.7rem; border-radius: 8px;
  background: #1a1a1a; color: #fff; font: 500 0.8rem/1.35 system-ui, sans-serif; text-align: left;
  display: none; pointer-events: none; transform: translateX(-50%);
}
.ph:hover::after, .ph:focus-visible::after, .ph:focus::after { display: block; }
@media (max-width: 600px) {
  .ph::after { position: fixed; left: 16px; right: 16px; bottom: 76px; width: auto; max-width: none; transform: none; }
}
.ph-demo { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #f5c400; color: #1a1a1a; font: 700 0.75rem/1 system-ui, sans-serif; }
html.clean .ph { display: none; }

/* The mock bar: the switcher between directions. Not part of the design itself. */
.mockbar {
  position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 100; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(20, 20, 24, 0.86); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 600 13px/1 system-ui, -apple-system, sans-serif; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); white-space: nowrap;
}
.mockbar-label { padding: 0 10px 0 12px; opacity: 0.6; font-weight: 500; }
.mockbar a, .mockbar button { display: block; padding: 9px 12px; border: 0; border-radius: 999px; background: none; text-decoration: none; cursor: pointer; }
.mockbar a[aria-current="page"] { background: #fff; color: #111; }
.mockbar a:hover:not([aria-current]), .mockbar button:hover { background: rgba(255, 255, 255, 0.14); }
.mockbar-notes { margin-left: 4px; color: #f5c400 !important; }
.mockbar-notes[aria-pressed="false"] { color: rgba(255, 255, 255, 0.55) !important; }
@media (max-width: 520px) { .mockbar-long { display: none; } .mockbar-label { display: none; } }

/* Star rating glyphs. */
.stars { display: inline-flex; gap: 1px; vertical-align: -0.1em; }

/* The chooser page at the root. */
.chooser body, html.chooser { background: #f4f2ee; color: #16181d; }
.chooser-main { max-width: 46rem; margin: 0 auto; padding: 56px 16px 80px; font: 400 1.0625rem/1.55 "Instrument Sans", system-ui, sans-serif; }
.chooser-logo { width: 130px; margin-bottom: 40px; }
.chooser h1 { font: 600 clamp(1.9rem, 5vw, 2.6rem)/1.1 "Instrument Sans", system-ui, sans-serif; letter-spacing: -0.02em; }
.chooser-lede { margin-top: 16px; max-width: 36rem; color: #4a4d55; }
.chooser-list { margin-top: 40px; display: grid; gap: 12px; }
.chooser-list a {
  display: grid; grid-template-columns: 3rem 1fr; gap: 2px 16px; padding: 20px; border-radius: 16px; background: #fff;
  text-decoration: none; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); transition: transform 0.2s, box-shadow 0.2s;
}
.chooser-list a:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.chooser-k { grid-row: span 2; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: #2b3a8f; color: #fff; font-weight: 700; font-size: 1.2rem; }
.chooser-list strong { font-size: 1.15rem; }
.chooser-list span:last-child { color: #4a4d55; }
.chooser-foot { margin-top: 40px; font-size: 0.875rem; color: #777; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
