/* Sarah Forgrave — redesign 2 (typographic, no portraits) */
/* Instrument Sans & Instrument Serif (SIL Open Font License), served from this site instead of Google */
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/instrument-sans-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/instrument-sans-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/instrument-sans-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/instrument-sans-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/instrument-sans-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/instrument-sans-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-3.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Serendipity Wide: purchased and licensed by Sarah for this site */
@font-face { font-family: "Serendipity Wide"; src: url("/fonts/Serendipity_Wide.otf") format("opentype"); font-display: swap; }
:root {
  --bg: #f6f1e9;
  --surface: #fffcf6;
  --ink: #1c2b2d;
  --ink-soft: #3c494a;
  --muted: #6d7572;
  --line: #e2d9ca;
  --deep: #1f3a3d;
  --deep-2: #152a2c;
  --on-deep: #efe9de;
  --on-deep-muted: #a9b8b3;
  --mist: #dce6e0;
  --clay: #b5684a;
  --clay-dark: #974f34;
  --clay-soft: #f0dccf;
  --gold: #c9a66b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 43, 45, .05), 0 18px 40px -18px rgba(28, 43, 45, .22);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, iframe, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--clay-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .45em; }
h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.8rem; line-height: 1.12; }
h1 em, h2 em, h3 em { color: var(--clay); }
p { margin: 0 0 1.1em; }
::selection { background: var(--clay-soft); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 780px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 500 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--clay); margin: 0 0 22px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); max-width: 34em; }
.muted { color: var(--muted); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.dark { background: var(--deep); color: var(--on-deep); }
.dark .kicker { color: var(--gold); }
.dark .lede, .dark .muted { color: var(--on-deep-muted); }
.dark a:hover { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 .95rem/1 var(--sans); text-decoration: none; padding: 16px 28px; border-radius: 4px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; cursor: pointer; }
.btn-clay { background: var(--gold); color: var(--ink); }
.btn-clay:hover { background: #b8945a; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--deep); color: #fff; }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dark .btn-line:hover { background: var(--on-deep); color: var(--deep); border-color: var(--on-deep); }
.btn-sm { padding: 11px 18px; font-size: .85rem; }
.arrow { font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.arrow::after { content: "→"; transition: transform .2s; }
.arrow:hover::after { transform: translateX(4px); }
.btn-row { display: flex; gap: 14px 26px; flex-wrap: wrap; align-items: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.home .site-header:not(.scrolled) { background: var(--deep); color: var(--on-deep); }
.home .site-header:not(.scrolled) .nav a { color: var(--on-deep); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header); gap: 24px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 12px; }
.brand-name { font: 400 2rem/1 "Serendipity Wide", var(--serif); letter-spacing: 0; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--ink-soft); }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--clay); }
.nav .btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: inherit; }
.menu-toggle svg { width: 26px; height: 26px; }
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: var(--header) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a, .home .site-header:not(.scrolled) .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; color: var(--ink); }
  .nav .btn, .home .site-header:not(.scrolled) .nav .btn { margin-top: 18px; color: #fff; border-bottom: 0; }
}

