/* rabbichaimmiller.com — big-type editorial style */
:root {
  --bg: #e4e5ea;
  --ink: #0d0d0f;
  --text: #1c1c20;
  --muted: #55565e;
  --line: #9a9ba3;
  --hair: #c7c8cf;
  --panel: #0d0d0f;
  --blue: #3434d6;
  --max: 1160px;
  --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 8.4vw, 6.6rem); line-height: 0.95; text-transform: uppercase; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.12; }
h3 { font-size: 1.08rem; line-height: 1.3; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* header */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; position: relative; }
.site-header .wrap::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; border-bottom: 1px solid var(--line); }
.brand { color: var(--blue); font-weight: 700; font-size: 18px; line-height: 1.15; justify-self: start; }
.brand small { display: block; color: var(--ink); font-weight: 400; font-size: 0.78rem; }
.brand:hover { text-decoration: none; }
.mark { font-weight: 700; font-size: 22px; line-height: 1; color: var(--ink); justify-self: center; }
.mark:hover { text-decoration: none; }


/* sections, divided by inset hairlines */
section { padding: 88px 0; }
section + section > .wrap { position: relative; }
section + section > .wrap::before { content: ""; position: absolute; left: 28px; right: 28px; top: -88px; border-top: 1px solid var(--line); }
section.dark { background: var(--panel); color: #fff; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark + section > .wrap::before, section + section.dark > .wrap::before { display: none; }

.eyebrow { font-size: 0.78rem; font-weight: 400; color: var(--ink); margin-bottom: 10px; }
.lede { font-size: 1.15rem; line-height: 1.5; max-width: 36em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head p { margin: 12px 0 0; color: var(--muted); max-width: 36em; }
.more { font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.more::after { content: " \2192"; }

/* caption columns: small label over short bold text */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 175px)); gap: 28px; }
.cap span { display: block; font-size: 0.74rem; color: var(--ink); margin-bottom: 4px; }
.cap b { display: block; font-weight: 700; font-size: 0.92rem; line-height: 1.32; color: var(--ink); }

/* hero */
.hero { padding: 56px 0 0; }
.hero + section > .wrap::before { top: -88px; }
.hero-top { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; padding-bottom: 72px; }
.hero-side .caps { margin-top: 22px; grid-template-columns: 1fr 1fr; }
.hero .lede { margin: 28px 0 0; max-width: 32em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; padding: 12px 22px; font-weight: 500; font-size: 0.95rem; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; }
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }


@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero-top { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 64px 0; }
  section + section > .wrap::before { top: -64px; }
}

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 56px; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.facts span { color: var(--text); font-size: 0.95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* books */
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 32px; }
.book a { color: inherit; display: block; }
.book a:hover { text-decoration: none; }
.book .cover { aspect-ratio: 8 / 11; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 16px; }
.book .cover img, .book-detail .cover img { mix-blend-mode: multiply; }
.book .cover img { max-height: 100%; width: auto; transition: transform .25s ease; }
.book a:hover .cover img { transform: translateY(-4px); }
.book h3 { margin-bottom: 4px; }
.book a:hover h3 { color: var(--blue); }
.book p { color: var(--muted); font-size: 0.92rem; margin: 0; }
@media (max-width: 900px) { .books { grid-template-columns: repeat(2, 1fr); } }

/* quotes */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 14px; font: 500 1.2rem/1.42 var(--sans); color: var(--ink); }
.quote figcaption { font-size: 0.86rem; color: var(--muted); }
.quote figcaption b { color: var(--ink); font-weight: 700; display: block; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; gap: 40px; } }
.big-quote blockquote { font-size: clamp(1.9rem, 4vw, 3.3rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.015em; max-width: 20em; }
section.dark .quote blockquote { color: #fff; }
section.dark .quote figcaption, section.dark .quote figcaption b { color: #cfd0d6; }

/* two columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* list rows */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--hair); color: inherit; align-items: baseline; }
a.row:hover { text-decoration: none; }
a.row:hover h3 { color: var(--blue); }
.row .meta { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: 4px; } .row .meta { white-space: normal; } }

