

:root {
  --pra-accent: #FF4F55;
  --pra-hairline: #F0F0F0;
  --pra-header-h: 70px;
  --pra-ink: #0E0E10;
  --pra-muted: #6B6B72;
  --pra-line: #E8E8EA;
  /* The rest of the design system's tokens. They were only ever declared
     inside fragments, where cssns rewrites :root to #sec-<id>, so anything in
     the shell that reached for --pra-bg or --pra-red got nothing: the Free
     Library panel came out transparent over the hero. A fragment that declares
     its own value still wins inside its own section, because #sec-<id> is the
     more specific selector. */
  --pra-bg: #FFFFFF;
  --pra-red: #EC3B3D;
  --pra-green: #3DC574;
  --pra-soft: #F6F6F7;
  --pra-r-card: 22px;
  --pra-r-pill: 999px;
  --pra-r-input: 12px;
  --pra-font-sans: 'Onest', system-ui, -apple-system, sans-serif;
  --pra-font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --pra-sys: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--pra-ink);
  font-family: var(--pra-font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Anchor targets clear the sticky header (replaces the pra:scrollTo messaging). */
[id] { scroll-margin-top: calc(var(--pra-header-h) + 12px); }

/* Ported global.css — chrome only, see note above. */
.pra-shell h1, .pra-shell h2, .pra-shell h3, .pra-shell p { font-family: var(--pra-sys); }
.pra-shell h1 { font-weight: 800; line-height: 1.07; letter-spacing: -1.0px; }
.pra-shell .banner-content .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--pra-accent); margin-bottom: 18px;
}
.pra-shell input, .pra-shell select, .pra-shell textarea {
  height: 56px; padding: 16px; font-size: 16px; box-sizing: border-box;
}
.pra-shell textarea { height: auto; }

/* Each inlined fragment lives in its own box; nothing leaks between them. */
.pra-frag { position: relative; }

/* ===================== HEADER / NAV ===================== */
.pra-header {
  position: sticky; top: 0; z-index: 900;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
  /* The header floats over the hero rather than pushing it down, the way the
     Wix header did over the hero iframe. Without this the header ate 70px of
     the first screen on every page. */
  margin-bottom: calc(-1 * var(--pra-header-h));
}
.pra-scrolled .pra-header {
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--pra-hairline);
}
/* The bar is transparent until you scroll, which is right over a hero and
   wrong above an open 400px white panel. So opening the panel, and only that,
   makes the bar solid. */
.pra-header.pra-lib-open {
  background: #FFFFFF;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.pra-header-inner {
  display: flex; align-items: center; gap: 18px;
  height: var(--pra-header-h);
  padding: 0 29px;
}
.pra-skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: #fff; color: var(--pra-ink); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.pra-skip:focus { left: 0; }

.pra-logo { display: inline-flex; flex-direction: column; align-items: flex-start;
  gap: 0; flex: none; text-decoration: none; --pra-logo-h: 36px; }
.pra-logo img { height: var(--pra-logo-h); width: auto; display: block; }
/* The founding line under the wordmark. It starts at the P of the wordmark,
   not at the candles: logo-header.png is 333x94 and the wordmark's first ink
   column is x=130, so the indent is height * (333/94) * (130/333), which is
   height * 1.383. The negative margin-top tucks it under the baseline, the
   wordmark's ink stops at row 71 of 94, so 23.4% of the rendered height below
   it is empty space inside the image; reclaim that and leave 2px. Both offsets
   follow --pra-logo-h, so every breakpoint moves one number and the line can
   never drift out of alignment. The font stack is written out rather than
   var(--pra-font-mono) so the line survives inside a scoped fragment. */
.pra-since {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 7px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: #9B9BA0; line-height: 1; white-space: nowrap;
  margin-left: calc(var(--pra-logo-h) * 1.383);
  margin-top: calc(var(--pra-logo-h) * -0.234 + 2px);
}

