@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-latin.woff2') format('woff2'); font-style: normal; font-weight: 400 700; font-display: swap; }
@font-face { font-family: Outfit; src: url('/assets/fonts/outfit-latin.woff2') format('woff2'); font-style: normal; font-weight: 500 800; font-display: swap; }

:root {
  --paper: #fff3ed;
  --white: #fffaf7;
  --ink: #35214f;
  --muted: #77647f;
  --accent: #8544d5;
  --rule: #e9d8e9;
  --body: 'DM Sans', system-ui, sans-serif;
  --display: Outfit, var(--body);
  --gutter: clamp(20px, 4vw, 64px);
  --width: 1440px;
  --ease: cubic-bezier(.2,.75,.25,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-top: 105px; scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(180deg, #563377, #efcde7 580px, #fff1e9 1050px); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
body.inner-page { background: radial-gradient(ellipse at 8% 8%, #b68de72e, transparent 42%), linear-gradient(145deg, #f1ddef, #fff2e9 65%); }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--gutter), var(--width)); margin-inline: auto; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid #904bd6; outline-offset: 5px; }
#main:focus { outline: none; }
.ui-icon { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 100; left: 16px; top: 10px; transform: translateY(-180%); padding: 10px 16px; border-radius: 12px; background: #fff3d3; color: #40215f; }
.skip:focus { transform: none; }
.eyebrow { margin-bottom: 9px; color: #8951ad; font-size: 12px; font-weight: 700; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; }
.lead { max-width: 66ch; color: var(--muted); font-size: 19px; line-height: 1.7; }
.text-link { color: #8542ce; font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.category { color: #8b49ac; font-size: 12px; font-weight: 700; text-decoration: none; }
.category:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid #a85ef0; border-radius: 999px; color: white; background: linear-gradient(150deg, #a361f7, #7633d1); box-shadow: inset 0 1px 0 #ffffff65, 0 6px 16px #8b49be2b; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.button:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #ffffff65, 0 9px 24px #8b49be55; }
.button:active { transform: translateY(0) scale(.98); }
.button-gold { min-height: 63px; padding: 15px 30px; border: 2px solid #ffedaa; background: linear-gradient(180deg, #ffe875 0%, #ffcb29 45%, #ffaa08 100%); box-shadow: inset 0 2px 4px #fff5c9, 0 0 9px #ffe49c, 0 0 28px #ffba4960, 0 9px 20px #4e1b5145; color: #4a275a; font: 800 21px var(--display); }
.button-gold .ui-icon { width: 26px; height: 26px; }
.button-gold:hover { box-shadow: inset 0 2px 4px #fff5c9, 0 0 15px #ffe49c, 0 0 38px #ffba4990, 0 12px 25px #4e1b5145; }

.site-header { position: sticky; z-index: 60; top: 0; background: linear-gradient(105deg, #3a2058ed, #442669e8 60%, #3f285ee8); border-bottom: 1px solid #dba8fb34; box-shadow: 0 7px 30px #2e0d4d32; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.header-wrap { min-height: 88px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 26px; }
.brand { display: inline-flex; width: 223px; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 8px #1b0b3d30); }
#main-nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; }
#main-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: 999px; color: #fff5fe; font-family: var(--display); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease); }
#main-nav a .ui-icon { width: 20px; height: 20px; }
#main-nav a:hover { background: #ffffff13; transform: translateY(-1px); }
#main-nav a[aria-current] { background: linear-gradient(135deg, #a25cfa, #7d37d3); box-shadow: inset 0 1px 1px #e4b6ff80, 0 5px 18px #20103b30; }
.header-search { width: 262px; display: flex; align-items: center; gap: 4px; padding: 5px 7px 5px 13px; border: 1px solid #e2c4ff35; border-radius: 999px; background: #ffffff12; box-shadow: inset 0 1px 3px #f4ddff16; }
.header-search:focus-within { border-color: #e8c5ff99; background: #ffffff1f; }
.header-search input { width: 100%; min-width: 0; min-height: 34px; padding: 3px 0; border: 0; border-radius: 9px; outline: 0; background: transparent; color: #fff7fd; font-size: 14px; }
.header-search input::placeholder { color: #dfcbed; opacity: 1; }
.header-search button { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff3fc; }
.header-search button:hover { background: #ffffff18; }
.menu-toggle { display: none; }
.site-header :focus-visible { outline-color: #ffe59a; }

.hero { position: relative; height: clamp(420px, 31vw, 600px); overflow: hidden; color: #fff9ea; background: #43216d; isolation: isolate; }
.hero-scenes, .hero-scene { position: absolute; inset: 0; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #2c16504a, transparent 57%), linear-gradient(0deg, #42225835, transparent 23%); }
.hero-scene-puzzle, .hero-scene-controls { background: radial-gradient(ellipse at 30% 45%, #68328b, #341e5b); }
.hero-scene-puzzle img, .hero-scene-controls img { position: absolute; right: 0; width: 68%; object-position: center 48%; mask-image: linear-gradient(90deg, transparent, black 28%); -webkit-mask-image: linear-gradient(90deg, transparent, black 28%); }
.hero-scene-puzzle::after, .hero-scene-controls::after { background: linear-gradient(90deg, #40205e70, transparent 75%); }
.hero-scene.is-active { animation: scene-appear 620ms var(--ease) both; }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-copy { width: 52%; padding: 15px 0 40px; }
.hero-eyebrow { color: #f8d9ee; font-size: 14px; font-weight: 600; margin-bottom: 12px; text-shadow: 0 2px 8px #2b0b45; }
.hero h1 { font: 800 clamp(2.85rem, 4.8vw, 4.6rem)/1.03 var(--display); letter-spacing: -.035em; margin: 0 0 16px; color: #fff3ce; text-shadow: 0 3px 0 #9b4a6b, 0 0 20px #ffc99535, 0 5px 20px #3214475e; }
.hero h1 em { font-style: normal; color: #ffe4b8; }
.hero-description { color: #fff1ee; font-size: clamp(15px,1.4vw,19px); line-height: 1.55; margin-bottom: 22px; text-shadow: 0 2px 7px #341345; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 20px; }
.hero-secondary { color: #fff4f7; font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 1px solid #ffe4ed77; padding-block: 5px; text-shadow: 0 2px 8px #2b0b45; }
.hero-secondary:hover { border-bottom-color: #ffe5b5; color: #ffe5b5; }
.hero-controls { position: absolute; z-index: 4; bottom: 42px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; align-items: center; padding: 4px 9px; border: 1px solid #e6c0f12b; border-radius: 999px; background: #3c205a64; backdrop-filter: blur(8px); }
.hero-controls > button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: #fff1ec; background: transparent; }
.hero-controls > button:hover { background: #ffffff20; }
.hero-controls > button .ui-icon { width: 17px; height: 17px; }
.hero-dots { display: flex; gap: 4px; align-items: center; }
.hero-dots button { display: grid; place-items: center; width: 25px; height: 32px; padding: 0; border: 0; background: transparent; }
.hero-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: #e8cbd38c; transition: width 200ms var(--ease), background 200ms; }
.hero-dots button[aria-pressed=true]::before { width: 18px; background: #fff0c9; box-shadow: 0 0 8px #ffd29c70; }
.hero-controls .hero-pause { display: block; width: auto; height: 30px; min-width: 90px; padding-inline: 9px; font-size: 10px; color: #f8dfed; border-left: 1px solid #e4bfda3d; border-radius: 0 999px 999px 0; }
.hero :focus-visible { outline-color: #ffe3a0; }

.main-panel { position: relative; z-index: 5; width: min(100% - 42px, 1510px); margin: -24px auto 48px; padding: 22px 30px 32px; border: 1px solid #fff7f7c9; border-radius: 32px 32px 25px 25px; background: linear-gradient(145deg,#fff6efeF,#fff0efF5 62%,#fff5edF5); box-shadow: inset 0 2px 0 #ffffffcc, 0 20px 65px #70468420; }
.subject-nav { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; }
.subject-link { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 108px; padding: 9px 8px 11px; border: 1px solid #f2dfdf; border-radius: 22px; background: linear-gradient(145deg,#fffaf3,#ffece8); box-shadow: inset 0 2px 0 #fff9f5, 0 5px 12px #a9818e0b; color: #382056; font: 700 15px/1.2 var(--display); text-align: center; text-decoration: none; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms; }
.subject-link:hover { transform: translateY(-4px); box-shadow: inset 0 2px 0 #ffffff, 0 10px 22px #8e4dba26; border-color: #cf9dea; }
.subject-link:active { transform: translateY(-1px) scale(.98); }
.subject-link.is-selected { color: white; border-color: #bc84f5; background: linear-gradient(145deg,#ac68f6,#8e49e5 50%,#7a35d2); box-shadow: inset 0 2px 0 #dab0ff75, 0 7px 18px #9a59d22c; }
.subject-icon { display: block; width: 60px; height: 60px; flex: 0 0 auto; margin-bottom: 4px; background-image: url('/assets/fantasy/subject-icons-compact.webp'); background-size: 300% 200%; background-repeat: no-repeat; filter: drop-shadow(0 4px 4px #57307812); }
.icon-book { background-position: 0 0; }
.icon-puzzle { background-position: 50% 0; }
.icon-controller { background-position: 100% 0; }
.icon-globe { background-position: 0 100%; }
.icon-heart { background-position: 50% 100%; }
.icon-quill { background-position: 100% 100%; }

.section-block { padding-top: 31px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 19px; }
.section-title h2 { font: 800 clamp(1.5rem,2.1vw,2rem)/1.2 var(--display); letter-spacing: -.03em; margin-bottom: 0; }
.section-title .eyebrow { margin-bottom: 6px; }
.stories { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px; }
.story { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #ead6e6; border-radius: 21px; background: #fffcf9; box-shadow: 0 6px 15px #603b7c0b; transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms; }
.story:hover { transform: translateY(-5px); box-shadow: 0 13px 26px #703d9326; border-color: #cf9fe8; }
.story:active { transform: translateY(-1px); }
.story-photo { display: block; position: relative; aspect-ratio: 1.7; overflow: hidden; background: #5e3775; }
.story-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 49%; transition: transform 480ms var(--ease); }
.story:hover .story-photo img { transform: scale(1.035); }
.story-open { display: grid; place-items: center; position: absolute; z-index: 4; right: 15px; bottom: 15px; width: 43px; height: 43px; border: 1px solid #ffffffcc; border-radius: 50%; background: #fff5efed; box-shadow: 0 4px 14px #4322552b; color: #7141a3; }
.story-open .ui-icon { width: 21px; height: 21px; }
.story-body { display: flex; flex-direction: column; align-items: start; flex: 1; padding: 21px 22px; }
.story h3 { font: 700 clamp(1.25rem,1.8vw,1.55rem)/1.25 var(--display); letter-spacing: -.025em; margin: 9px 0 12px; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { color: var(--accent); }
.story p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.story-meta { display: flex; justify-content: space-between; align-self: stretch; flex-wrap: wrap; gap: 5px 12px; padding-top: 13px; margin-top: auto; border-top: 1px solid #f0e3ec; color: var(--muted); font-size: 11px; }
.stories-featured { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.story-featured { border-color: #f5ddec; }
.story-featured:first-child { border-color: #ffda77; box-shadow: 0 0 0 2px #ffdf8a85, 0 0 19px #ffce7b5e, 0 8px 18px #8646a025; }
.story-featured .story-photo { aspect-ratio: 1.67; min-height: 195px; }
.story-featured .story-photo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg,transparent 34%,#37204f35 50%,#361b56e6 100%); }
.story-featured .story-open { right: 13px; bottom: 15px; width: 41px; height: 41px; }
.story-featured .story-body { position: absolute; z-index: 3; inset: auto 0 0; padding: 15px 61px 18px 18px; pointer-events: none; }
.story-featured .story-body a { pointer-events: auto; }
.story-featured .category { color: #ffe3ef; font-size: 11px; font-weight: 500; }
.story-featured h3 { margin: 4px 0 0; color: #fff5f0; font: 700 clamp(1.05rem,1.5vw,1.4rem)/1.12 var(--display); letter-spacing: -.02em; text-shadow: 0 2px 5px #35134b66; }
.story-featured h3 a:hover { color: #ffe4a6; }
.story-featured p, .story-featured .story-meta { display: none; }

.quick-reads { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 20px; }
.quick-read { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; min-width: 0; border-radius: 18px; padding: 9px 6px; transition: transform 220ms var(--ease), background 220ms; }
.quick-read:hover { transform: translateY(-4px); background: #eecff33d; }
.quick-read .quick-icon { width: 84px; height: 84px; margin-bottom: 9px; border-radius: 22px; }
.quick-read strong { font: 700 15px/1.3 var(--display); }
.quick-read > span:last-child { margin-top: 4px; color: var(--muted); font-size: 11px; }
.topic-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.topic-tile { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 23px; border: 1px solid #ecd9ea; border-radius: 21px; background: linear-gradient(145deg,#fffaf7,#fbedf3); text-decoration: none; box-shadow: inset 0 1px 0 #fff; transition: transform 220ms var(--ease), box-shadow 220ms; }
.topic-tile::before { content: ''; width: 56px; height: 56px; margin-bottom: 10px; background: url('/assets/fantasy/subject-icons-compact.webp') 50% 0/300% 200% no-repeat; }
.topic-tile.blue::before { background-position: 100% 0; }
.topic-tile.mint::before { background-position: 0 100%; }
.topic-tile.peach::before { background-position: 100% 100%; }
.topic-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 24px #74469517; }
.topic-tile h3 { font: 700 22px/1.2 var(--display); letter-spacing: -.025em; margin-bottom: 11px; }
.topic-tile p { color: var(--muted); font-size: 14px; margin-bottom: 17px; }
.topic-count { margin-top: auto; color: #8b4db1; font-size: 12px; font-weight: 700; }
.editor-note { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 40px; margin-top: 35px; padding: 30px 34px; border: 1px solid #e8d0e9; border-radius: 23px; background: linear-gradient(120deg,#f1def4,#fbe9e9); }
.editor-note h2 { font: 700 29px/1.2 var(--display); letter-spacing: -.025em; margin-bottom: 0; }
.editor-note p:not(.eyebrow) { color: var(--muted); font-size: 16px; margin-bottom: 13px; }

.breadcrumbs { margin: 0 0 24px; color: var(--muted); font-size: 12px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; gap: 5px 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: #b498bd; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.library, .info { padding: 29px 34px 37px; margin-top: 30px; margin-bottom: 40px; border: 1px solid #fff8f4c9; border-radius: 27px; background: #fff9f3eF; box-shadow: 0 15px 45px #7a479c12; }
.page-intro { padding-block: 9px 27px; }
.page-intro h1 { font: 700 clamp(2.1rem,3.5vw,3.25rem)/1.12 var(--display); letter-spacing: -.04em; max-width: 26ch; margin: 9px 0 18px; }
.page-intro .lead { font-size: 18px; margin-bottom: 0; }
.guide-search { max-width: 830px; padding: 23px; border: 1px solid #ead9ec; border-radius: 19px; background: #fffdfa; box-shadow: inset 0 1px 0 #ffffff; }
.guide-search label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 9px; }
.guide-search > div { display: flex; gap: 10px; }
.guide-search input { min-width: 0; width: 100%; border: 1px solid #e1cce9; border-radius: 999px; padding: 11px 16px; color: var(--ink); background: #faf3fa; font-size: 16px; }
.guide-search p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 25px; }
.topic-pills a { padding: 8px 15px; border: 1px solid #e5cfe9; border-radius: 999px; color: #765185; background: #fffcf9; font-size: 13px; font-weight: 600; text-decoration: none; transition: transform 180ms, background 180ms; }
.topic-pills a:hover { transform: translateY(-2px); background: #f0dff7; }
.topic-pills a[aria-current] { color: white; background: linear-gradient(135deg,#aa65ee,#813acb); border-color: #ad72e8; box-shadow: inset 0 1px 0 #ebcaff66, 0 5px 12px #9e57c725; }
.search-empty { padding-block: 35px; }
.search-empty h2 { font: 700 30px var(--display); }
.collection-intro { max-width: 79ch; color: var(--muted); padding-bottom: 27px; }
.collection-intro p { margin-bottom: 12px; }
.collection-intro summary { color: #8346b3; cursor: pointer; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.topic-index { margin-top: 15px; }

.article-shell { padding: 28px 33px 36px; margin-top: 30px; border: 1px solid #fff8f4ca; border-radius: 28px; background: #fffaf5f5; box-shadow: 0 15px 45px #7a479c12; }
.article-header { max-width: 1060px; margin: 30px auto; }
.article-header h1 { max-width: 27ch; font: 700 clamp(2.25rem,4vw,3.65rem)/1.11 var(--display); letter-spacing: -.04em; margin: 14px 0 22px; }
.article-header .lead { max-width: 70ch; font-size: 19px; margin-bottom: 23px; }
.article-byline { display: flex; flex-wrap: wrap; gap: 8px 19px; align-items: center; color: var(--muted); font-size: 13px; }
.article-byline a { font-weight: 600; text-underline-offset: 4px; }
.copy-link { min-height: 35px; padding: 7px 13px; border: 1px solid #e2cbe8; border-radius: 999px; color: #77468f; background: #fff6fb; font-size: 12px; }
.copy-link:hover { background: #f2e1f8; }
.copy-status { font-size: 12px; color: var(--accent); }
.article-cover { max-width: 1060px; margin: 0 auto 33px; }
.article-cover img { width: 100%; height: auto; aspect-ratio: 2.85; object-fit: cover; object-position: center 43%; border-radius: 20px; box-shadow: 0 10px 25px #875aa51a; }
.article-cover figcaption { color: #9a7ea0; font-size: 11px; margin-top: 8px; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0,700px); justify-content: center; gap: clamp(27px,4vw,64px); align-items: start; }
.article-toc { position: sticky; top: 115px; padding: 21px; border: 1px solid #e9d7ed; border-radius: 19px; background: #fffdf9; }
.article-toc > p { font-size: 14px; font-weight: 700; margin-bottom: 13px; }
.article-toc nav { display: flex; flex-direction: column; gap: 11px; max-height: calc(100vh - 190px); overflow: auto; }
.article-toc a { color: #84628c; font-size: 13px; line-height: 1.55; text-decoration: none; }
.article-toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose { color: #66516e; font-size: 17px; line-height: 1.85; }
.prose h2 { color: var(--ink); font: 700 clamp(1.5rem,2.2vw,1.9rem)/1.25 var(--display); letter-spacing: -.025em; margin-block: 1.35em .55em; }
.prose p { margin-bottom: 20px; }
.prose a { color: #8041b9; text-underline-offset: 4px; overflow-wrap: anywhere; }
.prose section { scroll-margin-top: 24px; }
.quick-answer { padding: 24px 27px; border: 1px solid #e4cce9; border-radius: 18px; background: linear-gradient(135deg,#f3e6fa,#fff0ed); }
.quick-answer .eyebrow { margin-bottom: 11px; }
.quick-answer p:last-child { margin-bottom: 0; }
.article-summary { max-width: 1060px; margin: 0 auto 28px; padding: 22px 27px; scroll-margin-top: 110px; }
.article-summary p:not(.eyebrow) { max-width: 82ch; color: #61466d; font-size: 16px; line-height: 1.7; }
.takeaways { padding-bottom: 15px; border-bottom: 1px solid var(--rule); }
.takeaways ul { padding-left: 22px; }
.takeaways li { margin-bottom: 8px; padding-left: 5px; }
.takeaways li::marker { color: #ad70c9; }
.article-section { margin-top: 34px; }
.faq { margin-top: 40px; }
.faq details { padding: 16px 18px; margin-bottom: 10px; border: 1px solid #ead8ec; border-radius: 14px; background: #fffaf9; }
.faq summary { color: #5b3373; font-size: 16px; font-weight: 700; cursor: pointer; line-height: 1.5; }
.faq p { font-size: 16px; padding-top: 13px; margin-bottom: 0; }
.sources { padding: 25px; margin-top: 35px; border: 1px solid var(--rule); border-radius: 18px; background: #fffdfa; }
.sources h2 { font-size: 26px; margin-top: 0; }
.sources p, .sources li { font-size: 14px; }
.sources ul { padding-left: 18px; margin-bottom: 0; }
.sources li { margin-bottom: 9px; }
.correction-note { padding-top: 20px; margin-top: 30px; border-top: 1px solid var(--rule); font-size: 14px; }
.correction-note p { margin-bottom: 7px; }
.reading-progress { position: fixed; z-index: 65; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.reading-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg,#ffce66,#eb7bbb,#a265ef); }
.stories-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.related { padding-top: 35px; padding-bottom: 45px; }
.related .story { display: grid; grid-template-columns: 34% minmax(0,1fr); }
.related .story-photo { aspect-ratio: auto; }
.related .story-photo img { position: absolute; inset: 0; }
.related .story h3 { font-size: 23px; }
.info { max-width: 1100px; min-height: 65vh; }
.info .prose { max-width: 73ch; }
.missing { padding-block: 80px; min-height: 65vh; }
.missing h1 { font: 700 clamp(2.8rem,5vw,4.3rem)/1.1 var(--display); letter-spacing: -.04em; max-width: 19ch; margin-bottom: 24px; }

.sorting-diagram { max-width: 580px; padding: 25px; margin: 25px 0; border: 1px solid #e0cbe9; border-radius: 18px; background: #f2e5f7; color: #502c6b; }
.diagram-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; font-size: 11px; font-weight: 700; }
.diagram-heading span:last-child { color: var(--muted); font-weight: 400; }
.bottles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-block: 25px 18px; }
.bottle-group { text-align: center; min-width: 0; }
.bottle-group > strong { display: block; margin-top: 8px; font-size: 13px; }
.bottle { display: flex; flex-direction: column; gap: 3px; padding: 5px; height: 125px; border: 1px solid #bb9bca; border-radius: 7px 7px 14px 14px; background: #fff8fd; }
.piece { display: flex; flex: 1; justify-content: center; align-items: center; color: white; border-radius: 3px; font-size: 12px; }
.piece-blue { background: #6550b5; }
.piece-red { background: #b43c68; }
.bottle-empty { justify-content: center; align-items: center; border-style: dashed; font-size: 11px; color: var(--muted); }
.sorting-diagram figcaption { font-size: 14px; line-height: 1.7; color: var(--muted); }
.example-table { overflow-x: auto; margin-block: 25px; border: 1px solid #e9d9ec; border-radius: 14px; }
.example-table table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 14px; }
.example-table caption { text-align: left; font-weight: 700; padding: 13px; }
.example-table th, .example-table td { padding: 11px 13px; border-bottom: 1px solid var(--rule); text-align: left; }
.example-table thead { background: #edddf5; color: var(--ink); }
.example-table tbody { background: #fffdfa; }

.site-footer { padding-block: 36px 20px; background: linear-gradient(135deg,#3c2559,#301d4c); color: #f7eaf9; border-top: 1px solid #ddb5f535; }
.site-footer .brand { width: 205px; }
.footer-main { display: grid; grid-template-columns: 1.1fr .8fr 1fr 1.1fr; gap: 35px; }
.footer-main > div:first-child > p { color: #cdb7d8; font-size: 15px; line-height: 1.6; margin-top: 12px; }
.footer-label { color: #bf9ece; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-main nav a { display: block; width: fit-content; color: #f6e8f8; font-size: 13px; text-decoration: none; margin-bottom: 9px; }
.footer-main nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-description p:not(.footer-label) { color: #cdb7d8; font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #9d75ae46; margin-top: 28px; padding-top: 17px; color: #bda0c9; font-size: 11px; }
.site-footer :focus-visible { outline-color: #ffe1a8; }

@keyframes scene-appear { from { opacity: .65; transform: scale(1.014); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 1150px) {
  .brand { width: 200px; }
  .header-wrap { gap: 16px; }
  #main-nav { gap: 2px; }
  #main-nav a { padding-inline: 15px; font-size: 15px; }
  .header-search { width: 215px; }
  .hero-copy { width: 55%; }
  .hero h1 { font-size: clamp(2.6rem,5.2vw,3.65rem); }
  .hero-description { font-size: 16px; }
  .subject-nav { gap: 11px; }
  .subject-link { font-size: 14px; }
  .main-panel { padding-inline: 23px; }
  .stories-featured { gap: 15px; }
  .story-featured .story-photo { min-height: 190px; }
  .story-featured h3 { font-size: 18px; }
  .story-featured .story-body { padding-left: 15px; padding-right: 52px; }
  .story-featured .story-open { width: 35px; height: 35px; right: 10px; }
  .article-layout { grid-template-columns: 190px minmax(0,1fr); gap: 30px; }
}
@media (max-width: 900px) {
  .header-search { display: none; }
  .header-wrap { grid-template-columns: auto minmax(0,1fr); }
  #main-nav { justify-content: end; }
  .hero { height: 430px; }
  .hero-copy { width: 57%; }
  .hero h1 { font-size: 47px; }
  .hero-description { font-size: 15px; }
  .button-gold { min-height: 55px; padding: 13px 21px; font-size: 18px; }
  .hero-actions { gap: 12px; }
  .hero-secondary { font-size: 12px; }
  .hero-controls { bottom: 24px; }
  .hero-controls > button, .hero-dots button { width: 44px; height: 44px; min-width: 44px; }
  .hero-controls .hero-pause { width: auto; height: 44px; }
  .subject-link { min-height: 97px; font-size: 13px; padding-inline: 4px; border-radius: 18px; }
  .subject-icon { width: 52px; height: 52px; }
  .stories-featured { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story-featured .story-photo { min-height: 198px; }
  .story-featured h3 { font-size: 23px; }
  .quick-reads { gap: 13px; }
  .quick-read .quick-icon { width: 70px; height: 70px; }
  .quick-read strong { font-size: 13px; }
  .stories { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .editor-note { padding: 27px; gap: 26px; }
  .article-layout { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .article-toc { position: static; }
  .article-toc nav { flex-direction: row; flex-wrap: wrap; gap: 7px 17px; max-height: none; }
  .article-toc a { text-decoration: underline; text-underline-offset: 4px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 27px; }
}
@media (max-width: 740px) {
  .header-wrap { display: flex; min-height: 74px; flex-wrap: wrap; gap: 0; }
  .brand { width: 188px; }
  .menu-ready .menu-toggle { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin-left: auto; padding: 0; border: 1px solid #d9b2f04f; border-radius: 50%; background: #ffffff14; color: #fff1fa; }
  #main-nav { width: 100%; justify-content: space-between; padding: 10px 0 12px; margin: 0; }
  #main-nav a { min-height: 44px; font-size: 14px; padding: 10px 13px; gap: 7px; }
  #main-nav a .ui-icon { width: 17px; height: 17px; }
  .header-search { display: flex; width: 100%; margin-bottom: 13px; }
  .menu-ready #main-nav { max-height: 0; overflow: hidden; padding-block: 0; opacity: 0; visibility: hidden; transition: max-height 240ms var(--ease), opacity 240ms var(--ease), padding 240ms var(--ease), visibility 240ms; }
  .menu-ready #main-nav.is-open { max-height: 90px; padding-block: 10px 12px; opacity: 1; visibility: visible; }
  .menu-ready .header-search { max-height: 0; overflow: hidden; margin: 0; padding-block: 0; border-width: 0; opacity: 0; visibility: hidden; transition: max-height 240ms var(--ease), opacity 240ms var(--ease), padding 240ms var(--ease), margin 240ms; }
  .menu-ready #main-nav.is-open + .header-search { max-height: 62px; padding-block: 5px; margin-bottom: 13px; border-width: 1px; opacity: 1; visibility: visible; }
  .header-search input { min-height: 34px; }
  .header-search button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 680px) {
  .hero { height: 460px; }
  .hero-scene-garden img { position: absolute; top: 128px; width: 100%; height: calc(100% - 108px); object-position: 70% 50%; mask-image: linear-gradient(180deg, transparent, #000 65px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 65px); }
  .hero-scene-puzzle img, .hero-scene-controls img { width: 100%; object-position: center; mask-image: none; -webkit-mask-image: none; }
  .hero-scene::after { background: linear-gradient(180deg,#351b5e8c,transparent 45%,#3b1c575c 85%); }
  .hero-scene-puzzle::after, .hero-scene-controls::after { background: linear-gradient(180deg,#351b5ed9 0,#351b5e65 35%,transparent 56%,#2b13494a); }
  .hero-content { display: block; }
  .hero-copy { width: 100%; text-align: center; padding: 20px 0 0; }
  .hero-eyebrow { font-size: 12px; margin-bottom: 7px; }
  .hero h1 { font-size: clamp(2.4rem,8.8vw,2.75rem); margin-bottom: 10px; }
  .hero-description { font-size: 14px; line-height: 1.45; margin-bottom: 0; }
  .hero-actions { position: absolute; left: 0; right: 0; bottom: 82px; justify-content: center; }
  .hero-secondary { display: none; }
  .button-gold { min-height: 54px; padding: 12px 24px; font-size: 18px; }
  .hero-controls { bottom: 16px; padding: 3px 7px; gap: 4px; background: #391c6399; }
  .hero-controls > button, .hero-dots button { width: 44px; height: 44px; min-width: 44px; }
  .hero-controls .hero-pause { display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; padding: 0; font-size: 0; }
  .hero-controls .hero-pause::before { content: ""; display: block; width: 12px; height: 14px; background: linear-gradient(90deg,currentColor 0 4px,transparent 4px 8px,currentColor 8px 12px); }
  .hero-controls .hero-pause[aria-pressed=true]::before { background: currentColor; clip-path: polygon(0 0,100% 50%,0 100%); }
  .main-panel { width: calc(100% - 20px); margin-top: -13px; margin-bottom: 25px; padding: 14px 17px 23px; border-radius: 25px 25px 22px 22px; }
  .subject-nav { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .subject-link { min-height: 76px; border-radius: 17px; font-size: 13px; padding: 5px 3px 6px; }
  .subject-icon { width: 42px; height: 42px; margin-bottom: 2px; }
  .section-block { padding-top: 20px; }
  .section-title { gap: 14px; margin-bottom: 12px; align-items: center; }
  .section-title h2 { font-size: 24px; }
  .section-title > .text-link { font-size: 12px; max-width: 88px; text-align: right; flex-shrink: 0; }
  .stories-featured { gap: 13px; }
  .story-featured .story-photo { min-height: 185px; aspect-ratio: .95; }
  .story-featured .story-body { padding: 13px 14px; }
  .story-featured h3 { font-size: 18px; }
  .story-featured .category { font-size: 9px; }
  .story-featured .story-open { top: 10px; bottom: auto; right: 10px; width: 31px; height: 31px; }
  .story-featured .story-open .ui-icon { width: 16px; height: 16px; }
  .quick-reads { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px 8px; }
  .quick-read { padding-inline: 3px; }
  .quick-read .quick-icon { width: 73px; height: 73px; }
  .quick-read strong { font-size: 12px; }
  .quick-read > span:last-child { font-size: 10px; }
  .topic-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .topic-tile { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 0 13px; align-items: center; padding: 18px; border-radius: 19px; }
  .topic-tile::before { width: 52px; height: 52px; grid-row: 1/3; margin: 0; }
  .topic-tile h3 { font-size: 19px; margin-bottom: 6px; grid-column: 2; }
  .topic-tile p { font-size: 12px; margin: 0; grid-column: 2; }
  .topic-count { grid-column: 3; grid-row: 1/3; margin: 0; font-size: 11px; white-space: nowrap; }
  .editor-note { grid-template-columns: minmax(0,1fr); gap: 17px; padding: 23px; margin-top: 27px; }
  .editor-note h2 { font-size: 26px; }
  .editor-note p:not(.eyebrow) { font-size: 14px; }
  .library, .info, .article-shell { padding: 23px 20px; margin-top: 20px; border-radius: 23px; }
  .page-intro { padding-block: 6px 23px; }
  .page-intro h1 { font-size: 36px; }
  .page-intro .lead { font-size: 17px; }
  .breadcrumbs { font-size: 11px; margin-bottom: 20px; }
  .guide-search { padding: 18px; }
  .guide-search > div { flex-wrap: wrap; }
  .guide-search input { min-height: 48px; }
  .guide-search .button { width: 100%; min-height: 44px; }
  .topic-pills { gap: 7px; margin-block: 22px; }
  .topic-pills a { font-size: 12px; padding: 7px 12px; }
  .library .stories { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .puzzle-catalog-home { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .puzzle-catalog-home .puzzle-tile-link { grid-template-columns: 104px minmax(0,1fr); }
  .puzzle-catalog-home .puzzle-tile-body { padding: 12px 12px 12px; }
  .puzzle-catalog-home .puzzle-tile-desc { -webkit-line-clamp: 2; margin: 0; }
  .puzzle-catalog-home .puzzle-tile-traits { display: none; }
  .story h3 { font-size: 24px; }
  .story-body { padding: 20px; }
  .article-header { margin-top: 21px; }
  .article-header h1 { font-size: 34px; }
  .article-header .lead { font-size: 17px; }
  .article-byline { gap: 7px 13px; font-size: 12px; }
  .article-cover img { aspect-ratio: 1.55; border-radius: 16px; }
  .prose { font-size: 16px; }
  .quick-answer { padding: 21px; }
  .article-summary { margin-bottom: 22px; padding: 19px 20px; }
  .article-summary p:not(.eyebrow) { font-size: 15px; }
  .sources { padding: 21px; }
  .related .stories { grid-template-columns: minmax(0,1fr); }
  .related .story { display: flex; }
  .related .story-photo { aspect-ratio: 1.85; }
  .related .story h3 { font-size: 23px; }
  .footer-main > div:first-child, .footer-description { grid-column: 1/-1; }
  .footer-main > div:first-child > p br { display: none; }
  .footer-bottom > span:nth-child(2) { width: 100%; order: 3; }
}
@media (max-width: 480px) {
  #main-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
  #main-nav a { min-width: 0; min-height: 58px; flex-direction: column; gap: 4px; padding: 8px 2px; font-size: 12px; }
}
@media (max-width: 350px) {
  :root { --gutter: 16px; }
  .brand { width: 169px; }
  #main-nav a { padding-inline: 8px; font-size: 13px; gap: 5px; }
  #main-nav a .ui-icon { width: 15px; height: 15px; }
  .hero h1 { font-size: 37px; }
  .hero-eyebrow { font-size: 11px; }
  .hero-description { font-size: 13px; }
  .main-panel { padding-inline: 13px; }
  .subject-link { font-size: 12px; }
  .story-featured h3 { font-size: 16px; }
  .topic-tile { grid-template-columns: 45px minmax(0,1fr); gap: 0 12px; padding: 16px; }
  .topic-tile::before { width: 45px; height: 45px; }
  .topic-count { grid-column: 2; grid-row: auto; margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .article-toc, .related, .copy-link, .copy-status, .reading-progress, .breadcrumbs, .article-cover { display: none; }
  body { background: white; color: black; }
  .wrap { width: 100%; }
  .article-shell { border: 0; padding: 0; box-shadow: none; background: white; }
  .article-layout { display: block; }
  .prose { color: black; font-size: 11pt; }
  .article-header h1 { font-size: 34pt; }
  .faq details > * { display: block; }
  .quick-answer, .sources { border: 1px solid #ccc; background: none; }
}