/* videos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.video a { color: inherit; display: block; }
.video a:hover { text-decoration: none; }
.video a:hover h3 { color: var(--blue); }
.video .thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; margin-bottom: 12px; }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .25s; }
.video a:hover .thumb img { filter: none; }
.video .thumb::after { content: ""; position: absolute; left: 14px; bottom: 14px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.video h3 { font-size: 1rem; }
.video p { color: var(--muted); font-size: 0.88rem; margin: 2px 0 0; }
@media (max-width: 900px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr; } }

/* book detail */
.book-detail { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 64px 0; border-bottom: 1px solid var(--line); }
.book-detail:first-of-type { padding-top: 24px; }
.book-detail .cover img { width: 100%; }
.book-detail h2 { margin-bottom: 8px; }
.book-detail .sub { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }
.book-detail .quote { padding: 18px 0; border-top: 1px solid var(--hair); }
.book-detail .quote blockquote { font-size: 1.08rem; font-weight: 400; margin-bottom: 8px; }
details { border-top: 1px solid var(--hair); }
details summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--ink); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: " +"; color: var(--blue); }
details[open] summary::after { content: " \2212"; }
@media (max-width: 720px) {
  .book-detail { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .book-detail .cover { max-width: 200px; }
}

/* buy links */
.buy { margin: 4px 0 28px; border-top: 1px solid var(--line); }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.buy-name { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.buy-links { display: flex; gap: 8px; flex-wrap: wrap; }
.buy-row:only-child { border-bottom: 0; }
.buy:has(.buy-row:only-child) { border-top: 0; }
.btn.sm { padding: 8px 14px; font-size: 0.86rem; }
.buy-note { font-size: 0.9rem; color: var(--muted); margin-top: -12px; }

/* page header */
.page-head { padding: 56px 0 0; }
.page-head .wrap > * { max-width: none; }
.page-head .wrap { position: relative; padding-bottom: 40px; }
.page-head .wrap::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 20px; }
.page-head .eyebrow { display: none; }
.page-head + section > .wrap::before { display: none; }
.page-head + section { padding-top: 48px; }

/* prose */
.prose { max-width: 40em; }
.prose p { font-size: 1.06rem; }

/* store */
.store .row { align-items: center; }
.store form { margin: 0; }
.store button { font: 500 0.88rem var(--sans); padding: 9px 16px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.store button:hover { background: var(--ink); color: #fff; }

/* contact */
.contact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.contact-list div { border-top: 1px solid var(--line); padding-top: 12px; }
.contact-list div span { display: block; font-size: 0.78rem; color: var(--ink); margin-bottom: 4px; }
.contact-list div a, .contact-list div strong { font-size: 1.3rem; font-weight: 700; }
@media (max-width: 640px) { .contact-list { grid-template-columns: 1fr; } }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 12px 0; border-bottom: 1px solid var(--hair); }
ul.plain li:first-child { border-top: 1px solid var(--line); }

/* square photo frame (About page) */
.hero-photo { overflow: hidden; aspect-ratio: 1 / 1; background: var(--hair); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* menu button + full-screen menu */
.menu-btn { justify-self: end; background: none; border: 0; font: 700 18px var(--sans); color: var(--blue); padding: 8px 0; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 50; background: var(--panel); color: #fff; display: none; overflow-y: auto; }
body.menu-open { overflow: hidden; }
body.menu-open .menu { display: block; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.menu-top .brand { color: #fff; }
.menu-close { background: none; border: 0; font: 700 18px var(--sans); color: #fff; cursor: pointer; padding: 8px 0; }
.menu-links { display: flex; flex-direction: column; padding-top: 24px; padding-bottom: 48px; }
.menu-links a { color: #fff; font-weight: 700; text-transform: uppercase; font-size: clamp(2.6rem, 6.3vw, 5rem); line-height: 1.08; letter-spacing: -0.01em; }
.menu-links a:hover, .menu-links a[aria-current] { color: #8c8cf5; text-decoration: none; }

/* footer */
.site-footer { padding: 0 0 40px; }
.site-footer .wrap { position: relative; padding-top: 88px; }
.site-footer .wrap::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; border-top: 1px solid var(--line); }
.foot-statement { font-size: 40px; line-height: 1.15; max-width: 15em; }
.foot-caps { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 28px; margin: 48px 0 72px; }
.foot-caps .cap span { font-size: 14px; }
.foot-caps .cap a { font-size: 18px; font-weight: 500; }
.foot-nav { display: flex; gap: 28px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
.foot-nav a { color: var(--ink); font-size: 14px; text-transform: uppercase; }
.foot-copy { color: var(--muted); font-size: 13px; margin-top: 14px; }
@media (max-width: 640px) { .foot-statement { font-size: 30px; } .foot-caps { grid-template-columns: 1fr; } }

/* statement: 40px heading with caption columns */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.statement h2 { font-size: 40px; line-height: 1.15; }
.statement .caps, .bigrow .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cap span { font-size: 14px; }
.cap b { font-size: 18px; font-weight: 500; line-height: 1.35; }
.facts .cap { border-top: 1px solid var(--line); padding-top: 14px; }
.facts div { border-top: 0; padding-top: 0; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; gap: 28px; } .statement h2 { font-size: 32px; } }
@media (max-width: 560px) { .statement .caps, .bigrow .caps { grid-template-columns: 1fr; gap: 20px; } }

/* black square cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { position: relative; aspect-ratio: 1; background: var(--panel); color: #fff; overflow: hidden; display: block; }
.card:hover { text-decoration: none; }
.card h3 { position: absolute; top: 28px; right: 32px; left: 32px; text-align: right; color: #fff; font-size: 30px; font-weight: 400; line-height: 1.15; z-index: 2; }
.card .num { position: absolute; left: 32px; bottom: 22px; font-size: 64px; line-height: 1; z-index: 2; }
.card .tag { position: absolute; right: 22px; bottom: 28px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; writing-mode: vertical-rl; transform: rotate(180deg); z-index: 2; }
.card img { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%) scale(0.96); height: 58%; width: auto; opacity: 0; transition: opacity .3s ease, transform .3s ease; }
.card:hover img, .card:focus-visible img { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .card img { opacity: 1; } }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } .card h3 { font-size: 26px; } }

/* big-title rows */
.bigrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 40px 0 56px; border-bottom: 1px solid var(--line); color: inherit; align-items: start; }
.bigrow:first-child { padding-top: 0; }
.bigrow:hover { text-decoration: none; }
.bigrow:hover .bigtitle { color: var(--blue); }
.bigtitle { font-size: 80px; line-height: 1; letter-spacing: -0.02em; }
@media (max-width: 860px) { .bigrow { grid-template-columns: 1fr; gap: 24px; } .bigtitle { font-size: 56px; } }
.bigrow:last-child { border-bottom: 0; padding-bottom: 0; }
.brand { white-space: nowrap; }
@media (max-width: 700px) {
  .card img { height: 46%; top: 50%; }
  .card .num { font-size: 52px; }
  .brand { font-size: 16px; }
}
@media (max-width: 700px) {
  .site-header .wrap { grid-template-columns: auto 1fr auto; gap: 12px; }
  .mark { font-size: 18px; }
}
.statement .prose p { font-size: 18px; line-height: 1.5; }
.statement .prose p:last-child { margin-bottom: 0; }


/* ===== Meiwen-style top heading on the big-type site ===== */
:root { --serif: "Cormorant Garamond", Georgia, serif; }
h1 { font-family: var(--serif); font-weight: 300; text-transform: none; letter-spacing: 0.01em; font-size: clamp(2.4rem, 4.6vw, 3.5rem); line-height: 1.16; max-width: 17em; }
h1 em { font-style: italic; border-bottom: 1px solid currentColor; }
.page-head h1 { max-width: none; font-size: clamp(2.8rem, 5.4vw, 4.2rem); }
.hero-top { grid-template-columns: 1fr 400px; align-items: end; }
@media (max-width: 900px) { .hero-top { grid-template-columns: 1fr; } }
.hero .lede { font-size: 18px; font-weight: 500; max-width: 34em; }
.topnav { display: none; }

/* flat front covers */
.book .cover img, .book-detail .cover img { mix-blend-mode: normal; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 12px 28px -10px rgba(0,0,0,.35); }

.card img { box-shadow: 0 10px 30px rgba(0,0,0,.5); }

/* quote bands */
section.dark { padding: 72px 0; }
section.dark .big-quote blockquote { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.2; letter-spacing: 0.01em; max-width: 24em; margin-bottom: 20px; }
.quote figcaption b::after { content: ""; }


/* scroll fade-in */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* big marker glyph beside section headings */
.section-head { align-items: start; }
.section-head .more { display: block; margin-top: 10px; }
.glyph { font: 700 96px/0.8 "Frank Ruhl Libre", "Times New Roman", serif; color: var(--ink); }
@media (max-width: 640px) { .glyph { font-size: 64px; } }

/* tilted black panel */
.tilt-stage { padding: 70px 0 110px; overflow: hidden; margin: 0 -28px; }
.tilt { position: relative; background: var(--panel); color: #fff; width: 78%; margin: 0 auto; min-height: 430px; transform: rotate(-9deg); display: grid; grid-template-columns: 1fr auto; overflow: hidden; }
.tilt-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 56px 24px 90px 56px; align-content: start; }
.tilt .cap span { color: #b4b4b4; font-size: 14px; }
.tilt .cap b { color: #fff; font-weight: 400; font-size: 18px; line-height: 1.35; }
.tilt-word { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; text-transform: uppercase; font-size: 150px; line-height: 0.8; letter-spacing: -0.01em; padding: 0 6px; margin: -20px -8px -20px 0; white-space: nowrap; }
.tilt-corner { position: absolute; left: 0; bottom: 0; width: 170px; height: 70px; background: #ee5253; clip-path: polygon(0 100%, 38% 0, 100% 100%); }
@media (max-width: 860px) {
  .tilt-stage { padding: 30px 0 60px; }
  .tilt { width: 92%; transform: rotate(-4deg); grid-template-columns: 1fr; min-height: 0; }
  .tilt-caps { grid-template-columns: 1fr; padding: 36px 28px 20px; gap: 22px; }
  .tilt-word { writing-mode: horizontal-tb; transform: none; font-size: 84px; margin: 0; padding: 0 24px 56px; line-height: 0.9; }
  .tilt-corner { width: 120px; height: 46px; }
}


/* all books as cards, covers always showing */
.cards.all { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.all .card { aspect-ratio: 4 / 5; }
.cards.all .card h3 { font-size: 19px; top: 18px; left: 18px; right: 18px; }
.cards.all .card .num { font-size: 38px; left: 18px; bottom: 14px; }
.cards.all .card .tag { right: 14px; bottom: 18px; font-size: 11px; }
.cards.all .card img { opacity: 1; height: 54%; top: 53%; transform: translate(-50%, -50%); }
.cards.all .card:hover img { transform: translate(-50%, -52%) scale(1.04); }
.cards.all .card img[src$=".png"] { box-shadow: none; }
.book-detail .cover img[src$=".png"] { mix-blend-mode: normal; box-shadow: none; }
@media (max-width: 1000px) { .cards.all { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cards.all .card img { height: 50%; top: 52%; } .cards.all .card .num { font-size: 30px; } .cards.all .card h3 { font-size: 16px; } .cards.all { gap: 12px; } }
@media (max-width: 700px) { .cards.all .card { aspect-ratio: 3 / 4.4; } .cards.all .card img { height: 44%; top: 56%; } .cards.all .card h3 { top: 12px; left: 12px; right: 12px; } .cards.all .card .num { left: 12px; bottom: 10px; } }

/* black quote bands in sans */
section.dark .big-quote blockquote { font-family: var(--sans); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-weight: 600; letter-spacing: 0; }
h1 { font-weight: 500; }


/* hero: headline, then photo beneath it */
.hero h1 { max-width: 20em; }
.hero-row { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: end; margin-top: 40px; padding-bottom: 72px; }
.hero-row .lede { margin: 0; }
@media (max-width: 900px) { .hero-row { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; padding-bottom: 56px; } }
.hero { padding-top: 96px; }
.hero-row { margin-top: 80px; padding-bottom: 104px; gap: 72px; }
@media (max-width: 900px) { .hero { padding-top: 56px; } .hero-row { margin-top: 44px; padding-bottom: 72px; gap: 32px; } }


/* rotating quotes in the black bands */
.rotator { display: grid; }
.rotator > figure { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; align-self: center; }
.rotator > figure.on { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.rotator > figure { transition: opacity .5s ease, visibility 0s linear .5s; }
.rotator > figure.on { transition: opacity .7s ease .55s, visibility 0s linear .55s; }


/* rotator: slower fade, dots and arrows */
.rotator > figure { transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.rotator > figure.on { transition: opacity 1.4s ease 1.15s, visibility 0s linear 1.15s; }
.rot-nav { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.rot-arrow { background: none; border: 1px solid #55565e; color: #fff; width: 40px; height: 40px; font: 400 18px/1 var(--sans); cursor: pointer; padding: 0; }
.rot-arrow:hover { background: #fff; color: var(--panel); border-color: #fff; }
.rot-dots { display: flex; gap: 10px; align-items: center; }
.rot-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #55565e; cursor: pointer; }
.rot-dot:hover { background: #a9aab3; }
.rot-dot.on { background: #fff; }
.rot-nav button:focus-visible { outline: 2px solid #8c8cf5; outline-offset: 3px; }

/* shorter quote bands */
section.dark { padding: 44px 0 36px; }
section.dark .big-quote blockquote { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.18; max-width: 30em; margin-bottom: 14px; }
.rotator > figure { align-self: start; }
.rot-nav { margin-top: 22px; gap: 14px; }
.rot-arrow { width: 32px; height: 32px; font-size: 15px; }
.rot-dot { width: 8px; height: 8px; }
.rot-nav { justify-content: center; }

/* much shorter quote bands */
section.dark { padding: 26px 0 18px; }
section.dark .big-quote blockquote { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.25; max-width: none; margin-bottom: 8px; letter-spacing: -0.005em; }
section.dark .quote figcaption { font-size: 0.8rem; }
section.dark .quote figcaption b { display: inline; margin-right: 8px; }
.rot-nav { margin-top: 10px; gap: 12px; }
.rot-arrow { width: 26px; height: 26px; font-size: 13px; }
.rot-dot { width: 7px; height: 7px; }


/* three-line menu button */
.menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 34px; height: 34px; padding: 0; grid-column: 3; }
.menu-btn span { display: block; height: 2px; width: 100%; background: var(--ink); }
.menu-btn:hover span { background: var(--blue); }
.site-header .wrap { grid-template-columns: 1fr auto 1fr; gap: 0; }
.mark { grid-column: 2; }

/* no rule under the header */
.site-header .wrap::after { display: none; }

/* tilted panel moves as you scroll (--p runs 0 to 1 through the viewport) */
.tilt { --p: 0.5; transform: rotate(calc(-17deg + var(--p) * 14deg)); will-change: transform; }
.tilt-word { transform: rotate(180deg) translateY(calc((var(--p) - 0.5) * 260px)); will-change: transform; }
.tilt-caps { transform: translateX(calc((0.5 - var(--p)) * 60px)); }
.tilt-corner { transform-origin: left bottom; transform: scale(calc(0.4 + var(--p) * 1.3)); }
.tilt-stage { padding: 110px 0 150px; }
@media (max-width: 860px) {
  .tilt { transform: rotate(calc(-9deg + var(--p) * 7deg)); }
  .tilt-word { transform: translateX(calc((0.5 - var(--p)) * 90px)); }
  .tilt-caps { transform: none; }
  .tilt-stage { padding: 50px 0 80px; }
}

/* quieter menu button */
.menu-btn { width: 24px; height: 28px; gap: 5px; }
.menu-btn span { height: 1px; background: var(--muted); }
.menu-btn:hover span { background: var(--ink); }

/* nine books: three across on wide screens */
@media (min-width: 1001px) { .cards.all { grid-template-columns: repeat(3, 1fr); } .cards.all .card { aspect-ratio: 1 / 1; } }

.buy-head { font-size: 15px; font-weight: 700; margin: 28px 0 6px; }
.buy-head + p { margin: 0 0 12px; }

/* quicker quote fades */
.rotator > figure { transition: opacity .35s ease, visibility 0s linear .35s; }
.rotator > figure.on { transition: opacity .5s ease .35s, visibility 0s linear .35s; }

.sample { margin: 18px 0 6px; font-size: 15px; }
.sample span { color: #6b6d76; margin-left: 10px; }

.watch-top .videos { margin-bottom: 56px; }
@media (max-width: 700px) { .watch-top .videos { grid-template-columns: 1fr; } }

.watch-top .bigtitle { font-size: 40px; line-height: 1.15; letter-spacing: 0; }
@media (max-width: 860px) { .watch-top .bigtitle { font-size: 32px; } }

/* inner pages: sans heading, serif stays on the home hero only */
.page-head h1 { font-family: inherit; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(2.4rem, 5vw, 3.6rem); }

/* featured video */
.feature-video { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; color: inherit; }
.feature-video:hover { text-decoration: none; }
.feature-video .thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.feature-video .thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-video .thumb::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%); border-left: 34px solid #fff; border-top: 22px solid transparent; border-bottom: 22px solid transparent; filter: drop-shadow(0 2px 10px rgba(0,0,0,.5)); }
.feature-video h2 { font-size: 32px; line-height: 1.15; margin: 10px 0 14px; }
.feature-video:hover h2 { color: var(--blue); }
.feature-video p { margin: 0 0 16px; }
.watch-top .feature-video { margin-bottom: 56px; }
@media (max-width: 860px) { .feature-video { grid-template-columns: 1fr; gap: 20px; } .feature-video h2 { font-size: 26px; } }

/* room under a quote bar when a book follows directly */
section.dark + .wrap { padding-top: 72px; }

.feature-video .thumb img { filter: grayscale(1) contrast(1.05); transition: filter .25s; }
.feature-video:hover .thumb img { filter: none; }

/* videos stay black and white on hover */
.video a:hover .thumb img, .feature-video:hover .thumb img { filter: grayscale(1) contrast(1.05); }

.speak-quotes { margin-top: 48px; }

.speak-videos { margin-top: 48px; }
.speak-quotes { margin-top: 64px; }
@media (max-width: 700px) { .speak-videos { grid-template-columns: 1fr 1fr; gap: 24px 16px; } }

.digital-row .bigtitle { font-size: 40px; line-height: 1.15; letter-spacing: 0; }
@media (max-width: 860px) { .digital-row .bigtitle { font-size: 32px; } }
.digital-row { margin-top: 56px; }
.facts-bottom .facts { margin-top: 0; }
.watch-top .videos { margin-bottom: 0; }

/* red shape behind the closing facts rows */
.facts-bottom .facts { position: relative; isolation: isolate; row-gap: 0; }
.facts-bottom .facts .cap { padding: 26px 0 34px; }
.facts-bottom .facts::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; aspect-ratio: 690 / 590; transform: translateX(-62%); background: #ff414d; clip-path: polygon(35% 0, 64.5% 0, 100% 100%, 70% 100%, 50% 38%, 30% 100%, 0 100%); }
.facts-bottom .facts { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .facts-bottom .facts::before { display: none; } .facts-bottom .facts { border-bottom: 0; } }

/* contact page: the footer would repeat the email */
.page-contact .foot-statement, .page-contact .foot-caps { display: none; }
.page-contact .contact-list > div { border-top: 0; padding-top: 0; }
.page-contact .site-footer, .page-contact .site-footer .wrap, .page-contact .foot-nav { border-top: 0; }
.page-contact .site-footer { padding-top: 0; }

/* smaller menu links */
.menu-links a { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.5; letter-spacing: 0; }
.kindle-note { margin-top: 36px; font-size: 1.05rem; }
.kindle-note a { text-decoration: underline; text-underline-offset: 3px; }
.get-help { margin-top: 28px; color: #555; }
.store a.buy-pdf { font: 500 0.88rem var(--sans); padding: 9px 16px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; white-space: nowrap; }
.store a.buy-pdf:hover { background: var(--ink); color: #fff; }

/* buy rows on phones: name on its own line, buttons in an even two-column grid */
@media (max-width: 640px) {
  .buy-row { display: block; padding: 16px 0; }
  .buy-name { display: block; margin-bottom: 10px; }
  .buy-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .buy-links .btn.sm { text-align: center; padding: 10px 6px; font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* red A shape behind the About facts removed (he found it silly) */
.facts-bottom .facts::before { display: none; content: none; }

/* About page fact list */
.prose ul.fact-list { list-style: none; padding: 0; margin: 18px 0 0; }
.prose ul.fact-list li { padding: 14px 0; border-top: 1px solid var(--hair); }
.prose ul.fact-list li:last-child { border-bottom: 1px solid var(--hair); }
.prose ul.fact-list b { color: var(--ink); }
.about-lead { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; font-weight: 500; max-width: 26em; margin: 0; color: var(--ink); }
.about-lead { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; max-width: 22em; }
.about-lead { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.about-top { padding-top: 56px; }
.page-about section.dark + .page-head { padding-top: 96px; }
.about-shelf { display: block; width: 100%; height: auto; margin-top: 48px; border-radius: 2px; }

/* About page: bookshelf photo behind the opening line; the page scrolls over it */
.about-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: 0; margin-top: -1px;
  background: #111 url(/img/bookshelf.jpg) center 40% / cover no-repeat fixed; }
.about-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%); }
.about-hero .wrap { position: relative; width: 100%; padding-bottom: 64px; }
.about-hero .about-lead { color: #fff; }
@media (max-width: 860px), (hover: none) { .about-hero { background-attachment: scroll; min-height: 62vh; } }
/* bookshelf hero: show the whole photo at its own 3:1 shape, never enlarged beyond its width */
.about-hero { min-height: 0; aspect-ratio: 3 / 1; max-width: 1500px; margin: 0 auto;
  background: #111 url(/img/bookshelf.jpg) center / cover no-repeat scroll; }
@media (max-width: 860px) { .about-hero { aspect-ratio: auto; min-height: 340px; } }

/* bookshelf: photo at natural size (3:1, never wider than 1500px) holds still under the header;
   the opening line, then the rest of the page, scroll up over it */
.page-about main { position: relative; }
.shelf-sticky { position: sticky; top: 72px; z-index: 0; max-width: 1500px; margin: 0 auto; }
.shelf-sticky img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.shelf-sticky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.1) 100%); }
.page-about main > *:not(.shelf-sticky) { position: relative; z-index: 1; background-color: var(--bg, #e4e5ea); }
.page-about main > section.dark { background-color: #000; }
.page-about main > .about-hero { background: none; min-height: 0; max-width: 1500px; margin: calc(-1 * min(100vw, 1500px) / 3) auto 0;
  aspect-ratio: 3 / 1; display: flex; align-items: flex-end; padding: 0; }
.page-about main > .about-hero::before { display: none; }
.about-hero .wrap { padding-bottom: 40px; }
@media (max-width: 860px) {
  .shelf-sticky { position: static; }
  .page-about main > .about-hero { margin-top: 0; aspect-ratio: auto; background-color: var(--bg, #e4e5ea); padding: 32px 0 0; }
  .shelf-sticky::after { display: none; }
  .about-hero .about-lead { color: var(--ink); }
}
/* image first, text below it (no overlap); page still scrolls over the still photo */
.page-about main > .about-hero { margin-top: 0; aspect-ratio: auto; display: block; padding: 56px 0 0; background-color: var(--bg); }
.about-hero .wrap { padding-bottom: 0; }
.about-hero .about-lead { color: var(--ink); }
.shelf-sticky::after { display: none; }
.page-about main > .about-hero { padding-bottom: 56px; }
.about-lead { font-weight: 900; }

/* header like the roboRisk template: name left, mark centre, "Menu" right, hairline under */
.site-header .wrap { grid-template-columns: 1fr auto 1fr; height: 76px; }
.site-header .wrap::after { display: block; left: 28px; right: 28px; border-bottom: 1px solid var(--ink); }
.site-header .brand { display: block; grid-column: 1; justify-self: start; color: var(--blue); font: 700 17px/1.15 var(--sans); text-decoration: none; }
.site-header .brand small { display: block; font-size: 12px; font-weight: 400; color: var(--ink); margin-top: 3px; }
.site-header .mark { grid-column: 2; display: block; width: 40px; height: 40px; }
.site-header .mark img { width: 40px; height: 40px; display: block; border-radius: 50%; }
.menu-btn.menu-word { display: block; width: auto; height: auto; grid-column: 3; justify-self: end; background: none; border: 0; padding: 8px 0; font: 700 17px var(--sans); color: var(--blue); cursor: pointer; }
.menu-btn.menu-word:hover { color: var(--ink); }
@media (max-width: 560px) { .site-header .brand small { display: none; } .site-header .mark, .site-header .mark img { width: 34px; height: 34px; } }
.site-header .star { grid-column: 2; display: block; font: 900 64px/1 var(--sans); color: var(--ink); text-decoration: none; height: 40px; overflow: visible; transform: translateY(6px); }
.site-header .star:hover { color: var(--blue); }
@media (max-width: 560px) { .site-header .star { font-size: 52px; } }
.site-header .star { font: 500 50px/1 var(--sans); transform: translateY(8px); }
.menu-links a:hover, .menu-links a[aria-current] { color: var(--blue); }