.topnav { display: flex; align-items: center; flex: 1; min-width: 0; }
.nav-panel { display: flex; align-items: center; }
.nav-group { display: inline-flex; align-items: center; gap: 2px; }
.nav-div { width: 1px; height: 18px; background: var(--pra-line); margin: 0 14px; flex: none; }
.navlink {
  position: relative; display: inline-flex; align-items: center;
  padding: 10px 13px; font-size: 15.5px; font-weight: 500;
  color: var(--pra-ink); text-decoration: none; white-space: nowrap;
  transition: color .15s ease;
}
.navlink::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--pra-ink); transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.navlink:hover::after, .navlink:focus-visible::after { transform: scaleX(1); }
.navlink:focus-visible { outline: 2px solid #EC3B3D; outline-offset: 2px; }
.navlink[aria-current="page"] { font-weight: 600; }
.navlink[aria-current="page"]::after { transform: scaleX(1); }

/* The Free Library trigger. A real <button>, because it opens a panel rather
   than going anywhere, so a screen reader and the keyboard both get the truth. */
.lib-btn {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: inherit; gap: 7px; color: var(--pra-muted);
}
.lib-btn:hover, .pra-lib-open .lib-btn { color: var(--pra-ink); }
.lib-btn svg { width: 11px; height: 11px; transition: transform .2s ease; }
.pra-lib-open .lib-btn svg { transform: rotate(180deg); }
.pra-lib-open .lib-btn::after { transform: scaleX(1); }

/* ---- the mega panel ---- */
.pra-lib {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--pra-bg, #FFFFFF); border-bottom: 1px solid var(--pra-line);
  box-shadow: 0 16px 40px rgba(14,14,16,.06);
  display: none;
}
.pra-header.pra-lib-open .pra-lib { display: block; }
.pra-lib-in {
  max-width: 1512px; margin: 0 auto; padding: 24px 29px 28px;
  display: flex; gap: 40px; align-items: flex-start;
}
.pra-lib-books { flex: 0 0 364px; display: flex; flex-direction: column; gap: 12px; }
.pra-lib-eyebrow {
  font-family: var(--pra-font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--pra-muted);
}
.pra-lib-covers { display: flex; gap: 14px; }
.pra-lib-book {
  display: flex; flex-direction: column; gap: 7px; width: 112px;
  text-decoration: none; color: var(--pra-ink);
}
.pra-lib-book img {
  display: block; width: 100%; height: auto; border-radius: 10px;
  border: 1px solid var(--pra-line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pra-lib-book:hover img { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(14,14,16,.14); }
.pra-lib-book .lang {
  font-family: var(--pra-font-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--pra-red);
}
.pra-lib-book .ttl { font-size: 12px; font-weight: 600; line-height: 1.25; }
.pra-lib-book:focus-visible { outline: 2px solid #EC3B3D; outline-offset: 4px; border-radius: 12px; }

.pra-lib-grid {
  flex: 1 1 auto; min-width: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  /* equal rows, so six cards read as one set of six buttons rather than two
     rows of different heights. A two line title no longer makes its card
     taller than the one beside it. */
  grid-auto-rows: 1fr;
}
/* Soft fill, not white. Six white cards on a white sheet read as empty space
   with lines around it; the fill is what makes them look like something you
   can press. Hover lifts them to white, which is the press in reverse. */
.pra-lib-card {
  border: 1px solid var(--pra-line); border-radius: 16px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: var(--pra-ink); background: var(--pra-soft, #F6F6F7);
  transition: background .15s ease, border-color .15s ease, transform .15s ease,
              box-shadow .15s ease;
}
.pra-lib-card:hover { background: var(--pra-bg, #FFFFFF); border-color: #D4D4D9;
  transform: translateY(-2px); box-shadow: 0 8px 22px rgba(14,14,16,.06); }
.pra-lib-card:focus-visible { outline: 2px solid #EC3B3D; outline-offset: 2px; }
/* figure left, mark right, on one line, so every title starts at the same
   height whatever the card says. */
.pra-lib-card .hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; min-height: 30px;
}
.pra-lib-card .n {
  font-family: var(--pra-font-mono); font-size: 17px; font-weight: 500;
  letter-spacing: -.01em; line-height: 1;
}
/* the mark sits in a tile of its own, so the card has one thing on it that is
   not type. The tile is the inverse of the card: white on the soft fill, soft
   on the white hover state. */
.pra-lib-card .ic {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--pra-bg, #FFFFFF); border: 1px solid var(--pra-line);
  color: var(--pra-muted);
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.pra-lib-card .ic svg { width: 17px; height: 17px; display: block; }
.pra-lib-card:hover .ic, .pra-lib-card:focus-visible .ic {
  color: var(--pra-ink); background: var(--pra-soft, #F6F6F7); border-color: #DEDEE2;
}
/* on the ink card the mark is white, hover included: the hover rules above
   would otherwise paint it near-black on a near-black card. */
.pra-lib-card.is-ink .ic, .pra-lib-card.is-ink:hover .ic {
  color: #FFFFFF; background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22);
}
.pra-lib-card .t { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.pra-lib-card .d { font-size: 12px; line-height: 1.4; color: var(--pra-muted); }
.pra-lib-card.is-ink { background: var(--pra-ink); border-color: var(--pra-ink); color: #FFFFFF; }
.pra-lib-card.is-ink .d { color: rgba(255,255,255,.62); }
.pra-lib-card.is-ink:hover { background: #000000; border-color: #000000; }
.pra-lib-card .go { display: inline-flex; align-items: center; gap: 6px; }
.pra-lib-card .go svg { width: 13px; height: 13px; flex: none; }

/* "Member login" and the waitlist pill. */
/* Account avatar - member area, left of the CTA. */
.pra-account {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--pra-soft); border: 1px solid var(--pra-line);
  color: var(--pra-muted); text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pra-account:hover { background: #EFEFF1; color: var(--pra-ink); border-color: #D9D9DD; }
.pra-account:focus-visible { outline: 2px solid #EC3B3D; outline-offset: 2px; }
.pra-account svg { width: 18px; height: 18px; display: block; }
.pra-cta {
  flex: none; display: inline-flex; align-items: center; height: 44px;
  padding: 0 22px; border-radius: 999px;
  background: var(--pra-ink); color: #FFFFFF; text-decoration: none;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background .15s ease, transform .1s ease;
}
.pra-cta:hover { background: #000000; }
.pra-cta:active { transform: scale(.98); }
.pra-cta:focus-visible { outline: 2px solid #EC3B3D; outline-offset: 2px; }

/* Hamburger - hidden on desktop, no JS width detection anywhere. */
.nav-toggle {
  display: none; order: 3;
  width: 40px; height: 40px; padding: 0;
  background: none; border: 0; cursor: pointer; border-radius: 10px;
  align-items: center; justify-content: center; flex: none;
}
.nav-toggle:focus-visible { outline: 2px solid #EC3B3D; outline-offset: 2px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--pra-ink); position: relative; transition: background .15s ease; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--pra-ink); transition: transform .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.pra-nav-open .nav-toggle span { background: transparent; }
.pra-nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.pra-nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1400px) {
  .pra-header-inner { padding: 0 18px; gap: 14px; }
  .navlink { padding: 10px 11px; font-size: 15px; }
  .navlink::after { left: 11px; right: 11px; }
  .nav-div { margin: 0 10px; }
  .pra-logo { --pra-logo-h: 32px; }
  .pra-lib-in { gap: 30px; padding: 22px 18px 26px; }
  .pra-lib-books { flex-basis: 318px; }
  .pra-lib-book { width: 97px; }
}
@media (max-width: 1180px) {
  /* One more notch of tightening before the hamburger. Four links and the
     Free Library trigger run about 80px wider in German and Spanish than in
     English, which is enough to reach the avatar in the band just above the
     1040px collapse. This buys ~70px and costs English nothing it will miss. */
  .pra-header-inner { gap: 10px; }
  .navlink { padding: 10px 8px; font-size: 14px; }
  .navlink::after { left: 8px; right: 8px; }
  .nav-div { margin: 0 8px; }
  .pra-lib-books { flex-basis: 276px; }
  .pra-lib-book { width: 83px; }
  .pra-lib-grid { gap: 9px; }
  .pra-lib-card { padding: 12px 14px; }
}
/* Below here the nav collapses behind the hamburger. The mega panel stops
   being a panel and becomes a section of the dropdown: same markup, same
   links, no covers, because two book jackets in a phone menu are decoration
   nobody scrolled for. */
@media (max-width: 1040px) {
  .pra-header { background: rgba(255,255,255,.95); border-bottom-color: var(--pra-hairline);
                margin-bottom: 0; }
  .pra-header-inner { flex-wrap: wrap; height: auto; min-height: var(--pra-header-h); padding: 10px 16px; }
  .pra-logo { margin-right: auto; --pra-logo-h: 30px; }
  .nav-toggle { display: inline-flex; }
  .topnav { order: 4; flex-basis: 100%; }
  .nav-panel {
    display: none; width: 100%;
    flex-direction: column; align-items: stretch; padding: 4px 0 10px;
  }
  .pra-nav-open .nav-panel { display: flex; }
  .nav-group { flex-direction: column; align-items: stretch; gap: 0; }
  .navlink { padding: 13px 6px; font-size: 16px; }
  .navlink::after { left: 6px; right: auto; width: 22px; bottom: 8px; }
  .nav-div { width: 100%; height: 1px; margin: 8px 0; }
  .lib-btn { justify-content: space-between; color: var(--pra-ink); }

  .pra-lib { position: static; display: none; box-shadow: none; border-bottom: 0;
             border-top: 1px solid var(--pra-line); margin-top: 8px; }
  .pra-header.pra-lib-open .pra-lib { display: none; }
  .pra-nav-open .pra-header.pra-lib-open .pra-lib { display: block; }
  .pra-lib-in { display: block; padding: 14px 0 6px; }
  .pra-lib-books { display: none; }
  .pra-lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pra-lib-card { padding: 14px 16px; border-radius: 16px; }
  .pra-lib-card .n { font-size: 17px; }
  .pra-lib-card .d { display: none; }
}
@media (max-width: 510px) {
  .pra-header-inner { padding: 8px 14px; gap: 10px; }
  .pra-logo { --pra-logo-h: 27px; }
  .pra-account { width: 30px; height: 30px; }
  .pra-cta { height: 40px; padding: 0 16px; font-size: 14px; }
  .pra-lib-grid { grid-template-columns: minmax(0, 1fr); }
  .pra-lib-card .d { display: block; }
}

/* ===================== HOMEPAGE HERO STAGE ===================== */
/* The Wix homepage layered a sticky 559x704 waitlist panel over the
   full-bleed geo hero. Same result here with one relative stage and one
   position:sticky column — no absolute positioning, no JS. */
.pra-hero-stage { position: relative; }
.pra-hero-stage .pra-hero-bg { position: relative; z-index: 0; }
.pra-hero-rail {
  position: absolute; inset: 0; z-index: 51; pointer-events: none;
}
.pra-hero-rail-inner {
  position: sticky; top: 0;
  width: min(559px, 46vw); max-width: 100%;
  margin-left: max(24px, calc((100vw - 1512px) / 2 + 80px));
  padding-top: 159px;
  pointer-events: auto;
}
@media (max-width: 1000px) {
  .pra-hero-rail-inner { width: min(520px, 70vw); margin-left: 24px; padding-top: 20px; }
}
@media (max-width: 950px) {
  .pra-hero-stage { display: flex; flex-direction: column; }
  .pra-hero-rail { position: static; order: -1; }
  .pra-hero-rail-inner { position: static; width: auto; margin: 0; padding-top: 8px; }
}

