:root {
  --bg: #fbfaf7;
  --fg: #1c1b19;
  --muted: #5d5a54;
  --accent: #1f4e79;
  --rule: #dcd8cf;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161513; --fg: #ece9e2; --muted: #a8a49a; --accent: #8db8e3; --rule: #34322d; }
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.125rem/1.6 Georgia, "Iowan Old Style", "Times New Roman", serif;
}
.site-header, main, .site-footer { max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }
.site-header { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; padding-top: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.site-name { font-weight: 700; text-decoration: none; color: var(--fg); }
nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
main { padding-top: 2rem; padding-bottom: 3rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.5rem; }
a { color: var(--accent); }
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
.site-footer { padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
.draft-banner { background: #fff3c4; color: #3a2f00; text-align: center; padding: 0.5rem 1rem; font: 0.9rem/1.4 system-ui, sans-serif; }

/* bookitect.com theme. White and Bookitect blue (#1874BC, confirmed by David 2026-10-30), Newsreader over Figtree,
   self-hosted (the CSP forbids external fonts). Overrides shared/css/base.css; nothing here is shared with the other sites. */
@font-face { font-family: "Newsreader"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/media/fonts/newsreader-latin-wght.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 200 800; font-style: italic; font-display: swap; src: url("/media/fonts/newsreader-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-style: normal; font-display: swap; src: url("/media/fonts/figtree-latin-wght.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --blue: #1874BC;
  --blue-ink: #0F5C97;
  --blue-deep: #0B4A7C;
  --ink: #0E2233;
  --muted: #4A5C6C;
  --paper: #FFFFFF;
  --band: #EEF5FB;
  --hair: #D3E1EE;
  --bg: #FFFFFF;
  --fg: #0E2233;
  --accent: #0F5C97;
  --rule: #D3E1EE;
  --gutter: 20px;
  --wrap: 1180px;
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  --header-h: 60px;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (min-width: 700px) { :root { --gutter: 40px; --header-h: 68px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
body { font: 400 clamp(17px, 0.3vw + 16px, 19px)/1.62 var(--sans); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: #CBE2F5; color: var(--ink); }
a { color: var(--blue-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; }
.draft-banner { background: #FFF3C4; color: #3A2F00; font: 600 14px/1.4 var(--sans); padding: 8px var(--gutter); text-align: center; }

/* ---------- Header: sticky; on a phone the link strip folds away once you scroll ---------- */
.site-header { position: sticky; top: 0; z-index: 60; max-width: none; margin: 0; padding: 0; display: block; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--hair); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); } }
.bar { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; }
.brand { display: block; line-height: 0; padding: 14px 0; }
.brand img { display: block; height: 28px; width: auto; }
.bar nav { order: 3; width: 100%; max-height: 46px; overflow: hidden; }
.bar nav ul { display: flex; gap: 0; margin: 0 calc(-1 * var(--gutter)); padding: 0 calc(var(--gutter) - 12px); list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bar nav ul::-webkit-scrollbar { display: none; }
.bar nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.bar nav a:hover { color: var(--blue-ink); border-bottom-color: var(--blue); }
.bar .btn-small { margin-left: auto; order: 2; }
.brand { order: 1; }
@media (max-width: 759px) {
  .bar nav { border-top: 1px solid var(--hair); margin-top: -1px; }
  @supports (animation-timeline: scroll()) {
    .bar nav { animation: strip-away linear both; animation-timeline: scroll(root); animation-range: 0 80px; }
    @keyframes strip-away { to { max-height: 0; opacity: 0; border-top-color: transparent; } }
  }
}
@media (max-width: 399px) { .bar nav a { padding: 0 8px; font-size: 14px; } .bar nav ul { padding: 0 12px; } }
@media (min-width: 760px) {
  .bar { flex-wrap: nowrap; min-height: var(--header-h); column-gap: 32px; }
  .brand { padding: 0; }
  .brand img { height: 34px; }
  .bar nav { order: 2; width: auto; max-height: none; overflow: visible; margin-left: auto; }
  .bar nav ul { margin: 0; padding: 0; gap: 2px; overflow: visible; }
  .bar nav a { min-height: var(--header-h); padding: 0 14px; font-size: 16px; }
  .bar .btn-small { margin-left: 0; order: 3; }
}

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; background: var(--blue); color: #fff; font: 600 17px/1.2 var(--sans); letter-spacing: 0.005em; text-decoration: none; border: 2px solid var(--blue); border-radius: 999px; text-align: center; transition: background-color 0.15s, border-color 0.15s, transform 0.15s; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
.btn .short { display: none; }
@media (max-width: 759px) { .btn-small .long { display: none; } .btn-small .short { display: inline; } .btn-small { min-height: 40px; padding: 0 18px; } }
.btn-row, .more-row { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.more-row { margin-top: 24px; }
.more { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.more::after { content: " \2192"; }
.more:hover { border-bottom-width: 2px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.012em; text-wrap: balance; font-variant-numeric: lining-nums; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--blue); }
h1 { font-size: clamp(2.6rem, 1.4rem + 5.6vw, 5.4rem); line-height: 1.02; margin: 0 0 0.4em; font-weight: 380; }
h2 { font-size: clamp(2rem, 1.1rem + 3.2vw, 3.4rem); line-height: 1.06; margin: 0 0 0.55em; }
h3 { font-size: clamp(1.3rem, 1rem + 0.8vw, 1.6rem); line-height: 1.22; font-weight: 500; margin: 0; }
p { margin: 0 0 1.1em; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.17em; text-transform: uppercase; color: var(--blue-ink); margin: 0 0 20px; }
.eyebrow::before { content: ""; flex: none; width: 26px; height: 2px; background: var(--blue); }
.lede, .lede p { font-size: clamp(1.15rem, 0.5vw + 1.02rem, 1.4rem); line-height: 1.55; color: #26394A; }
.lede { max-width: 40rem; }
.lede p:last-child { margin-bottom: 0; }

/* ---------- Sections ---------- */
main { max-width: none; margin: 0; padding: 0; }
main > section { padding: clamp(60px, 9vw, 120px) var(--edge); }
.band { background: var(--band); }
.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); background: radial-gradient(ellipse 60% 70% at 88% 8%, #E3F0FA 0, rgba(227, 240, 250, 0) 70%), #fff; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; right: calc(-1 * clamp(40px, 8vw, 120px)); top: clamp(24px, 4vw, 60px); width: clamp(300px, 52vw, 760px); aspect-ratio: 220 / 170; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 170' fill='none' stroke='%231874BC' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='10' y='152' width='198' height='10'/%3E%3Cpath d='M12 152 L148 12'/%3E%3Cpath d='M148 12 Q212 60 206 152' stroke-dasharray='4 5'/%3E%3Cpath d='M60 152 A48 48 0 0 0 49 119' stroke-width='1'/%3E%3C/svg%3E") no-repeat center / contain; opacity: 0.2; }
.hero h1 { max-width: 12.5em; }
.hero .lede { margin-top: 0.4em; }
.hero .eyebrow { margin-bottom: 28px; }
@media (max-width: 759px) { .hero::before { opacity: 0.1; top: 8px; } }

.split { display: grid; gap: 28px; }
.split > .head > h2 { margin-bottom: 0; }
.body { max-width: 40rem; }
.body p { font-size: 1.0625rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .split > .head { position: sticky; top: calc(var(--header-h) + 32px); }
  .split:has(.portrait) { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

.portrait img { display: block; width: 100%; max-width: 380px; height: auto; border-radius: 4px; }
@media (min-width: 900px) { .portrait { position: sticky; top: calc(var(--header-h) + 32px); } .portrait img { box-shadow: 14px 14px 0 -2px var(--band), 14px 14px 0 0 var(--blue); } }
@media (max-width: 899px) { .portrait img { max-width: min(100%, 300px); } }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(28px, 3.4vw, 48px); margin: clamp(44px, 6vw, 72px) 0 0; }
.testimonials:has(> :nth-child(4)) { display: block; columns: 3 19rem; column-gap: clamp(28px, 3.4vw, 48px); }
.testimonials:has(> :nth-child(4)) > .testimonial { break-inside: avoid; margin-bottom: clamp(28px, 3.4vw, 48px); }
.testimonial { border-top: 2px solid var(--blue); padding-top: 18px; }
.testimonial blockquote { margin: 0 0 0.9em; padding: 0; border: 0; color: var(--ink); font: 400 clamp(1.15rem, 0.5vw + 1.02rem, 1.38rem)/1.46 var(--serif); }
.testimonial blockquote p { margin: 0; font-size: inherit; }
.testimonial blockquote p::before { content: "\201C"; }
.testimonial blockquote p::after { content: "\201D"; }
.testimonial > p { margin: 0; font: 600 0.9rem/1.4 var(--sans); letter-spacing: 0.01em; color: var(--muted); }
.testimonial > p em { font-weight: 600; }
.body .testimonial { margin: 2.2em 0 0; }
.body .testimonial blockquote { font-size: 1.2rem; }
.body .testimonial + .more-row { margin-top: 28px; }

/* ---------- Cover wall (component for round two; PROJECT.md 1.21) ---------- */
.covers { --cg: 6px; --ch: clamp(92px, calc((100vw - 2 * var(--gutter) - 4 * var(--cg)) / 5 * 1.5), 150px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cg); margin: clamp(36px, 5vw, 60px) 0 0; }
.covers img { display: block; height: var(--ch); width: auto; max-width: none; border-radius: 2px; background: var(--band); box-shadow: 0 0 0 1px rgba(14, 34, 51, 0.1), 0 2px 4px rgba(14, 34, 51, 0.1), 0 10px 20px -10px rgba(14, 34, 51, 0.4); transition: transform 0.2s ease, box-shadow 0.2s ease; }
@media (min-width: 760px) { .covers { --cg: 8px; --ch: clamp(130px, 14vw, 184px); } }
@media (hover: hover) { .covers img:hover { transform: translateY(-5px) scale(1.03); position: relative; z-index: 1; box-shadow: 0 0 0 1px rgba(14, 34, 51, 0.12), 0 14px 28px -8px rgba(14, 34, 51, 0.5); } }

/* ---------- Questions ---------- */
.faq { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr); }
.faq h3 { padding: 26px 0 8px; border-top: 1px solid var(--hair); }
.faq p { padding: 0 0 26px; margin: 0; max-width: 42rem; }
.faq > :last-child { border-bottom: 1px solid var(--hair); }
@media (min-width: 900px) {
  .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 96px); }
  .faq h3 { grid-column: 1; padding: 30px 0; }
  .faq p { grid-column: 2; padding: 30px 0; border-top: 1px solid var(--hair); }
  .faq > :nth-last-child(2) { border-bottom: 1px solid var(--hair); }
}

/* ---------- Closing ---------- */
.closing { position: relative; overflow: hidden; background: var(--blue); color: #fff; text-align: center; isolation: isolate; }
.closing::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -12%; width: clamp(420px, 70vw, 900px); aspect-ratio: 220 / 170; transform: translateX(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 170' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linejoin='round'%3E%3Crect x='10' y='152' width='198' height='10'/%3E%3Cpath d='M12 152 L148 12'/%3E%3Cpath d='M148 12 Q212 60 206 152' stroke-dasharray='4 5'/%3E%3C/svg%3E") no-repeat center / contain; opacity: 0.16; }
.closing .eyebrow { justify-content: center; color: #fff; opacity: 0.9; }
.closing .eyebrow::before { background: #fff; }
.closing h2 { color: #fff; margin-bottom: 0.4em; }
.closing .narrow { max-width: 34rem; margin: 0 auto; font-size: 1.15rem; }
.closing .btn-row { justify-content: center; margin-top: 36px; }
.closing .btn { background: #fff; color: var(--blue-deep); border-color: #fff; }
.closing .btn:hover { background: var(--band); border-color: var(--band); color: var(--blue-deep); }
.closing :focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { max-width: none; margin: 0; padding: 44px var(--edge) 36px; border-top: 0; background: #fff; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.foot { display: grid; gap: 28px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--hair); }
.foot-brand .brand { padding: 0 0 14px; }
.foot-brand .brand img { height: 30px; }
.foot-brand p { margin: 0; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 0; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-footer nav a:hover { color: var(--blue-ink); text-decoration: underline; }
.site-footer .legal { margin: 24px 0 0; font-size: 0.875rem; }
@media (max-width: 599px) { .site-footer nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; } }
@media (min-width: 900px) { .foot { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- 404 ---------- */
.notfound { padding: clamp(72px, 14vw, 160px) var(--edge); min-height: 50vh; }
.notfound h1 { margin-bottom: 0.3em; }
