/*
Theme Name: Jesse Lyn Stoner
Theme URI: https://seapointcenter.com/
Author: Built with Claude for Jesse Lyn Stoner
Description: A quiet, reading-first theme for Jesse Lyn Stoner's essays. Mobile first. Works with the Classic Editor. Shows every archived comment in full; new comments are closed.
Version: 1.15.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: jls
*/


/* ---------- Fonts (bundled in the theme; SIL Open Font License, see assets/fonts) ---------- */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('assets/fonts/newsreader-latin-opsz-normal.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; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('assets/fonts/newsreader-latin-ext-opsz-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap; src: url('assets/fonts/newsreader-latin-opsz-italic.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; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap; src: url('assets/fonts/newsreader-latin-ext-opsz-italic.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/instrument-sans-latin-wght-normal.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; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/instrument-sans-latin-ext-wght-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Tokens (from the Seapoint style guide v1, with contrast fixes) ---------- */
:root {
  --page: #FDFBF7; /* lightened in 1.14.1 (was #FBF7F0) */
  --ink: #13283A;
  --text: #34495C;
  --muted: #3F5A70;
  /* Accent blue (links, labels, the home headline). Replaced the earlier green in 1.14.0. */
  --accent: #1A63B8;
  --accent-hover: #144E92;
  --accent-line: rgba(26, 99, 184, 0.4);
  /* Buttons: burnt orange with white text (4.6:1 contrast). */
  --btn: #BF5519;
  --btn-hover: #A34813;
  --btn-text: #FFFFFF;
  --harbor: #2F6894;
  --harbor-deep: #255577;
  --apricot: #EC9D76;
  --apricot-hover: #E58A5F;
  --rule: #ECE2D3;
  --sand: #F1E9DD;
  --on-dark: #FBF7F0;
  --on-dark-muted: #E3EBF3; /* lightened from #D6E1EC so it passes 4.5:1 on harbor */

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 24px;
  --reading: 680px;
  --standard: 1080px;
  --section: 64px;
}
@media (min-width: 640px) { :root { --gutter: 40px; } }
@media (min-width: 960px) { :root { --gutter: 64px; --section: 96px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
@media (min-width: 960px) { body { font-size: 18px; } }
img, video, iframe { max-width: 100%; height: auto; }
iframe { border: 0; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-serif); text-wrap: balance; margin: 0; }
p, li { text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--accent-line); transition: color 160ms ease-out, text-decoration-color 160ms ease-out; }
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 12px 16px; background: var(--ink); color: var(--on-dark); font-family: var(--font-sans); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: calc(var(--standard) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.reading { width: 100%; max-width: calc(var(--reading) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow { font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.eyebrow a { color: inherit; text-decoration: none; }
.meta { font-family: var(--font-sans); font-size: 13px; line-height: 1.4; color: var(--muted); }
.meta a { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 20px; border-radius: 3px; border: 1.5px solid var(--btn); background: var(--btn); color: var(--btn-text); font-family: var(--font-sans); font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-text); }
.btn--accent { background: var(--apricot); border-color: var(--apricot); color: var(--ink); }
.btn--accent:hover { background: var(--apricot-hover); border-color: var(--apricot-hover); color: var(--ink); }
.btn--secondary { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--secondary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }
.more-link { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.more-link span { display: inline-block; transition: transform 160ms ease-out; }
.more-link:hover span { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header { background: var(--page); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { font-family: var(--font-serif); font-weight: 500; font-size: 20px; line-height: 1.2; color: var(--ink); text-decoration: none; padding: 10px 0; }
@media (min-width: 960px) { .brand { font-size: 22px; } }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 0 0 12px; background: none; border: 0; font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.menu-toggle svg { width: 18px; height: 18px; }
.site-nav { flex-basis: 100%; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { padding: 8px 0 20px; border-top: 1px solid var(--rule); }
.site-nav a { display: block; padding: 12px 0; font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { color: var(--ink); }
.site-nav .sub-menu, .site-nav .children { padding-left: 16px; }
.site-nav .sub-menu a, .site-nav .children a { padding: 8px 0; font-size: 15px; }
@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; flex-basis: auto; }
  .site-nav > ul { display: flex; gap: 32px; padding: 0; border: 0; }
  .site-nav li { position: relative; }
  .site-nav a { padding: 22px 0; font-size: 14px; }
  .site-nav .sub-menu, .site-nav .children { position: absolute; top: 100%; left: -16px; min-width: 180px; padding: 8px 16px; background: var(--page); border: 1px solid var(--rule); border-radius: 4px; display: none; z-index: 10; }
  .site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu, .site-nav li:hover > .children, .site-nav li:focus-within > .children { display: block; }
  .site-nav .sub-menu a, .site-nav .children a { padding: 8px 0; font-size: 14px; }
}

/* ---------- Essay (single) ---------- */
.entry-header { padding-top: 40px; }
@media (min-width: 960px) { .entry-header { padding-top: 72px; } }
.entry-title { margin-top: 12px; font-size: 34px; line-height: 1.1; font-weight: 400; letter-spacing: -0.01em; }
@media (min-width: 960px) { .entry-title { font-size: 48px; } }
.entry-header .meta { margin-top: 16px; }

.entry-content { margin-top: 32px; font-size: 18px; line-height: 1.65; color: var(--text); overflow-wrap: break-word; }
@media (min-width: 960px) { .entry-content { font-size: 20px; } }
.entry-content > * { margin: 0 0 1.1em; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h1, .entry-content h2 { margin-top: 1.6em; margin-bottom: 0.5em; font-size: 26px; line-height: 1.2; font-weight: 500; }
.entry-content h3, .entry-content h4 { margin-top: 1.4em; margin-bottom: 0.4em; font-size: 21px; line-height: 1.25; font-weight: 500; }
@media (min-width: 960px) { .entry-content h1, .entry-content h2 { font-size: 32px; } .entry-content h3, .entry-content h4 { font-size: 24px; } }
.entry-content :is(h1, h2, h3, h4, h5, h6) :is(strong, b) { font-weight: inherit; }
.entry-content h5, .entry-content h6 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.entry-content strong, .entry-content b { color: var(--ink); font-weight: 600; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content img { display: block; border-radius: 4px; }
.entry-content .alignleft, .entry-content .alignright, .entry-content .aligncenter, .entry-content .alignnone { float: none; display: block; margin-left: 0; margin-right: 0; }
.entry-content .wp-caption { max-width: 100% !important; width: auto !important; }
.entry-content .wp-caption-text, .entry-content figcaption { margin-top: 8px; font-family: var(--font-sans); font-size: 13px; line-height: 1.4; color: var(--muted); }
.entry-content blockquote { margin-left: 0; margin-right: 0; padding: 24px; background: var(--sand); border-radius: 4px; color: var(--ink); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content hr { border: 0; height: 1px; background: var(--rule); margin: 2em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { padding: 8px; border-bottom: 1px solid var(--rule); text-align: left; }
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.pullquote { margin: 2em 0; }
.pullquote::before { content: ""; display: block; width: 32px; height: 3px; background: var(--apricot); margin-bottom: 16px; }
.pullquote p { font-style: italic; font-size: 24px; line-height: 1.3; color: var(--ink); }
@media (min-width: 960px) { .pullquote p { font-size: 30px; } }

.author-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); }
.author-note img { width: 64px; height: 80px; object-fit: cover; border-radius: 4px; flex: none; }
.author-note p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text); }

.section-label { margin-bottom: 12px; }
.related { margin-top: 48px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { border-bottom: 1px solid var(--rule); }
.plain-list li:first-child { border-top: 1px solid var(--rule); }
.plain-list a { display: block; padding: 16px 0; font-size: 19px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.plain-list a:hover { color: var(--accent); }

/* ---------- Comments (archived, shown in full) ---------- */
.comments { margin-top: 56px; padding-bottom: var(--section); }
.comments-title { font-size: 26px; line-height: 1.2; font-weight: 500; }
@media (min-width: 960px) { .comments-title { font-size: 32px; } }
.comments .meta { margin-top: 6px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list { margin-top: 24px; border-top: 1px solid var(--rule); }
.comment-list > li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.comment-list .children { margin-left: 16px; }
@media (min-width: 640px) { .comment-list .children { margin-left: 40px; } .comment-body { font-size: 17px; line-height: 1.55; } }
.comment-list .children > li { padding-top: 12px; }
.comment-head { display: flex; gap: 12px; align-items: center; }
.avatar-initials { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--sand); color: var(--muted); display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.comment-author { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--ink); }
.comment-author a { color: inherit; text-decoration: none; }
.comment-date { font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--muted); }
.comment-date a { color: inherit; text-decoration: none; }
.comment-body { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.comment-body p { margin: 0 0 0.6em; }
.comment-body p:last-child { margin-bottom: 0; }
.comment--author > article .avatar-initials { background: var(--accent); color: var(--on-dark); }
.comment--author > article .comment-author { color: var(--accent); }
.comment:target > article { background: var(--sand); border-radius: 4px; box-shadow: 0 0 0 8px var(--sand); }

/* ---------- Lists of essays ---------- */
.page-header { padding-top: 40px; padding-bottom: 8px; }
@media (min-width: 960px) { .page-header { padding-top: 72px; } }
.page-title { font-size: 34px; line-height: 1.1; font-weight: 400; letter-spacing: -0.01em; }
@media (min-width: 960px) { .page-title { font-size: 48px; } }
.page-intro { margin-top: 12px; font-size: 18px; line-height: 1.5; color: var(--text); max-width: 34em; }
@media (min-width: 960px) { .page-intro { font-size: 21px; } }

.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.topics a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 3px; font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; background: var(--page); }
.topics a:hover, .topics .is-current a { border-color: var(--accent); color: var(--accent); }

.search-form { display: flex; gap: 8px; margin-top: 24px; max-width: 520px; }
.search-form label { flex: 1; }
.search-form input[type="search"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 3px; background: var(--page); color: var(--ink); font-family: var(--font-sans); font-size: 16px; }
.search-form button { flex: none; }

.essay-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.essay-item { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.essay-item h2, .essay-item h3 { margin-top: 8px; font-size: 19px; line-height: 1.3; font-weight: 400; }
@media (min-width: 960px) { .essay-item h2, .essay-item h3 { font-size: 22px; } }
.essay-item h2 a, .essay-item h3 a { color: var(--ink); text-decoration: none; }
.essay-item h2 a:hover, .essay-item h3 a:hover { color: var(--accent); }
.essay-item .dek { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--text); }
.essay-item .meta { margin-top: 8px; }
@media (min-width: 960px) {
  .essay-list--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 0; }
  .essay-list--three { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
  .essay-list--grid .essay-item { border-top: 1px solid var(--rule); border-bottom: 0; }
}

/* Writing page: one essay per row, with its picture. */
.essay-item--thumb { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; }
.essay-thumb { display: block; border-radius: 4px; overflow: hidden; background: var(--sand); aspect-ratio: 1 / 1; }
.essay-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: opacity 160ms ease-out; }
.essay-thumb:hover img { opacity: 0.9; }
.essay-item--thumb .essay-body h2, .essay-item--thumb .essay-body h3 { margin-top: 6px; }
@media (min-width: 640px) {
  .essay-item--thumb { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
  .essay-thumb { aspect-ratio: 3 / 2; }
}
@media (min-width: 960px) {
  .essay-list--rows .essay-item { padding: 32px 0; }
  .essay-item--thumb { grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: center; }
  .essay-item--thumb .essay-body h2 { font-size: 26px; line-height: 1.25; }
  .essay-item--thumb .dek { font-size: 17px; max-width: 40em; }
}

.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 32px 0 var(--section); font-family: var(--font-sans); font-size: 14px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 3px; color: var(--accent); text-decoration: none; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }
.pagination .dots { border: 0; min-width: auto; }

/* ---------- Home ---------- */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 0 48px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.hero-subhead { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -0.01em; color: var(--accent); }
.hero-intro { margin: 20px 0 0; font-size: 18px; line-height: 1.55; color: var(--text); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-portrait { margin: 32px 0 0; width: 200px; }
.hero-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
@media (min-width: 640px) {
  /* Text left, photo right, tops aligned. */
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 220px; }
  .hero-portrait { margin-top: 0; width: 100%; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 80px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 64px; }
  .hero-subhead { font-size: 44px; }
  .hero-intro { font-size: 21px; }
}

/* The signature line, on its own blue band. */
.band.quote-band { padding: 56px 0; }
.signature-line { margin: 0 auto; max-width: 22em; text-align: center; font-family: var(--font-serif); font-size: 26px; line-height: 1.2; font-weight: 400; letter-spacing: -0.015em; color: var(--on-dark); text-wrap: balance; }
.signature-line em { font-style: italic; }
@media (min-width: 960px) { .band.quote-band { padding: 80px 0; } .signature-line { font-size: 38px; } }

.home-essays { padding: 40px 0; }
.home-essays--sand { background: var(--sand); }
@media (min-width: 960px) { .home-essays { padding: 56px 0; } }
.all-essays { margin: 32px 0 0; text-align: center; }
.home-essays h2 { font-size: 26px; line-height: 1.2; font-weight: 500; }
@media (min-width: 960px) { .home-essays h2 { font-size: 32px; } }
.home-essays--sand .essay-list, .home-essays--sand .essay-item { border-color: rgba(19, 40, 58, 0.14); }
.home-essays .essay-list { margin-top: 24px; }
.home-section { padding: var(--section) 0; border-top: 1px solid var(--rule); }
.home-section .section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.home-section h2 { font-size: 26px; line-height: 1.2; font-weight: 500; }
@media (min-width: 960px) { .home-section h2 { font-size: 32px; } }

.band { background: var(--harbor); color: var(--on-dark); padding: 40px 0; }
.band h2, .band h3 { color: var(--on-dark); }
.band .eyebrow { color: var(--on-dark); }
.band .eyebrow::before { content: ""; display: block; width: 32px; height: 3px; background: var(--apricot); margin-bottom: 14px; }
.book-feature { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; }
.book-feature img { display: block; width: 100%; height: auto; border-radius: 3px; }
.book-feature h2 { margin-top: 10px; font-size: 22px; line-height: 1.15; font-weight: 400; font-style: italic; }
.book-feature .credit { margin: 10px 0 0; font-family: var(--font-sans); font-size: 14px; color: var(--on-dark-muted); }
.book-feature .quote { margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: var(--on-dark); }
.book-feature .quote cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--font-sans); font-size: 13px; color: var(--on-dark-muted); }
.book-feature .btn { margin-top: 24px; }
.book-feature { align-items: start; }
@media (min-width: 640px) {
  /* The cover is as tall as the text beside it. */
  .book-feature { grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: stretch; }
  .book-feature picture { display: block; height: 100%; }
  .book-feature img { height: 100%; width: auto; max-width: none; }
  .book-feature h2 { font-size: 26px; }
}
.book-feature > div { max-width: 40em; }
@media (max-width: 639px) { .book-feature .quote { display: none; } }
@media (min-width: 960px) { .band { padding: 48px 0; } }

.featured-in { padding: 40px 0; }
.featured-in p { margin: 0; font-family: var(--font-sans); font-size: 13px; line-height: 1.8; color: var(--muted); }
.featured-in strong { font-weight: 600; color: var(--ink); }

/* ---------- Pages ---------- */
.page-content { padding-bottom: var(--section); }
.page-portrait { margin: 32px 0 0; max-width: 240px; }
.page-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.hub-links { margin-top: 48px; }

/* ---------- Book page ---------- */
.book-hero { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 28px; align-items: start; }
.book-hero-cover img { display: block; width: 160px; height: auto; border-radius: 3px; box-shadow: 0 1px 0 var(--rule); }
.book-hero .entry-title { margin-top: 10px; }
.book-subtitle { margin: 8px 0 0; font-style: italic; font-size: 21px; line-height: 1.3; color: var(--accent); }
.book-authors { margin: 14px 0 0; font-size: 18px; color: var(--ink); }
.book-hero .meta { margin-top: 6px; }
.book-lead { margin: 20px 0 0; font-size: 18px; line-height: 1.55; color: var(--text); max-width: 34em; }
.book-hero .btn { margin-top: 24px; }
@media (min-width: 640px) { .book-hero { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; } .book-hero-cover img { width: 200px; } }
@media (min-width: 960px) { .book-hero { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 64px; padding-bottom: 36px; } .book-hero-cover img { width: 240px; } .book-subtitle { font-size: 24px; } }

.book-lists, .book-praise { background: linear-gradient(var(--rule), var(--rule)) no-repeat top center / calc(100% - 2 * var(--gutter)) 1px; }
.book-lists { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 24px; }
.book-lists ul { margin: 0; padding-left: 1.1em; font-size: 16px; line-height: 1.5; color: var(--text); }
.book-lists li { margin-bottom: 8px; }
@media (min-width: 960px) { .book-lists { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }

.book-section-title { font-size: 26px; line-height: 1.2; font-weight: 500; }
@media (min-width: 960px) { .book-section-title { font-size: 30px; } }

.book-praise { padding-top: 28px; padding-bottom: 28px; }
.praise-grid { margin-top: 16px; }
@media (min-width: 760px) { .praise-grid { column-count: 2; column-gap: 40px; } }
.praise { margin: 0 0 18px; break-inside: avoid; }
.praise blockquote { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.praise figcaption { margin-top: 4px; font-family: var(--font-sans); font-size: 12px; line-height: 1.4; color: var(--muted); }
.praise figcaption strong { font-weight: 600; color: var(--ink); }

.book-song { background: var(--sand); padding: 28px 0 32px; }
.book-song p { margin: 10px 0 0; font-size: 17px; color: var(--text); max-width: 36em; }
.book-song audio { display: block; width: 100%; max-width: 480px; margin-top: 18px; }
.song-lyrics { font-family: var(--font-sans); font-size: 14px; }

.book-talks { padding-top: 28px; padding-bottom: 56px; }
.talk-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.talk-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.talk-title { display: block; font-size: 18px; line-height: 1.3; color: var(--ink); }
.talk-list .meta { display: block; margin-top: 4px; }

/* ---------- Tools page (address /products/) ---------- */
.tools-page { max-width: calc(920px + 2 * var(--gutter)); }
.tools-page .entry-header { padding-bottom: 8px; }
.tool-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.tool { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.tool--no-image { grid-template-columns: minmax(0, 1fr); }
.tool-image { display: block; text-decoration: none; border-radius: 4px; overflow: hidden; background: #fff; border: 1px solid var(--rule); aspect-ratio: 1 / 1; }
.tool-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tool h2 { font-size: 22px; line-height: 1.25; font-weight: 500; }
.tool p { margin: 10px 0 0; font-size: 17px; line-height: 1.55; color: var(--text); }
.tool .btn { margin-top: 18px; line-height: 1.25; }
@media (min-width: 640px) { .tool { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; } }
@media (min-width: 960px) { .tool { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 36px 0; } .tool h2 { font-size: 26px; } .tool p { font-size: 18px; } }

/* ---------- Contact link and box ---------- */
@media (min-width: 960px) {
  .site-nav .menu-contact { padding-left: 32px; border-left: 1px solid var(--rule); }
}
.site-nav .menu-contact a { color: var(--accent); }
.site-nav .menu-contact a:hover { color: var(--accent-hover); }
.contact-box { width: min(440px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 8px; background: var(--page); color: var(--text); box-shadow: 0 16px 48px rgba(19, 40, 58, 0.28); }
.contact-box::backdrop { background: rgba(19, 40, 58, 0.45); }
.contact-box h2 { font-size: 26px; line-height: 1.2; font-weight: 500; }
.contact-box p { margin: 12px 0 0; font-size: 17px; line-height: 1.5; }
.contact-box .contact-address { margin-top: 8px; font-family: var(--font-sans); font-size: 19px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.contact-box .contact-status { min-height: 1.4em; margin-top: 10px; }

/* Tools page: stand-in picture until the real one is supplied. */
.tool-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px; background: var(--sand); color: var(--ink); text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 15px; line-height: 1.25; }
@media (min-width: 640px) { .tool-placeholder { font-size: 20px; padding: 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 28px 0 20px; font-family: var(--font-sans); font-size: 14px; }
.site-footer a { color: var(--on-dark); text-decoration-color: rgba(251, 247, 240, 0.4); }
.site-footer a:hover { color: var(--on-dark); text-decoration-color: currentColor; }
.footer-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; }
.footer-brand { font-family: var(--font-serif); font-size: 20px; font-weight: 500; margin-right: auto; text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 6px 0; }
.footer-small { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(251, 247, 240, 0.2); font-size: 13px; line-height: 1.6; color: var(--on-dark-muted); }
.footer-small a { color: var(--on-dark-muted); }
@media (max-width: 639px) { .footer-top { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* ---------- 404 ---------- */
.not-found { padding: 72px 0 var(--section); }
