/* sarahmoorephd.com, version 3
   Brief: sell the Sage textbook to instructors (academic peers); feel like a confident expert.
   Layout: statement-led teal hero (photo, name, buttons), the book and its interest form directly below,
           then short, airy sections. Left-aligned throughout.
   Color: ink #13252C, teal #0B4F57, link teal #0B6670, coral #FF8466, mist #E8F3F2, white.
   Type: Schibsted Grotesk only (a newsroom grotesk; 400 / 500 / 700 / 800).
   Scale: 15 / 17 / 21 / 26 / 34 / 44-80. */
:root {
  --white: #ffffff;
  --mist: #e8f3f2;
  --ink: #13252c;
  --muted: #4c5f66;
  --rule: #d3e2e1;
  --teal: #0b4f57;
  --link: #0b6670;
  --coral: #ff8466;
  --on-coral: #1a0f0c;
  --band-text: #ffffff;
  --band-muted: #bfdcdc;
  --control: #5f767b;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --t-sm: 0.9375rem;
  --t-body: 1.0625rem;
  --t-lead: 1.3125rem;
  --t-h3: 1.625rem;
  --t-h2: clamp(1.75rem, 3.2vw, 2.125rem);
  --t-statement: clamp(2.5rem, 6.4vw, 5rem);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --white: #0c1a1d; --mist: #12272b; --ink: #e6f0ef; --muted: #a3b8ba; --rule: #23393d;
    --teal: #0a3a40; --link: #7fd3cf; --coral: #ff8a70; --band-muted: #bfdcdc; --control: #7d999d; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: var(--t-body); line-height: 1.6; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.masthead a:focus-visible, .hero a:focus-visible, .foot a:focus-visible, .section:has(> .body > .page-title) a:focus-visible { outline-color: var(--coral); }
h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--white); padding: 6px 10px; z-index: 10; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* Masthead: part of the teal band */
.masthead { background: var(--teal); color: var(--band-text); }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 20px; }
.brand { font-weight: 800; font-size: var(--t-body); color: var(--band-text); text-decoration: none; letter-spacing: -0.01em; }
.brand span { font-weight: 500; color: var(--band-muted); margin-left: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: var(--t-sm); font-weight: 500; }
.nav a { color: var(--band-text); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--band-muted); }
.nav a[aria-current="page"] { border-bottom-color: var(--coral); }

/* Hero: the one loud moment */
.hero { background: var(--teal); color: var(--band-text); padding-block: 40px 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; }
.hero-copy { display: grid; gap: 36px; min-width: 0; }
.statement { font-size: var(--t-statement); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; max-width: 14ch; text-wrap: balance; }
.portrait { width: min(340px, 100%); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 6px solid var(--coral); justify-self: end; }
.hero-text { display: grid; gap: 10px; min-width: 0; }
.hero h1 { font-size: var(--t-h3); letter-spacing: -0.01em; }
.role { color: var(--band-muted); max-width: 46ch; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; font: 700 var(--t-sm) var(--sans); text-decoration: none; padding: 10px 20px; border-radius: 999px; border: 2px solid rgba(255,255,255,.55); color: var(--band-text); background: transparent; cursor: pointer; }
.btn:hover { border-color: var(--band-text); }
.btn.primary { background: var(--coral); border-color: var(--coral); color: var(--on-coral); }
.btn.primary:hover { filter: brightness(1.05); }
main .section .btn:not(.primary), .book .btn:not(.primary) { color: var(--ink); border-color: var(--control); }

/* The book */
.book { padding-block: 72px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.book-copy { display: grid; gap: 16px; max-width: 40rem; }
.status { font-weight: 700; color: var(--link); }
.book h2 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.025em; }
.book-meta { font-size: var(--t-lead); font-weight: 500; color: var(--muted); line-height: 1.45; }

