/* Gwyneth Lisle · author site
   "The window of Hale & Esposito": cream paper, harbour navy, awning green and red, a little gold.
   At dusk the harbour lights come on (dark theme). No web fonts: a warm serif stack and the system sans. */

:root {
  color-scheme: light;
  --bg: #FBF7EE;
  --bg-2: #F3ECDC;
  --surface: #FFFDF8;
  --ink: #1E1B18;
  --ink-2: #463F38;
  --muted: #74695E;
  --navy: #14294A;
  --navy-2: #0C1B33;
  --green: #1C6B4D;
  --green-2: #15553D;
  --red: #B4202A;
  --red-2: #931A22;
  --gold: #D9A441;
  --gold-2: #F1CF7E;
  --stone: #A8A39A;
  --line: #E4D9C3;
  --link: #1C6B4D;
  --on-dark: #FBF3E2;
  --shadow: 0 1px 2px rgba(30,27,24,.05), 0 14px 40px rgba(30,27,24,.10);
  --shadow-soft: 0 1px 0 rgba(30,27,24,.04), 0 6px 18px rgba(30,27,24,.07);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --r: 16px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1626; --bg-2: #142036; --surface: #172540; --ink: #F3EBDC; --ink-2: #D9CFBE; --muted: #A79C8C;
    --line: #26375A; --link: #8FD3B4; --shadow: 0 14px 40px rgba(0,0,0,.35); --shadow-soft: 0 6px 18px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1626; --bg-2: #142036; --surface: #172540; --ink: #F3EBDC; --ink-2: #D9CFBE; --muted: #A79C8C;
  --line: #26375A; --link: #8FD3B4; --shadow: 0 14px 40px rgba(0,0,0,.35); --shadow-soft: 0 6px 18px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.62 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; display: block; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--ink-2); }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.15rem/1 var(--display); color: var(--ink); text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--green); color: var(--on-dark); display: grid; place-items: center; font-size: 1.05rem; box-shadow: inset 0 -6px 0 var(--red); }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { padding: 8px 11px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-2); color: var(--ink); }
.icon-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: grid; margin-left: auto; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); color: #fff; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* hero */
.hero { position: relative; overflow: hidden; color: var(--on-dark); background: linear-gradient(180deg, #13284A 0%, #2D4B7A 45%, #E9A267 85%, #F4C287 100%); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; padding-top: 80px; padding-bottom: 300px; }
.hero h1 { color: #FFF6E6; font-size: clamp(2.6rem, 6.2vw, 4.8rem); }
.hero h1 em { font-weight: 400; color: var(--gold-2); }
.hero .eyebrow { color: var(--gold-2); }
.hero p { color: #F5EBDA; }
.clock { font-family: var(--display); font-size: 1.05rem; margin-top: 18px; color: #F5EBDA; }
.clock b { font-size: 1.6rem; color: #fff; padding: 0 2px; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; padding-bottom: 200px; } }

/* sections */
section { padding: 76px 0; }
.band { background: var(--bg-2); }
.dark { background: var(--navy); color: var(--on-dark); }
.dark h2, .dark h3 { color: #FFF6E6; }
.dark .muted { color: #B9C3D6; }
.dark a { color: var(--gold-2); }
.dark .card, .dark .card h3, .dark a.card:hover { color: var(--ink); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-soft); color: var(--ink); text-decoration: none; display: block; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); transition: .18s; }
.card h3 { margin-bottom: .35em; }
.card .go { color: var(--red); font-weight: 600; margin-top: 10px; display: inline-block; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--green); }

/* gossip */
.gossip { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; box-shadow: var(--shadow-soft); }
.gossip .bubble { width: 54px; height: 54px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font: 700 1.5rem/1 var(--display); color: var(--navy); }
.gossip q { font: italic 1.25rem/1.45 var(--display); quotes: "\201C" "\201D"; display: block; }
.gossip cite { display: block; margin-top: 8px; font-style: normal; color: var(--muted); }

/* books */
.book { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
@media (max-width: 760px) { .book { grid-template-columns: 1fr; } .book .cover { max-width: 260px; } }
.cover { border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,.15), 0 22px 50px rgba(20,41,74,.35); }
.cover-ph { aspect-ratio: 5/8; border-radius: 6px; background: linear-gradient(160deg, var(--navy), var(--green)); color: var(--on-dark); display: grid; place-items: center; text-align: center; padding: 20px; font-family: var(--display); font-size: 1.3rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0; font-size: .96rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.hook { font: 700 1.45rem/1.35 var(--display); color: var(--ink); }
.series-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .series-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .series-row { grid-template-columns: 1fr; } }
.series-row .card img, .series-row .card .cover-ph { margin-bottom: 14px; }
.series-row .card { display: flex; flex-direction: column; }
.series-row .card .tag { align-self: flex-start; }
.series-row .card .btns { margin-top: auto; padding-top: 6px; }
.excerpt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 34px clamp(20px, 5vw, 56px); font: 1.08rem/1.75 var(--display); }
.excerpt p { text-indent: 1.4em; margin: 0; }
.excerpt p:first-of-type { text-indent: 0; }
.excerpt .fade { text-align: center; color: var(--muted); margin-top: 18px; text-indent: 0; font-family: var(--sans); }

/* map */
.map { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: #CFE3E8; }
.map svg { display: block; width: 100%; height: auto; }
.pin { cursor: pointer; }
.pin circle { fill: var(--red); stroke: #fff; stroke-width: 3; transition: .15s; }
.pin text { font: 600 15px var(--sans); fill: var(--navy-2); paint-order: stroke; stroke: #FFF8EA; stroke-width: 4px; }
.pin:hover circle, .pin.on circle { fill: var(--gold); r: 13; }
.pin.seen circle { fill: var(--green); }
.place-panel { margin-top: 18px; }
.place-panel h3 { color: var(--green); }
.progress { font-size: .95rem; color: var(--muted); }

/* characters */
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--red); font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; display: block; }

/* recipes */
.recipe-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
.note { background: var(--bg-2); border-left: 4px solid var(--gold); padding: 18px 22px; border-radius: 0 var(--r) var(--r) 0; font: italic 1.08rem/1.6 var(--display); color: var(--ink-2); margin: 22px 0; }
.ingredients li { margin: 6px 0; }
.method li { margin: 0 0 12px; padding-left: 4px; }
.method li::marker { color: var(--red); font-weight: 700; }
.tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 18px; }
.tools label { font-weight: 600; font-size: .95rem; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button, .timer button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.stepper output { min-width: 2ch; text-align: center; font-weight: 700; }
.timer { display: inline-flex; align-items: center; gap: 8px; }
.timer .t { font: 700 1.2rem/1 var(--display); min-width: 4.4ch; text-align: center; }
.timer .start { width: auto; padding: 0 14px; border-radius: 999px; background: var(--green); color: #fff; border: 0; }
.tip { color: var(--red); font: italic 1.1rem/1.5 var(--display); margin-top: 20px; }
.bonus { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; background: linear-gradient(135deg, var(--navy), #20406E); color: var(--on-dark); border-radius: 22px; padding: 34px clamp(22px, 5vw, 48px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.bonus::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: repeating-linear-gradient(90deg, var(--green) 0 40px, #fff 40px 80px, var(--red) 80px 120px); }
.bonus h2 { color: #FFF6E6; }
@media (max-width: 700px) { .bonus { grid-template-columns: 1fr; } }

/* games */
.quiz-q { margin-bottom: 26px; }
.quiz-q legend { font: 700 1.2rem/1.35 var(--display); margin-bottom: 10px; }
.quiz-q fieldset { border: 0; padding: 0; margin: 0; }
.opt { display: block; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 14px; margin: 7px 0; cursor: pointer; }
.opt:hover { border-color: var(--green); }
.opt input { margin-right: 10px; accent-color: var(--green); }
.result { display: none; }
.result.show { display: block; }
.result .card { border-left: 6px solid var(--gold); }
.clues li { margin: 8px 0; }
.suspects { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.suspect { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 16px; cursor: pointer; font: inherit; color: var(--ink); }
.suspect:hover { border-color: var(--red); }
.suspect.wrong { opacity: .45; cursor: not-allowed; }
.suspect.right { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent); }
.statement { font-style: italic; color: var(--ink-2); }
.verdict { margin-top: 18px; }

/* newsletter + footer */
.news { text-align: center; }
.news p { max-width: 560px; margin: 0 auto 1em; }
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--muted); font-size: .92rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.site-foot a { color: var(--ink-2); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 5px 0; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font: 700 1.15rem/1.35 var(--display); cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--ink-2); }
.page-head { padding: 64px 0 28px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== Two series (29/11/2026) =====
   body.fs = The Fellside House Mysteries: Dales evening violet, fell green, brass. Same type and author mark. */
body.fs {
  --bg: #F7F5F1; --bg-2: #EDE9F1; --surface: #FFFEFB; --ink: #1D1A22; --ink-2: #433D4C; --muted: #6E6779;
  --navy: #2A2140; --navy-2: #1A1429; --green: #3D6B4F; --green-2: #2F5540;
  --red: #8A6526; --red-2: #6F5020; --gold: #C59A45; --gold-2: #E5C987; --line: #DFD8E6; --link: #3D6B4F;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.fs { --bg: #14111C; --bg-2: #1C1828; --surface: #221D31; --ink: #F0EBF4; --ink-2: #D6CEDF; --muted: #A69DB3; --line: #342C47; --link: #9FD1B0; }
}
:root[data-theme="dark"] body.fs { --bg: #14111C; --bg-2: #1C1828; --surface: #221D31; --ink: #F0EBF4; --ink-2: #D6CEDF; --muted: #A69DB3; --line: #342C47; --link: #9FD1B0; }
body.fs .brand .mark { background: var(--navy); box-shadow: inset 0 -6px 0 var(--green); color: var(--gold-2); }
body.fs .hero { background: linear-gradient(180deg, #1F1836 0%, #46336B 40%, #8E6A93 70%, #D9A877 92%, #EBC48E 100%); }
body.fs .bonus { background: linear-gradient(135deg, var(--navy), #463466); }
body.fs .bonus::after { background: repeating-linear-gradient(90deg, #8E8778 0 26px, #A39C8C 26px 30px, #7C7568 30px 58px, #A39C8C 58px 62px); height: 10px; }
body.fs .tag { color: var(--green); }
.soon { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 2px dashed var(--gold); color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.phrase { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 10px 26px; margin: 0; }
.phrase dt { font: 700 1.2rem/1.3 var(--display); color: var(--navy); }
.phrase dd { margin: 0 0 12px; color: var(--ink-2); }
:root[data-theme="dark"] body.fs .phrase dt { color: var(--gold-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.fs .phrase dt { color: var(--gold-2); } }
@media (max-width: 620px) { .phrase { grid-template-columns: 1fr; gap: 2px; } .phrase dd { margin-bottom: 16px; } }
.series-switch { font-size: .88rem; color: var(--muted); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.series-switch .wrap { text-align: right; padding-top: 6px; padding-bottom: 6px; line-height: 1.4; }
@media (max-width: 620px) { .series-switch .wrap { text-align: center; font-size: .82rem; } }
.series-switch a { color: var(--ink-2); }

/* choice page */
.choose-head { text-align: center; padding-top: 64px; padding-bottom: 30px; }
.choose-head h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.choose-head .lead { max-width: 640px; margin: 0 auto; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-bottom: 70px; }
@media (max-width: 860px) { .choose { grid-template-columns: 1fr; } }
.door { position: relative; overflow: hidden; border-radius: 26px; padding: 36px clamp(22px, 4vw, 42px) 38px; color: #FFF6E6; display: flex; flex-direction: column; box-shadow: var(--shadow); text-decoration: none; }
.door h2 { color: #FFF6E6; font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: .3em; }
.door .eyebrow { margin-bottom: 10px; }
.door p { color: #F3EADB; }
.door .hook { color: #FFF6E6; font-size: 1.25rem; font-weight: 400; font-style: italic; }
.door .covers { display: flex; justify-content: center; align-items: flex-end; margin: 10px 0 26px; }
@media (min-width: 861px) { .door .covers { min-height: 230px; } }
.door .covers img { width: 31%; max-width: 150px; border-radius: 5px; box-shadow: 0 2px 4px rgba(0,0,0,.25), 0 18px 36px rgba(0,0,0,.4); }
.door .covers img:nth-child(1) { transform: rotate(-6deg) translateX(18px); }
.door .covers img:nth-child(2) { position: relative; z-index: 2; width: 36%; max-width: 172px; }
.door .covers img:nth-child(3) { transform: rotate(6deg) translateX(-18px); }
.door .btns { margin-top: auto; padding-top: 10px; }
.door-connie { background: linear-gradient(170deg, #14294A 0%, #1C6B4D 100%); }
.door-connie::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(90deg, #1C6B4D 0 34px, #fff 34px 68px, #B4202A 68px 102px); }
.door-connie .eyebrow { color: #F1CF7E; }
.door-connie .btn-main { background: #B4202A; color: #fff; }
.door-connie .btn-main:hover { background: #931A22; color: #fff; }
.door-fs { background: linear-gradient(170deg, #2A2140 0%, #46336B 55%, #3D6B4F 100%); }
.door-fs::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(90deg, #8E8778 0 26px, #A39C8C 26px 30px, #7C7568 30px 58px, #A39C8C 58px 62px); }
.door-fs .eyebrow { color: #E5C987; }
.door-fs .btn-main { background: #C59A45; color: #1D1A22; }
.door-fs .btn-main:hover { background: #E5C987; color: #1D1A22; }
.door .btn-line { color: #FFF6E6; }
.door .btn-line:hover { color: #fff; background: rgba(255,255,255,.08); }
.fs-row { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .fs-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .fs-row { grid-template-columns: 1fr; } }
