/* davidsduncan.com — site styles
   Palette and type come from the jacket of The Future of Expertise. */

:root {
  /* STONE palette (chosen 2026-11-22): warm off-white; the jacket is the only blue. */
  --page: #fbfaf7;        /* page background */
  --blue: #e9e4da;        /* footer band (name kept from the earlier blue palette) */
  --blue-soft: #f1eee8;   /* page headers, panels */
  --blue-faint: #f5f3ee;  /* alternate bands */
  --ink: #1c1b19;
  --mute: #66625a;
  --rule: #d8d3c8;
  --accent: #3d5d66;
  --serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --sans: Jost, "Avenir Next", Avenir, system-ui, sans-serif;
}
/* To go back to the light-blue palette, add data-theme="blue" to the <html> tag in src/layout.html. */
:root[data-theme="blue"] {
  --page: #ffffff; --blue: #9fc6d1; --blue-soft: #e6f0f3; --blue-faint: #eef4f6;
  --ink: #14181a; --mute: #4c5a5f; --rule: #c6d8dd; --accent: #2f6f7e;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 300 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { text-wrap: balance; font-family: var(--serif); font-weight: 400; }
strong { font-weight: 500; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 20; }

/* ---------- header ---------- */
.site-header { background: var(--blue-soft); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; padding-block: 26px; }
.site-header .name { font: 500 15px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; text-decoration: none; }
.site-header nav { display: flex; gap: 30px; align-items: center; }
.site-header nav a { font-size: 15px; font-weight: 400; letter-spacing: .04em; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; }
.site-header .nav-cta { border: 1px solid var(--ink); padding: 9px 16px; }
.site-header .nav-cta:hover { background: var(--ink); color: #fff; text-decoration: none; }

/* ---------- shared pieces ---------- */
.eyebrow, .label, .src { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 400; }
.label, .src { color: var(--mute); }
.label { margin-bottom: 20px; }
.btn, .signup button { display: inline-block; padding: 15px 24px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font: 500 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; border-radius: 0; }
.btn:hover, .signup button:hover { background: #2b3337; }
.btn.ghost { background: none; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.more { display: inline-block; margin-top: 28px; font-weight: 400; }
section { padding-block: 96px; }
.band { background: var(--blue-faint); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; max-width: 20em; }

/* ---------- signup form ---------- */
.signup label { display: block; margin-bottom: 12px; font-weight: 400; }
.signup .row { display: flex; gap: 10px; max-width: 520px; }
.signup input[type=email] { flex: 1; min-width: 0; padding: 15px 16px; font: 300 16px/1.2 var(--sans); border: 1px solid var(--ink); background: #fff; color: var(--ink); border-radius: 0; }
.signup .fine { font-size: 13px; margin-top: 12px; color: var(--mute); }

/* ---------- home: hero ---------- */
.hero { background: var(--blue-soft); padding-block: 56px 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.45fr .55fr; gap: 56px; align-items: center; }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.08; letter-spacing: .01em; }
.hero h1 em { font-style: italic; display: block; }
.hero h1 span { display: block; }
.hero h1 { font-weight: 500; font-variation-settings: "opsz" 20; } /* sturdier-headline trial 2026-11-23: delete this line to return to the fine-hairline version */
.hero .lede { margin-top: 28px; font-size: 20px; max-width: 34em; }
.hero .signup { margin-top: 40px; }
.hero .pre { margin-top: 22px; font-size: 16px; font-weight: 400; }
.hero .byline { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 18px; max-width: 34em; }
.hero .byline img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; }
.hero .byline p { font-size: 16px; line-height: 1.45; color: var(--mute); }
.hero .byline .by { display: block; color: var(--ink); font: 500 12px/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.hero .byline + .signup { margin-top: 32px; }
.cover { width: 100%; max-width: 380px; margin-inline: auto; box-shadow: 0 34px 60px -20px rgba(40,35,25,.55); }

/* ---------- home: proof strip ---------- */
.proof { padding-block: 30px; border-bottom: 1px solid var(--rule); color: var(--mute); font-size: 15px; }
.proof .wrap { display: flex; flex-wrap: wrap; gap: 14px 48px; justify-content: center; }

/* ---------- quote + questions panel ---------- */
.panel { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; }
.panel blockquote { background: var(--blue-soft); padding: 64px 56px; display: flex; align-items: center; }
.panel blockquote p { font: italic 400 clamp(26px, 3vw, 38px)/1.22 var(--serif); }
.questions { padding-left: 56px; counter-reset: q; display: flex; flex-direction: column; justify-content: center; }
.questions li { counter-increment: q; position: relative; padding: 22px 0 22px 56px; border-top: 1px solid var(--rule); font-size: 21px; line-height: 1.4; }
.questions li:last-child { border-bottom: 1px solid var(--rule); }
.questions li::before { content: counter(q); position: absolute; left: 0; top: 16px; font: 400 34px/1 var(--serif); color: var(--accent); }
.for { margin-top: 48px; max-width: 44em; font-size: 20px; color: var(--mute); }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- rows (essays, parts, readers, talks on inner pages) ---------- */
.rows { margin-top: 48px; border-bottom: 1px solid var(--rule); }
.rows > li, .rows > a, .rows > div { display: grid; grid-template-columns: 220px 1fr; column-gap: 32px; padding: 26px 0; border-top: 1px solid var(--rule); align-items: baseline; text-decoration: none; }
.rows .src { grid-row: span 2; }
.rows h3 { font: 400 24px/1.25 var(--serif); }
.rows p { margin-top: 6px; color: var(--mute); }
.rows a:hover h3 { color: var(--accent); }
.rows.readers > li { display: block; }
.rows.readers p { margin-top: 0; color: var(--ink); max-width: 46em; }
.rows.readers strong { font-weight: 500; }
.rows h3 a { text-decoration: none; color: inherit; }
.rows h3 a:hover { color: var(--accent); }
.rows .honor a { color: inherit; }
.rows .byline { font-size: 15px; }

/* ---------- home: talks ---------- */
.talks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.talks.two { grid-template-columns: repeat(2, 1fr); }
.talks li { border-top: 1px solid var(--ink); padding-top: 20px; }
.talks h3 { font: 400 24px/1.25 var(--serif); }
.talks p { margin-top: 12px; }

/* ---------- about teaser + about page ---------- */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: center; }
.about-grid h2 { margin-bottom: 16px; }
.about-grid p + p { margin-top: 16px; }
.about-page { grid-template-columns: 340px 1fr; align-items: start; }
.about-page img { position: sticky; top: 32px; }

/* ---------- inner page header ---------- */
.page-head { background: var(--blue-soft); padding-block: 40px 72px; }
.page-head h1 { font-size: clamp(38px, 4.8vw, 60px); line-height: 1.08; }
.page-head .lede { margin-top: 20px; font-size: 21px; max-width: 34em; }
.book-head .wrap { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: center; }
.book-head .sub { font: 400 22px/1.3 var(--sans); letter-spacing: .04em; margin-top: 14px; }
.book-head .eyebrow { margin-bottom: 20px; }
.book-head .cover { max-width: 340px; }

/* ---------- prose ---------- */
.prose p { font-size: 20px; line-height: 1.65; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin: 2em 0 .6em; font-size: clamp(26px, 3vw, 34px); }
.prose h2:first-child { margin-top: 0; }
.prose a:not(.btn) { color: var(--accent); }
.pull { font: italic 400 clamp(24px, 2.8vw, 32px)/1.3 var(--serif); border-left: 2px solid var(--accent); padding-left: 28px; margin: 1.4em 0; }

.photo { margin: 2em 0; }
.photo figcaption { margin-top: 10px; font-size: 14px; color: var(--mute); }

/* ---------- inquiry form ---------- */
.inquiry { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.inquiry label { display: block; font-size: 14px; font-weight: 400; letter-spacing: .04em; margin-bottom: 6px; }
.inquiry input, .inquiry textarea { width: 100%; padding: 14px 16px; font: 300 17px/1.4 var(--sans); border: 1px solid var(--ink); background: #fff; color: var(--ink); border-radius: 0; }
.inquiry textarea { min-height: 150px; resize: vertical; }
.inquiry .full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }

/* ---------- home: articles with the heading in a side column ---------- */
.side { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
.stack { border-bottom: 1px solid var(--rule); }
.stack a { display: block; padding: 26px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.stack h3 { font: 400 26px/1.25 var(--serif); }
.stack p { margin-top: 8px; color: var(--mute); }
.stack .src { margin-top: 14px; }
.stack a:hover h3 { color: var(--accent); }
.sub-h { margin-top: 14px; font-size: 19px; line-height: 1.4; color: var(--mute); }
.side .prose > p:first-child { margin-top: 0; }
.side .prose .pull { margin-top: 1.1em; }
.honor { font-size: 15px; font-weight: 400; color: var(--ink) !important; }
.honor em { font-style: italic; }
.rows .honor, .rows .byline { grid-column: 2; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue); }
.site-footer .foot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 72px 48px; }
.site-footer h2 { font-style: italic; }
.site-footer .foot p { margin-top: 8px; }
.site-footer .signup input[type=email] { background: rgba(255,255,255,.6); }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-block: 24px 40px; border-top: 1px solid rgba(20,24,26,.25); font-size: 14px; }
.site-footer .legal nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer .legal a { text-decoration: none; }
.site-footer .legal a:hover { text-decoration: underline; }

/* ---------- earlier books, praise ---------- */
.alsoby { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.alsoby figure { margin: 0; }
.alsoby img { width: 100%; display: block; }
.alsoby h3 { font: 400 24px/1.25 var(--serif); margin-top: 20px; }
.alsoby p { margin-top: 6px; color: var(--mute); }
.praise { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; border-bottom: 1px solid var(--rule); }
.praise blockquote { margin: 0; padding: 28px 0; border-top: 1px solid var(--rule); }
.praise blockquote p { font-size: 17px; line-height: 1.55; }
.praise cite { display: block; margin-top: 14px; font-style: normal; font-size: 14px; letter-spacing: .04em; color: var(--mute); }
.praise cite strong { color: var(--ink); font-weight: 500; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  section { padding-block: 64px; }
  .site-header .wrap { position: relative; flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 22px 18px; }
  .site-header nav { gap: 22px; flex-wrap: wrap; }
  .site-header nav a:not(.nav-cta) { font-size: 14px; }
  .site-header .nav-cta { position: absolute; right: 0; top: 14px; }
  .hero .wrap, .book-head .wrap, .about-grid, .about-page, .panel, .site-footer .foot { grid-template-columns: 1fr; gap: 40px; }
  .hero .cover-wrap, .book-head .cover-wrap { order: -1; }
  .cover, .book-head .cover { max-width: 220px; }
  .panel { gap: 0; }
  .panel blockquote { padding: 40px 28px; }
  .questions { padding: 24px 0 0; }
  .rows > li, .rows > a, .rows > div { grid-template-columns: 1fr; }
  .rows .src { margin-bottom: 8px; }
  .alsoby, .praise { grid-template-columns: 1fr; }
  .alsoby { gap: 40px; }
  .side { grid-template-columns: 1fr; gap: 32px; }
  .talks, .talks.two { grid-template-columns: 1fr; gap: 28px; }
  .signup .row { flex-direction: column; }
  .about-grid img { max-width: 240px; }
  .about-page img { position: static; }
  .inquiry { grid-template-columns: 1fr; }
}
/* On small screens the page links move to the footer, which lists them all. */