/* Interest form */
.notify { background: var(--mist); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.notify h2, .notify h3 { font-size: var(--t-h3); }
.form-note { color: var(--muted); font-size: var(--t-sm); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: var(--t-sm); }
.field input { font: 400 var(--t-body) var(--sans); color: var(--ink); background: var(--white); border: 2px solid var(--control); border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%; }
.field input:focus { border-color: var(--link); }
.notify .btn { justify-self: start; margin-top: 4px; }
.form-status:empty { display: none; }
.form-status { font-weight: 700; color: var(--link); }
.hp { position: absolute; left: -9999px; }

/* Mist band for the "why" points */
.band { background: var(--mist); padding-block: 64px; }
.band h2 { font-size: var(--t-h2); max-width: 22ch; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.points li { font-size: var(--t-body); color: var(--muted); max-width: 34rem; }
.points strong { display: block; color: var(--ink); font-size: var(--t-lead); font-weight: 700; margin-bottom: 4px; }

/* Ordinary sections */
.section { padding-block: 64px 8px; }
main.wrap .section:first-child { padding-top: 48px; }
.body { display: grid; gap: 20px; min-width: 0; max-width: 46rem; }
.section h2 { font-size: var(--t-h2); }
.section h3 { font-size: var(--t-h3); }
.lede { font-size: var(--t-lead); font-weight: 500; line-height: 1.45; }

/* Subpage title band */
.section:has(> .body > .page-title) { position: relative; isolation: isolate; color: var(--band-text); padding-block: 40px 64px; margin-bottom: 8px; }
.section:has(> .body > .page-title)::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--teal); z-index: -1; }
.page-title { font-size: clamp(2.25rem, 5.4vw, 4rem); letter-spacing: -0.03em; line-height: 1.04; }
.section:has(> .body > .page-title) p { color: var(--band-muted); }
.section:has(> .body > .page-title) .lede, .section:has(> .body > .page-title) .book-meta { color: var(--band-text); }
.section:has(> .body > .page-title) a { color: var(--band-text); }
.section:has(> .body > .page-title) blockquote { border-color: var(--coral); color: var(--band-text); }
.section:has(> .body > .page-title) blockquote cite { color: var(--band-muted); }

/* Facts */
.facts { display: grid; grid-template-columns: 11rem minmax(0, 1fr); margin: 0; border-top: 1px solid var(--rule); }
.facts dt, .facts dd { padding-block: 12px; border-bottom: 1px solid var(--rule); margin: 0; }
.facts dt { font-weight: 700; font-size: var(--t-sm); padding-right: 16px; }

/* Bio */
.bio-box { background: var(--mist); border-radius: var(--radius); padding: 26px 28px; display: grid; gap: 16px; }
.bio-text { display: grid; gap: 14px; max-width: 40rem; }
.bio-tools { display: flex; align-items: center; gap: 14px; font-size: var(--t-sm); color: var(--muted); }
button.copy { font: 700 var(--t-sm) var(--sans); color: var(--ink); background: var(--white); border: 2px solid var(--control); padding: 8px 16px; border-radius: 999px; cursor: pointer; min-height: 40px; }
button.copy:hover { border-color: var(--link); }

/* Run-in notes */
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.notes strong { font-weight: 700; }

/* Publications and talks */
.works { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.works li { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 16px; }
.yr { font-weight: 800; color: var(--link); font-variant-numeric: tabular-nums; padding-top: 1px; }
.works .t { font-size: var(--t-lead); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.works .t a { color: var(--ink); text-decoration-color: var(--muted); }
.works .t a:hover { color: var(--link); text-decoration-color: currentColor; }
.works .m { font-size: var(--t-sm); color: var(--muted); margin-top: 4px; }
.works .m em { color: var(--ink); }
.tag { display: inline-block; font-size: 0.8125rem; font-weight: 700; color: var(--on-coral); background: var(--coral); padding: 1px 10px; border-radius: 999px; margin-left: 8px; vertical-align: 3px; letter-spacing: 0; }

.plain { padding-left: 20px; margin: 0; display: grid; gap: 10px; }
.plain li::marker { color: var(--link); }

blockquote { margin: 0; font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; border-left: 5px solid var(--coral); padding-left: 22px; max-width: 30ch; }
blockquote cite { display: block; font-style: normal; font-weight: 400; font-size: var(--t-sm); color: var(--muted); margin-top: 12px; letter-spacing: 0; }

/* Footer */
.foot { background: var(--teal); color: var(--band-muted); font-size: var(--t-sm); margin-top: 72px; }
.foot .wrap { display: grid; gap: 12px; padding-block: 36px 48px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: var(--band-text); display: inline-block; padding-block: 4px; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { order: -1; justify-self: start; width: 150px; border-width: 4px; }
  .book-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .points { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .hero { padding-block: 28px 52px; }
  .book, .band { padding-block: 48px; }
  .notify { padding: 22px 18px; }
  .section { padding-block: 44px 4px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .facts dd { padding-top: 2px; }
  .works li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
