/* Simon Donnelly Books. Built on the covers: charcoal where covers live, cream where people read, one yellow word per screen. */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-semibold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/poppins-extrabold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/poppins-black.woff2") format("woff2"); }

:root {
  --charcoal: #1E1E1D;
  --charcoal-2: #2A2927;
  --deep: #141414;
  --black: #0A0A0A;
  --cream: #FBF4E6;
  --cream-2: #F1E7D3;
  --yellow: #FFE500;
  --ink: #1A1A1A;
  --muted-dark: #B8B2A7;
  --muted-light: #5A544B;
  --line-dark: #35332F;
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --base: 18px;
  color-scheme: dark;
}
html { font-size: var(--base); -webkit-text-size-adjust: 100%; }
html.big { --base: 21px; }
@media (min-width: 900px) { html { --base: 19px; } html.big { --base: 22px; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--charcoal); color: var(--cream); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--deep); }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--black); padding: 10px 16px; font-weight: 600; z-index: 20; }
.skip:focus { left: 16px; top: 16px; }

.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1120px; margin: 0 auto; }
.narrow { max-width: 720px; }
.cream { background: var(--cream); color: var(--ink); }
.cream :focus-visible { outline-color: var(--ink); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--deep); border-bottom: 1px solid var(--line-dark); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: block; line-height: 0; flex: 0 1 auto; min-width: 0; }
.logo img { height: auto; width: 220px; max-width: 100%; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 0.82rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow); }
.size { display: flex; border: 1px solid var(--line-dark); border-radius: 6px; overflow: hidden; }
.size button { background: transparent; color: var(--cream); border: 0; font: 600 0.78rem var(--font); padding: 6px 9px; cursor: pointer; min-height: 36px; }
.size button[aria-pressed="true"] { background: var(--cream); color: var(--black); }
@media (max-width: 820px) { .nav .wide { display: none; } .nav { gap: 12px; } }
@media (max-width: 420px) { .bar { gap: 10px; } .nav { gap: 10px; } .nav a { font-size: 0.75rem; } .size button { padding: 6px 7px; } }

