/* Adrienne B. Hancock — redesign prototype
   Design system derived from approved homepage mockup. */

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Latin-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Italic-Latin-Variable.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --ink: #3a3733;
  --muted: #5b564e;
  --navy: #1d4570;
  --navy-deep: #143054;
  --accent: #c09a55;
  --accent-text: #7a5f2c;
  --berry: #9e2b5a;
  --section-cool: #f2ecdd;
  --cream: #f9f5eb;
  --card-border: #e5decf;
  --surface: #ffffff;
  --purple: var(--navy);
  --purple-deep: var(--navy-deep);
  --purple-footer: var(--navy-deep);
  --gold: var(--accent);
  --gold-text: var(--accent-text);
  --lavender-band: var(--section-cool);
  --font-sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
  --radius-card: 14px;
  --radius-button: 8px;
  --shadow-card: 0 10px 30px rgba(84, 63, 35, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img {
  height: auto;
  max-width: 100%;
}

a {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent);
}

a:hover {
  color: var(--purple-deep);
  text-decoration-color: currentColor;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}

/* Berry fails contrast on the deep-navy bands; cream reads clearly there. */
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.band-purple a:focus-visible {
  outline-color: var(--cream);
}

.shell {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
}

.shell-narrow {
  width: min(100% - 48px, 700px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--card-border);
  background: var(--surface);
}

.header-row {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.primary-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--purple-deep);
}

.primary-nav a[aria-current="page"] {
  color: var(--purple-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5rem;
}

.nav-cta {
  padding: 9px 18px;
  border: 1.5px solid var(--purple);
  border-radius: var(--radius-button);
  color: var(--purple) !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--purple);
  color: white !important;
}

.nav-cta[aria-current="page"] {
  background: var(--purple);
  color: white !important;
  text-decoration: none;
}

/* Outranks .primary-nav a[aria-current] so the gold underline never renders inside the filled pill. */
.primary-nav a.nav-cta[aria-current="page"] {
  text-decoration: none;
}

.mobile-nav {
  display: none;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 13px 24px;
  border: 1.5px solid var(--purple);
  border-radius: var(--radius-button);
  background: var(--purple);
  color: white;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--purple-deep);
  border-color: var(--purple-deep);
  color: white;
}

.button-outline {
  background: transparent;
  color: var(--purple);
}

.button-outline:hover {
  background: var(--purple);
  color: white;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
}

.email-address {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.email-address:hover {
  color: var(--purple-deep);
  text-decoration-color: currentColor;
}

/* ---------- Shared type ---------- */

.eyebrow {
  margin: 0 0 16px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--purple-deep);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.22;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.centered {
  text-align: center;
}

.section-heading {
  margin-bottom: 0;
  text-align: center;
}

.section-heading::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--gold);
}

/* ---------- Bands ---------- */

.band {
  padding-block: clamp(64px, 9vw, 104px);
}

.band-flush-top {
  padding-top: 0;
}

.band-lavender {
  background: var(--lavender-band);
}

.band-cream {
  background: var(--cream);
}

.band-purple {
  background: var(--purple-footer);
  color: #edf2f6;
}

.band-purple h2 {
  color: white;
}

.band-purple a {
  color: var(--cream);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(56px, 8vw, 96px);
  background:
    radial-gradient(circle at 82% 42%, rgba(192, 154, 85, 0.16), transparent 32%),
    radial-gradient(circle at 6% 82%, rgba(158, 43, 90, 0.06), transparent 36%),
    linear-gradient(180deg, #fdfcf9 0%, var(--surface) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  align-items: center;
  gap: clamp(40px, 6vw, 76px);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.8rem, 5vw, 4.1rem);
}

@media (min-width: 1100px) {
  .hero h1 {
    white-space: nowrap;
  }
}

.hero-credentials {
  margin: 0 0 26px;
  color: var(--purple);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 500;
}

.hero-bio {
  max-width: 560px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-bio p {
  margin: 0;
}

.hero-bio p + p {
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}

.portrait-frame {
  width: 100%;
  max-width: 320px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-card);
  padding: 10px;
}

.portrait-frame img {
  display: block;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  object-position: 50% 20%;
  max-height: 400px;
}

/* ---------- Research focus ---------- */

.focus-band {
  padding-block: clamp(56px, 7vw, 82px);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 30px);
  margin-top: 34px;
}

/* Quiet descriptive cards, intentionally distinct from Teaching value cards. */
.pillar {
  padding: clamp(28px, 3vw, 32px);
  border: 1px solid rgba(122, 95, 44, 0.18);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(84, 63, 35, 0.09);
}

.pillar h3 {
  margin: 0 0 10px;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Media cards ---------- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 44px;
}

