@font-face{font-family:Fredoka;src:url('portal-fredoka-400.woff2');font-weight:400;font-display:swap}@font-face{font-family:Fredoka;src:url('portal-fredoka-600.woff2');font-weight:600;font-display:swap}@font-face{font-family:Poppins;src:url('poppins-black-latin.woff2');font-weight:900;font-display:swap}
:root{--navy:#174A7E;--ink:#17324D;scroll-behavior:smooth;scroll-padding-top:20px;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:white;color:var(--ink);font:19px/1.45 Fredoka,system-ui,sans-serif}h1,h2,h3,p{margin:0}h1,h2,h3{color:var(--navy);line-height:1.12;text-wrap:balance}h1,h2{font:900 48px/1.1 Poppins,sans-serif;letter-spacing:-.025em}img{display:block;max-width:100%}a{color:var(--navy);text-underline-offset:.2em}button,select{font:inherit;color:var(--navy)}button,a,select{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--navy);outline-offset:5px}::selection{background:var(--navy);color:white}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}.skip-link{position:absolute;z-index:100;top:8px;left:8px;padding:12px;background:white;transform:translateY(-150%)}.skip-link:focus{transform:none}.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;background:var(--navy);color:white;border:2px solid var(--navy);border-radius:999px;padding:9px 23px;font-weight:600;text-decoration:none;font-size:19px;line-height:1.2;transition:background .18s,transform .18s}.button:hover{background:#10385f;transform:translateY(-2px)}.button.secondary{background:#ffffffe0;color:var(--navy)}.button.secondary:hover{background:white}
.patrick-hero{position:relative;height:clamp(660px,53vw,800px);isolation:isolate;overflow:hidden}.hero-art{position:absolute;inset:0;z-index:-1}.hero-art img{width:100%;height:100%;object-fit:cover;object-position:center 60%}.hero-copy{width:44%;max-width:600px;margin-left:max(5%,calc((100vw - 1280px)/2));padding-top:5.2%}.hero-copy h1{font-size:clamp(50px,5vw,74px);line-height:1.04}.hero-copy>p:not(.hero-date){margin-top:24px;font-size:27px;line-height:1.35}.hero-date{margin-top:20px;font-size:19px;color:var(--navy)}.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px;max-width:500px}
.world-scene{position:relative;background-repeat:no-repeat;background-size:100% 100%;isolation:isolate;scroll-margin-top:0}.workshop{background-image:url('st-patricks/workshop.webp');min-height:66.666vw;display:flex;align-items:center;padding:11% 11.2% 11% 38%}.workshop-content{width:100%}.scene-heading{text-align:center}.scene-heading h2{font-size:clamp(29px,3vw,46px)}.scene-heading p{font-size:clamp(15px,1.3vw,20px);margin-top:10px;color:var(--navy)}.catalog-filters{margin:23px 0 20px}.type-filters{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.type-filters button,.catalog-navigation button{border:1.5px solid var(--navy);background:#fffaf0;border-radius:999px;padding:8px 14px;min-height:44px;font-weight:600;font-size:17px}.type-filters button[aria-pressed=true]{color:white;background:var(--navy)}.level-filter{display:flex;align-items:center;justify-content:center;gap:12px;font-size:16px;margin-top:10px}.level-filter select{padding:6px 12px;border:1px solid var(--navy);background:#fffaf0;border-radius:8px;min-height:44px;font-size:16px}.sheet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;align-items:start}.sheet-card{text-align:center;min-width:0;scroll-margin-top:90px}.sheet-picture{display:block;background:white;box-shadow:0 5px 13px #5031152b;transition:transform .18s}.sheet-picture:hover{transform:rotate(-1deg) translateY(-4px)}.sheet-picture img{width:100%;height:auto;aspect-ratio:17/22;object-fit:contain}.sheet-card h3{font-size:clamp(17px,1.55vw,23px);font-weight:600;line-height:1.16;margin-top:13px;min-height:2.32em}.sheet-meta{font-size:13px;margin:6px 0 12px;color:var(--navy)}.sheet-open{font-size:18px;min-height:44px;padding:7px 26px}.catalog-navigation{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:22px}.catalog-navigation output{font-size:17px;font-weight:600;white-space:nowrap;color:var(--navy)}.catalog-navigation button{font-size:15px;padding:6px 13px}.catalog-navigation button:disabled{opacity:.45;cursor:default}.collection-downloads{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 16px;font-size:14px;margin-top:18px}.collection-downloads a{padding-block:6px}.collection-downloads span{width:100%;text-align:center}.empty-results{text-align:center;padding:45px 10px}
.adventure-heading{text-align:center;padding:42px 20px 26px;background:#f8edce}.adventure-heading h2{font-size:clamp(36px,4vw,56px)}.adventure-heading p{margin-top:12px;font-size:22px}.adventure-doors{background:url('st-patricks/adventure-doors-balanced.webp') center/100% 100% no-repeat;aspect-ratio:3/2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.adventure-door{position:relative;text-align:center;text-decoration:none;display:block;transition:background .2s}.adventure-door:hover{background-color:#fff2b816}.adventure-door h3{position:absolute;left:15%;top:13.5%;width:70%;height:11%;display:flex;align-items:center;justify-content:center;font-size:clamp(18px,2vw,30px);font-weight:600;line-height:1.07}.adventure-door .button{position:absolute;left:12%;bottom:15.8%;width:76%;min-height:49px;font-size:clamp(16px,1.45vw,21px);padding:8px 12px}.door-skill{position:absolute;left:8%;width:84%;bottom:8.5%;font-size:clamp(14px,1.35vw,20px);font-weight:600;background:#fff6dfe8;padding:4px 5px;border-radius:8px}.parent-note{padding:65px max(5%,calc((100vw - 1280px)/2));display:grid;grid-template-columns:1fr 1fr;gap:70px;background:white}.parent-note h2{font-size:34px;max-width:550px;margin-bottom:20px}.parent-note p{font-size:19px;max-width:650px}.parent-note details{margin-top:24px;border-bottom:1px solid #174a7e55;padding-bottom:12px}.parent-note summary{cursor:pointer;padding-block:10px;font-weight:600;color:var(--navy)}.parent-note details p{margin-top:15px}.noscript-note{padding:24px;text-align:center}select{accent-color:var(--navy);caret-color:var(--navy)}
@media(max-width:1100px) and (min-width:701px){.hero-copy{margin-left:5%;width:46%;padding-top:6%}.hero-copy h1{font-size:55px}.hero-copy>p:not(.hero-date){font-size:24px}.hero-actions{max-width:400px;gap:8px}.hero-actions .button{font-size:17px;padding:9px 18px}.workshop{padding:14% 9% 12% 36%;min-height:820px}.scene-heading h2{font-size:32px}.scene-heading p{font-size:16px}.catalog-filters{margin-top:16px}.sheet-grid{gap:12px}.sheet-card h3{font-size:18px}.sheet-meta{font-size:12px}.sheet-open{padding:7px 20px;font-size:17px}.catalog-navigation{gap:9px}.catalog-navigation output{font-size:15px}.catalog-navigation button{font-size:14px}.collection-downloads{font-size:13px}.adventure-door .button{font-size:15px;left:9%;width:82%;min-height:45px}.door-skill{font-size:13px}.parent-note{gap:36px;padding-block:45px}.parent-note h2{font-size:30px}}

img{height:auto}

@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
/* Reviewer batch: viewport composition, real open-page excerpt, native wood signs. */
.patrick-hero{height:min(760px,calc(100svh - 96px));min-height:0;background:#95d8fb}.hero-art img{object-fit:contain;object-position:right bottom}.hero-phrase{display:block}.hero-copy{padding-top:3.5%}.hero-copy h1{font-size:clamp(45px,5vw,68px)}.hero-copy>p:not(.hero-date){font-size:25px;margin-top:18px}.hero-actions{margin-top:22px}
.wood-heading{position:relative;isolation:isolate;display:grid;place-items:center;width:100%;height:clamp(100px,8.5vw,140px);padding:0 10%;color:#174a7e}.wood-heading::before{content:"";position:absolute;z-index:-1;pointer-events:none;left:0;top:50%;width:100%;aspect-ratio:3;background:url('st-patricks/wood-sign.webp') center/contain no-repeat;transform:translateY(-52%)}.scene-heading .wood-heading{font-size:clamp(27px,2.7vw,40px)}.workshop{padding-top:8%;padding-bottom:8%}
.adventure-heading{position:relative;z-index:2;height:190px;padding:28px 20px 12px;background:url('st-patricks/adventure-doors-balanced.webp') center top/100% auto no-repeat}.adventure-heading .wood-heading{width:min(800px,90%);height:110px;margin:auto;font-size:clamp(32px,3.4vw,48px)}.adventure-heading p{margin-top:12px;font-size:20px}
@media(max-height:800px) and (min-width:701px){.hero-copy{padding-top:3%;width:45%}.hero-copy h1{font-size:clamp(43px,4.4vw,60px)}.hero-copy>p:not(.hero-date){font-size:22px;margin-top:16px}.hero-date{margin-top:14px;font-size:17px}.hero-actions{margin-top:18px}.hero-actions .button{font-size:17px;min-height:44px;padding:8px 17px}}
@media(max-height:650px) and (min-width:701px){.hero-art{left:46%;width:54%}.hero-copy{width:52%;margin-left:3%;padding-top:12px;max-width:none}.hero-copy h1{font-size:clamp(30px,3.6vw,44px);line-height:1.02}.hero-copy>p:not(.hero-date){font-size:18px;line-height:1.2;margin-top:10px;max-width:420px}.hero-phrase{display:inline}.hero-date{font-size:14px;margin-top:9px}.hero-actions{gap:6px;margin-top:12px;max-width:none}.hero-actions .button{font-size:15px;padding:8px 12px;min-height:44px}}

@media(min-width:701px){.adventure-heading{height:230px}.adventure-heading .wood-heading{height:150px}}
/* Remaining reviewer items: a single book, safe wood face, no repeated doorway headings. */
.adventure-heading{background-image:url('st-patricks/workshop.webp');background-position:center top;background-size:100% auto;height:230px;padding-top:25px}.adventure-heading .wood-heading{height:154px}.adventure-heading p{position:relative;z-index:3;margin:-47px auto 0;color:#fff6df;font-size:20px;max-width:70%;text-shadow:0 1px 2px #634018}.adventure-heading .wood-heading{padding-bottom:28px}

.adventure-heading p{display:table;background:#fff6df;color:#174a7e;text-shadow:none;border-radius:4px;padding:2px 10px}
main { --meadow-overlap: clamp(32px, 4.6vw, 62px); }
.patrick-hero {
  background: none;
  z-index: 1;
}
.patrick-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('st-patricks/hero-meadow.webp') center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--meadow-overlap)), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--meadow-overlap)), transparent);
}
.patrick-hero + .workshop {
  margin-block-start: calc(-1 * var(--meadow-overlap));
}
.hero-art{inset:auto 1% 2% auto;width:58%;height:92%}.hero-art img{object-fit:contain;object-position:center bottom}.hero-copy{position:relative;z-index:1}
@media(max-height:650px) and (min-width:701px){.hero-art{left:auto;right:1%;bottom:2%;width:48%;height:94%}}


.adventure-heading{background-image:url('st-patricks/adventure-banner.webp');background-size:100% 100%;background-position:center}
@media(max-height:650px) and (min-width:701px){.hero-copy>p:not(.hero-date){display:block;width:fit-content;background:#fff6dff5;padding:7px 10px;border-radius:6px}}
/* Phone scenes follow their content instead of stretching to the window height. */
@media (max-width: 700px) {
  body { font-size: 18px; }
  .patrick-hero {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 18px 12px;
  }
  .patrick-hero::before { background-size: auto 100%; background-position: 30% bottom; }
  .hero-copy { order: 0; width: 100%; max-width: 480px; margin: 0 auto; padding: 0; text-align: center; }
  .hero-copy h1 { font-size: clamp(34px, 8.4vw, 44px); line-height: 1.06; }
  .hero-date { margin-top: 14px; font-size: 15px; line-height: 1.35; }
  .hero-copy > p:not(.hero-date) { max-width: 31ch; margin: 14px auto 0; font-size: 18px; line-height: 1.4; }
  .hero-phrase { display: inline; }
  .hero-actions { justify-content: center; max-width: none; gap: 8px; margin-top: 18px; }
  .hero-actions .button { min-height: 46px; padding: 10px 15px; font-size: 16px; }
  .hero-actions .button:first-child { flex-basis: 100%; max-width: 310px; }
  .hero-art { order: 1; position: relative; z-index: 0; inset: auto; width: min(100%, 440px); height: auto; aspect-ratio: 3 / 2; margin: 16px auto 0; }
  .hero-art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }

  .workshop {
    display: block;
    min-height: 0;
    padding: 32px 20px 38px;
    background-color: #f8edce;
    background-size: auto 100%;
    background-position: 62% top;
  }
  .workshop-content { width: 100%; margin: 0; padding: 0; background: none; border-radius: 0; }
  .wood-heading { height: 120px; padding: 18px 12% 0; line-height: 1.08; }
  .wood-heading::before { height: 160px; aspect-ratio: auto; background-size: 100% 160px; transform: translateY(-50%); }
  .scene-heading .wood-heading { font-size: clamp(24px, 6vw, 30px); }
  .scene-heading p { margin: 4px auto 0; max-width: 30ch; font-size: 16px; line-height: 1.45; }
  .catalog-filters { margin: 20px 0; }
  .type-filters { gap: 7px; }
  .type-filters button { min-height: 44px; padding: 8px 12px; font-size: 15px; }
  .level-filter { flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 16px; }
  .level-filter select { min-height: 44px; padding: 7px 12px; font-size: 16px; }
  .sheet-grid { grid-template-columns: 1fr; width: 100%; max-width: 320px; margin: 0 auto; }
  .sheet-card h3 { min-height: 0; margin-top: 14px; font-size: 22px; line-height: 1.18; }
  .sheet-meta { margin: 8px 0 12px; font-size: 15px; }
  .sheet-open { min-height: 46px; padding: 10px 28px; font-size: 18px; }
  .catalog-navigation { flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 14px 8px 0; background: #fff6df; border-radius: 12px 12px 0 0; }
  .catalog-navigation output { order: -1; flex-basis: 100%; text-align: center; font-size: 16px; }
  .catalog-navigation button { min-height: 44px; padding: 8px 16px; font-size: 16px; }
  .collection-downloads { gap: 2px 16px; margin-top: 0; padding: 14px 8px; background: #fff6df; border-radius: 0 0 12px 12px; font-size: 15px; }
  .collection-downloads a { display: inline-flex; align-items: center; min-height: 44px; }
  .story-feature { display: flex; flex-direction: column; }

  .adventure-heading { height: auto; min-height: 190px; padding: 22px 16px 26px; background-size: cover; }
  .adventure-heading .wood-heading { width: 100%; height: 124px; padding: 12px 10% 24px; font-size: clamp(24px, 5.8vw, 30px); }
  .adventure-heading p { max-width: 88%; margin: -19px auto 0; font-size: 16px; line-height: 1.35; }
  .adventure-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); aspect-ratio: auto; background: #f8edce; }
  .adventure-door { display: grid; justify-items: center; align-content: start; gap: 4px; padding-bottom: 12px; }
  /* Each 384 px strip keeps its scale. Only the paving below the arch is cropped. */
  .adventure-door::before {
    content: '';
    width: 100%;
    aspect-ratio: 384 / 875;
    background: url('st-patricks/adventure-doors-balanced.webp') var(--door-offset, 0%) top / 400% auto no-repeat;
  }
  .door-1 { --door-offset: 33.333333%; }
  .door-2 { --door-offset: 66.666667%; }
  .door-3 { --door-offset: 100%; }
  .adventure-door h3 {
    top: 0;
    left: 14%;
    width: 72%;
    height: auto;
    aspect-ratio: 3.25;
    margin-top: 41%;
    font-size: clamp(14px, 3.65vw, 23px);
    text-wrap: balance;
  }
  .adventure-door .button { position: static; width: auto; max-width: calc(100% - 12px); min-height: 44px; font-size: clamp(14px, 3.6vw, 19px); }
  .door-skill { position: static; width: auto; max-width: calc(100% - 12px); padding: 4px 0; background: none; font-size: clamp(13px, 3vw, 16px); line-height: 1.15; }
  .parent-note { grid-template-columns: 1fr; padding: 36px 22px; gap: 24px; }
  .parent-note h2 { font-size: 29px; }
  .parent-note p { font-size: 18px; }
}
/* Physical book previews and actual covers share one reading room. */
.reading-nook {
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 48px 6% 64px 25%;
  background: #f8edce url('st-patricks/reading-room.webp') center / 100% 100% no-repeat;
}
.reading-heading { order: 0; position: static; width: 100%; text-align: center; }
.reading-heading .wood-heading { width: min(600px, 100%); height: 126px; margin: auto; font-size: clamp(32px, 3.2vw, 48px); }
.reading-heading p { margin-top: 10px; font-size: 20px; line-height: 1.4; }
.story-feature { display: contents; }
.story-spread { order: 3; position: relative; display: block; width: min(700px, 100%); height: auto; margin: 0 auto; text-decoration: none; }
.spread-art { position: static; display: block; width: 100%; height: auto; clip-path: none; object-fit: contain; }
.spread-quote { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.spread-quote::before, .spread-quote::after { content: none; }
.story-copy { order: 1; position: static; width: 100%; margin: 0; padding: 0; text-align: center; }
.story-copy h3 { font: 900 clamp(25px, 2.4vw, 38px)/1.14 Poppins, sans-serif; letter-spacing: -.02em; }
.story-copy > p { margin-top: 12px; font-size: 19px; line-height: 1.4; }
.story-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.story-actions .button { min-height: 46px; padding: 10px 18px; font-size: 17px; }
.story-copy audio { display: block; width: 100%; height: 44px; margin-top: 16px; }
.story-copy audio:not([data-started]) { display: none; }
.book-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; margin-top: 10px; font-size: 15px; }
.book-downloads a { display: inline-flex; align-items: center; min-height: 44px; }
.audio-status { margin-top: 8px; font-size: 15px; line-height: 1.4; }
.audio-status:empty { display: none; }
.story-choices { order: 2; position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; width: min(800px, 100%); gap: 20px; margin: 0 auto; }
.story-choices button { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 0; border: 0; background: none; text-align: center; }
.story-choices button img { display: block; width: 100%; height: auto; aspect-ratio: 22/17; border: 3px solid #e3bc70; border-radius: 4px; box-shadow: 0 5px 9px #50311535; object-fit: contain; }
.story-choices button[aria-pressed=true] img { outline: 3px solid var(--navy); outline-offset: 4px; }
.story-choices span { display: block; margin-top: 12px; color: var(--navy); font-size: 16px; font-weight: 600; line-height: 1.25; text-shadow: none; }

@media (max-width: 1100px) and (min-width: 701px) {
  .reading-nook { padding: 36px 5% 56px 25%; gap: 22px; }
  
  
  .story-spread { width: min(620px, 100%); }
  .story-actions, .book-downloads { justify-content: center; }
  .story-copy h3 { font-size: 30px; }
  .story-choices { gap: 14px; }
  .story-choices span { font-size: 15px; }
}

.door-3::after {
  content: '';
  position: absolute;
  inset: 31.2% 11.2% 20.5% 10%;
  border-radius: 50% 50% 7% 7% / 32% 32% 12% 12%;
  background: #0e302d url('../adventures/lantern-mirror/assets/door.webp') center 55% / cover no-repeat;
  box-shadow: inset 0 0 12px #2c210fb8;
  pointer-events: none;
}
.door-3 > * { z-index: 1; }

@media (max-width: 700px) {
  .door-3::after {
    inset: 0 auto auto 10%;
    width: 78.8%;
    margin-top: 83.2%;
    aspect-ratio: 303 / 494;
  }
}

@media (max-width: 700px) {
  .reading-nook { padding: 24px 24px 38px; gap: 22px; background-image: url('st-patricks/reading-room-mobile.webp'); }
  .reading-heading .wood-heading { width: 100%; height: 120px; font-size: clamp(27px, 7vw, 35px); }
  .reading-heading p { max-width: 70%; margin: 4px 0 0 auto; font-size: 18px; }
  
  
  .story-copy h3 { font-size: 27px; }
  .story-copy > p { margin-top: 10px; font-size: 18px; }
  .story-actions, .book-downloads { justify-content: center; }
  .story-actions { margin-top: 16px; }
  .story-actions .button { min-height: 46px; padding: 10px 16px; font-size: 17px; }
  .story-spread { width: calc(100% + 20px); max-width: none; margin: 0 -10px; }
  .story-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; margin-top: 0; }
  .story-choices span { margin-top: 10px; font-size: 16px; }
}
