/* drstevejames.com — one stylesheet, no build step.
   Palette and type follow brand/BRAND.md and the 3 November 2026 palette mock:
   bone ground, charcoal text, brass as the single accent, deep teal for weight. */

:root {
  --bone: #F4F1EA;
  --bone-2: #ECE8DF;
  --ink: #2B2B28;
  --quiet: #6B675F;
  --rule: #D8D3C8;
  --brass: #A8894C;
  --teal: #2C4F5B;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Helvetica Neue", Inter, Arial, sans-serif;
  --narrow: 720px;
  --wide: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font-family: var(--serif); font-size: 19px; line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* even out wrapped headings so a single word is never left alone on the last line */
h1, h2, h3, h4, .marker, .eyebrow, .promise p, .process .words p, blockquote.q p, figcaption { text-wrap: balance; }
p, li, td { text-wrap: pretty; }
a[href^="https://wa.me"] { white-space: nowrap; }  /* never split the phone number across lines */
a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bone); padding: 10px 14px; z-index: 10; font-family: var(--sans); font-size: 14px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: calc(var(--narrow) + 64px); }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { font-size: 20px; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.brand span { color: var(--quiet); }
.nav { display: flex; gap: 24px; font-family: var(--sans); font-size: 14px; letter-spacing: .03em; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.head-right { display: flex; align-items: center; gap: 14px; }
.menu { display: none; position: relative; font-family: var(--sans); font-size: 14px; }
.menu summary { list-style: none; cursor: pointer; padding: 11px 14px; border: 1px solid var(--ink); border-radius: 3px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--bone); }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--bone); border: 1px solid var(--rule); border-radius: 3px; min-width: 220px; padding: 8px 0; z-index: 5; box-shadow: 0 10px 30px rgba(43,43,40,.12); }
.menu nav a { display: block; padding: 11px 18px; text-decoration: none; }
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--bone-2); }

.btn { display: inline-block; background: var(--ink); color: var(--bone); font-family: var(--sans); font-size: 15px; letter-spacing: .01em; padding: 13px 20px; border-radius: 3px; text-decoration: none; border: 1px solid var(--ink); white-space: nowrap; }
.btn:hover { background: var(--teal); border-color: var(--teal); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn.small { padding: 10px 15px; font-size: 14px; }
.band .btn { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.band .btn:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.band .btn.ghost { background: transparent; color: var(--bone); border-color: rgba(244,241,234,.6); }
.band .btn.ghost:hover { background: var(--bone); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--quiet); margin: 0 0 14px; font-weight: 500; }

/* ---------- home: hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 62px); line-height: 1.04; font-weight: 500; letter-spacing: -.012em; margin: 0 0 26px; }
.hero p { font-size: 22px; line-height: 1.45; margin: 0 0 16px; max-width: 30em; }
.hero .feel { color: var(--quiet); font-style: italic; }
.hero-photo img { border-radius: 3px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 30%; }
.orient { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.orient p { font-size: 17px; color: var(--quiet); line-height: 1.6; margin: 0; padding: 20px 0; max-width: 62em; }

/* ---------- home: panels ---------- */
.marker { text-align: center; font-family: var(--sans); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--quiet); margin: 0; padding: 72px 0 0; }
.marker::before, .marker::after { content: ""; display: inline-block; width: 44px; height: 1px; background: var(--brass); vertical-align: middle; margin: 0 16px; }
.band .marker, .band .eyebrow { color: rgba(244,241,234,.66); }

.sec { padding: 56px 0; }
.sec.tight { padding: 36px 0; }
.sec h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.12; font-weight: 500; letter-spacing: -.006em; margin: 0 0 22px; }
.sec h3 { font-size: 25px; line-height: 1.2; font-weight: 500; margin: 40px 0 12px; }
.sec h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--quiet); font-weight: 600; margin: 34px 0 8px; }