/* Type */
h1, h2, h3 { font-weight: 900; text-transform: uppercase; line-height: 0.98; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 5vw, 2.8rem); overflow-wrap: break-word; }
h3 { font-size: clamp(1.3rem, 3.6vw, 1.8rem); }
.y { color: var(--yellow); }
.cream .y { color: var(--ink); background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.eyebrow { font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.68rem; color: var(--muted-dark); margin: 0; }
.cream .eyebrow { color: var(--muted-light); }
.lede { font-size: 1.12rem; margin: 0; max-width: 36ch; }
p { margin: 0; }
.prose { display: flex; flex-direction: column; gap: 1em; max-width: 62ch; }
.prose p { font-size: 1.02rem; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 8px; font: 600 1rem var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-main { background: var(--yellow); color: var(--black); }
.btn-main:hover { background: #FFF06A; }
.btn-line { border-color: var(--cream); color: var(--cream); }
.btn-line:hover { background: var(--cream); color: var(--black); }
.cream .btn-main { background: var(--ink); color: var(--cream); }
.cream .btn-main:hover { background: #333; }
.cream .btn-line { border-color: var(--ink); color: var(--ink); }
.cream .btn-line:hover { background: var(--ink); color: var(--cream); }
.price { font-weight: 800; }

/* Covers */
.cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px #000; }
.cover-glow { box-shadow: 0 30px 80px -24px rgba(255, 210, 60, 0.3), 0 0 0 1px #000; }

/* Hero */
.hero { padding-block: 48px 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 6.5vw, 4.4rem); }
.hero .hero-title { font-size: clamp(2.3rem, 6.5vw, 4.4rem); }
h1.eyebrow { font-size: 0.68rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-dark); }
.cream h1.eyebrow { color: var(--muted-light); }
.tag-line { margin-top: -6px; }
.hero .meta { font-size: 0.85rem; color: var(--muted-dark); }
.hero .cover { max-width: 520px; justify-self: end; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero .cover { order: -1; justify-self: center; max-width: 340px; }
  .hero { padding-block: 28px 40px; }
}

/* Strip */
.strip { background: var(--yellow); color: var(--black); padding-block: 16px; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.strip p { font-weight: 600; }
.strip strong { font-weight: 900; text-transform: uppercase; }
.strip a { font-weight: 600; }

/* Tagline */
.tagline { padding-block: 64px 12px; }
.tagline h2 { font-size: clamp(2rem, 7vw, 4rem); }
.tagline p { margin-top: 16px; max-width: 46ch; font-size: 1.1rem; color: #DCD5C7; }

/* Shelf */
.shelf { padding-block: 48px 64px; }
.shelf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 32px; }
.shelf-head p { color: var(--muted-dark); font-size: 0.9rem; max-width: 40ch; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
.book { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.book a.c { display: block; transition: transform .2s ease; }
.book a.c:hover { transform: translateY(-4px); }
.book h3 { font-size: 1rem; line-height: 1.15; }
.book h3 a { text-decoration: none; }
.book p { font-size: 0.9rem; color: #DCD5C7; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px solid #4A473F; }
.tag.on { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.cream .tag { border-color: #C9BDA5; }
.cream .tag.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .book a.c { transition: none; } }

/* Start here */
.start { padding-block: 64px; }
.start .intro { margin: 12px 0 28px; max-width: 52ch; }
.pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pick a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; background: var(--cream-2); border-radius: 10px; padding: 14px; }
.pick a:hover { background: #E8DCC4; }
.pick img { width: 72px; height: 72px; border-radius: 3px; }
.pick .if { display: block; font-size: 0.8rem; color: var(--muted-light); line-height: 1.35; }
.pick .then { display: block; font-weight: 600; line-height: 1.3; margin-top: 2px; }
@media (max-width: 760px) { .pick { grid-template-columns: 1fr; } }

/* Listen card */
.listen { padding-block: 64px; }
.listen-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center; background: var(--charcoal-2); border: 1px solid var(--line-dark); border-radius: 12px; padding: 28px; }
.listen-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 760px) { .listen-card { grid-template-columns: 1fr; padding: 20px; } .listen-card .cover { max-width: 200px; } }

/* Quote */
.quote { padding-block: 56px; }
.quote blockquote { margin: 0 auto; max-width: 30ch; text-align: center; font-weight: 800; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.2; }
.quote figcaption { text-align: center; margin-top: 14px; color: var(--muted-dark); font-size: 0.85rem; }

/* Patreon panel */
.join { padding-block: 64px; }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.join-grid > * { min-width: 0; }
.join h2 { margin: 8px 0 14px; }
.join p { max-width: 46ch; }
.tiers { display: grid; gap: 10px; margin: 22px 0 14px; max-width: 480px; }
.tiers div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; background: var(--cream-2); border-radius: 8px; padding: 12px 14px; font-size: 0.9rem; }
.tiers b { font-weight: 900; text-transform: uppercase; }
.fine { font-size: 0.8rem; color: var(--muted-light); margin-top: 12px; }
.stack { position: relative; height: 300px; max-width: 360px; }
.stack img { position: absolute; width: 62%; border-radius: 3px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.45); }
.stack img:nth-child(1) { left: 0; top: 40px; transform: rotate(-6deg); }
.stack img:nth-child(2) { left: 19%; top: 10px; z-index: 2; }
.stack img:nth-child(3) { left: 38%; top: 46px; transform: rotate(6deg); }
@media (max-width: 760px) { .join-grid { grid-template-columns: 1fr; gap: 24px; } .stack { height: 220px; margin: 0 auto; width: 100%; max-width: 300px; } }

/* Book page */
.bhero { padding-block: 40px 56px; }
.crumbs { font-size: 0.8rem; color: var(--muted-dark); margin-bottom: 24px; }
.crumbs a { color: var(--muted-dark); }
.bgrid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.bgrid .cover { max-width: 480px; }
.bcopy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bcopy h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.85rem; color: var(--muted-dark); }
.facts b { color: var(--cream); font-weight: 600; }
@media (max-width: 760px) { .bgrid { grid-template-columns: 1fr; gap: 24px; } .bgrid .cover { max-width: 340px; margin: 0 auto; } }
.babout { padding-block: 56px; }
.babout h2 { margin-bottom: 20px; }
.place { margin-top: 28px; padding: 16px 18px; background: var(--cream-2); border-radius: 10px; max-width: 62ch; font-size: 0.95rem; }
.more { padding-block: 56px 64px; }
.more .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
@media (max-width: 900px) { .more .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .more .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Simple pages */
.page { padding-block: 48px 64px; }
.page h1 { font-size: clamp(2.2rem, 7vw, 4rem); margin: 8px 0 24px; }
.page h1.eyebrow { font-size: 0.68rem; margin: 0; }
.page .page-title { font-size: clamp(2.2rem, 7vw, 4rem); margin: 8px 0 24px; }
.faq { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; max-width: 70ch; }
.faq details { background: var(--cream-2); border-radius: 10px; padding: 14px 18px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 10px; }
.shows { display: grid; gap: 20px; margin-top: 32px; }
.show { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; background: var(--charcoal-2); border: 1px solid var(--line-dark); border-radius: 12px; padding: 20px; }
.show > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (max-width: 600px) { .show { grid-template-columns: 1fr; } .show .cover { max-width: 180px; } }
.post-list { display: grid; gap: 18px; margin-top: 24px; }
.post-list a { display: block; padding: 18px 20px; background: var(--charcoal-2); border-radius: 10px; text-decoration: none; }
.post-list time, .post time { color: var(--muted-dark); font-size: 0.85rem; }

/* Footer */
footer { padding-block: 48px 40px; border-top: 1px solid var(--line-dark); background: var(--deep); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot .flogo img { height: 120px; width: auto; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.85rem; }
.foot nav { display: flex; flex-direction: column; gap: 14px; }
.foot small { color: var(--muted-dark); font-size: 0.78rem; display: block; margin-top: 14px; max-width: 40ch; }

/* Reel */
.reel { padding-block: 56px; background: var(--deep); }
.reel-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center; }
.reel video { width: 100%; max-width: 300px; aspect-ratio: 9 / 16; height: auto; border-radius: 12px; background: #000; box-shadow: 0 0 0 1px var(--line-dark); }
.reel-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.reel-copy p { max-width: 44ch; }
@media (max-width: 760px) { .reel-grid { grid-template-columns: 1fr; gap: 24px; } .reel video { margin: 0 auto; max-width: 280px; } }
