:root {
  color-scheme: dark;
  --bg: #111815;
  --panel: #1a2421;
  --ink: #faf2e3;
  --muted: #d1caba;
  --quiet: #b2bdb6;
  --copper: #e5ba81;
  --nickel: #e1e8e7;
  --teal: #8fd4c8;
  --line: #3a4841;
  --sans: "Segoe UI", system-ui, sans-serif;
  --serif: Baskerville, "Palatino Linotype", "Book Antiqua", serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.62 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
[id] { scroll-margin-block-start: 1.25rem; }
p, ul { margin-block: 0; }
/* Keep short editorial headings balanced and avoid a single word on the last line of copy. */
main :where(h1, h2, h3) { text-wrap: balance; }
main :where(p:not(.kicker), .channel-copy > span) { text-wrap: pretty; }
.wrap { width: min(76rem, calc(100% - 2 * clamp(1.125rem, 5vw, 4rem))); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: .5rem; left: 1rem; padding: .5rem .9rem; background: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
.preview { padding: .35rem 1rem; text-align: center; color: #242a21; background: #e2d6c3; font-size: .8125rem; font-weight: 650; }
.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1.5rem; padding-block: .85rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; font-size: 1.125rem; font-weight: 650; white-space: nowrap; letter-spacing: -.025em; }
.nav { display: flex; flex-wrap: wrap; gap: 0 clamp(.8rem, 2.1vw, 1.65rem); padding: 0; list-style: none; }
.nav a, .top-subscribe { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-size: .9375rem; }
.nav a:hover, .top-subscribe:hover { color: var(--teal); }
.top-subscribe { border-bottom: 1px solid var(--line); }
.hero { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: radial-gradient(ellipse at 72% 33%, #28453f 0%, #1a2b27 28%, transparent 64%), #121b18; }
.hero-inner { position: relative; isolation: isolate; min-height: clamp(27rem, 46vw, 36rem); display: grid; align-items: center; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.hero-copy { position: relative; z-index: 1; padding-block: clamp(2.5rem, 3.7vw, 3.75rem); }
.kicker { color: var(--copper); font-size: .875rem; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; }
.hero-kicker { margin-bottom: 1.4rem; color: var(--teal); letter-spacing: .045em; font-size: clamp(.78rem, 1.5vw, .875rem); text-wrap: balance; }
h1, h2, h3 { margin: 0; color: inherit; font: 500 2rem/1.06 var(--serif); letter-spacing: -.035em; }
h1 { color: var(--nickel); font-size: clamp(3.65rem, 7.6vw, 6.65rem); line-height: .94; letter-spacing: -.065em; }
h1 span { display: block; color: var(--copper); }
.hero-lede { max-width: 56ch; margin-top: 1.35rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.125rem); }
.hero-lede p + p { margin-top: .72em; }
.actions { display: flex; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .55rem 1.1rem; border-radius: .2rem; font-weight: 690; }
.primary { background: var(--nickel); color: #13231e; }
.primary:hover { background: var(--teal); }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--copper); text-decoration: underline; text-underline-offset: .3em; font-weight: 650; }
.text-link:hover { color: var(--ink); }
.hero-feature { display: grid; justify-items: start; width: fit-content; max-width: 100%; margin-top: 1.45rem; padding: .55rem .9rem .65rem; border-left: 2px solid #b78d61; border-radius: 0 .25rem .25rem 0; background: #242820; line-height: 1.38; }
.hero-feature strong { color: var(--ink); text-decoration: underline; text-underline-offset: .23em; font-size: 1.0625rem; font-weight: 650; }
.hero-feature:hover { background: #343229; }
.hero-feature .kicker { margin-bottom: .1rem; }
.feature-question { margin-top: .18rem; color: var(--muted); font-size: .9375rem; }
.portrait { width: 116%; position: relative; align-self: start; margin: clamp(2.5rem, 4.4vw, 4.75rem) 0 0 -7%; overflow: visible; }
.portrait img { width: 100%; height: auto; object-fit: contain; mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 13%, #000 94%, transparent 100%); mask-composite: intersect; }
@media (min-width: 64rem) {
  .hero-lede { max-width: 60ch; margin-top: 1.1rem; font-size: 1.0625rem; line-height: 1.5; }
  .hero .actions { margin-top: 1rem; }
  .hero-feature { margin-top: .85rem; }
  .portrait { margin-top: clamp(2.5rem, 3.7vw, 3.75rem); }
}
.main-content > section { margin-block: clamp(3rem, 7vw, 5.75rem); }
.main-content > .channels { margin-top: 0; padding-top: clamp(1.35rem, 3vw, 2.1rem); }
.channel-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .2rem 1rem; margin-bottom: .8rem; }
.channels-label { font-family: var(--sans); font-weight: 680; }
.motion-preview-control { min-height: 2.75rem; padding: .25rem .7rem; border: 1px solid var(--line); border-radius: .25rem; background: #1a221e; color: var(--muted); font: 600 .875rem/1.3 var(--sans); cursor: pointer; }
.motion-preview-control:hover { background: #293830; color: var(--ink); }
.motion-preview-control:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.channel-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
.channel { display: grid; grid-template-columns: 1fr; align-content: start; justify-items: center; text-align: center; gap: .52rem; min-width: 0; padding: .85rem .35rem .9rem; border: 1px solid var(--line); border-radius: .6rem; color: var(--ink); background: #1a221e; transition: background .18s ease, border-color .18s ease; }
.channel:hover { background: #293830; border-color: #8db7a7; }
.channel-table { background: #24372d; border-color: #557461; }
.channel-books { background: #252921; }
.channel-substack { background: #282820; }
.channel-romance { background: #312821; border-color: #725846; }
.channel-romance:hover { background: #413026; border-color: var(--copper); }
.channel-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; color: var(--copper); border: 1px solid #625744; border-radius: 50%; background: #262b23; }
.channel-icon svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.channel-table .channel-icon { color: var(--teal); background: #314637; border-color: #648772; }
.channel-romance .channel-icon { color: #efc097; background: #3a2a22; border-color: #896448; }
.channel-copy { display: grid; gap: .06rem; line-height: 1.28; }
.channel-copy strong { font-size: clamp(.94rem, 1.9vw, 1.14rem); font-weight: 660; }
.channel-copy > span { color: var(--muted); font-size: .875rem; }

.hero-feature { position: relative; }
.hero-feature::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -2px;
  width: 2px;
  pointer-events: none;
  background: linear-gradient(0deg, transparent 5%, #ffca91 50%, transparent 95%) 0 -100% / 100% 50% no-repeat;
  opacity: 0;
  animation: door-light 1.35s .2s ease-out 1 both;
}
.channel-has-arrived .channel-icon,
.motion-preview-playing .channel-icon { animation: channel-rise .8s cubic-bezier(.18,.65,.25,1) var(--float-delay, 0ms) 1 both; }
.channel:nth-child(2) { --float-delay: 80ms; }
.channel:nth-child(3) { --float-delay: 160ms; }
.channel:nth-child(4) { --float-delay: 240ms; }
.channel:nth-child(5) { --float-delay: 320ms; }
.channel:nth-child(6) { --float-delay: 400ms; }

@media (prefers-reduced-motion: no-preference) {
  .channel-icon { transition: translate .24s ease, border-color .24s ease, box-shadow .24s ease; }
  .channel:focus-visible .channel-icon { translate: 0 -3px; }
}

.channel:focus-visible .channel-icon {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px #e5ba8126;
}
@media (hover: hover) {
  .channel:hover .channel-icon {
    border-color: var(--copper);
    box-shadow: 0 0 0 3px #e5ba8126;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .channel:hover .channel-icon { translate: 0 -3px; }
}
@keyframes channel-rise {
  0% { transform: translateY(.65rem); }
  72% { transform: translateY(-.17rem); }
  100% { transform: translateY(0); }
}
@keyframes door-light {
  0% { opacity: 0; background-position: 0 -100%; }
  24% { opacity: 1; box-shadow: 0 0 8px #edab6959; }
  75% { opacity: .85; }
  100% { opacity: 0; background-position: 0 200%; }
}
.section-lead { display: grid; grid-template-columns: 1fr minmax(0, 21rem); align-items: end; gap: .75rem 3rem; margin-bottom: 1.35rem; }
.section-lead h2, .letters h2 { font-size: clamp(2.2rem, 5vw, 4.125rem); }
.section-lead p:not(.kicker), .letters > p { color: var(--muted); }
.section-lead .kicker, .letters .kicker { margin-bottom: .4rem; }
.doorways, .shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.door, .shelf-item, .letters { border: 1px solid var(--line); border-radius: .4rem; overflow: hidden; }
.door { background: #1e2621; }
.door-image { height: clamp(8rem, 20vw, 15rem); background-color: #181915; background-size: cover; background-position: center; }
.table .door-image { background-image: linear-gradient(0deg, #1e2621, transparent 38%), url("../public/images/the-table-banner.png"); }
.gatekeepers .door-image { background: linear-gradient(0deg, #1c2323, transparent 55%), url("../public/images/book-gatekeepers-clean.jpg") center 13% / min(44%, 14rem) auto no-repeat, radial-gradient(ellipse at 50% 21%, #554836, #1c2428 66%); }
.gatekeepers { background: #1c2323; }
.door-copy { position: relative; padding: .8rem clamp(1.35rem, 3vw, 2.25rem) 1.25rem; }
.door-copy h3 { margin-block: .5rem .6rem; font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
.door-copy p:not(.kicker), .shelf-copy p:not(.kicker) { color: var(--muted); max-width: 44ch; }
.door-copy .text-link, .shelf-copy .text-link { margin-top: .55rem; }
.shelf-item { display: grid; grid-template-columns: minmax(5.5rem, .69fr) minmax(0, 1fr); align-items: center; gap: clamp(.9rem, 2.5vw, 1.7rem); min-height: 14rem; padding: clamp(1rem, 3vw, 1.8rem); background: var(--panel); }
.pebble { background: radial-gradient(ellipse at top left, #50412f, transparent 70%), var(--panel); }
.vermont { background: radial-gradient(ellipse at top left, #5a3c2b, transparent 70%), #241f1c; }
.cover-frame { display: flex; justify-content: center; align-items: center; }
.cover-frame img { width: auto; max-width: 100%; height: clamp(7.5rem, 15vw, 12.5rem); object-fit: contain; filter: drop-shadow(0 .6rem .8rem #0009); }
.shelf-copy h3 { margin-block: .55rem; font-size: clamp(1.6rem, 2.7vw, 2.35rem); }
.shelf-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.35rem; border-bottom: 1px solid var(--line); margin-top: .35rem; }
.shelf-nav a { display: inline-flex; align-items: center; min-height: 2.9rem; }
.shelf-nav a:not(.text-link) { color: var(--muted); }
.shelf-nav a:hover { color: var(--teal); }
.shelf-nav .text-link { margin-left: auto; }
.letters { display: grid; align-items: center; grid-template-columns: 1fr minmax(0, 20rem) auto; gap: 1.2rem 2rem; padding: clamp(1.25rem, 4vw, 3rem); background: linear-gradient(110deg, #293b32, #19201c); }
.letters h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.music { display: grid; grid-template-columns: 1fr minmax(0, 22rem) auto; align-items: center; gap: .85rem 1.75rem; border-block: 1px solid var(--line); padding-block: 1.3rem; }
.music h2 { margin-top: .3rem; font-size: clamp(1.6rem, 3.25vw, 2.4rem); }
.music > p { color: var(--muted); }
.footer { border-top: 1px solid var(--line); min-height: 5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; color: var(--quiet); font-size: .9375rem; padding-block: 1rem; }
.footer a { text-decoration: underline; text-underline-offset: .3em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 58rem) {
  .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf-item { align-items: start; }
  .letters { grid-template-columns: 1fr auto; }
  .letters > p { grid-row: 2; }
  .letters .button { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 45rem) {
  .top { justify-content: flex-start; }
  .top nav { order: 3; flex-basis: 100%; }
  .top-subscribe { margin-left: auto; min-height: 2.25rem; }
  .nav a { min-height: 2.3rem; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-bottom: .5rem; }
  .hero-kicker { margin-bottom: 1rem; }
  h1 { font-size: clamp(3.15rem, 9.5vw, 5.35rem); }
  .hero-lede { margin-top: 1rem; }
  .actions { margin-top: 1rem; }
  .hero-feature { margin-top: .85rem; }
  .portrait { width: min(103%, 27rem); align-self: center; margin: .75rem auto 0; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-lead { grid-template-columns: 1fr; }
  .doorways, .shelf, .music { grid-template-columns: 1fr; }
  .door-image { height: clamp(8.5rem, 32vw, 15rem); }
  .shelf-nav .text-link { margin-left: 0; }
}
@media (max-width: 45rem) {
  .channel:nth-child(n) { --float-delay: 0ms; }
  .channel-has-arrived .channel-icon { animation-duration: .42s; animation-name: channel-rise-small; }
  .motion-preview-playing .channel-icon { animation-duration: .72s; animation-name: channel-rise-small; }
  @keyframes channel-rise-small {
    from { transform: translateY(.45rem); }
    to { transform: translateY(0); }
  }
}
@media (max-width: 29rem) {
  .letters { grid-template-columns: 1fr; }
  .letters .button { grid-column: 1; grid-row: auto; justify-self: start; }
}
@media (max-width: 23rem) {
  .shelf-item { grid-template-columns: 1fr; }
  .cover-frame { justify-content: flex-start; }
}
@media (forced-colors: active) {
  .button { border: 1px solid LinkText; }
}
@media (prefers-reduced-motion: reduce) {
  .channel { transition: none; }
  body:not(.motion-preview-playing) .hero-feature::after,
  body:not(.motion-preview-playing) .channel-icon { animation: none; }
}
.motion-preview-reset .hero-feature::after,
.motion-preview-reset .channel-icon { animation: none; }
