/* PIBRA — reusable core styles. Change these tokens to restyle every component. */
:root {
  --teal: #128c95;
  --teal-dark: #006570;
  --teal-light: #a9e8df;
  --ink: #10394d;
  --cream: #fffbf2;
  --white: #ffffff;
  --apricot: #ffecd2;
  --gold: #f9bf58;
  --sky: #e0f5fb;
  --sage: #e8efdd;
  --sand: #eddcc0;
  --sidebar-width: 238px;
  --radius-card: 26px;
  --radius-control: 14px;
  --shadow-soft: 0 8px 25px rgb(110 77 35 / 5%);
  --page-gutter: clamp(24px, 3.4vw, 58px);
  --header-height: 92px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 32px); }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body-font); font-size: 17px; line-height: 1.5; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
a { color: inherit; }
button, a { touch-action: manipulation; }
a, button, select { outline-offset: 5px; }
:focus-visible { outline: 3px solid var(--teal-dark); }
img { display: block; max-width: 100%; height: auto; }
button { border: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display-font); font-weight: 600; line-height: 1.12; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 20px; background: var(--cream); z-index: 100; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 25px; border-radius: 100px; text-decoration: none; font-weight: 800; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: linear-gradient(170deg, #119ca4, #007c86); box-shadow: 0 5px 10px rgb(0 99 109 / 10%); }
.button-primary:hover { box-shadow: 0 7px 15px rgb(0 99 109 / 18%); }
.button-cream { color: var(--ink); background: var(--cream); min-width: 132px; }
.link-button { background: transparent; padding: 5px 0; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 5px; font-weight: 700; text-align: left; }
.link-button span { display: inline-block; margin-left: 6px; text-decoration: none; }
.text-button { padding: 0; background: transparent; }

/* 01 / Wave header */
.site-header { background: var(--teal); color: var(--white); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 92px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding: 8px 42px; max-width: 1800px; margin: auto; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; text-decoration: none; border-radius: 18px; }
.brand-mascot { display: grid; place-items: center; width: 76px; height: 72px; flex: 0 0 auto; background: var(--cream); border: 2px solid var(--teal-light); border-radius: 48% 52% 46% 54%; box-shadow: 0 3px 0 rgb(0 76 84 / 15%); transform: rotate(-6deg); }
.brand-mascot img { width: 74px; max-width: none; transform: rotate(6deg); }
.wordmark { position: relative; display: inline-flex; align-items: baseline; font-family: var(--font-brand); font-size: 63px; line-height: 1; letter-spacing: -.055em; font-weight: 800; color: var(--cream); text-decoration: none; padding-right: 42px; padding-bottom: 2px; text-shadow: 0 3px 0 rgb(0 76 84 / 15%); }
.logo-letter { display: inline-block; }.logo-letter:nth-child(1) { transform: rotate(-7deg); }.logo-letter:nth-child(2) { transform: translateY(-3px) rotate(3deg); }.logo-letter:nth-child(3) { transform: rotate(-3deg); }.logo-letter:nth-child(4) { transform: translateY(2px) rotate(6deg); }.logo-letter:nth-child(5) { transform: rotate(-3deg); }
.logo-star { position: absolute; color: var(--gold); font-size: 23px; top: -1px; right: 14px; transform: rotate(13deg); }
.logo-trail { position: absolute; color: var(--gold); font-size: 15px; right: 0; bottom: 3px; }
.header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-family: var(--font-navigation); font-size: 21px; font-weight: 600; line-height: var(--navigation-leading); letter-spacing: var(--navigation-tracking); }
.header-actions .button { font-family: var(--font-navigation); font-size: 20px; font-weight: 700; line-height: 1.2; }
.header-nav a { text-decoration: none; }
.header-nav button { color: inherit; }
.header-nav a:hover, .header-nav button:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-wave { position: absolute; bottom: -27px; height: 30px; width: 100%; left: 0; pointer-events: none; }
.wave-top { fill: var(--teal); }.wave-under { fill: var(--teal-light); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; color: white; border-radius: 50%; }
.site-header :focus-visible { outline-color: var(--cream); }