.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 1.3em; }
.prose li { margin: 0 0 8px; padding-left: .2em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.5em; }
.prose ul > li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
.prose em { font-style: italic; }
.lead p { font-size: 22px; line-height: 1.5; }
.lead.first-big p:first-child { font-size: clamp(26px, 3vw, 34px); line-height: 1.22; }
.big p { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.32; margin-bottom: 20px; }

blockquote.q { margin: 30px 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--brass); }
blockquote.q p { font-size: 23px; line-height: 1.4; font-style: italic; margin: 0 0 10px; }
blockquote.q footer { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
blockquote.q footer strong { font-weight: 600; color: var(--ink); }

.band { background: var(--teal); color: var(--bone); padding: 72px 0; }
.band h2 { font-size: clamp(30px, 3.8vw, 42px); line-height: 1.12; font-weight: 500; margin: 0 0 20px; max-width: 20em; }
.band p { color: rgba(244,241,234,.9); }
.band a { text-decoration-color: var(--brass); }
.band blockquote.q footer { color: var(--brass); }
.band blockquote.q footer strong { color: var(--bone); }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: 1.05fr 1fr; }
.split .media img { border-radius: 3px; width: 100%; }
.map-wide { max-width: 900px; }
.map-fig { margin: 8px 0 28px; }
.map-fig figcaption { text-align: center; }
.map-fig figcaption a { color: var(--quiet); }

.promise { text-align: center; padding: 40px 0 16px; }
.promise p { font-size: 20px; margin: 0 auto 18px; max-width: 34em; color: var(--quiet); }
.promise p:first-child, .promise p:last-child { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; color: var(--ink); max-width: none; }
.promise p:last-child strong { font-weight: 500; }

.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.note-small { font-family: var(--sans); font-size: 13px; color: var(--quiet); line-height: 1.5; margin: 14px 0 0; }

.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 12px 0 0; }
.videos.n1 { grid-template-columns: 1fr; max-width: 760px; }
.prose + .videos { margin-top: 30px; }
.top-vid { padding-top: 8px; }
.top-vid + .sec { padding-top: 28px; }
.vid { margin: 0; }
.vid .frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 3px; overflow: hidden; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
figcaption, .cap { font-family: var(--sans); font-size: 13px; color: var(--quiet); margin-top: 10px; line-height: 1.45; }

.process { padding: 0; }
.process .split { gap: 0; grid-template-columns: 1fr 1fr; align-items: stretch; }
.process .media img { height: 100%; object-fit: cover; border-radius: 0; min-height: 320px; }
.process .words { background: var(--bone-2); display: flex; align-items: center; padding: 56px; }
.process .words p { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; margin: 0; font-weight: 500; }
.process .words strong { font-weight: 500; }

h3.step { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; align-items: baseline; border-top: 1px solid var(--rule); padding-top: 26px; margin-top: 34px; }
h3.step .n { font-family: var(--sans); font-size: 14px; color: var(--brass); letter-spacing: .1em; }
h3.step + p, h3.step ~ p, h3.step ~ ul { margin-left: 58px; }
.steps .prose > p:first-child { margin-left: 0; }

.notfor .prose { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; }
.notfor .prose p { border-top: 1px solid var(--rule); padding-top: 18px; margin-bottom: 22px; font-size: 18px; }
.notfor .prose p strong:first-child { display: block; font-size: 21px; font-weight: 500; margin-bottom: 6px; }

.cta p { font-size: 24px; line-height: 1.4; max-width: 30em; margin: 0 0 6px; }
.cta .wa { font-family: var(--sans); font-size: 16px; letter-spacing: .02em; margin-top: 18px; color: rgba(244,241,234,.9); }

/* ---------- inner pages ---------- */
.page-head { padding: 64px 0 28px; }
.page-head h1 { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.06; font-weight: 500; letter-spacing: -.01em; margin: 0 0 24px; }
.page-head.with-photo .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.page-head.with-photo .media img { border-radius: 3px; }
.page-head + .sec { padding-top: 28px; }
.ruled > .wrap:first-child::before { content: ""; display: block; border-top: 1px solid var(--rule); margin-bottom: 52px; }
.sub { margin-top: 8px; }
.sub h3 { scroll-margin-top: 20px; }
.sec.ruled { padding-top: 0; }

