/* Brand tokens copied from drandrewwichterman.com */
:root {
  --w-cream: #FAF8F2;
  --w-gold: #C9A227;
  --w-gold-hi: #D9B54A;
  --w-gold-text: #7A5B0B;
  --w-ink: #14120D;
  --w-muted: #625B48;
  --w-on-ink: #F5F1E6;
  --w-on-ink-2: #D9D3C2;
  --w-on-ink-3: #B9B29F;
  --w-sand: #EEE3C7;
  --w-sand-line: #DCCCA4;
  --w-tint: #F7EBC5;
  --w-tint-line: #E6D49B;
  --w-cap: 0 -3px 0 0 var(--w-gold);
  --w-shadow: 0 1px 2px rgba(20,18,13,.06), 0 10px 28px rgba(20,18,13,.09);
  --serif: "Domine", Georgia, serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--w-cream); color: var(--w-ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--w-gold-text); text-underline-offset: 3px; }
a:hover { color: var(--w-ink); }
img { max-width: 100%; display: block; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--w-ink); color: var(--w-on-ink); padding: .5rem 1rem; z-index: 20; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .8rem; }
h1 { font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.15rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; max-width: 40rem; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--w-gold-text); margin: 0 0 .9rem; }
.on-ink .eyebrow { color: var(--w-gold); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250,248,242,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--w-sand-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: .9rem; padding-bottom: .9rem; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: -.01em; color: var(--w-ink); text-decoration: none; }
.logo span { color: var(--w-gold); }
.logo small { display: block; font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--w-muted); margin-top: 2px; }
.site-footer .logo small { color: var(--w-on-ink-3); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav a { color: var(--w-ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
nav a:hover { color: var(--w-gold-text); }

/* Buttons */
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; line-height: 1.2; transition: background .15s, color .15s; }
.btn-gold { background: var(--w-gold); color: var(--w-ink); }
.btn-gold:hover { background: var(--w-gold-hi); color: var(--w-ink); }
.btn-ghost { border: 1px solid rgba(245,241,230,.45); color: var(--w-on-ink); }
.btn-ghost:hover { border-color: var(--w-on-ink); color: var(--w-on-ink); }
.btn-ink { background: var(--w-ink); color: var(--w-on-ink); }
.btn-ink:hover { background: #2a261c; color: var(--w-on-ink); }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.link-arrow { font-weight: 700; font-size: .9rem; color: var(--w-ink); text-decoration: none; }
.link-arrow:hover { color: var(--w-gold-text); }

/* Sections */
section { padding: 5rem 0; }
.on-ink { background: var(--w-ink); color: var(--w-on-ink); }
.on-ink p { color: var(--w-on-ink-2); }
.on-sand { background: var(--w-sand); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.section-head p { margin: 0; color: var(--w-muted); }

/* Hero */
.hero { padding: 5.5rem 0 5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { color: var(--w-on-ink); }
.hero .lede { font-size: 1.2rem; color: var(--w-on-ink-2); }
.verse { border-left: 3px solid var(--w-gold); padding: .3rem 0 .3rem 1.4rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; color: var(--w-on-ink); margin: 0; }
.verse cite { display: block; margin-top: .8rem; font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--w-on-ink-3); }

/* Cards */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: var(--w-cap), var(--w-shadow); display: flex; flex-direction: column; }
.card .kind { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--w-gold-text); margin-bottom: .6rem; }
.card p { color: var(--w-muted); font-size: 1rem; flex: 1; }
.card .price { font-weight: 700; color: var(--w-ink); margin-bottom: .8rem; }

/* Book covers (type-set, same style as the main site) */
.cover { background: var(--w-ink); color: var(--w-on-ink); border-radius: 10px; aspect-ratio: 3 / 4; padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 1.3rem; }
.cover .by { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--w-gold); }
.cover .t { font-family: var(--serif); font-weight: 700; font-size: 1.55rem; line-height: 1.15; }
.cover .s { font-size: .8rem; color: var(--w-on-ink-3); }
.cover.gold { background: var(--w-gold); color: var(--w-ink); }
.cover.gold .by { color: var(--w-ink); }
.cover.gold .s { color: #3d3420; }
.cover.sand { background: var(--w-tint); color: var(--w-ink); border: 1px solid var(--w-tint-line); }
.cover.sand .by { color: var(--w-gold-text); }
.cover.sand .s { color: var(--w-muted); }

/* Video */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--w-cap), var(--w-shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: center; }

/* Principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 2.5rem; }
.principles li { border-top: 2px solid var(--w-gold); padding-top: 1rem; }
.principles p { color: var(--w-on-ink-2); font-size: 1rem; margin: 0; }
.principles h3 { color: var(--w-on-ink); }

/* Stats + credentials */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem; margin: 2.5rem 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 700; }
.stat span { color: var(--w-muted); font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.creds { list-style: none; margin: 0; padding: 0; }
.creds li { padding: .9rem 0; border-bottom: 1px solid var(--w-sand-line); }
.creds strong { display: block; font-weight: 600; }
.creds span { color: var(--w-muted); font-size: .95rem; }

/* Presentations (APA 7, hanging indent) */
.pubs { margin-top: 3.5rem; border-top: 1px solid var(--w-sand-line); padding-top: 2rem; }
.pubs ul { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.pubs li { padding-left: 2.2rem; text-indent: -2.2rem; margin-bottom: .9rem; font-size: .98rem; color: var(--w-ink); }

/* Newsletter band */
.band { background: var(--w-tint); border: 1px solid var(--w-tint-line); border-radius: 16px; padding: 2.5rem; display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center; }
.band p { color: var(--w-muted); margin: 0; }

.todo { background: #fff3c4; outline: 1px dashed #b38f00; padding: 0 .25rem; font-size: .9rem; }

/* Footer */
.site-footer { background: var(--w-ink); color: var(--w-on-ink-3); padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .logo { color: var(--w-on-ink); }
.site-footer h4 { color: var(--w-on-ink); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--w-on-ink-3); text-decoration: none; }
.site-footer a:hover { color: var(--w-gold); }
.site-footer .fine { font-size: .82rem; max-width: 30rem; }
.site-footer .bottom { border-top: 1px solid #2c281e; margin-top: 2.5rem; padding-top: 1.2rem; font-size: .82rem; }

@media (max-width: 860px) {
  .hero .wrap, .video-layout, .split, .band, .site-footer .cols { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 3.5rem 0; }
}

/* ---------- Multi-page additions ---------- */
nav a[aria-current="page"] { color: var(--w-gold-text); box-shadow: inset 0 -2px 0 var(--w-gold); }
.page-head { padding: 4.5rem 0 3.5rem; }
.page-head h1 { color: var(--w-on-ink); font-size: clamp(2rem, 4.5vw, 2.8rem); }
.page-head .lede { font-size: 1.15rem; color: var(--w-on-ink-2); max-width: 42rem; margin: 0; }

/* Video grid */
.vgrid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.vcard { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--w-cap), var(--w-shadow); text-decoration: none; color: var(--w-ink); display: flex; flex-direction: column; transition: transform .15s; }
.vcard:hover { transform: translateY(-2px); color: var(--w-ink); }
.vcard img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.vcard .body { padding: 1rem 1.2rem 1.3rem; }
.vcard h3 { font-size: 1.02rem; line-height: 1.35; margin: 0 0 .4rem; }
.vcard time { font-size: .82rem; color: var(--w-muted); }
.playlists { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); }
.playlists h3 { margin-bottom: .8rem; }
.playlists .video-frame { margin: 0; }

/* CV */
.cv { max-width: 54rem; }
.cv h2 { font-size: 1.35rem; border-bottom: 2px solid var(--w-gold); padding-bottom: .5rem; margin: 3rem 0 1.2rem; }
.cv h2:first-child { margin-top: 0; }
.cv .row { display: grid; grid-template-columns: 9rem 1fr; gap: 1.2rem; padding: .55rem 0; }
.cv .row .when { color: var(--w-muted); font-size: .95rem; white-space: nowrap; }
.cv .row strong { font-weight: 600; }
.cv .ref { padding-left: 2.2rem; text-indent: -2.2rem; margin: 0 0 .9rem; max-width: none; }
.cv ul.plain { margin: 0; padding-left: 1.1rem; }
.cv ul.plain li { margin-bottom: .35rem; }
.cv-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
@media print { .site-header, .site-footer, .page-head, .cv-actions { display: none; } body { background: #fff; } section { padding: 0; } }

/* Product groups */
.group + .group { margin-top: 4rem; }
.card .btn-row { margin-top: 1rem; }
.card .links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

@media (max-width: 860px) { .cv .row { grid-template-columns: 1fr; gap: .1rem; } .playlists { grid-template-columns: 1fr; } }

/* About photo */
.about { display: grid; grid-template-columns: 22rem 1fr; gap: 4rem; align-items: start; }
.about-photo { position: sticky; top: 6.5rem; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 16px; box-shadow: var(--w-cap), var(--w-shadow); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 2rem; } .about-photo { position: static; max-width: 16rem; } }