/* 02 / Explorer sidebar */
.page-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); max-width: 1800px; margin: auto; }
.sidebar { border-right: 1px solid var(--sand); background: linear-gradient(100deg, #fff9ed, var(--cream)); position: relative; z-index: 10; }
.sidebar-inner { --sidebar-inset: 15px; padding: 57px var(--sidebar-inset) 35px; position: sticky; top: var(--header-height); }
.sidebar-title { position: relative; font-family: var(--font-navigation); font-size: 29px; font-weight: 800; margin: 0 4px 30px 10px; padding-right: 18px; line-height: var(--navigation-leading); letter-spacing: var(--navigation-tracking); }
.sidebar-title span { position: absolute; right: -4px; top: 4px; color: var(--gold); font-size: 19px; }
.explorer-nav { display: flex; flex-direction: column; gap: 12px; margin-right: calc(-1 * (var(--sidebar-inset) + 12px)); }
.menu-link { width: calc(100% - 13px); margin-left: 13px; min-height: 58px; border: 1px solid #f2ddbb; background: #fffcf6; border-radius: 16px 32px 32px 16px; box-shadow: 3px 3px 7px rgb(97 76 39 / 4%); text-decoration: none; text-align: start; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 55px; font-family: var(--font-navigation); font-size: 18px; font-weight: 600; position: relative; line-height: var(--navigation-leading); letter-spacing: var(--navigation-tracking); transition: background .18s, transform .18s; }
.menu-link:hover { background: #fff0d8; transform: translateX(3px); }
.menu-link.is-active { background: var(--teal-dark); border-color: var(--teal-dark); color: white; }
.menu-badge { position: absolute; left: -16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 59px; height: 59px; border-radius: 50%; border: 3px solid var(--cream); outline: 1px solid #eddbb7; box-shadow: inset 0 -5px 0 rgb(0 64 81 / 4%); color: var(--teal-dark); }
.menu-badge .icon { width: 30px; height: 30px; stroke-width: 1.9; }
.badge-teal { background: #a8e4df; }.badge-sky { background: #bce6f1; }.badge-gold { background: #ffdf98; color: #94611a; }.badge-mint { background: #cce9d8; }.badge-apricot { background: #ffdaa3; color: #a85924; }
.selected-star { color: var(--gold); margin-left: auto; font-size: 18px; }
.menu-link:not(.is-active) .selected-star { visibility: hidden; }
.sidebar-signoff { margin: 63px 25px 0; color: var(--teal-dark); transform: rotate(-5deg); }
.sidebar-signoff > span:first-child { color: var(--gold); font-size: 34px; display: block; text-align: right; margin-bottom: 10px; }
.sidebar-signoff p { font-family: var(--display-font); font-size: 21px; font-weight: 400; }
.signoff-line { display: block; width: 118px; height: 14px; border-bottom: 2px solid #efc67d; border-radius: 50%; margin-top: 3px; }
.menu-backdrop { display: none; }

/* 03 / Hero + language picker */
main { min-width: 0; }
.hero { min-height: 510px; position: relative; display: grid; grid-template-columns: 48% 52%; align-items: center; padding: 57px var(--page-gutter) 53px; isolation: isolate; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(40px, 4.12vw, 68px); line-height: 1.065; letter-spacing: -.025em; margin: 17px -38px 17px 0; }
.hero-description { font-size: clamp(17px, 1.45vw, 21px); max-width: 455px; line-height: 1.5; margin-bottom: 22px; }
.hero-art { position: absolute; z-index: 0; width: 61%; right: 0; top: 15px; bottom: 0; display: flex; align-items: center; overflow: hidden; pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; mask-image: linear-gradient(to right, transparent, black 9%); }
.word-label { position: absolute; right: 8%; bottom: 25%; background: #fffaf0e6; border-radius: 13px; padding: 5px 12px; font-size: 14px; font-weight: 700; }
.language-picker { margin: 0; border: 0; background: white; border-radius: 18px; padding: 12px 16px 15px; box-shadow: var(--shadow-soft); max-width: 378px; }
.picker-title { font-weight: 800; font-size: 13px; margin-bottom: 7px; }
.language-fields { display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); align-items: center; gap: 10px; }
.select-wrap { position: relative; min-width: 0; }.select-wrap .icon { position: absolute; right: 9px; top: 12px; width: 17px; height: 17px; pointer-events: none; }
select { color: var(--ink); background: #fbfaf8; border: 1px solid #dddcd5; border-radius: 9px; min-height: 41px; width: 100%; appearance: none; padding: 8px 30px 8px 11px; font-size: 15px; cursor: pointer; font-weight: 600; }
.language-plus { font-size: 25px; color: var(--teal-dark); text-align: center; font-weight: 800; }
.hero-actions { margin-top: 21px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero-actions .button { padding: 13px 22px; font-size: 16px; }
.hero-actions .link-button { white-space: nowrap; font-size: 15px; }
.hero-wave { position: absolute; width: 100%; height: 35px; bottom: 0; left: 0; fill: #fae8cc; z-index: -1; }

/* 04 / Card family */
.section-pad { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
.discover { padding-top: 12px; padding-bottom: 45px; }
.section-title { font-size: clamp(25px, 2.5vw, 36px); text-align: center; margin-bottom: 22px; letter-spacing: -.015em; }
.section-title > span { color: #f4bb66; font-size: 26px; vertical-align: middle; padding: 0 5px; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.activity-card { display: flex; flex-direction: column; padding: 17px 12px 14px; overflow: hidden; position: relative; border-radius: var(--radius-card); text-align: center; transition: transform .2s, box-shadow .2s; }
.activity-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgb(53 62 46 / 9%); }
.card-sky { background: var(--sky); }.card-apricot { background: var(--apricot); }.card-sage { background: var(--sage); }
.activity-card h3 { font-size: clamp(22px, 2.04vw, 30px); position: relative; z-index: 1; }
.activity-art { display: block; width: calc(100% + 24px); margin: 4px -12px 0; aspect-ratio: 1.57; background-image: url('assets/activities.png'); background-repeat: no-repeat; background-size: 300% auto; mix-blend-mode: multiply; mask-image: linear-gradient(to bottom, transparent, black 12%, black 85%, transparent); }
.art-read { background-position: 0% 50%; }.art-color { background-position: 50% 50%; }.art-play { background-position: 100% 50%; }
.activity-card p { font-size: 16px; line-height: 1.35; margin-top: 1px; }
.card-link { font-size: 13px; font-weight: 800; margin-top: 10px; color: var(--teal-dark); }.card-link > span { margin-left: 5px; }

/* 05 / Parent section */
.parents { background: #fff0db; min-height: 325px; position: relative; isolation: isolate; padding: 40px var(--page-gutter) 27px; display: flex; align-items: center; }
.parents-wave { position: absolute; top: -31px; left: 0; width: 100%; height: 33px; fill: #fff0db; }
.parents-copy { position: relative; z-index: 2; max-width: 59%; }
.parents h2 { font-size: clamp(28px, 2.9vw, 43px); margin: 11px 0 12px; letter-spacing: -.015em; }
.parents-copy > p:not(.eyebrow):not(.brand-line) { font-size: 17px; max-width: 480px; }
.parents .link-button { margin-top: 13px; }
.brand-line { font-family: var(--display-font); font-size: 24px; font-weight: 400; color: var(--teal-dark); margin-top: 30px; transform: rotate(-3deg); transform-origin: left; }
.parents-art { position: absolute; bottom: 0; right: 0; width: 52%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: multiply; mask-image: linear-gradient(to right, transparent, black 23%); z-index: 0; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 25px; padding: 20px var(--page-gutter); border-top: 1px solid #f0e3ce; font-size: 13px; }
.site-footer a { font-family: var(--display-font); font-size: 22px; font-weight: 600; text-decoration: none; color: var(--teal-dark); }.site-footer a span { color: #b67d25; }
.preview-label { margin-left: auto; color: #576b6c; font-size: 12px; }

/* 06 / Small content dialogs and mobile navigation */
dialog { border: 1px solid var(--sand); border-radius: 28px; background: var(--cream); color: var(--ink); width: min(650px, calc(100% - 32px)); padding: 0; max-height: 88dvh; box-shadow: 0 25px 100px rgb(8 44 58 / 22%); }
dialog::backdrop { background: rgb(12 48 57 / 48%); backdrop-filter: blur(4px); }
.dialog-shell { padding: 42px; position: relative; }.dialog-close { position: absolute; top: 15px; right: 15px; background: #e1efea; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
dialog h2 { font-size: 35px; margin: 13px 0 20px; padding-right: 15px; }dialog h3 { font-size: 24px; margin: 22px 0 10px; }dialog p + p { margin-top: 15px; }dialog .button { margin-top: 22px; }dialog ol { padding-left: 24px; }dialog li + li { margin-top: 12px; }
.story-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }.story-pair h3 { margin-top: 0; }.story-language { color: var(--teal-dark); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.sample-note { font-size: 13px; color: #586c6c; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--sand); }
.empty-favorite { background: var(--sky); border-radius: 18px; padding: 22px; }.favorite-entry { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px; background: var(--sky); border-radius: 16px; }
body.dialog-open { overflow: hidden; }
@media (min-width: 1600px) { .hero { min-height: 590px; }.activity-art { aspect-ratio: 1.5; }.parents { min-height: 380px; } }
@media (max-width: 1190px) {
  :root { --sidebar-width: 211px; --page-gutter: 28px; }
  .header-inner { padding-left: 28px; padding-right: 28px; gap: 12px 28px; }
  .sidebar-inner { --sidebar-inset: 10px; }.sidebar-title { font-size: 25px; margin-left: 10px; }
  .menu-link { font-size: 17px; gap: 5px; padding-left: 48px; }.menu-badge { width: 52px; height: 52px; }.menu-badge .icon { width: 27px; height: 27px; }
  .hero { min-height: 480px; grid-template-columns: 54% 46%; padding-top: 47px; }.hero h1 { font-size: 45px; margin-right: -15px; }.hero-art { width: 56%; top: 35px; }.hero-actions { gap: 10px; }.hero-description { font-size: 17px; }
  .hero-actions .button { font-size: 14px; padding: 12px 18px; }.hero-actions .link-button { font-size: 14px; }
  .section-title { font-size: 27px; }.section-title > span { display: none; }.activity-grid { gap: 15px; }.activity-card h3 { font-size: 23px; }.activity-card p { font-size: 14px; }
  .parents h2 { font-size: 33px; }.parents-copy > p:not(.eyebrow):not(.brand-line) { font-size: 16px; }.brand-line { font-size: 21px; }
}
@media (max-width: 900px) {
  :root { --page-gutter: 28px; }
  .page-shell { display: block; }.header-inner { min-height: 80px; }.wordmark { font-size: 47px; }.brand-mascot { width: 62px; height: 60px; }.brand-mascot img { width: 61px; }.header-nav { display: none; }.header-actions { margin-left: auto; }
  .menu-toggle { display: flex; }.header-actions .button { min-width: 0; padding: 10px 19px; }.header-actions .button .icon { display: none; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 272px; z-index: 50; overflow-y: auto; transform: translateX(-105%); transition: transform .22s; box-shadow: 8px 0 40px #173f421a; }
  .sidebar-inner { --sidebar-inset: 21px; padding: 35px var(--sidebar-inset); top: 0; }.explorer-nav { margin-right: 0; }.sidebar-title { font-size: 30px; }.menu-link { font-size: 20px; padding-left: 59px; padding-right: 9px; min-height: 60px; }.menu-badge { width: 61px; height: 61px; }.menu-badge .icon { width: 30px; height: 30px; }.sidebar-signoff { margin-top: 40px; }
  body.menu-open .sidebar { transform: translateX(0); }body.menu-open { overflow: hidden; }.menu-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 40; background: #10394d70; backdrop-filter: blur(2px); }
  .hero { grid-template-columns: 49% 51%; min-height: 485px; }.hero h1 { font-size: 46px; }.hero-art { width: 61%; }.hero-copy .eyebrow { font-size: 11px; }.hero-description { font-size: 18px; }
  .activity-card h3 { font-size: 24px; }.activity-card p { font-size: 16px; }.parents { min-height: 335px; }.parents h2 { font-size: 35px; }
}
@media (max-width: 620px) {
  :root { --page-gutter: 22px; }
  body { font-size: 16px; }.header-inner { padding: 8px 16px; gap: 8px; min-height: 70px; }.brand { gap: 7px; }.brand-mascot { width: 52px; height: 50px; }.brand-mascot img { width: 51px; }.wordmark { font-size: 43px; padding-right: 30px; }.logo-star { font-size: 18px; right: 9px; }.logo-trail { font-size: 12px; }.header-nav { display: none; }.header-actions { margin-left: auto; gap: 4px; }.header-actions .button { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-top: 49px; padding-bottom: 13px; min-height: 0; }.hero h1 { font-size: clamp(38px, 9.2vw, 56px); margin: 14px 0 16px; }.hero-description { max-width: 470px; font-size: 18px; margin-bottom: 20px; }.hero-copy .eyebrow { font-size: 11px; letter-spacing: .14em; }
  .language-picker { max-width: none; padding: 12px 15px; }.picker-title { font-size: 13px; }.language-fields { gap: 6px; }.language-fields select { font-size: 16px; min-height: 44px; }.select-wrap .icon { top: 14px; }
  .hero-actions { margin-top: 19px; gap: 17px; }.hero-actions .button { font-size: 15px; padding: 13px 18px; }.hero-actions .link-button { font-size: 15px; }
  .hero-art { position: relative; width: calc(100% + 44px); margin: -5px -22px -1px; height: auto; aspect-ratio: 1.38; top: auto; bottom: auto; right: auto; }.hero-art img { mask-image: none; object-fit: cover; }.word-label { font-size: 13px; bottom: 28%; }.hero-wave { height: 23px; }
  .discover { padding-top: 24px; padding-bottom: 44px; }.section-title { font-size: 29px; text-wrap: balance; line-height: 1.15; max-width: 400px; margin: 0 auto 24px; }
  .activity-grid { grid-template-columns: 1fr; gap: 18px; }.activity-card { padding: 20px 15px 21px; border-radius: 25px; }.activity-card h3 { font-size: 29px; }.activity-art { width: calc(100% + 30px); margin: 0 -15px; aspect-ratio: 1.6; }.activity-card p { font-size: 17px; }.card-link { font-size: 14px; }
  .parents { display: flex; flex-direction: column; align-items: stretch; padding: 30px 22px 0; }.parents-copy { max-width: 100%; }.parents h2 { font-size: 36px; }.parents-copy > p:not(.eyebrow):not(.brand-line) { font-size: 17px; }.desktop-break { display: none; }.parents .link-button { margin-top: 15px; }.brand-line { font-size: 24px; margin-top: 27px; }
  .parents-art { position: relative; width: calc(100% + 44px); max-width: none; margin: 8px -22px 0; height: auto; aspect-ratio: 1.5; object-fit: cover; mask-image: linear-gradient(to bottom, transparent, black 15%); }.site-footer { padding: 19px 22px; gap: 5px 16px; }.site-footer > span:not(.preview-label) { font-size: 12px; }.preview-label { margin-left: 0; width: 100%; }
  .dialog-shell { padding: 38px 24px 26px; }dialog h2 { font-size: 30px; }.story-pair { grid-template-columns: 1fr; }.story-pair section + section { border-top: 1px solid var(--sand); padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