/* Hero */
.hero { padding: clamp(48px, 7vw, 100px) 0 clamp(72px, 9vw, 130px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero h1 { font-size: clamp(3.4rem, 8vw, 7rem); margin-bottom: 28px; }
.hero h1 em { color: var(--gold); }
.hero .lede { margin-bottom: 40px; color: var(--on-deep-muted); }
.hero-books { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-books .halo { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #2c4d50 0%, #23413f 55%, transparent 72%); }
.hero-books .branch { position: absolute; inset: -4% -8% auto auto; width: 78%; color: var(--gold); opacity: .55; }
.hero-books .branch.b2 { inset: auto auto -6% -10%; transform: rotate(180deg); width: 62%; opacity: .35; }
.hero-books .cover { position: absolute; width: 44%; border-radius: 3px; box-shadow: 0 30px 50px -18px rgba(0, 0, 0, .6); transition: transform .5s; }
.hero-books .cover img { border-radius: 3px; }
.hero-books .c1 { transform: translate(-30%, 4%) rotate(-7deg); }
.hero-books .c2 { transform: translate(30%, -4%) rotate(5deg); }
.hero-books:hover .c1 { transform: translate(-36%, 2%) rotate(-9deg); }
.hero-books:hover .c2 { transform: translate(36%, -6%) rotate(7deg); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-books { max-width: 440px; width: 100%; margin: 0 auto; } }

/* Paths ("Where are you today?") */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; }
.path:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.path .icon { display: flex; justify-content: center; margin-bottom: 22px; }
.path .icon svg { width: 52px; height: 52px; color: var(--deep); }
.path h3, .path > p { text-align: center; }
.path h3 { margin-bottom: 14px; }
.path p { color: var(--ink-soft); flex: 1; }
.path .links { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.path .links a { text-decoration: none; font-size: .95rem; display: flex; justify-content: space-between; }
.path .links a::after { content: "→"; color: var(--clay); }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } }

/* Book rows */
.book-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(40px, 5vw, 72px) 0; }
.book-row + .book-row { border-top: 1px solid var(--line); }
.book-row.flip .book-art { order: 2; }
.book-art { background: var(--mist); border-radius: var(--radius); aspect-ratio: 5 / 4; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.book-art.alt { background: var(--clay-soft); }
.book-row.flip .book-art { background: var(--clay-soft); }
.book-art img { width: 42%; max-width: 260px; margin: 0 auto; flex: none; box-shadow: 0 30px 50px -20px rgba(28, 43, 45, .55); border-radius: 3px; position: relative; transition: transform .5s; }
.book-art:hover img { transform: translateY(-6px) rotate(-1.5deg); }
.book-art .branch { position: absolute; width: 70%; right: -10%; top: -6%; color: var(--deep); opacity: .18; }
.book-row h2 a { text-decoration: none; }
.book-row .sub { font: italic 400 1.35rem/1.35 var(--serif); color: var(--clay); margin-bottom: 20px; }
.book-row blockquote { margin: 28px 0; padding-left: 20px; border-left: 2px solid var(--gold); font: italic 400 1.2rem/1.5 var(--serif); color: var(--ink); }
.book-row blockquote cite { display: block; font: 500 .78rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; font-style: normal; }
@media (max-width: 860px) { .book-row { grid-template-columns: 1fr; } .book-row.flip .book-art { order: 0; } }

/* Testimonials */
.testimonials { text-align: center; position: relative; }
.testimonials .branch { width: 160px; margin: 0 auto 28px; color: var(--clay); }
.t-slide { display: none; max-width: 920px; margin: 0 auto; }
.t-slide.active { display: block; animation: fade .6s ease; }
.t-slide p { font: italic 400 clamp(1.7rem, 3.4vw, 2.7rem)/1.25 var(--serif); margin-bottom: 26px; }
.t-slide cite { font: 500 .8rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--muted); }
.t-dots { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.t-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; padding: 0; cursor: pointer; }
.t-dots button[aria-current="true"] { background: var(--ink); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* Writing list */
.writing { border-top: 1px solid var(--ink); }
.writing a { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s, color .2s; }
.writing a:hover { padding-left: 12px; color: var(--clay-dark); }
.writing h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.writing .tag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); white-space: nowrap; }
@media (max-width: 700px) { .writing a { grid-template-columns: 1fr; gap: 6px; } .writing .tag { order: -1; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { text-decoration: none; font-size: .9rem; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); transition: .2s; }
.chip:hover { border-color: var(--clay); color: var(--clay-dark); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip small { color: var(--muted); margin-left: 4px; }
.chip[aria-current] small { color: #b9c2bf; }

/* Page head */
.page-head { padding: clamp(56px, 8vw, 112px) 0 clamp(32px, 4vw, 56px); }
.page-head h1 { margin-bottom: 18px; }

/* Post cards (blog) */
.feature-post { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; text-decoration: none; padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.feature-post .thumb { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.feature-post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature-post:hover .thumb img { transform: scale(1.03); }
.feature-post h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.feature-post:hover h2 { color: var(--clay-dark); }
@media (max-width: 760px) { .feature-post { grid-template-columns: 1fr; } }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.card { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; text-decoration: none; padding: 18px 0; border-bottom: 1px solid var(--line); }
.card .thumb { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--mist); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .tag, .feature-post .tag { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); font-weight: 500; }
.card h3 { font-size: 1.45rem; margin: 6px 0 6px; }
.card:hover h3 { color: var(--clay-dark); }
.card time, .feature-post time { font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } .card { grid-template-columns: 96px 1fr; } }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 64px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 4px; text-decoration: none; font-size: .95rem; }
.pagination a:hover { background: var(--surface); }
.pagination [aria-current] { background: var(--ink); color: var(--bg); }

/* Article */
.article-head { padding: clamp(48px, 7vw, 104px) 0 clamp(28px, 3vw, 40px); }
.article-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 24px; }
.article-head .meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; padding-top: 20px; border-top: 1px solid var(--line); }
.article-head .kicker a { text-decoration: none; }
.prose { font-size: 1.12rem; line-height: 1.8; color: var(--ink-soft); }
.prose > * { max-width: 700px; margin-left: auto; margin-right: auto; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.6em; }
.prose h2 { font-size: 2.4rem; }
.prose h3 { font-size: 2rem; }
.prose h4 { font-size: 1.6rem; }
.prose h5, .prose h6 { font: 600 .82rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-top: 2em; }
.prose a { color: var(--deep); text-decoration-color: var(--clay); }
.prose a:hover { color: var(--clay-dark); }
.prose strong { color: var(--ink); }
.prose img { border-radius: 8px; margin: 2em auto; }
.prose .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 45%; }
.prose .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 45%; }
.prose .aligncenter, .prose .alignnone { margin-left: auto; margin-right: auto; }
.prose figure { margin: 2em auto; }
.prose .wp-caption { max-width: 100% !important; width: auto !important; }
.prose .wp-caption-text, .prose figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: -1.2em; }
.prose blockquote { margin: 2em auto; padding: 0 0 0 1.4em; border-left: 2px solid var(--gold); font: italic 400 1.5rem/1.45 var(--serif); color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--clay); }
.prose hr { border: 0; text-align: center; margin: 3em auto; overflow: visible; }
.prose hr::after { content: "✦  ✦  ✦"; color: var(--gold); letter-spacing: .4em; font-size: .8rem; }
.prose iframe { display: block; margin: 2em auto; width: 100%; max-width: 700px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.prose iframe[src*="docs.google.com"] { aspect-ratio: auto; height: 1600px; border-radius: 0; }
.prose .button, .prose a.button { display: inline-block; text-decoration: none; padding: 10px 18px; border-radius: 4px; border: 1px solid var(--ink); font-size: .9rem; margin: 4px 2px; }
.prose::after { content: ""; display: block; clear: both; }
.prose > p:first-child::first-letter { font: 400 4.2em/.8 var(--serif); float: left; margin: .08em .1em 0 0; color: var(--clay); }
.prose .zrdn-print-link { display: none; }
@media (max-width: 600px) { .prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 1.5em auto; } }

.adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.adjacent a { text-decoration: none; padding: 4px 0; }
.adjacent small { display: block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: 6px; }
.adjacent span { font: 400 1.35rem/1.2 var(--serif); }
.adjacent a:hover span { color: var(--clay-dark); }
.adjacent .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .adjacent { grid-template-columns: 1fr; } .adjacent .next { grid-column: auto; text-align: left; } }

.comments { margin-top: 48px; }
.comments summary { cursor: pointer; font: 400 1.7rem/1.2 var(--serif); list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.comments summary::-webkit-details-marker { display: none; }
.comments summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); color: var(--clay); }
.comments[open] summary::after { content: "–"; }
.comment-list, .comment-list ol { list-style: none; padding: 0; margin: 0; }
.comment-list ol { margin-left: clamp(16px, 4vw, 48px); border-left: 1px solid var(--line); padding-left: clamp(14px, 3vw, 28px); }
.comment { padding: 22px 0 0; }
.comment-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.initial { width: 38px; height: 38px; border-radius: 50%; background: var(--mist); color: var(--deep); display: grid; place-items: center; font: 400 1.1rem/1 var(--serif); flex: none; }
.initial.author { background: var(--deep); color: var(--gold); font-style: italic; }
.comment-head b { font-weight: 600; }
.comment-head time { display: block; font-size: .82rem; color: var(--muted); }
.comment-body { font-size: .97rem; color: var(--ink-soft); }
.comment-body p { margin-bottom: .6em; }

