/* David Krainert — personal-brand site. Layout follows the founder-homepage pattern:
   full-bleed textured hero with greeting + descriptor, a contrasting quote band,
   three image pillars, a two-up "What's new" grid, newsletter, follow links, footer.
   Palette is the book's: ink, steel, brass, paper. */
:root {
  --ink: #0b0d12;
  --ink-2: #11151d;
  --ink-3: #181d28;
  --line: rgba(243, 238, 228, .12);
  --line-2: rgba(243, 238, 228, .22);
  --paper: #f3eee4;
  --paper-2: #e9e2d4;
  --muted: #a6acb8;
  --brass: #c8a45e;
  --brass-hi: #dcbd7c;
  --brass-ink: #8c7141;
  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --cond: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --sig: "Mrs Saint Delafield", "Brush Script MT", cursive;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 500; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.label { font: 600 11.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.caps { font-family: var(--cond); font-stretch: 78%; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Header ---------- */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); }
.site-head.solid { position: sticky; top: 0; background: var(--ink); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.sig { font: 400 46px/1 var(--sig); text-decoration: none; color: var(--paper); white-space: nowrap; letter-spacing: .01em; padding-top: 6px; }
.menu { display: flex; align-items: center; gap: 34px; }
.group { position: relative; }
.group > button { background: none; border: 0; color: var(--paper); font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 10px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.group > button::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.group .panel { position: absolute; top: calc(100% + 10px); left: -22px; min-width: 230px; background: var(--ink-2); border: 1px solid var(--line); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; }
.group:hover .panel, .group:focus-within .panel, .group.open .panel { opacity: 1; visibility: visible; transform: none; }
.panel a { display: block; padding: 10px 22px; text-decoration: none; font: 400 15px/1.3 var(--sans); color: var(--muted); }
.panel a:hover { color: var(--paper); background: rgba(243,238,228,.04); }
.panel .ph { padding: 8px 22px 6px; }
.speak-btn { text-decoration: none; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 15px 20px; border: 1px solid var(--paper); transition: background .15s, color .15s; }
.speak-btn:hover { background: var(--paper); color: var(--ink); }
.burger { display: none; background: none; border: 1px solid var(--line-2); color: var(--paper); font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 12px 14px; cursor: pointer; }
.mobile { position: fixed; inset: 0; z-index: 40; background: var(--ink); overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--gutter) 40px; }
.mobile .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile h4 { margin: 26px 0 8px; }
.mobile a.big { display: block; text-decoration: none; font: 500 32px/1.25 var(--serif); padding: 4px 0; }
.mobile .speak-btn { display: inline-block; margin-top: 30px; }
@media (max-width: 920px) { .menu { display: none; } .burger { display: block; } .sig { font-size: 40px; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; min-height: min(92vh, 900px); display: grid; align-items: center; text-align: center; padding-block: 150px 70px; background: var(--ink) url("img/hero.jpg") center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 40%, rgba(11,13,18,.15), rgba(11,13,18,.75) 75%), linear-gradient(to bottom, rgba(11,13,18,.5), transparent 30%, transparent 70%, var(--ink)); }
.hello { font: 500 clamp(44px, 7.4vw, 104px)/1.0 var(--serif); letter-spacing: -.01em; max-width: 15ch; margin-inline: auto; }
.hello em { font-style: italic; color: var(--brass-hi); }
.descriptor { margin: 34px auto 0; max-width: 62ch; font: 700 clamp(14px, 1.5vw, 18px)/1.65 var(--cond); font-stretch: 82%; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); }
.descriptor .sep { color: var(--brass); padding-inline: .4em; }
.start { margin-top: 56px; display: grid; gap: 14px; justify-items: center; }
.start .label { color: var(--muted); }
.start-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 14px; justify-content: center; width: 100%; }
.start-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; align-items: center; text-align: left; text-decoration: none; padding: 12px 18px 12px 12px; background: rgba(11,13,18,.62); border: 1px solid var(--line-2); backdrop-filter: blur(6px); transition: border-color .15s, background .15s; }
.start-card:hover { border-color: var(--brass); background: rgba(11,13,18,.8); }
.start-card img { width: 74px; height: 74px; object-fit: cover; }
.start-card .k { font: 600 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.start-card .t { display: block; margin-top: 7px; font: 500 21px/1.15 var(--serif); }
@media (max-width: 720px) { .start-cards { grid-template-columns: minmax(0, 1fr); } .hero { min-height: 0; padding-block: 130px 56px; } }

/* ---------- Quote ---------- */
.quote { background: var(--paper); color: var(--ink); text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.quote blockquote { margin: 0 auto; max-width: 16ch; font: 600 clamp(44px, 7vw, 100px)/1.0 var(--serif); letter-spacing: -.015em; }
.quote blockquote::before { content: "\201C"; display: block; font-size: .9em; line-height: .6; color: var(--brass); margin-bottom: 18px; }
.quote cite { display: block; margin-top: 30px; font-style: normal; font: 400 40px/1 var(--sig); color: var(--brass-ink); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar { position: relative; isolation: isolate; display: grid; align-content: end; min-height: clamp(460px, 48vw, 700px); padding: clamp(28px, 3vw, 44px); text-decoration: none; overflow: hidden; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.pillar::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11,13,18,.95) 0%, rgba(11,13,18,.55) 45%, rgba(11,13,18,.1) 100%); }
.pillar:hover img { transform: scale(1.04); }
.pillar .who { font: 500 clamp(34px, 3.2vw, 46px)/1.02 var(--serif); }
.pillar .does { font: 700 15px/1.3 var(--cond); font-stretch: 80%; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-top: 10px; }
.pillar p { margin-top: 14px; color: var(--muted); font-size: 15.5px; max-width: 34ch; }
.more { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--paper); }
.more::after { content: ""; width: 26px; height: 1px; background: currentColor; transition: width .2s; }
a:hover .more::after, .more:hover::after { width: 40px; }
.pillar-book img { object-position: 50% 30%; height: 66%; }
.pillar-book::after { background: linear-gradient(to top, rgba(11,13,18,1) 0%, rgba(11,13,18,.9) 38%, rgba(11,13,18,.15) 70%); }
@media (max-width: 900px) { .pillar-book { min-height: 600px; } .pillar-book img { object-position: 50% 0%; height: 70%; } .pillars { grid-template-columns: minmax(0, 1fr); } .pillar { min-height: 440px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- Sections ---------- */
.band { padding-block: clamp(72px, 10vw, 140px); }
.band.alt { background: var(--ink-2); }
.band.paper { background: var(--paper); color: var(--ink); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(32px, 5vw, 60px); }
.sec-head h2 { font: 500 clamp(44px, 6vw, 84px)/.98 var(--serif); letter-spacing: -.01em; }
.sec-head p { color: var(--muted); max-width: 44ch; }

/* What's new */
.news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.news a { text-decoration: none; display: grid; gap: 20px; }
.news .pic { overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-3); }
.news .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news a:hover .pic img { transform: scale(1.03); }
.news .k { display: flex; gap: 14px; align-items: center; }
.news .k span:last-child { color: var(--muted); font: 500 13px/1 var(--sans); letter-spacing: .04em; }
.news h3 { font: 500 clamp(28px, 2.6vw, 38px)/1.1 var(--serif); }
@media (max-width: 760px) { .news { grid-template-columns: minmax(0, 1fr); } }

/* Newsletter */
.letter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.letter .mast { font: 600 clamp(56px, 7.6vw, 108px)/.92 var(--serif); letter-spacing: -.02em; }
.letter .mast em { font-style: italic; color: var(--brass-ink); font-weight: 500; }
.letter .intro { margin-top: 20px; font-size: 18px; max-width: 42ch; color: #3b3f4a; }
.form { display: grid; gap: 12px; }
.form .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.form label { display: grid; gap: 7px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.form input, .form textarea, .form select { width: 100%; font: 400 16px/1.3 var(--sans); padding: 16px 16px; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 0; }
.form textarea { min-height: 130px; resize: vertical; }
.paper .form input { border-color: rgba(11,13,18,.35); background: #fbf8f2; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; text-decoration: none; font: 600 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 19px 28px; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover { background: #000; }
.btn.brass { background: var(--brass); color: var(--ink); }
.btn.brass:hover { background: var(--brass-hi); }
.btn.line { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn.line:hover { background: var(--paper); color: var(--ink); }
.fine { font-size: 13px; opacity: .7; }
.ok { font: 500 17px/1.4 var(--sans); padding: 18px; border: 1px solid currentColor; }
.err { font-size: 14px; color: #b0442e; }
@media (max-width: 860px) { .letter { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .form .two { grid-template-columns: minmax(0, 1fr); } }

/* Follow */
.follow { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.follow a { text-decoration: none; padding: 14px 20px; border: 1px solid var(--line-2); font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.follow a:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; padding-block: 190px clamp(64px, 8vw, 110px); background: var(--ink) url("img/texture.jpg") center / cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(11,13,18,.55), rgba(11,13,18,.35) 50%, var(--ink)); }
.page-hero h1 { font: 500 clamp(56px, 9vw, 128px)/.95 var(--serif); letter-spacing: -.015em; margin-top: 18px; }
.page-hero p.lede { margin-top: 26px; max-width: 54ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--paper); opacity: .85; }

/* Prose */
.prose { max-width: 68ch; }
.prose p { font-size: 18.5px; line-height: 1.75; }
.prose p + p { margin-top: 1.1em; }
.prose p.drop::first-letter { float: left; font: 600 5.2em/.8 var(--serif); padding: .06em .1em 0 0; color: var(--brass); }
.prose h3 { font: 500 34px/1.15 var(--serif); margin: 1.6em 0 .5em; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline .yr { font: 700 24px/1.1 var(--cond); font-stretch: 78%; color: var(--brass); font-variant-numeric: tabular-nums; }
.timeline h4 { font: 600 17px/1.3 var(--sans); margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: 15px; }

/* Ventures rows */
.venture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.venture:last-child { border-bottom: 1px solid var(--line); }
.venture .pic { min-height: 340px; }
.venture .pic img { width: 100%; height: 100%; object-fit: cover; }
.venture .txt { padding: clamp(28px, 4vw, 56px); display: grid; align-content: center; gap: 14px; }
.venture h3 { font: 500 clamp(36px, 3.6vw, 52px)/1 var(--serif); }
.venture .does { font: 700 14px/1.3 var(--cond); font-stretch: 80%; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.venture p { color: var(--muted); max-width: 46ch; }
.venture:nth-child(even) .pic { order: 2; }
@media (max-width: 860px) { .venture { grid-template-columns: minmax(0, 1fr); } .venture:nth-child(even) .pic { order: 0; } .venture .pic { min-height: 240px; } }

/* Book page */
.book-top { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.book-top .cover { box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px var(--line); width: 100%; max-width: 420px; justify-self: center; }
.book-top h1 { font: 500 clamp(52px, 6.6vw, 96px)/.95 var(--serif); margin-top: 16px; letter-spacing: -.015em; }
.book-top .sub { font: italic 500 clamp(22px, 2.2vw, 28px)/1.3 var(--serif); color: var(--muted); margin-top: 14px; }
.book-top .date { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 28px; font: 700 14px/1.4 var(--cond); font-stretch: 82%; letter-spacing: .16em; text-transform: uppercase; }
.book-top .date span b { color: var(--brass); }
.buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
@media (max-width: 900px) { .book-top { grid-template-columns: minmax(0, 1fr); } .book-top .cover { max-width: 300px; } }
.learn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.learn div { padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.learn b { display: block; font: 500 34px/1 var(--serif); color: var(--brass); margin-bottom: 10px; }
.learn span { color: var(--muted); }
@media (max-width: 860px) { .learn { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .learn { grid-template-columns: minmax(0, 1fr); } }
.parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.part { padding: 30px 26px 34px 0; border-right: 1px solid var(--line); }
.part + .part { padding-left: 26px; }
.part:last-child { border-right: 0; }
.part h3 { font: 500 36px/1 var(--serif); margin: 14px 0 12px; }
.part ol { margin: 14px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 15px; }
.part li { padding: 3px 0; }
@media (max-width: 960px) { .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .part, .part + .part { padding: 28px 22px 30px 0; border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .parts { grid-template-columns: minmax(0, 1fr); } }
.excerpt { background: var(--paper); color: var(--ink); }
.excerpt .prose p { color: #23262e; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); margin-top: 28px; }
.tiers div { padding: 22px; border-right: 1px solid var(--line); }
.tiers div:last-child { border-right: 0; }
.tiers b { display: block; font: 500 44px/1 var(--serif); color: var(--brass); }
.tiers span { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .tiers { grid-template-columns: minmax(0, 1fr); } .tiers div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Speaking */
.talks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.talk { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.talk .n { font: 500 44px/1 var(--serif); color: var(--brass); font-variant-numeric: lining-nums; }
.talk h3 { font: 500 32px/1.1 var(--serif); }
.talk p { color: var(--muted); margin-top: 8px; max-width: 56ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 24px 20px 24px 0; }
.facts b { display: block; font: 700 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
@media (max-width: 700px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.email-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.email-row code { font: 500 16px/1 var(--sans); padding: 16px; border: 1px solid var(--line-2); user-select: all; background: var(--ink-3); }
.copy { background: none; border: 1px solid var(--line-2); color: var(--paper); font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 16px; cursor: pointer; }
.copy:hover { border-color: var(--paper); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 64px 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, .6fr)); gap: 36px; }
.foot-grid .sig { font-size: 54px; display: inline-block; }
.foot-grid h4 { margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid ul a { text-decoration: none; color: var(--muted); font-size: 15px; }
.foot-grid ul a:hover { color: var(--paper); }
.imprint { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--muted); font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.imprint svg { width: 44px; height: auto; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px; font-size: 13px; color: var(--muted); }
.legal p { max-width: 80ch; }
.top-link { text-decoration: none; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--paper); white-space: nowrap; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
