@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
/* ---------- Colors and type (cream and gold match the Substack page) ---------- */
:root {
  --paper: #FAF7F0;        /* page background, same as Substack */
  --paper-deep: #F1EBDD;   /* tinted panels */
  --ink: #1B1714;          /* body text */
  --ink-soft: #5A5146;     /* secondary text */
  --gold: #8F6A17;         /* accent on light backgrounds, same as Substack */
  --gold-dark: #6F5210;
  --gold-bright: #CC9930;  /* the logo's gold, used on black */
  --black: #000000;        /* header and footer, matches the logo */
  --rule: #DDD4C0;
  --display: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.6rem; line-height: 1.2; }
p { margin: 0 0 1.15em; }
.subtitle { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.25; margin: .5rem 0 0; }

/* Keeps a hyphenated word together on one line (used for "in-depth") */
.nb { white-space: nowrap; }

.wrap { width: 100%; max-width: 71.25rem; margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.25rem); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--black); color: var(--paper); position: sticky; top: 0; z-index: 50; }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; min-height: 68px; }
.brand, .site-nav { flex: none; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--gold-bright); }
.brand img { width: 46px; height: 46px; }
/* Hovering the logo link brightens it (on the home page it is not a link) */
a.brand:hover { color: #F2CB6C; }
a.brand:hover img { filter: brightness(1.25); }
/* On the home page the logo (header and footer) is always shown in its brighter form */
span.brand { color: #F2CB6C; }
span.brand img { filter: brightness(1.25); }
.brand span { font-family: var(--display); font-weight: 600; font-size: 1.7rem; letter-spacing: .01em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
.site-nav a { color: var(--paper); text-decoration: none; font-size: 1rem; white-space: nowrap; }
.site-nav a:hover { color: var(--gold-bright); }
.site-nav a[aria-current="page"] { color: var(--gold-bright); text-decoration: underline; text-underline-offset: .45em; }
.site-nav .nav-cta { background: var(--gold-bright); color: #14110F; font-weight: 600; font-size: 1rem; white-space: nowrap; padding: .5rem 1rem; border-radius: 3px; }
/* On the Discuss page itself the button is greyed out: you are already here */
.site-nav span.nav-cta { filter: grayscale(1); opacity: .5; cursor: default; }
.site-nav a.nav-cta:hover { background: #E0AE44; color: #14110F; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(250,247,240,.5); color: var(--paper); font: inherit; font-size: 1rem; padding: .4rem .9rem; border-radius: 3px; cursor: pointer; }

@media (max-width: 62em) {
  .js .menu-toggle { display: block; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding-bottom: 1rem; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 0; border-top: 1px solid rgba(250,247,240,.16); font-size: 1.1rem; white-space: normal; }
  .site-nav .nav-cta { margin-top: .9rem; text-align: center; border-top: 0; padding: .8rem 1rem; font-size: 1.1rem; white-space: normal; }
}

/* ---------- Buttons ---------- */
.buy { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 0; }
.btn { display: inline-flex; flex-direction: column; justify-content: center; padding: .7rem 1.35rem; border-radius: 3px; text-decoration: none; line-height: 1.3; border: 1px solid transparent; }
.btn-main { font-weight: 600; font-size: 1.1rem; }
.btn-sub { font-size: .9rem; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-secondary { border-color: var(--gold); color: var(--gold-dark); }
.btn-secondary:hover { background: var(--paper-deep); color: var(--ink); }
.on-dark .btn-primary { background: var(--gold-bright); color: #14110F; }
.on-dark .btn-primary:hover { background: #E0AE44; color: #14110F; }
.on-dark .btn-secondary { border-color: var(--gold-bright); color: var(--paper); }
.on-dark .btn-secondary:hover { background: rgba(204,153,48,.18); color: #fff; }
.offer-note { font-size: 1rem; line-height: 1.55; margin: 1.1rem 0 0; max-width: 34em; font-weight: 600; color: var(--ink); }
.on-dark .offer-note { color: var(--paper); }
.offer-note.plain { font-weight: 400; color: var(--ink-soft); }
.on-dark a { color: var(--gold-bright); }
.on-dark a:hover { color: #fff; }

/* ---------- Home: featured book ---------- */
.hero { position: relative; overflow: hidden; background: #0A0705; color: var(--paper); }
.hero::before {
  content: ""; position: absolute; inset: -60px;
  background: var(--hero-img) center 32% / cover no-repeat;
  filter: blur(26px) brightness(.5) saturate(1.15);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,7,5,.25) 0%, rgba(10,7,5,.78) 55%, rgba(10,7,5,.9) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(13.75rem, 21.9rem) 1fr; gap: clamp(1.75rem, 5vw, 4.25rem); align-items: center; padding-block: clamp(2.75rem, 7vw, 5.5rem); }
.hero-cover img { width: 100%; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 30px 70px rgba(0,0,0,.65); }
.hero-status { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.45rem; color: var(--gold-bright); margin: 0 0 .5rem; }
.hero-lede { margin: 1.25rem 0 0; max-width: 33em; color: #EFE8DA; }
.hero-more { margin: 1.4rem 0 0; }
@media (max-width: 47.5em) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-cover { max-width: 200px; }
  .hero::after { background: rgba(10,7,5,.62); }
}

/* ---------- Home: news ---------- */
.news h2 { margin-bottom: 1.5rem; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.news-list li { display: grid; grid-template-columns: 10.5rem 1fr; gap: .25rem 2rem; padding: 1.45rem 0; border-bottom: 1px solid var(--rule); }
.news-list time { color: var(--ink-soft); font-style: italic; }
.news-list h3 { margin-bottom: .35rem; }
.news-list p { margin: 0; max-width: 40em; }
.news-list .more { margin-top: .4rem; }
@media (max-width: 43.75em) { .news-list li { grid-template-columns: 1fr; } }

/* ---------- Home: upcoming book ---------- */
.upcoming { background: var(--paper-deep); }
.upcoming .wrap { display: grid; grid-template-columns: 1fr minmax(11.25rem, 18.1rem); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.upcoming .when { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.4rem; color: var(--gold-dark); margin: 0 0 .4rem; }
.upcoming .text p { max-width: 36em; }
.upcoming .text .subtitle { margin-bottom: 1.2rem; }
.upcoming-cover img { width: 100%; border: 1px solid #000; box-shadow: 0 22px 48px rgba(40,28,8,.28); }
@media (max-width: 47.5em) {
  .upcoming .wrap { grid-template-columns: 1fr; }
  .upcoming-cover { max-width: 220px; order: -1; }
}

/* ---------- Discuss with the author ---------- */
.discuss-band { background: var(--black); color: var(--paper); }
.discuss-band .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.discuss-band h2 { color: var(--gold-bright); }
.discuss-band p { color: #E6DECF; }
.discuss-band p:last-child { margin-bottom: 0; }
@media (max-width: 51.25em) { .discuss-band .wrap { grid-template-columns: 1fr; } }

.discuss-card { background: var(--black); color: var(--paper); padding: 1.7rem 1.6rem 1.8rem; border-radius: 4px; font-size: 1.02rem; line-height: 1.6; }
.discuss-card h2 { color: var(--gold-bright); font-size: 1.95rem; margin-bottom: .8rem; }
.discuss-card p { color: #E6DECF; margin-bottom: .9em; }
.discuss-card .buy { margin-top: 1.2rem; }
.discuss-card .btn { width: 100%; text-align: center; align-items: center; }
.discuss-card .fine { font-size: .93rem; color: #CFC6B4; margin: 1.1rem 0 0; }

/* ---------- Book pages ---------- */
.book-head .wrap { display: grid; grid-template-columns: minmax(13.75rem, 23.1rem) 1fr; gap: clamp(1.75rem, 5vw, 4.5rem); align-items: start; }
.book-head { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.cover-main { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.cover-main img { width: 100%; border: 1px solid #000; box-shadow: 0 24px 54px rgba(40,28,8,.3); }
.cover-thumbs { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; font-size: .95rem; color: var(--ink-soft); }
.cover-thumbs button { padding: 0; border: 0; background: none; cursor: zoom-in; width: 58px; flex: none; }
.cover-thumbs img { width: 100%; border: 1px solid #000; }
.byline { font-size: 1.2rem; margin: 1rem 0 0; }
.status { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.45rem; color: var(--gold-dark); margin: 0 0 .5rem; }
.formats { margin: 1.6rem 0 0; padding: 0; border-top: 1px solid var(--rule); max-width: 30rem; }
.formats div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.formats dt { font-weight: 600; }
.formats dd { margin: 0; text-align: right; color: var(--ink-soft); }
.formats dd b { color: var(--ink); font-weight: 600; }
@media (max-width: 47.5em) {
  .book-head .wrap { grid-template-columns: 1fr; }
  .book-head .cover { max-width: 240px; }
}

.book-body { border-top: 1px solid var(--rule); }
.book-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 21.25rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prose { max-width: 39em; }
.prose h2 { margin: 2.4rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose blockquote { margin: 0 0 2rem; padding: 0 0 0 1.4rem; border-left: 3px solid var(--gold-bright); font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.15rem); line-height: 1.25; }
.prose blockquote cite { display: block; margin-top: .6rem; font-family: var(--text); font-style: normal; font-size: 1rem; color: var(--ink-soft); }
.prose .questions { font-family: var(--display); font-weight: 500; font-style: italic; font-size: 1.45rem; line-height: 1.4; }
.aside { position: sticky; top: 5.75rem; }
@media (max-width: 58.75em) {
  .book-body .wrap { grid-template-columns: 1fr; }
  .aside { position: static; max-width: 32rem; }
}

/* ---------- Discuss page ---------- */
.prose .lede { font-size: 1.25rem; line-height: 1.6; margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.15em; }
.prose li { margin-bottom: .6em; padding-left: .25rem; }
.prose ol li::marker { font-weight: 600; color: var(--gold-dark); }
.callout { background: var(--paper-deep); border-left: 4px solid var(--gold-bright); border-radius: 0 4px 4px 0; padding: 1.7rem 1.8rem 1.1rem; margin: 2.4rem 0; }
.prose .callout h2 { margin-top: 0; }
.star { text-decoration: none; font-weight: 600; padding: 0 .15em; }
.prose .small-print { font-size: .93rem; line-height: 1.6; color: var(--ink-soft); border-top: 1px solid var(--rule); margin-top: 3rem; padding-top: 1.2rem; scroll-margin-top: 6rem; }
.prose .small-print.plain { border-top: 0; margin-top: 0; padding-top: 0; }
.prices { margin: 0 0 1.3rem; border-top: 1px solid #3A3226; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid #3A3226; }
.prices dt { color: #E6DECF; }
.prices dd { margin: 0; font-weight: 600; color: var(--paper); text-align: right; white-space: nowrap; }
/* The side boxes are set slightly smaller so more of them fits on screen */
.discuss-card.compact { font-size: .92rem; line-height: 1.45; padding: 1.3rem 1.35rem 1.4rem; }
.discuss-card.compact h2 { font-size: 1.65rem; margin-bottom: .6rem; }
.discuss-card.compact .prices { margin-bottom: 1rem; }
.discuss-card.compact .prices div { padding: .42rem 0; }
.discuss-card.compact p { margin-bottom: .75em; }
.discuss-card.compact .buy { margin-top: .9rem; }
.discuss-card.compact .btn { padding: .55rem 1rem; }
.discuss-card.compact .btn-main { font-size: 1rem; }
.discuss-card.compact .btn-sub { font-size: .84rem; }
.discuss-card.compact .fine { font-size: .85rem; margin-top: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #CFC6B4; font-size: 1rem; border-top: 1px solid #2A2319; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; padding-block: 2.6rem; align-items: start; }
.site-footer .brand span { font-size: 1.45rem; }
.site-footer p { margin: .9rem 0 0; max-width: 31em; line-height: 1.55; }
.site-footer p a { color: var(--gold-bright); }
.site-footer p a:hover { color: #fff; }
.site-footer .social { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.3rem; }
.site-footer .social span { margin-right: .3rem; }
.site-footer .social a { border: 1px solid var(--gold-bright); border-radius: 999px; padding: .28rem 1.05rem; text-decoration: none; font-weight: 600; line-height: 1.4; }
.site-footer .social a:hover { background: var(--gold-bright); color: #14110F; }
.site-footer .fine-print { font-size: .82rem; line-height: 1.5; color: #A99F8C; margin-top: 1rem; max-width: 36em; }
.site-footer nav { display: grid; gap: .5rem; }
.site-footer nav a { color: var(--paper); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold-bright); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #2A2319; padding-top: 1.3rem; margin: 0; max-width: none; font-size: .95rem; }
@media (max-width: 43.75em) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- The "NOTE: Other than the author's..." warning ----------
   On computers and wide tablets it is set smaller, in Verdana (which stays
   clear at small sizes), and wider so it takes fewer lines. Phones and narrow
   tablets keep the regular look. */
@media (min-width: 62.01em) {
  .site-footer .fine-print,
  .prose .small-print.plain {
    font-family: Verdana, Geneva, "DejaVu Sans", Tahoma, sans-serif;
    font-size: .7rem;
    line-height: 1.55;
  }
  .site-footer .fine-print { max-width: 68em; margin-top: .9rem; }
}

/* ---------- Full-screen cover viewer ---------- */
#viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; overflow: hidden; }
#viewer::backdrop { background: #000; }
#viewer img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
@media (max-aspect-ratio: 2/3) { #viewer img { padding-top: 68px; } }
#viewer .ctl { position: fixed; top: 10px; right: 10px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: rgba(0,0,0,.55); color: #fff; font: 32px/1 Arial, sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
#viewer .next { right: 68px; }
#viewer .prev { right: 126px; }
#viewer .ctl:hover, #viewer .ctl:focus-visible { background: rgba(80,80,80,.8); outline: none; }
body:has(#viewer[open]) { overflow: hidden; }
