@font-face {
  font-family: "Lilita One";
  src: url("/assets/lilita-one.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --display: "Lilita One", Rubik, sans-serif;
  --cobalt: #276db0;
  --indigo: #2e3581;
  --lavender: #c5a8d0;
  --notepaper: #f5f2e8;
  --yellow: #dce545;
  --powder: #b4cce4;
  --scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 78'%3E%3Cpath d='M3 70C16 48 31 49 49 56c28 10 39-5 31-20-10-19-29-13-25 3 4 18 32 18 48 6 14-10 24-25 30-39M119 12l15-7 2 17' fill='none' stroke='%23151420' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.journal h1, .journal h2, .guide-page h1, .guide-page h2, .reading-desk h1,
.reading-desk h2, .home-routes h2, .route-card h3, .story-banner h1, .desk-card h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.015em;
  -webkit-text-stroke: 0;
}
.journal-cover, .journal-note-head, .guide-banner, .desk-hero {
  position: relative; isolation: isolate; overflow: hidden; border: 0;
}
.journal-cover { background: var(--cobalt); color: #fff9ed; }
.journal-cover-inner { grid-template-columns: 1.1fr 1fr; gap: 2%; padding-block: clamp(1.4rem,3.2vw,3.2rem); }
.cover-copy { position: relative; z-index: 1; }
.journal-cover h1 { margin: .65rem 0 1.05rem; font-size: clamp(4.2rem,7.7vw,8.9rem); line-height: .88; letter-spacing: -.028em; }
.journal-cover h1 span, .journal-cover h1 em { display: block; text-transform: uppercase; }
.journal-cover h1 em { color: var(--yellow); font-style: normal; }
.journal-cover .guide-intro { max-width: 43ch; font-size: clamp(1rem,1.3vw,1.16rem); }
.journal-cover .crumb a { text-underline-offset: .19em; }
.cover-founders { position: relative; display: flex; align-items: center; justify-content: center; isolation: isolate; padding: .6rem 1rem .4rem; }
.cover-founders img { width: 40%; max-width: 14.8rem; height: auto; border: clamp(3px,.35vw,6px) solid #fff6e6; box-shadow: .24rem .32rem #161524; }
.cover-sary { transform: translateY(-3%) rotate(-9deg); z-index: 1; }
.cover-jime { transform: translateY(5%) rotate(8deg); margin-left: -.25rem; }
.cover-petal { position: absolute; width: 106%; aspect-ratio: 1.2; background: var(--lavender); mask: var(--flower) center / 100% 100% no-repeat; z-index: -1; transform: rotate(-11deg); }
.cover-founders::after { content: ""; position: absolute; width: 16%; aspect-ratio: 1.8; right: 1%; bottom: 2%; background: var(--scribble) center / contain no-repeat; transform: rotate(-25deg); }
.journal-entries { padding-block: clamp(1.2rem,2.3vw,2.4rem) clamp(2.5rem,4vw,4rem); }
.journal-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,2.1vw,2rem); }
.journal-list li:first-child, .journal-list li:last-child:nth-child(even) { grid-column: auto; }
.poster-song, .zone-coaches, .desk-hero.shade-coach { --stock: #c7add2; --petal: #926bae; --letter: #212159; }
.poster-paper, .zone-workshops, .desk-hero.shade-workshops { --stock: #b5cde4; --petal: #e0e84f; --letter: #203767; }
.poster-bench, .zone-example, .desk-hero.shade-everyday { --stock: #e0e750; --petal: #f6f2d5; --letter: #282657; }
.poster-pencil, .zone-resources, .desk-hero.shade-school { --stock: #2b70b1; --petal: #4e89c3; --letter: #fff8e4; }
.poster-sound, .zone-reports, .desk-hero.shade-reports { --stock: #f4f1e7; --petal: #c8b0d7; --letter: #292f77; }
.poster-pocket, .desk-portal { --stock: #b7cde5; --petal: #dce649; --letter: #1d214e; }
.journal-list li:nth-child(n) .journal-card {
  display: block; overflow: hidden; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: var(--ink); transition: transform .15s ease;
}
.journal-card .tile-poster {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1 / 1.13;
  background: var(--stock); color: var(--letter); border: 1.5px solid #252349;
  padding: clamp(1.1rem,2vw,2rem); display: flex; align-items: flex-start; flex-direction: column;
}
.tile-poster::after { content: ""; position: absolute; inset: auto -14% -28% auto; width: 110%; height: 75%; mask: var(--flower) center / 100% 100% no-repeat; background: var(--petal); z-index: -1; transform: rotate(12deg); }
.poster-paper .tile-poster::after, .poster-pocket .tile-poster::after { left: -32%; bottom: -13%; transform: rotate(-24deg); }
.poster-pencil .tile-poster::after { left: -31%; }
.journal .journal-topic { display: inline-block; background: var(--notepaper); color: #222253; font-size: clamp(.86rem,1vw,1rem); font-weight: 700; line-height: 1.3; padding: .24rem .65rem; align-self: flex-start; transform: rotate(-2deg); }
.journal .journal-card h2 { position: relative; z-index: 1; font-size: clamp(1.8rem,3.05vw,3.65rem); line-height: .99; text-transform: uppercase; margin: .66rem 0 0; max-width: 15ch; text-wrap: balance; }
.journal .tile-caption { background: var(--paper); padding: .65rem .05rem 0; max-width: 44ch; line-height: 1.45; }
.journal-card:hover, .journal-card:focus-visible { transform: translateY(-3px); }
.journal-card:hover h2, .journal-card:focus-visible h2 { text-decoration-thickness: .045em; }
.poster-art { position: relative; isolation: isolate; display: grid; place-items: center; min-width: 0; }
.poster-sticker { display: block; width: 100%; height: auto; object-fit: contain; }
.poster-art::before { content: ""; position: absolute; z-index: -1; width: 115%; aspect-ratio: 1; background: var(--petal); mask: var(--flower) center / contain no-repeat; transform: rotate(-15deg); }
.tile-poster .poster-art { flex: 1; align-self: stretch; min-height: 0; }
.tile-poster .poster-sticker { position: absolute; height: 110%; width: 90%; max-width: 100%; bottom: -8%; right: 0; transform: rotate(-4deg); }
.poster-paper .tile-poster .poster-sticker { right: 6%; transform: rotate(3deg); }
.poster-bench .tile-poster .poster-sticker { height: 115%; width: 95%; }
.poster-pencil .tile-poster .poster-sticker { right: 6%; height: 106%; transform: rotate(8deg); }
.tile-poster .poster-art::before { display: none; }
.poster-spread, .guide-banner .banner-inside { display: grid; grid-template-columns: minmax(0,1.47fr) minmax(0,.8fr); gap: clamp(1rem,5vw,5.5rem); align-items: center; }
.journal-note-head, .guide-banner, .desk-hero, .desk-hero[class*=shade-] { color: var(--letter,#252760); background: var(--stock,var(--powder)); }
.desk-hero::after { display: none; }
.journal-note-head { padding-block: 0; }
.poster-spread, .guide-banner .banner-inside { padding-block: clamp(1.6rem,3.9vw,4rem); }
.poster-spread .poster-art, .banner-inside .poster-art { justify-self: center; width: min(100%, 21.5rem); }
.poster-spread .poster-sticker, .banner-inside .poster-sticker { width: 93%; transform: rotate(3deg); }
.poster-spread .poster-art::after, .banner-inside .poster-art::after { content: ""; position: absolute; background: var(--scribble) center / contain no-repeat; width: 28%; aspect-ratio: 1.7; right: -6%; bottom: 0; transform: rotate(-30deg); }
.journal-note-head h1, .guide-banner h1, .desk-hero h1 { font-size: clamp(2.65rem,5vw,6rem); text-transform: uppercase; max-width: 20ch; line-height: .98; margin: .75rem 0; }
.journal-note-head .journal-topic { margin-top: 1rem; }
.guide-banner .guide-intro, .desk-hero .parent-question { font-size: clamp(1rem,1.42vw,1.2rem); line-height: 1.5; }
.desk-hero { padding: 0; }
.desk-time { color: #212152; }
.journal-text { max-width: 46rem; }
.journal-text > p:first-child::first-letter { float: left; font-family: var(--display); color: var(--indigo); font-size: 3.6em; line-height: .81; padding: .05em .08em .02em 0; }
.journal-tip, .paper-note, .chapter-index, .say, .pause-note {
  background: #f0e6f2; border: 0; border-left: .35rem solid var(--indigo); border-radius: 0;
}
.journal-tip { position: relative; background: #eff09e; padding: 1.25rem 1.5rem; margin-block: 2rem; }
.journal-tip::before, .chapter-index::before { content: ""; position: absolute; left: 1.4rem; top: -.43rem; height: .72rem; width: 3.6rem; background: #c5a6d7; transform: rotate(-4deg); }
.journal-tip h2, .journal-links h2 { font-size: 1.55rem; color: var(--indigo); }
.chapter-index { position: relative; background: #c1d6e9; box-shadow: 3px 4px #aaa8be; }
.chapter-index h2, .chapter h2, .desk-section h2, .desk-strip h2, .desk-group h2 { color: var(--indigo); }
.chapter table, .desk-card, .desk-lede > div { border-radius: 0; }
.case-page .desk-lede > div { border: 0; border-top: .35rem solid var(--indigo); background: #dce5ef; }
.case-page .desk-lede > div:nth-child(2) { background: #ecdeed; }
.desk-card { border-width: 0 0 2px; border-color: var(--indigo); box-shadow: none; background: transparent; }
.desk-card h3 { color: var(--indigo); font-size: 1.4rem; line-height: 1.16; }
.desk-card h3 a { text-decoration-thickness: 1px; }
.desk-group { --line:var(--tint); border-top: .67rem solid var(--line); padding-top: 1rem; }
.home-routes h2, .story-banner h1 { color: var(--indigo); }
.route-card { position: relative; overflow: hidden; border-radius: 0; border: 0; border-bottom: 3px solid var(--indigo); box-shadow: none; padding: 1.2rem 1.35rem 1.4rem; }
.route-card:hover { box-shadow: none; }
.route-illustration { display: block; width: clamp(4.2rem,6.5vw,6.2rem); }
.route-card h3 { color: var(--indigo); font-size: clamp(1.55rem,2.45vw,2.4rem); }
.pocket-game { margin-block: 2rem; }
.pocket-game h2 { font-size: clamp(1.65rem,3vw,2.5rem); color: var(--indigo); margin-bottom: .8rem; }
.pocket-game > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; align-items: start; }
.pocket-game details { background: var(--lavender); border-bottom: 3px solid var(--indigo); }
.pocket-game details:nth-child(2) { background: var(--powder); }
.pocket-game details:nth-child(3) { background: var(--yellow); }
.pocket-game summary { padding: .85rem; cursor: pointer; font-weight: 700; line-height: 1.4; }
.pocket-game details p { padding: .1rem .85rem 1rem; line-height: 1.5; }
@media (min-width: 940px) and (min-height: 680px) { .chapter-index { position: sticky; } }
@media (min-width: 761px) and (max-width: 1120px) {
  .journal-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .journal-card .tile-poster { aspect-ratio: 1.1; }
  .journal .journal-card h2 { font-size: clamp(2rem,4vw,3rem); }
}
@media (max-width: 760px) {
  .journal-cover-inner { grid-template-columns: minmax(0,1.15fr) minmax(0,.8fr); gap: .6rem; }
  .journal-cover h1 { font-size: clamp(3.5rem,8.5vw,4.8rem); margin: .5rem 0; }
  .journal-cover .guide-intro { font-size: 1rem; line-height: 1.45; }
  .cover-founders { padding: .25rem; } .cover-founders img { width: 48%; }
  .journal-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .journal .journal-card h2 { font-size: clamp(1.65rem,4.4vw,2.1rem); }
  .poster-spread, .guide-banner .banner-inside { grid-template-columns: minmax(0,1.58fr) minmax(0,.72fr); gap: 1rem; }
  .poster-spread .poster-art, .guide-banner .poster-art { width: min(100%,13rem); }
  .journal-note-head h1, .guide-banner h1, .desk-hero h1 { font-size: clamp(2.25rem,5.8vw,3.4rem); }
}
@media (max-width: 530px) {
  .journal-cover-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.82fr); gap: .4rem .75rem; }
  .cover-copy { display: contents; }
  .journal-cover .crumb { grid-column: 1/-1; }
  .journal-cover h1 { grid-column: 1; grid-row: 2; align-self: center; margin-block: .55rem; font-size: clamp(2.65rem,10.8vw,3.58rem); }
  .journal-cover h1 em { font-size: 1.1em; }
  .cover-founders { grid-column: 2; grid-row: 2; }
  .cover-founders img { width: 46%; }
  .journal-cover .guide-intro { grid-column: 1/-1; margin-top: .55rem; }
  .journal-list { grid-template-columns: 1fr; gap: 1.25rem; }
  .journal-card .tile-poster { aspect-ratio: auto; min-height: 12rem; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); align-content: center; gap: .45rem .2rem; padding: 1rem; }
  .journal .journal-card h2 { font-size: clamp(1.78rem,6.9vw,2.2rem); margin: 0; grid-column: 1; }
  .journal .journal-card .journal-topic { grid-column: 1; justify-self: start; font-size: .86rem; }
  .tile-poster .poster-art { position: relative; grid-column: 2; grid-row: 1 / 3; min-height: 8rem; }
  .tile-poster .poster-art .poster-sticker { width: 116%; max-width: none; height: 122%; right: -10%; bottom: -10%; }
  .journal .tile-caption { font-size: 1rem; }
  .poster-spread, .guide-banner .banner-inside { grid-template-columns: minmax(0,2.3fr) minmax(0,.9fr); gap: .55rem .7rem; }
  .poster-spread .poster-copy > *, .guide-banner .banner-inside > div:first-child > * { grid-column: 1/-1; }
  .poster-spread .poster-copy, .guide-banner .banner-inside > div:first-child { display: contents; }
  .poster-spread .crumb, .poster-spread .desk-crumb, .banner-inside .crumb { grid-row: 1; margin-bottom: .35rem; }
  .journal-note-head .journal-topic { grid-row: 2; justify-self: start; margin-top: .1rem; }
  .poster-spread .poster-copy h1, .guide-banner .banner-inside > div:first-child h1 { grid-column: 1; grid-row: 3; width: auto; margin: 0; min-height: 2.3em; align-content: center; font-size: clamp(2.05rem,7.3vw,2.65rem); }
  .poster-spread .poster-art, .banner-inside .poster-art { grid-column: 2; grid-row: 3; width: 100%; align-self: center; }
  .journal-note-head .journal-signature, .guide-intro, .desk-hero .parent-question { grid-row: 4; }
  .desk-hero .takeaway { margin: 0; }
  .desk-hero h1, .guide-banner h1, .journal-note-head h1 { overflow-wrap: anywhere; hyphens: auto; }
  .desk-time { justify-self: start; }
  .pocket-game > div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) { .journal-card:hover, .journal-card:focus-visible { transform: none; } }
@media print {
  .cover-founders, .poster-art, .guide-banner .poster-art, .pocket-game, .journal-links, .route-illustration { display: none!important; }
  .journal-note-head, .guide-banner, .desk-hero, .desk-hero[class*=shade-] { color: #171717; background: white; }
  .poster-spread, .guide-banner .banner-inside { display: block; padding-block: .6rem; }
  .poster-spread h1, .guide-banner h1, .desk-hero h1 { width: auto; min-height: 0; max-width: none; font-size: 2rem; }
  .journal-text > p:first-child::first-letter { float: none; font: inherit; padding: 0; }
  .chapter-index::before, .journal-tip::before { display: none; }
}
