/* Carolyn McAllister — site styles */
@font-face { font-family: "Young Serif"; src: url(fonts/young-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Anton"; src: url(fonts/anton-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url(fonts/fredoka-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/atkinson-hyperlegible-latin-700-italic.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --night: #142230;
  --night-2: #1c2f40;
  --lantern: #f2b24c;
  --lantern-soft: #f7d28f;
  --sky: #e4eef2;
  --sky-2: #f3f7f8;
  --paper: #f7f8f6;
  --ink: #1d2731;
  --ink-soft: #4a5663;
  --rose: #9e3144;
  --line: #d5dde2;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease both page-fade-out; }
::view-transition-new(root) { animation: 280ms ease both page-fade-in; }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } }
html.fade-fallback body { animation: page-fade-in .4s ease both; }
html.fade-fallback body.is-leaving { animation: page-fade-out .2s ease both; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
}
main { flex: 1 0 auto; }
body.nav-lock { overflow: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--lantern); color: var(--night); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .45em; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.28rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 80; }
.skip:focus { left: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header { position: relative; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; line-height: 0; }
.logo img { display: block; height: 40px; width: auto; max-width: none; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 32px); }
.nav-home { display: none; }
.nav a { text-decoration: none; font-size: .98rem; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .25s ease, color .25s ease; }
.nav a:hover { border-bottom-color: currentColor; }
.nav a[aria-current="page"] { border-bottom-color: var(--lantern); }
.site-header.over,
.site-header.dark,
.site-header.light { isolation: isolate; }
.site-header.over { position: fixed; top: 0; left: 0; right: 0; color: #fff; }
.site-header.dark { position: sticky; top: 0; color: #fff; }
.site-header.light { position: sticky; top: 0; color: var(--ink); }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
}
.site-header.over::before,
.site-header.dark::before {
  background: rgba(20, 34, 48, .9);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 -1px 0 rgba(242, 178, 76, .55);
}
.site-header.light::before {
  background: rgba(247, 248, 246, .9);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: inset 0 -1px 0 var(--line);
}
.site-header.is-stuck::before,
.site-header.nav-open::before,
.site-header.dark.solid::before { opacity: 1; }
.site-header.light .nav a[aria-current="page"] { border-bottom-color: var(--rose); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  place-items: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, top .2s ease, background-color .2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-header.nav-open .nav-toggle-bars { background: transparent; }
.site-header.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.site-header.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.01em; text-decoration: none; text-align: center; padding: 11px 18px 12px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; line-height: 1.15; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease; }
.btn:active { transform: translateY(2px) scale(.98); }
.btn-lantern { background: var(--lantern); color: var(--night); border-color: var(--lantern); }
.btn-lantern:hover { background: var(--lantern-soft); border-color: var(--lantern-soft); }
.btn-lantern:active { background: #e0a03a; border-color: #e0a03a; }
.btn-ghost { background: transparent; color: var(--lantern-soft); border-color: rgba(247, 210, 143, .75); }
.btn-ghost:hover { background: rgba(242, 178, 76, .16); color: #fff; border-color: var(--lantern); }
.btn-ghost:active { background: rgba(242, 178, 76, .32); }
.btn-rose { background: var(--rose); color: #fff; border-color: var(--rose); }
.btn-rose:hover { background: #862838; border-color: #862838; }
.btn-rose:active { background: #6e2030; border-color: #6e2030; }
.btn-ink { background: var(--night); color: #fff; border-color: var(--night); }
.btn-ink:hover { background: var(--night-2); }
.btn-ink:active { background: #0c1620; border-color: #0c1620; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--night); color: #fff; border-color: var(--night); }
.btn-line:active { background: #0c1620; border-color: #0c1620; }
.form button:disabled:active { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.book-return { margin-top: clamp(36px, 5vw, 56px); }
/* Hero */
.hero {
  position: relative;
  min-height: min(84vh, 760px);
  background: var(--night) url(img/trailer-poster.webp?v=2) center/cover;
  color: #fff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; transform-origin: 28% center; opacity: 0; transition: opacity .45s ease; }
.hero video.is-playing { opacity: 1; animation: drift 32s ease-in-out infinite alternate; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,34,48,.08) 0%, rgba(20,34,48,.2) 34%, rgba(20,34,48,.78) 58%, rgba(20,34,48,.94) 100%),
    linear-gradient(180deg, rgba(20,34,48,.5) 0%, rgba(20,34,48,0) 24%, rgba(20,34,48,0) 62%, #142230 100%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; display: flex; justify-content: flex-end; padding-top: 108px; padding-bottom: clamp(36px, 6vh, 68px); }
.hero-copy { max-width: 500px; }
.hero-copy > * { animation: rise .9s cubic-bezier(.22, .7, .2, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: .08s; }
.hero-copy > :nth-child(2) { animation-delay: .18s; }
.hero-copy > :nth-child(3) { animation-delay: .3s; }
.hero-copy > :nth-child(4) { animation-delay: .42s; }
.hero-copy > :nth-child(5) { animation-delay: .54s; }
.hero-kicker { font-size: .98rem; letter-spacing: .04em; color: var(--lantern-soft); margin-bottom: 12px; }
.hero h1 {
  margin-bottom: 10px;
  font-family: "Anton", "Arial Narrow", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(2.7rem, 5.5vw, 4.5rem);
  line-height: .9;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-wrap: nowrap;
  color: #f6ff3a;
  text-shadow: 0 2px 18px rgba(8, 14, 22, .45);
}
.hero .sub { font-family: var(--display); font-style: italic; font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.35; color: #fff; margin: 0 0 14px auto; max-width: 23em; }
.hero p.lede { color: #e4ebf0; font-size: 1.02rem; }

/* Sections */
.night { background: var(--night); color: #e7eef3; }
.night h2, .night h3 { color: #fff; }
.night .title-theodore { color: #f6ff3a; }
.section { padding: clamp(52px, 7vw, 92px) 0; }
#opening, .page-head, .section { scroll-margin-top: 84px; }
.page-head { padding: clamp(36px, 6vw, 72px) 0 8px; }
.page-head p { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 0; }
.page-head + .section { padding-top: clamp(22px, 3vw, 36px); }

.book-intro { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.book-intro h1 { font-size: clamp(2.35rem, 4.2vw, 3.5rem); }
.title-theodore {
  font-family: "Anton", "Arial Narrow", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #f6ff3a;
  line-height: .92;
}
.title-grandma {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1c2430;
  line-height: .95;
}
.cover { border-radius: 3px 12px 12px 3px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.cover-glow { position: relative; }
.cover-glow::before { content: ""; position: absolute; inset: 12% 0 -6% 0; background: radial-gradient(closest-side, rgba(242,178,76,.45), rgba(242,178,76,0) 74%); z-index: 0; pointer-events: none; animation: lantern 4.8s ease-in-out infinite alternate; }
.cover-glow img { position: relative; z-index: 1; }
.meta-line { color: var(--lantern-soft); margin: 0 0 8px; letter-spacing: .03em; font-size: .95rem; }
.book-sub { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.35; color: #fff; max-width: 28ch; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 4px 0 0; margin: 0 0 8px; color: var(--lantern-soft); font-size: .92rem; }
.facts li { margin: 0; }
.facts li + li::before { content: "·"; margin: 0 .7em; color: rgba(247,210,143,.75); }

.night .text-link { color: var(--lantern-soft); }
.night .text-link:hover { color: #fff; }

/* Excerpt */
.excerpt { position: relative; background: #0f1a25; color: #f3ead9; overflow: hidden; }
.excerpt-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.excerpt-art img { border-radius: 8px; width: 100%; height: auto; box-shadow: 0 20px 40px -24px rgba(0,0,0,.7); }
@media (min-width: 861px) {
  .excerpt-home .excerpt-grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
  .excerpt-home .excerpt-art { width: 100%; max-width: 380px; min-width: 0; }
}
.excerpt blockquote { margin: 0; position: relative; max-width: 36rem; }
.excerpt blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--display);
  font-size: clamp(4.4rem, 8vw, 6.5rem);
  line-height: .72;
  color: var(--lantern);
  margin: 0 0 .12em;
}
.excerpt blockquote p:first-of-type { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.25; }
.excerpt blockquote p { font-family: var(--display); font-size: clamp(1.28rem, 2.2vw, 1.75rem); line-height: 1.4; max-width: none; color: #f6ead2; }
.excerpt blockquote p + p { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #ddd1bc; max-width: none; font-family: var(--body); }
.excerpt cite { display: block; font-style: normal; font-family: var(--body); color: var(--lantern); margin-top: 8px; font-size: .98rem; }

/* Dawn into Bad Grandma */
.dawn { height: clamp(200px, 28vw, 360px); background: linear-gradient(180deg, #0f1a25 0%, #162433 24%, #4a6274 54%, #a9bfcb 80%, var(--sky) 100%); }
.sky { background: var(--sky); color: var(--ink); }
.sky .book-intro { grid-template-columns: 1fr minmax(240px, 420px); }
.sky .meta-line { color: var(--rose); }
.sky .cover { box-shadow: 0 22px 44px -24px rgba(29,39,49,.4); border-radius: 8px; }

/* Author */
.author-section { padding-bottom: clamp(28px, 4vw, 48px); }
.author { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.author img { border-radius: 140px 140px 16px 16px; width: 100%; max-width: 280px; aspect-ratio: 375/480; object-fit: cover; object-position: center 18%; }
.text-link { font-weight: 700; color: var(--ink); text-underline-offset: 4px; }
.text-link:hover { color: var(--rose); }
.prose a { font-weight: 700; text-underline-offset: 3px; }
.prose a:hover { color: var(--rose); }

/* Journal */
.journal-band { border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 68px); }
.journal-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.journal-head h2 { margin: 0; }
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.post-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: #c3ced4; box-shadow: 0 18px 40px -28px rgba(20, 34, 48, .55); }
.thumb { display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--night); }
.thumb img { width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .45s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card h3 { margin: 16px 18px 8px; }
.post-card p { color: var(--ink-soft); margin: 0 18px 18px; }
.post-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px; }
.note { margin: 0; }
.note img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.note h3 { font-size: 1.2rem; margin: 0 0 6px; }
.note p { font-size: .98rem; color: var(--ink-soft); margin: 0; }
.eyebrow { margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); }
.notes-label { margin: 36px 0 14px; }

/* Article */
.article { padding: clamp(28px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.article .wrap::after { content: ""; display: block; clear: both; }
.article-hero { width: min(100%, 360px); height: auto; aspect-ratio: auto; object-fit: cover; border-radius: 12px; float: right; margin: 6px 0 16px 24px; }
.article p { font-size: 1.12rem; line-height: 1.75; }
.article h1 { font-size: clamp(2.05rem, 4.2vw, 3.05rem); }
.byline { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: .98rem; }
.back { display: inline-block; margin-bottom: 18px; color: var(--ink-soft); font-weight: 700; text-decoration: none; text-underline-offset: 3px; }
.back:hover { color: var(--ink); text-decoration: underline; }

.prose p { font-size: 1.08rem; line-height: 1.75; }
.dedication { font-family: var(--display); font-size: 1.25rem; line-height: 1.5; border-left: 3px solid var(--lantern); padding-left: 18px; max-width: 42ch; color: var(--ink); }
.night .dedication, .excerpt .dedication { color: #f6ead2; }
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.two-col img { border-radius: 10px; margin-top: 8px; }

.plate { max-width: var(--wrap); margin: clamp(28px, 4vw, 48px) auto 0; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.plate img { width: 100%; border-radius: 16px; box-shadow: 0 22px 44px -28px rgba(29,39,49,.45); }

/* Contact */
.contact-stage { padding: clamp(56px, 8vw, 96px) 0; background: var(--paper); }
.contact-layout { display: grid; grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-layout img { width: 100%; max-width: 320px; aspect-ratio: 375 / 480; object-fit: cover; object-position: center 18%; border-radius: 160px 160px 18px 18px; box-shadow: 0 0 0 16px #142230, 0 28px 50px -30px rgba(0,0,0,.55); }
.contact-layout h1 { margin-top: 4px; margin-bottom: 0.12em; }
.contact-layout .lede { font-family: var(--display); font-size: 1rem; line-height: 1.45; color: var(--ink); max-width: none; margin-bottom: 1.6em; text-wrap: wrap; }
.form { background: none; border: 0; border-radius: 0; padding: 0; max-width: 34rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--display); font-weight: 400; font-size: 1.05rem; margin-bottom: 2px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 8px 0 10px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--lantern); box-shadow: 0 1px 0 var(--lantern); }
.field textarea { min-height: 140px; resize: vertical; }
.form-status { margin: 14px 0 0; font-size: .98rem; max-width: none; }
.form-status.is-error { color: var(--rose); }
.form-status.is-ok { color: var(--ink); }
.form button:disabled { opacity: .65; cursor: wait; }

/* Footer */
.site-footer { background: var(--night); color: #8fa0ae; padding: 22px 0; }
.footer-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.site-footer .logo { margin: 0 0 0 auto; }
.site-footer .logo img { height: 40px; }
.fine { max-width: none; margin: 0; padding: 0; border: 0; font-size: .9rem; color: #8fa0ae; }

/* Page openings */
.mast { position: relative; color: #fff; padding: clamp(28px, 4vw, 40px) 0; background: var(--night); overflow: hidden; text-align: left; }
.mast .wrap { position: relative; z-index: 1; width: 100%; }
.mast h1 { color: #fff; margin-bottom: .15em; font-size: clamp(2.1rem, 4vw, 3rem); }
.mast p { color: #d7e1e8; margin: 0; max-width: 46ch; }
.mast-books { background: radial-gradient(120% 90% at 100% 0%, #24384a 0%, var(--night) 55%); }
.mast-books h1 { display: inline-block; border-bottom: 5px solid var(--lantern); padding-bottom: 6px; }
.mast-books p { max-width: none; }
.mast-journal { background: var(--night) url(img/post-lantern.webp) center 42%/cover; }
.mast-journal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,34,48,.78) 0%, rgba(20,34,48,.45) 55%, rgba(20,34,48,.25) 100%); }
.mast + .section { padding-top: clamp(32px, 5vw, 56px); }

.about-stage { padding: clamp(56px, 8vw, 96px) 0; background: var(--paper); }
.about-stage .author img { max-width: 380px; border-radius: 190px 190px 20px 20px; box-shadow: 0 0 0 18px #142230, 0 28px 50px -30px rgba(0,0,0,.55); }
.about-stage h1 { margin-top: 0; }


.dawn-garden { height: clamp(56px, 8vw, 96px); background: linear-gradient(180deg, var(--paper) 0%, #d5ebe3 55%, #b9d4c6 100%); }
.garden-open { background: #cfe3d4; }
.garden-open img { width: 100%; height: min(68vh, 620px); object-fit: cover; object-position: center 28%; }
.grandma-lead .title-grandma { font-size: clamp(3rem, 6vw, 4.6rem); margin-bottom: .3em; }
.grandma-lead .book-intro { align-items: center; }

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
@keyframes lantern {
  from { opacity: .45; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, .7, .2, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .posts .reveal:nth-child(2),
.js .shelf .reveal:nth-child(2),
.js .notes .reveal:nth-child(2) { transition-delay: .08s; }
.js .notes .reveal:nth-child(3) { transition-delay: .16s; }

/* Responsive */
@media (max-width: 860px) {
  .book-intro, .sky .book-intro, .excerpt-grid, .author, .contact-layout, .two-col, .quotes, .notes, .posts { grid-template-columns: 1fr; }
  .book-intro .cover-glow, .book-intro .cover-col, .sky .book-intro .cover-col { max-width: 280px; width: 100%; margin-inline: auto; }
  .sky .book-intro .cover-col { order: -1; }
  .author img { max-width: 220px; }
  .author-section .author { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; }
  .author-section .author > div { display: contents; }
  .author-section .author img { width: 92px; max-width: 92px; grid-column: 1; grid-row: 1; }
  .author-section .author h2 { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  .author-section .author p,
  .author-section .author .text-link { grid-column: 1 / -1; }
  .about-stage { padding-top: 0; }
  .about-stage .author img {
    width: calc(100% + max(var(--gutter), env(safe-area-inset-left)) + max(var(--gutter), env(safe-area-inset-right)));
    max-width: none;
    margin-left: calc(-1 * max(var(--gutter), env(safe-area-inset-left)));
    margin-right: calc(-1 * max(var(--gutter), env(safe-area-inset-right)));
    border-radius: 0;
    box-shadow: none;
  }
  .contact-layout { grid-template-columns: 92px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
  .contact-layout > div { display: contents; }
  .contact-layout img { width: 92px; max-width: 92px; grid-column: 1; grid-row: 1 / span 2; justify-self: start; box-shadow: 0 0 0 7px #142230, 0 16px 28px -20px rgba(0,0,0,.5); }
  .contact-layout h1 { grid-column: 2; grid-row: 1; align-self: end; margin: 0; font-size: clamp(1.7rem, 6.4vw, 2.4rem); }
  .contact-layout .lede { grid-column: 2; grid-row: 2; align-self: start; margin: 0; }
  .contact-layout .form { grid-column: 1 / -1; max-width: none; margin-top: 18px; }
  .article-hero { float: none; display: block; margin: 4px 0 22px; }
  .excerpt-art { max-width: 520px; }
  .hero { min-height: 100svh; min-height: 100dvh; background-position: 22% center; }
  .hero video { object-position: 22% center; }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(20,34,48,.04) 0%, rgba(20,34,48,.08) 36%, rgba(20,34,48,.55) 68%, rgba(20,34,48,.82) 100%),
      linear-gradient(180deg, rgba(20,34,48,.5) 0%, rgba(20,34,48,.05) 24%, rgba(20,34,48,.2) 58%, #142230 100%);
  }
  .hero .wrap { justify-content: flex-end; padding-bottom: 32px; }
  .hero-copy { max-width: min(22rem, 74%); margin-left: auto; text-align: right; }
  .hero .btn-row { justify-content: flex-end; }
  .hero .sub { max-width: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav-home { display: block; }
  .site-header .wrap { min-height: 64px; }
  .logo img { height: 32px; }
  .site-footer .logo img { height: 32px; }
  .site-header .nav {
    display: flex;
    position: absolute;
    z-index: 40;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: calc(100dvh - 64px);
    overflow: auto;
    padding: 8px max(var(--gutter), env(safe-area-inset-right)) 24px max(var(--gutter), env(safe-area-inset-left));
    background: var(--night);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: clip-path .38s cubic-bezier(.22, .7, .2, 1), opacity .28s ease, visibility .38s;
  }
  .site-header.light .nav { background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(29,39,49,.1); }
  .site-header.nav-open .nav {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: 1.05rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .28s ease, transform .34s cubic-bezier(.22, .7, .2, 1), border-color .25s ease, color .25s ease;
  }
  .site-header.nav-open .nav a { opacity: 1; transform: none; }
  .site-header.nav-open .nav a:nth-child(1) { transition-delay: .05s; }
  .site-header.nav-open .nav a:nth-child(2) { transition-delay: .09s; }
  .site-header.nav-open .nav a:nth-child(3) { transition-delay: .13s; }
  .site-header.nav-open .nav a:nth-child(4) { transition-delay: .17s; }
  .site-header.nav-open .nav a:nth-child(5) { transition-delay: .21s; }
  .site-header.light .nav a { border-bottom-color: var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--lantern-soft); border-bottom-color: rgba(255,255,255,.12); }
  .site-header.light .nav a[aria-current="page"] { color: var(--rose); border-bottom-color: var(--line); }
}

@media (max-width: 420px) {
  .btn-row .btn { flex: 1 1 100%; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.55rem); }
  .hero .sub { font-size: clamp(.72rem, 3.15vw, .92rem); }
  .hero p.lede { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  html.fade-fallback body,
  html.fade-fallback body.is-leaving { animation: none; }
  .hero video, .hero video.is-playing { display: none; animation: none; opacity: 0; }
  .hero-copy > *, .cover-glow::before, .site-header::before { animation: none; transition: none; }
  .thumb img, .post-card, .btn, .site-header .nav, .nav a, .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; }
  .post-card:hover, .btn:hover, .btn:active { transform: none; }
  .post-card:hover .thumb img { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
