/* Fogbottom public website. One stylesheet for every public page (approved design, October 2026).
   Fonts are served from this website (SIL Open Font License; licences in /fonts/). */

@font-face { font-family: "Fogbottom Display"; src: url("fonts/playfair-display-sc-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-italic-latin.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --forest-900: #142a1d;
  --forest-800: #1c3826;
  --forest-700: #24452f;
  --forest-100: #e7eee6;
  --cream: #fcf9f1;
  --parchment: #f4edd2;
  --paper: #fffdf8;
  --gold: #d4af37;
  --gold-ink: #7a5c1e;
  --ink: #22332a;
  --muted: #5b6356;
  --line: #e3dac4;
  --focus: #b8860b;
  --font-wordmark: "Fogbottom Display", Georgia, serif;
  --font-serif: "Literata", Georgia, "Palatino Linotype", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --page: 1180px;
  --measure: 66ch;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
  /* Word wrapping: ordinary words only break at spaces. A word longer than a whole line
     (for example a long web address) may break as a last resort. Never "anywhere" on containers. */
  overflow-wrap: break-word;
  hyphens: manual;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-900); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--forest-900); line-height: 1.2; text-wrap: balance; margin: 0; font-weight: 600; }
p { margin: 0; }
[id] { scroll-margin-top: 88px; }
.wrap { max-width: var(--page); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--paper); padding: 10px 14px; z-index: 50; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.eyebrow { font: 700 13px/1.3 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.muted { color: var(--muted); }
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.preview-ribbon { background: var(--parchment); color: #4a3a12; font-weight: 600; text-align: center; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.notice-strip { background: var(--parchment); color: var(--muted); font-size: 14px; text-align: center; padding: 6px 16px; border-bottom: 1px solid var(--line); }

/* ---------- Header and navigation ---------- */
.site-header { background: var(--forest-900); color: var(--cream); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; margin-right: auto; }
.brand img { width: 48px; height: 48px; }
.brand span { font: 700 25px/1 var(--font-wordmark); letter-spacing: .02em; color: #f6efd9; }
.brand:hover { color: var(--cream); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a { display: flex; align-items: center; gap: 8px; color: #efe8d2; text-decoration: none; font-weight: 600; font-size: 17px; padding: 10px 14px; border-radius: 6px; border-bottom: 3px solid transparent; }
.main-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); border-radius: 6px 6px 0 0; }
.main-nav .divider { width: 1px; height: 24px; background: rgba(255,255,255,.2); margin: 0 6px; }
.main-nav svg, .search-mobile svg { width: 18px; height: 18px; flex: none; }
.menu-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.35); color: var(--cream); font: 600 16px var(--font-sans); padding: 9px 14px; border-radius: 8px; cursor: pointer; }
.search-mobile { display: none; color: var(--cream); padding: 10px; border-radius: 8px; }
.search-mobile svg { width: 22px; height: 22px; display: block; }
@media (max-width: 820px) {
  .site-header .wrap { min-height: 64px; gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 22px; }
  .site-header .wrap { flex-wrap: wrap; }
  .search-mobile { display: inline-flex; }
  /* Without JavaScript the menu is simply shown under the logo; with it, the Menu button opens and closes it. */
  .main-nav { flex-basis: 100%; padding-bottom: 12px; }
  .js .menu-toggle { display: inline-flex; }
  .js .main-nav { display: none; position: absolute; inset: 64px 0 auto 0; background: var(--forest-900); border-top: 1px solid rgba(255,255,255,.12); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); max-height: calc(100vh - 64px); overflow-y: auto; }
  .js .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { font-size: 19px; padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .main-nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.08); box-shadow: inset 4px 0 0 var(--gold); padding-left: 16px; }
  .main-nav .divider { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 15px; color: var(--muted); padding-block: 18px 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: #a59c84; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Buttons, chips, cards ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 17px/1.2 var(--font-sans); padding: 13px 22px; border-radius: 8px; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.button.primary { background: var(--gold); color: var(--forest-900); }
.button.primary:hover { background: #e2c25a; color: var(--forest-900); }
.button.solid { background: var(--forest-700); color: #fff; }
.button.solid:hover { background: var(--forest-900); color: #fff; }
.button.ghost { border-color: currentColor; color: var(--forest-700); background: transparent; }
.button.ghost.light { color: #fffaf0; }
.chip { display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--forest-700); color: var(--forest-900); }
.chip[aria-current="page"] { background: var(--forest-700); border-color: var(--forest-700); color: #fff; }
.tag { font-size: 14px; color: var(--gold-ink); text-decoration: none; }
.tag::before { content: "#"; opacity: .6; }
.tag:hover { text-decoration: underline; }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.meta { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card-body { padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start; }
.card h3 { font-size: 22px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { color: var(--muted); }
.card .card-foot { margin-top: auto; padding: 0 22px 20px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.card-art { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.stretched { position: relative; }
.stretched h3 a::after { content: ""; position: absolute; inset: 0; }
.stretched:hover { border-color: #cbbf9e; box-shadow: 0 6px 18px rgba(20, 42, 29, .08); }
.stretched .tag, .stretched .card-foot a { position: relative; z-index: 1; }
.type-label { display: inline-block; font: 700 12px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--forest-700); background: var(--forest-100); padding: 5px 8px; border-radius: 4px; justify-self: start; }
.sample-label { display: inline-block; font: 700 12px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); background: #f6ecc9; padding: 5px 8px; border-radius: 4px; justify-self: start; }

/* ---------- Sections ---------- */
.section { padding-block: 56px; }
.section.band { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(26px, 3vw, 32px); }
.section-head p { color: var(--muted); max-width: 60ch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } .section { padding-block: 40px; } }

/* ---------- Home ---------- */
.hero { position: relative; background: var(--forest-900) url("assets/banner-1400.webp") right center / cover no-repeat; color: #f4eedb; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,30,20,.94) 0%, rgba(14,30,20,.82) 38%, rgba(14,30,20,.15) 72%, rgba(14,30,20,0) 100%); }
.hero .wrap { position: relative; padding-block: 72px 132px; }
.hero h1 { color: #fffaf0; font-size: clamp(38px, 5.4vw, 64px); font-weight: 600; max-width: 13ch; letter-spacing: -.01em; }
.hero h1 { max-width: 12ch; }
.hero .subhead { font: 600 clamp(20px, 2.4vw, 26px)/1.3 var(--font-serif); color: var(--gold); margin-top: 14px; letter-spacing: .01em; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); max-width: 38ch; margin-top: 14px; color: #e8e1cb; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .eyebrow { color: var(--gold); margin-bottom: 14px; }
@media (max-width: 820px) {
  .hero { background-image: url("assets/banner-960.webp"); background-position: 78% center; }
  .hero::before { background: linear-gradient(180deg, rgba(14,30,20,.88), rgba(14,30,20,.78)); }
  .hero .wrap { padding-block: 44px 104px; }
}
.pillars { margin-top: -84px; position: relative; z-index: 2; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: 0 10px 30px rgba(20,42,29,.10); min-width: 0; position: relative; }
.pillar:hover { box-shadow: 0 14px 34px rgba(20,42,29,.16); }
.pillar .art { aspect-ratio: 16 / 7; background-color: var(--forest-100); background-size: cover; background-repeat: no-repeat; }
.pillar .art.discover { background-image: url("assets/book-forbidden-forest.jpg"); background-position: center 30%; }
.pillar .art.learn { background-image: url("assets/banner-960.webp"); background-position: 85% 60%; }
.pillar .art.create { background-image: url("assets/art-scene-builder.webp"); background-position: center; }
.pillar .body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.pillar h2 { font-size: 28px; }
.pillar h2 a { color: inherit; text-decoration: none; }
.pillar h2 a::after { content: ""; position: absolute; inset: 0; }
.pillar .what { font: 700 13px/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.pillar p { color: var(--muted); }
.pillar .go { font-weight: 600; color: var(--forest-700); margin-top: 4px; }
@media (max-width: 640px) {
  .pillars { margin-top: -64px; }
  .pillars .grid-3 { gap: 12px; }
  .pillar { grid-template-rows: none; grid-template-columns: 92px minmax(0, 1fr); }
  .pillar .art { aspect-ratio: auto; min-height: 100%; }
  .pillar .body { padding: 14px 16px; gap: 4px; }
  .pillar h2 { font-size: 22px; }
  .pillar p:not(.what):not(.go) { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pillar .go { display: none; }
}
.featured-book { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 20px; padding: 22px; }
.featured-book img { border-radius: 4px; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.featured-book .text { display: grid; gap: 8px; align-content: start; min-width: 0; }
.featured-book.large { grid-template-columns: 140px minmax(0, 1fr); }
.invite { background: var(--forest-800); color: #ece5cf; border-radius: 14px; padding: 36px clamp(22px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.invite h2 { color: #fffaf0; font-size: clamp(24px, 3vw, 30px); }
.invite p { max-width: 52ch; margin-top: 8px; color: #d9d2bb; }

/* ---------- Page heads ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 8px 36px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 48px); margin-top: 10px; }
.page-head.no-crumbs .wrap { padding-top: 32px; }
.page-head .lede { font-size: 19px; color: var(--muted); margin-top: 12px; max-width: 60ch; }
.topic-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* ---------- Learn lists ---------- */
.learn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.learn-layout aside { display: grid; gap: 20px; }
@media (max-width: 960px) { .learn-layout { grid-template-columns: minmax(0, 1fr); } }
.list-tools { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 22px; font-size: 15px; color: var(--muted); }
.lead-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-bottom: 24px; }
.lead-card .art { background: var(--forest-100) url("assets/banner-960.webp") 82% 55% / cover no-repeat; min-height: 220px; }
.lead-card .card-body { padding: 26px; }
.lead-card h3 { font-size: 27px; }
@media (max-width: 640px) { .lead-card { grid-template-columns: minmax(0, 1fr); } .lead-card .art { min-height: 160px; } }
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 12px; }
.side-box.tint { background: var(--parchment); }
.side-box h2 { font-size: 20px; }
.side-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-box .count { color: var(--muted); font-size: 14px; }
.empty-note { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; color: var(--muted); }

/* ---------- Article ---------- */
.article-head { padding-block: 8px 28px; }
.article-head .inner, .prose, .article-foot { max-width: var(--measure); margin-inline: auto; }
.article-head h1 { font-size: clamp(34px, 5vw, 50px); margin-top: 12px; letter-spacing: -.01em; }
.article-head .dek { font: 400 clamp(19px, 2.2vw, 22px)/1.5 var(--font-serif); color: var(--muted); margin-top: 16px; }
.article-head .meta { margin-top: 18px; }
.prose { font: 400 19px/1.75 var(--font-serif); color: #1f2b23; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 2em; }
.prose h3 { font-size: 22px; margin-top: 1.6em; }
.prose h4 { font-size: 19px; margin-top: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose em { font-style: italic; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); color: #3b4a40; font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.4em; }
.prose figure { margin-inline: 0; }
.prose figure img { border-radius: 8px; }
.prose figcaption { font: 15px/1.5 var(--font-sans); color: var(--muted); margin-top: 8px; }
/* Exceptional content: only links and code may break inside a word; wide content scrolls in its own box. */
.prose a { overflow-wrap: anywhere; }
.prose code { font: .86em Consolas, "Cascadia Mono", monospace; background: #f3eee0; padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.prose pre { overflow-x: auto; background: #f3eee0; padding: 16px; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.prose pre code { background: none; padding: 0; overflow-wrap: normal; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font: 16px/1.5 var(--font-sans); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose .question { font-family: var(--font-sans); font-weight: 700; color: var(--forest-900); margin-top: 2em; }
.try-box { background: var(--parchment); border-radius: var(--radius); padding: 24px 26px; font-family: var(--font-sans); font-size: 17px; line-height: 1.6; }
.try-box h2 { font-size: 22px; margin: 0 0 8px; }
.try-box > * + * { margin-top: .8em; }
.prose .lesson-demo, .prose .resource { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font: 17px/1.6 var(--font-sans); }
.prose .lesson-demo > * + *, .prose .resource > * + * { margin-top: .7em; }
.prose .resource .button, .prose .resource a.button { display: inline-flex; }
.source-box { font: 15px/1.6 var(--font-sans); color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.source-box ol { padding-left: 1.2em; }
.article-foot { display: grid; gap: 14px; padding-block: 24px 8px; }
.article-foot .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.related { background: var(--paper); border-top: 1px solid var(--line); margin-top: 48px; }
.page-body { max-width: var(--measure); }

/* ---------- Create ---------- */
.app-hero { background: linear-gradient(180deg, var(--paper), var(--cream)); border-bottom: 1px solid var(--line); }
.app-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 12px 48px; }
.app-hero h1 { font-size: clamp(36px, 5vw, 52px); margin-top: 10px; }
.app-hero .eyebrow { margin-top: 18px; }
.app-hero .lede { font-size: 20px; color: var(--muted); margin-top: 14px; max-width: 40ch; }
.app-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.app-hero .art { border-radius: 12px; box-shadow: 0 16px 40px rgba(20,42,29,.18); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; color: var(--muted); font-size: 15px; padding: 0; list-style: none; }
.facts li::before { content: "✓"; color: var(--forest-700); font-weight: 700; margin-right: 6px; }
@media (max-width: 860px) { .app-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.about-app { max-width: 68ch; font-size: 18px; }
.feature { display: grid; gap: 6px; padding: 20px 22px; border-left: 3px solid var(--gold); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.band .feature { background: var(--cream); }
.feature h3 { font-size: 20px; }
.feature p { color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.shots.single { grid-template-columns: minmax(0, 1fr); max-width: 800px; }
.shots figure { margin: 0; }
.shots img { border-radius: 8px; border: 1px solid var(--line); }
.shots figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
@media (max-width: 700px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.download { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .download { grid-template-columns: minmax(0, 1fr); } }
.dl-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.band .dl-card { background: var(--cream); }
.dl-card.recommended { border: 2px solid var(--forest-700); }
.dl-card h3 { font-size: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dl-card .button { justify-self: start; }
.badge { font: 700 12px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; background: var(--forest-700); color: #fff; padding: 5px 8px; border-radius: 4px; }
.file-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; font-size: 15px; margin: 0; }
.file-facts dt { color: var(--muted); }
.file-facts dd { margin: 0; min-width: 0; }
.hash { font: 13px/1.5 Consolas, "Cascadia Mono", monospace; overflow-wrap: anywhere; background: #f3eee0; padding: 2px 6px; border-radius: 4px; }
.copy { font: 600 14px var(--font-sans); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; color: var(--forest-700); margin-top: 6px; }
.copy[hidden] { display: none; }
.details-list { margin-top: 28px; max-width: 860px; display: grid; gap: 12px; }
details.plain { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.band details.plain { background: var(--cream); }
details.plain summary { cursor: pointer; font: 600 18px/1.4 var(--font-serif); color: var(--forest-900); padding: 16px 0; }
details.plain[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
details.plain > div { padding-bottom: 18px; display: grid; gap: 10px; max-width: var(--measure); }
details.plain code { font: 14px Consolas, "Cascadia Mono", monospace; background: #f3eee0; padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.req { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.req dt { font-weight: 600; }
.req dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .req { grid-template-columns: minmax(0, 1fr); } .req dd { margin-bottom: 8px; } }
.planned { max-width: 760px; }

/* ---------- Discover ---------- */
.search-field { display: flex; gap: 8px; max-width: 620px; margin-top: 24px; }
.search-field input { flex: 1; min-width: 0; font: 17px var(--font-sans); padding: 13px 16px; border: 1px solid #cbbf9e; border-radius: 8px; background: #fff; color: var(--ink); }
.search-field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.directory-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Search ---------- */
.results { max-width: 860px; }
.result-group h2 { font-size: 22px; margin-bottom: 12px; }
.result-group + .result-group { margin-top: 36px; }
.result { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.result h3 { font-size: 20px; }
.result mark { background: #f6e7b0; color: inherit; padding: 0 2px; border-radius: 2px; }
.result .where { font-size: 14px; color: var(--gold-ink); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Interactive experiences (Character Workshop) ---------- */
.experience-intro { padding-block: 24px 12px; }
.experience-intro h1 { font-size: clamp(30px, 4vw, 42px); }
.experience-intro > p { color: var(--muted); max-width: 60ch; margin-top: 8px; }
.experience-intro details { margin-top: 12px; max-width: 70ch; }
.experience-intro summary { cursor: pointer; font-weight: 600; color: var(--forest-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-900); color: #d6cfb8; margin-top: 64px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 44px 28px; }
.site-footer h2 { font: 700 13px/1.3 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a, .link-button { color: #ece5cf; text-decoration: none; }
.site-footer a:hover, .link-button:hover { text-decoration: underline; color: #fff; }
.site-footer .brand span { font-size: 22px; }
.site-footer .brand img { width: 40px; height: 40px; }
.site-footer .about p { margin-top: 14px; max-width: 34ch; }
.site-footer .small { border-top: 1px solid rgba(255,255,255,.1); grid-column: 1 / -1; padding-top: 18px; color: #aea78f; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.link-button { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.link-button[hidden] { display: none; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .about { grid-column: 1 / -1; } }

/* ---------- Cookie notice (only when analytics is configured) ---------- */
.cookie-notice { position: fixed; z-index: 30; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; padding: 1rem 1.2rem; background: var(--forest-900); color: #f4eedb; border: 1px solid var(--gold); border-radius: var(--radius); box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); font-size: 15px; }
.cookie-notice p { margin: 0 0 .8rem; }
.cookie-notice a { color: #e6c97a; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-notice .btn { font: 600 15px var(--font-sans); padding: .5rem 1rem; border-radius: 8px; cursor: pointer; border: 2px solid var(--gold); }
.cookie-notice .btn-primary { background: var(--gold); color: var(--forest-900); }
.cookie-notice .btn-outline { background: transparent; color: #fffaf0; border-color: #e6c97a; }
.cookie-notice[hidden] { display: none; }

@media print { .site-header, .site-footer, .cookie-notice, .related { display: none; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Featured book card on the homepage: cover beside the text, balanced with the neighbouring cards. */
.book-card .featured-book { grid-template-columns: 120px minmax(0, 1fr); padding-bottom: 12px; }
.book-card .featured-book .text p { color: var(--muted); }
.book-card .featured-book .byline { color: var(--ink); font-weight: 600; }
