/* Someone You Love Is Becoming a Doctor: the one-page site for bulk buyers.
   Colors come from the cover: forest green, cream, and an ochre rule. */

:root {
  --green: #133e32;
  --green-2: #1d5545;
  --green-ink: #0c2b22;
  --cream: #fbf7ee;
  --tint: #f1ece0;
  --card: #fffdf8;
  --ink: #1c2622;
  --ink-2: #4a5650;
  --line: #ddd5c4;
  --gold: #b7904b;
  --gold-2: #d8b56e;
  --btn: #93661c;
  --btn-hover: #7c5514;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Patrick Hand", "Bradley Hand", cursive;
  --max: 1120px;
  --gutter: 16px;
  --radius: 10px;
  --shadow: 0 2px 4px rgba(19, 62, 50, 0.06), 0 18px 40px -14px rgba(19, 62, 50, 0.25);
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--green); margin: 0 0 16px; }
h1 { font-size: clamp(34px, 5.2vw, 54px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 14px; }
cite { font-style: italic; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 300; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.eyebrow { font: 700 12.5px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--btn); margin: 0 0 12px; }
.lede { font-size: 19px; color: var(--ink-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 6px; border: 2px solid var(--btn); background: var(--btn); color: #fff; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn--ghost:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 247, 238, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font: 600 15px/1.15 var(--serif); }
.brand img { width: 26px; border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font: 500 15px var(--sans); }
.nav a:not(.btn):hover { color: var(--btn); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--green); cursor: pointer; padding: 10px; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 18px; background: var(--cream); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
}

/* hero */
.hero { padding: 56px 0 64px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero { padding: 72px 0 84px; } .hero__grid { grid-template-columns: 1.25fr 0.75fr; gap: 64px; } }
.hero__book { display: flex; justify-content: center; }
.hero__book img { width: min(370px, 72vw); height: auto; }

/* stats band */
.stats { background: var(--green); color: #f3ecdc; }
.stats__grid { display: grid; text-align: center; }
.stats__grid div { padding: 26px 12px; }
.stats__grid div + div { border-top: 1px solid rgba(255, 255, 255, 0.14); }
@media (min-width: 700px) { .stats__grid { grid-template-columns: repeat(3, 1fr); } .stats__grid div + div { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.14); } }
.stats b { display: block; font: 600 38px/1.1 var(--serif); color: var(--gold-2); }
.stats span { font-size: 15px; }

/* sections */
.section { padding: 68px 0; }
@media (min-width: 860px) { .section { padding: 92px 0; } }
.section--tint { background: var(--tint); }
.section--green { background: var(--green); color: #f3ecdc; }
.section--green h2 { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 40px; }
.section-head p { color: var(--ink-2); font-size: 18px; }
.section--green .section-head p { color: #d9d2c2; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split--form { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }

/* bookplate */
.plate-demo { display: flex; justify-content: center; }
.plate-demo__spread { display: grid; grid-template-columns: 1fr 1fr; width: min(520px, 100%); box-shadow: var(--shadow); border-radius: 4px; overflow: hidden; background: #fff; }
.plate-demo__cover { container-type: inline-size; aspect-ratio: 5 / 8; display: flex; align-items: center; justify-content: center; background: #fff; border-right: 1px solid #e6e1d6; box-shadow: inset -14px 0 18px -16px rgba(0, 0, 0, 0.35); }
.plate-demo__title { width: 100%; height: auto; display: block; box-shadow: inset 14px 0 18px -16px rgba(0, 0, 0, 0.35); }
@media (max-width: 859px) { #bookplate .split > div:last-child { order: -1; } }
.plate { width: 60%; aspect-ratio: 3 / 4; padding: 8% 6%; border: 2px solid var(--green); outline: 1px solid var(--green); outline-offset: -6px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--green); background: #fbf6ea; }
.plate__small { font: italic 400 5.4cqw/1.3 var(--serif); }
.plate__name { font: 600 7.6cqw/1.15 var(--serif); }
.plate__rule { width: 36%; height: 2px; background: var(--gold); margin: 6px 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 22px 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font: 600 15px/32px var(--sans); text-align: center; }
.callout { background: var(--card); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; padding: 16px 20px; }
.callout b { color: var(--green); }
.callout p { margin: 6px 0 0; color: var(--ink-2); }

/* look inside */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.tabs button { min-height: 40px; padding: 8px 15px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 14.5px var(--sans); cursor: pointer; }
.tabs button:hover { border-color: var(--green); }
.tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.page-view img { border-radius: 4px; }
.story h3 { margin: 0 0 4px; }
.story__meta { margin: 0 0 10px; color: var(--ink-2); font: 500 14px var(--sans); }
.story p:last-child { margin-bottom: 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font: 500 14.5px var(--sans); color: var(--ink-2); }
.pager[hidden] { display: none; }
.pager button { min-height: 40px; padding: 8px 15px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--green); }
.pager button:disabled { opacity: 0.4; cursor: default; }
.tabs--center { justify-content: center; margin-bottom: 0; }
.reader { width: min(860px, 100%); margin: 0 auto; }
.reader__caption { text-align: center; margin: 0 0 18px; color: var(--ink-2); font: 500 15px var(--sans); }
.reader__caption b { font: 600 19px var(--serif); color: var(--green); }
.reader__spread { display: grid; grid-template-columns: 1fr; width: min(420px, 100%); margin: 0 auto; box-shadow: var(--shadow); border-radius: 4px; overflow: hidden; background: #fff; }
@media (min-width: 860px) { .reader__spread { grid-template-columns: 1fr 1fr; width: 100%; } .reader__spread .page-view + .page-view { border-left: 1px solid #e6e1d6; } }
.reader__spread .page-view[hidden] { display: none; }
.page-view { position: relative; display: block; background: #fff; cursor: zoom-in; }
.page-view__hint { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 6px; background: rgba(28, 38, 34, 0.82); color: #fff; font: 500 13px var(--sans); }

/* topics */
.topics { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .topics { grid-template-columns: 1fr 1fr; } }
.topics li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--ink-2); font-size: 16px; }
.topics b { color: var(--green); }
.topics--chapters { counter-reset: ch; max-width: 980px; margin: 0 auto; }
.topics--chapters li { counter-increment: ch; position: relative; padding-left: 58px; font-size: 15.5px; }
.topics--chapters li::before { content: counter(ch); position: absolute; left: 18px; top: 17px; font: 600 22px/1 var(--serif); color: var(--gold); }
.topics--chapters b { display: block; font: 600 18px/1.3 var(--serif); margin-bottom: 4px; }
.contents-extra { max-width: 680px; margin: 28px auto 0; text-align: center; color: var(--ink-2); }
.steps--order { max-width: 540px; margin: 28px auto 30px; text-align: left; }

/* author */
.author { display: grid; gap: 32px; align-items: center; max-width: 900px; }
.author img { width: min(260px, 70vw); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 760px) { .author { grid-template-columns: 260px 1fr; gap: 48px; } }
.author p:not(.eyebrow) { color: var(--ink-2); }

/* pricing */
.prices { display: grid; gap: 22px; max-width: 860px; margin: 0 auto; }
@media (min-width: 760px) { .prices { grid-template-columns: 1fr 1fr; } }
.price { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; }
.price--main { box-shadow: 0 0 0 3px var(--gold-2); }
.price h3 { font: 600 19px var(--sans); color: var(--ink); margin: 0 0 8px; }
.price__num { font: 600 44px/1.1 var(--serif); color: var(--green); margin: 0 0 10px; }
.price__num small { font: 500 16px var(--sans); color: var(--ink-2); }
.price > p { color: var(--ink-2); }
.price ul { list-style: none; padding: 14px 0 0; margin: 0 0 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; flex: 1; }
.price li { position: relative; padding-left: 26px; font-size: 15.5px; }
.price li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--green-2); border-bottom: 2px solid var(--green-2); transform: rotate(-45deg); }
.price .btn { width: 100%; }
.price__note { font-size: 14px; text-align: center; margin: 12px 0 0; }

/* quote request */
.quote-email { margin: 26px 0 12px; }
.quote-note { font-size: 15px; color: var(--ink-2); margin: 0; }

/* quote form (not used since 2026-12-02; kept for a future direct-send form) */
.contact { color: var(--ink-2); }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 700px) { .form { padding: 30px; } }
.form__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font: 600 14px var(--sans); color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9c0ad; border-radius: 9px; background: #fff; color: var(--ink); font: 400 16px var(--sans); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.form__foot p { margin: 0; font-size: 13.5px; color: var(--ink-2); flex: 1 1 240px; }
.form__status { margin: 14px 0 0; font-size: 15px; color: var(--green); }
.form__status:empty { display: none; }

/* faq */
.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font: 600 17px/1.4 var(--sans); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 26px var(--sans); color: var(--btn); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

/* footer */
.site-footer { background: var(--green-ink); color: #cfc8b8; padding: 40px 0 36px; font-size: 14.5px; }
.site-footer a { color: #f3ecdc; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0 0 16px; }
.fine { font-size: 13px; color: #a9a291; margin: 0; }

/* lightbox (used by site.js) */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4vmin; background: rgba(8, 24, 19, 0.88); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; cursor: zoom-out; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 4px; background: #fff; }
.lightbox figcaption { color: #eee; font: 500 14px var(--sans); margin-top: 10px; text-align: center; }
.lightbox__close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.1); color: #fff; font: 400 26px/1 var(--sans); cursor: pointer; }

/* merged why + gift section */
.why { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .why { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }
.why h2 { margin-top: 0; }
.why__gift { background: var(--card); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 28px; box-shadow: var(--shadow); }
.why__gift h3 { font: 600 23px/1.25 var(--serif); color: var(--green); margin: 0 0 12px; }
.why__gift p { color: var(--ink-2); margin: 0 0 12px; }
.why__gift p:last-child { margin-bottom: 0; }

/* hero credentials */
.hero__by { margin: 18px 0 0; color: var(--ink-2); font: 500 15px var(--sans); }

/* floating quote button on phones */
.mobile-cta { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; box-shadow: 0 8px 24px rgba(12, 43, 34, 0.28); }
.mobile-cta[hidden] { display: none; }
@media (min-width: 860px) { .mobile-cta { display: none !important; } }
@media (max-width: 859px) { .site-footer { padding-bottom: 96px; } }