/* Books */
.book-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px); }
.book-hero .book-art { aspect-ratio: 1; }
.book-hero .book-art img { width: 52%; max-width: 300px; }
.book-hero h1 { font-size: clamp(2.8rem, 5.4vw, 4.6rem); margin-bottom: 12px; }
.book-hero .sub { font: italic 400 1.4rem/1.35 var(--serif); color: var(--clay); margin-bottom: 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: .9rem; color: var(--muted); margin: 0 0 30px; padding: 16px 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.buy-label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.buy-links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .book-hero { grid-template-columns: 1fr; } }
.book-tabs { position: sticky; top: var(--header); z-index: 10; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book-tabs .wrap { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.book-tabs a { padding: 16px 0; white-space: nowrap; text-decoration: none; font-size: .95rem; color: var(--ink-soft); }
.book-tabs a:hover { color: var(--clay); }
.book-section { padding: clamp(56px, 7vw, 96px) 0; scroll-margin-top: calc(var(--header) + 60px); }
.book-section + .book-section { border-top: 1px solid var(--line); }
.book-section > .wrap > h2 { margin-bottom: 36px; }
.endorsements { columns: 2 360px; column-gap: 40px; }
.endorsement { break-inside: avoid; margin: 0 0 40px; padding-top: 22px; border-top: 2px solid var(--gold); }
.endorsement p { font: italic 400 1.3rem/1.45 var(--serif); color: var(--ink); }
.endorsement footer { font-size: .9rem; color: var(--muted); }
.endorsement footer a { color: var(--deep); font-weight: 600; }
.shareables { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.shareables img { border-radius: 8px; }
.book-prose > * { margin-left: 0; margin-right: 0; }
.book-prose > p:first-child::first-letter { all: unset; }
.book-prose p:has(> a > img) { display: flex; flex-wrap: wrap; gap: 16px; }
.book-prose a > img { width: 200px; margin: 0; }
.book-prose h4 > a > img, .book-prose p > a > img[width="500"] { width: 320px; }
.contrib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.contrib .thumb { aspect-ratio: 3 / 4; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 20px; margin-bottom: 16px; }
.contrib .thumb img { max-height: 100%; width: auto; box-shadow: 0 12px 24px -12px rgba(28, 43, 45, .45); }
.contrib h3 { font-size: 1.5rem; margin: 0 0 4px; }
.contrib .kind { font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) { .contrib-grid { grid-template-columns: repeat(2, 1fr); } }

/* About */

.search-bar { display: flex; gap: 10px; max-width: 620px; border-bottom: 1px solid var(--ink); }
.search-bar input { flex: 1; font: 400 1.6rem/1.2 var(--serif); padding: 12px 0; border: 0; background: transparent; color: var(--ink); }
.search-bar input:focus { outline: none; }
.search-bar button { background: none; border: 0; font: 500 .95rem var(--sans); color: var(--clay); cursor: pointer; }

/* Footer */
.site-footer { background: var(--deep-2); color: var(--on-deep); margin-top: clamp(72px, 10vw, 140px); padding: clamp(64px, 8vw, 104px) 0 36px; font-size: .95rem; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.footer-top > :last-child { justify-self: center; }
.footer-top .big { font: 400 clamp(2.4rem, 5vw, 4rem)/1 var(--serif); margin: 0 0 18px; }
.footer-top .big em { color: var(--gold); }
.footer-top h4 { font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--on-deep-muted); margin-bottom: 20px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 10px; }
.footer-top a { text-decoration: none; color: var(--on-deep); }
.footer-top a:hover { color: var(--gold); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid #ffffff1f; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--on-deep-muted); font-size: .85rem; }
.footer-bottom a { color: inherit; }
.site-footer .branch { position: absolute; width: 420px; right: -80px; top: -60px; color: var(--gold); opacity: .12; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } .footer-top > :last-child { justify-self: start; } }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Even row of blog-post thumbnails on book pages */
.thumb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.5em 0 2em; max-width: 680px; }
.thumb-row a { display: block; }
.book-prose .thumb-row img, .thumb-row img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; border-radius: 8px; }
@media (max-width: 520px) { .thumb-row { grid-template-columns: repeat(2, 1fr); } }

/* About */
.about-copy > * { margin-left: 0; margin-right: 0; }
.about-copy > p:first-child::first-letter { all: unset; }
.ornament { display: flex; justify-content: center; margin: 48px 0 40px; }
.ornament .branch { width: 120px; color: var(--clay); }
#formal-bio { font-size: 2.4rem; margin-bottom: 20px; }

/* Book promo at the end of posts */
.book-promo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.book-promo .kicker { margin-bottom: 18px; }
.promo-items { display: grid; gap: 20px; }
.book-promo.two .promo-items { grid-template-columns: 1fr 1fr; }
.promo { display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: center; text-decoration: none; }
.promo img { width: 80px; border-radius: 2px; box-shadow: 0 10px 20px -10px rgba(28, 43, 45, .5); }
.promo h3 { font-size: 1.35rem; margin: 0 0 4px; }
.promo p { font: italic 400 1rem/1.35 var(--serif); color: var(--clay); margin: 0 0 8px; }
.promo .arrow { font-size: .88rem; }
.promo:hover h3 { color: var(--clay-dark); }
@media (max-width: 640px) { .book-promo.two .promo-items { grid-template-columns: 1fr; } }

.about-title { font-size: clamp(2.2rem, 4vw, 3rem); }

/* About: small framed photo beside the intro */
.about-intro { display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: start; }
.about-intro .about-copy { grid-column: 1; grid-row: 1; }
.about-photo { grid-column: 2; grid-row: 1; margin: 6px 0 0; position: relative; }
.about-photo::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; border: 1px solid var(--gold); border-radius: 999px 999px 10px 10px; }
.about-photo img { position: relative; border-radius: 999px 999px 10px 10px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
@media (max-width: 700px) {
  .about-intro { grid-template-columns: 1fr; gap: 28px; }
  .about-intro .about-copy, .about-photo { grid-column: 1; grid-row: auto; }
  .about-photo { width: 180px; margin: 0 auto 12px; }
}

/* Inner-page titles: larger than body text, smaller than the home page headline */
h1.page-title, .book-hero h1.page-title { font-size: clamp(2.2rem, 4vw, 3rem); }

/* Section titles on Books, Blog and book pages stay a touch smaller than the page title */
.inner h2, .inner .feature-post h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