.fig { margin: 30px 0; }
.fig img { border-radius: 3px; width: 100%; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0 8px; }
.two-up .fig { margin: 0; }
.bleed { max-width: var(--wide); margin: 0 auto; padding: 0 32px; }

.aside { border-left: 3px solid var(--brass); padding: 4px 0 4px 22px; margin: 6px 0 0; max-width: 30em; }
.aside p { margin: 0 0 8px; font-size: 18px; color: var(--quiet); }
.aside p:first-child strong { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.aside p:first-child { color: var(--ink); }
.fig img.short { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 22%; }

.table-wrap { overflow-x: auto; margin: 6px 0 22px; }
table { border-collapse: collapse; width: 100%; font-size: 17px; }
td { text-align: left; vertical-align: top; padding: 12px 18px 12px 0; border-top: 1px solid var(--rule); }
td:first-child { width: 40%; font-weight: 600; }
td:last-child { color: var(--quiet); padding-right: 0; }
tr:last-child td { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 20px; color: var(--ink); }

.toc { font-family: var(--sans); font-size: 14px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.toc a { text-decoration: none; color: var(--quiet); }
.toc a:hover { color: var(--ink); text-decoration: underline; }

.wa-line { font-size: 26px; margin: 0 0 8px; }

/* ---------- footer ---------- */
.site-foot { background: var(--teal); color: rgba(244,241,234,.82); font-family: var(--sans); font-size: 14px; line-height: 1.6; padding: 48px 0 44px; }
.band.cta + .site-foot { border-top: 1px solid rgba(244,241,234,.18); }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-foot a { color: var(--bone); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .name { font-family: var(--serif); font-size: 20px; color: var(--bone); margin: 0 0 10px; }
.site-foot .name span { color: var(--brass); }
.site-foot p { margin: 0 0 6px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0 0 6px; }

/* ---------- small screens ---------- */
@media (max-width: 1120px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 860px) {
  body { font-size: 18px; }
  .wrap, .bleed { padding: 0 22px; }
  .hero { padding: 40px 0 28px; }
  .hero .wrap, .split, .split.flip, .proof-grid, .page-head.with-photo .wrap, .process .split { grid-template-columns: 1fr; gap: 32px; }
  .process .split { gap: 0; }
  .process .words { padding: 40px 22px; }
  .hero p { font-size: 20px; }
  .hero-photo img { aspect-ratio: 3 / 2; object-position: 60% 25%; }
  .page-head { padding: 40px 0 20px; }
  .page-head.with-photo .media { max-width: 420px; }
  .sec { padding: 40px 0; }
  .band { padding: 52px 0; }
  .marker { padding-top: 52px; }
  .marker::before, .marker::after { width: 22px; margin: 0 10px; }
  .videos, .notfor .prose, .two-up { grid-template-columns: 1fr; }
  .site-foot .cols { grid-template-columns: 1fr; gap: 26px; }
  h3.step { grid-template-columns: 30px 1fr; }
  h3.step + p, h3.step ~ p, h3.step ~ ul { margin-left: 0; }
  td { display: block; width: 100% !important; padding: 10px 0 0; }
  td:last-child { border-top: 0; padding: 2px 0 12px; }
  tr:last-child td:first-child { border-bottom: 0; }
  .lead p { font-size: 20px; }
  blockquote.q p { font-size: 21px; }
  .cta p { font-size: 21px; }
}
@media (max-width: 480px) {
  .brand { font-size: 17px; }
  .brand span { display: block; font-size: 13px; }
  .site-head .btn { display: none; }
  }
@media print {
  .site-head .nav, .menu, .btn, .videos, .site-foot { display: none; }
  body { background: #fff; }
}