.media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background: white;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.media-card:hover,
.media-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(84, 63, 35, 0.15);
}

.media-card:focus-within {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}

.media-art {
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
}

.media-art-ccas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f4f0eb;
  background-image:
    linear-gradient(rgba(38, 58, 82, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 58, 82, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--purple-deep);
}

.ccas-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 3.7rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 0.9;
}

.ccas-submark {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  letter-spacing: 0.06em;
}

.media-art-transvoice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #142331;
  color: #ffffff;
}

.transvoice-mark {
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.transvoice-wave {
  width: min(100%, 280px);
  height: 58px;
  margin: 8px 0 5px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.transvoice-submark {
  color: #d9e2ea;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-art-post {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 30px 20px;
  background: #f3efe8;
  color: #17151a;
}

.post-rule {
  width: 100%;
  height: 2px;
  background: currentColor;
}

.post-rule-thin {
  height: 1px;
  margin-top: 11px;
}

.post-mark {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.post-columns {
  width: 100%;
  height: 46px;
  margin-top: 20px;
  opacity: 0.35;
  background:
    repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 6px),
    linear-gradient(90deg, transparent 32%, #f3efe8 32% 35%, transparent 35% 66%, #f3efe8 66% 69%, transparent 69%);
}

.media-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 24px;
}

.media-kicker {
  margin: 0;
  color: var(--berry);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.media-title {
  margin: 0;
  font-size: 1.28rem;
}

.media-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.media-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.media-card .media-link:focus-visible {
  outline: none;
}

.media-link:hover {
  text-decoration: underline;
}

/* ---------- Featured book ---------- */

.interior-book-section {
  padding-block: clamp(48px, 6vw, 72px);
}

.book-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 60px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: var(--radius-card);
  background: var(--cream);
}

.book-cover-image {
  display: block;
  width: clamp(170px, 19vw, 215px);
  overflow: hidden;
  border: 1px solid rgba(84, 63, 35, 0.24);
  border-radius: 4px;
  background: white;
  box-shadow: 8px 10px 24px rgba(84, 63, 35, 0.24);
  line-height: 0;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.book-cover-image img {
  display: block;
  width: 100%;
  height: auto;
}

.book-cover-image:hover {
  box-shadow: 10px 14px 30px rgba(84, 63, 35, 0.3);
  transform: translateY(-2px);
}

.book-info h2 {
  max-width: 30ch;
  font-size: clamp(1.75rem, 2.4vw, 2.1rem);
  line-height: 1.14;
}

.book-authors {
  margin: 0 0 26px;
  color: var(--muted);
}

/* ---------- Prose sections (interior pages) ---------- */

.page-hero {
  padding-block: clamp(52px, 7vw, 80px);
}

.page-hero p.lede {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.section-nav-label {
  margin-right: 2px;
  color: var(--berry);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(122, 95, 44, 0.25);
  border-radius: var(--radius-button);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.section-nav a:hover {
  border-color: var(--gold);
  background: white;
}

#gender-voice,
#motor-speech,
#cognitive-linguistic {
  scroll-margin-top: 90px;
}

.prose p {
  margin: 0 0 1.4em;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose h2:first-child {
  margin-top: 0;
}

/* Citations */

.citation-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.citation-list li {
  padding: 20px 0 20px 1.5em;
  border-top: 1px solid var(--card-border);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
  text-indent: -1.5em;
}

.citation-list li:last-child {
  border-bottom: 1px solid var(--card-border);
}

.citation-group {
  margin-top: 30px;
}

.citation-group + .citation-group {
  margin-top: 44px;
}

.citation-period {
  margin: 0 0 8px;
  color: var(--berry);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Resource list */

.resource-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-list li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(122, 95, 44, 0.18);
}

.resource-list li:last-child {
  border-bottom: 0;
}

/* FAQ accordions */

.faq {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background: white;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq details + details {
  border-top: 1px solid var(--card-border);
}

.faq details {
  border-left: 3px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.faq details[open] {
  border-left-color: var(--gold);
  background: color-mix(in srgb, var(--cream) 72%, white);
}

.faq summary {
  padding: 20px 24px;
  cursor: pointer;
  color: var(--purple-deep);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 52px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--gold-text);
  transform: translateY(-50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.faq summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq details[open] summary::after {
  opacity: 0;
  transform: translateY(-50%) rotate(180deg);
}

.faq .faq-answer {
  padding: 0 24px 22px;
}

.faq .faq-answer p {
  margin: 0 0 1em;
}

.faq .faq-answer p:last-child {
  margin-bottom: 0;
}

/* Teaching */

.editorial-figure {
  float: right;
  width: min(46%, 470px);
  margin: 6px 0 28px 44px;
  padding: 12px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-card);
  background: white;
}

.editorial-figure img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.editorial-figure figcaption {
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.values-grid li {
  padding: 22px 24px;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: white;
  box-shadow: var(--shadow-card);
  color: var(--purple-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.update-note,
.special-thanks {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.special-thanks {
  margin-top: 24px;
}

/* Study card */

.study-card {
  margin: 34px 0;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-card);
  background: white;
  box-shadow: var(--shadow-card);
}

.study-card h2 {
  margin-top: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

.study-card ul {
  margin: 0;
  padding-left: 1.3em;
}

.study-card li + li {
  margin-top: 0.5em;
}

.highlight {
  color: var(--purple-deep);
  font-weight: 700;
}

.contact-action {
  margin-top: 30px;
}

.study-note {
  margin-top: 34px;
}

.study-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 30px;
}

.study-fact {
  padding: 14px 15px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--card-border));
  border-radius: var(--radius-button);
  background: var(--cream);
}

.study-fact dt {
  margin-bottom: 3px;
  color: var(--berry);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.study-fact dd {
  margin: 0;
  color: var(--purple-deep);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Support list (organizations) */

.support-list {
  margin: 24px 0 0;
  padding: 0;
  columns: 2;
  column-gap: 48px;
  list-style: none;
}

.support-list li {
  break-inside: avoid;
  margin: 0 0 18px;
  padding: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--purple-footer);
  color: #d8e0e8;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  padding-block: clamp(48px, 6vw, 70px);
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 1.25rem;
}

.footer-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a {
  color: #eff3f6;
  text-decoration: none;
}

.site-footer .email-address {
  color: #eff3f6;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer .email-address:hover {
  color: white;
  text-decoration: underline;
}

.site-footer nav {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.site-footer address {
  font-style: normal;
}

.footer-bottom {
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  text-align: center;
  color: #aebdcc;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    width: min(100%, 320px);
    justify-self: start;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .pillars,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .editorial-figure {
    float: none;
    width: min(100%, 520px);
    margin: 0 0 28px;
  }
}

@media (max-width: 680px) {
  .header-row {
    position: relative;
    min-height: 68px;
    gap: 16px;
  }

  .primary-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    font-size: 0.9rem;
  }

  .mobile-nav summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding-inline: 4px;
    cursor: pointer;
    list-style: none;
    color: var(--purple-deep);
    font-weight: 600;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary::after {
    content: " ☰";
  }

  .mobile-nav[open] summary::after {
    content: " ×";
  }

  .mobile-nav nav {
    position: absolute;
    z-index: 1;
    top: 100%;
    right: -24px;
    left: -24px;
    display: grid;
    gap: 2px;
    padding: 12px 24px 18px;
    border-top: 1px solid var(--card-border);
    background: var(--surface);
    box-shadow: 0 14px 28px rgba(84, 63, 35, 0.14);
  }

  .mobile-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    text-decoration: none;
  }

  .mobile-nav a[aria-current="page"] {
    font-weight: 700;
  }

  .media-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .study-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-panel {
    grid-template-columns: 1fr;
  }

  .book-cover-image {
    justify-self: center;
  }

  .book-info {
    width: 100%;
  }

  .support-list {
    columns: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    gap: 0;
  }

  .site-footer nav a,
  .site-footer .email-address,
  .site-footer a[href^="tel:"] {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .citation-list li {
    padding-left: 1.1em;
    text-indent: -1.1em;
  }

  .resource-list a,
  .site-footer a {
    overflow-wrap: anywhere;
  }

  .band {
    padding-block: 52px;
  }

  .hero {
    padding-block: 48px;
  }

  .page-hero {
    padding-block: 46px;
  }

  .focus-band {
    padding-block: 52px;
  }

  .pillars,
  .media-grid {
    margin-top: 32px;
  }

  body {
    font-size: 17px;
  }
}

@media (max-width: 400px) {
  .shell {
    width: min(100% - 32px, 1160px);
  }

  .shell-narrow {
    width: min(100% - 32px, 700px);
  }

  .header-row {
    min-height: 64px;
    gap: 10px;
  }

  .wordmark {
    font-size: 1rem;
  }

  .mobile-nav nav {
    right: -16px;
    left: -16px;
    padding-inline: 16px;
  }

  h1 {
    font-size: 2.25rem;
    text-wrap: balance;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .study-facts {
    grid-template-columns: 1fr;
  }

  .book-panel {
    padding: 24px;
  }

  .book-info .button {
    width: 100%;
    text-align: center;
  }
}

@media (hover: none) {
  .media-card:hover {
    box-shadow: var(--shadow-card);
    transform: none;
  }

  .book-cover-image:hover {
    box-shadow: 8px 10px 24px rgba(84, 63, 35, 0.24);
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
