:root {
  --navy: #082b6f;
  --ivory: #faf7f0;
  --sky: #ddecf2;
  --sand: #d7be91;
  --charcoal: #202630;
  --white: #fff;
  --line: rgba(8, 43, 111, 0.14);
  --muted: rgba(32, 38, 48, 0.66);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  margin: 0;
  text-rendering: optimizeLegibility;
}
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
::selection { background: var(--sky); color: var(--navy); }

.skip-link {
  background: var(--navy);
  color: var(--white);
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }
.shell { margin-inline: auto; max-width: 1280px; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.narrow { margin-inline: auto; max-width: 780px; }
.eyebrow {
  color: rgba(8, 43, 111, 0.65);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.display {
  color: var(--navy);
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.04;
}

.site-header {
  background: rgba(250, 247, 240, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto 1fr;
  min-height: 92px;
}
.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  justify-self: center;
  text-decoration: none;
}
.brand img { height: 48px; width: 48px; }
.brand-name { color: var(--navy); font-family: "Libre Caslon Display", Georgia, serif; font-size: 1.3rem; line-height: 1; }
.brand-sub { color: var(--muted); display: block; font-size: 0.66rem; letter-spacing: 0.13em; margin-top: 0.35rem; text-transform: uppercase; }
.nav-left, .nav-right { align-items: center; display: flex; gap: clamp(1rem, 2.3vw, 2.1rem); }
.nav-right { justify-self: end; }
.nav-link { color: var(--navy); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }
.nav-link:hover, .nav-link:focus-visible { text-decoration: underline; text-underline-offset: 0.45rem; }
.nav-cta { border: 1px solid rgba(8, 43, 111, 0.35); padding: 0.78rem 1rem; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--navy); color: var(--white); text-decoration: none; }

.page-hero { background: var(--white); border-bottom: 1px solid var(--line); padding-block: clamp(5rem, 11vw, 9rem); }
.hero-grid { align-items: end; display: grid; gap: 3rem; grid-template-columns: 1.05fr 0.95fr; }
.page-hero h1 { font-size: clamp(3.3rem, 7.4vw, 7.25rem); margin: 0.8rem 0 0; max-width: 9ch; }
.page-hero p { color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.35rem); margin: 0; max-width: 34rem; }
.hero-rule { background: var(--sand); height: 4px; margin-bottom: 2rem; width: 64px; }

.featured { padding-block: clamp(4.5rem, 9vw, 8rem); }
.featured-card { background: var(--navy); color: var(--white); display: grid; grid-template-columns: 0.8fr 1.2fr; min-height: 440px; }
.featured-aside { background: var(--sky); color: var(--navy); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 5vw, 4.25rem); }
.featured-mark { font-family: "Libre Caslon Display", Georgia, serif; font-size: clamp(5rem, 12vw, 10rem); line-height: 0.75; opacity: 0.36; }
.featured-copy { align-self: center; padding: clamp(2.2rem, 6vw, 5rem); }
.featured-copy h2 { color: var(--white); font-size: clamp(2.3rem, 4.4vw, 4.5rem); margin: 0.8rem 0 1.4rem; }
.featured-copy p { color: rgba(255, 255, 255, 0.72); margin: 0 0 1.8rem; max-width: 43rem; }
.text-link { display: inline-flex; font-size: 0.78rem; font-weight: 600; gap: 0.6rem; letter-spacing: 0.1em; text-decoration: none; text-transform: uppercase; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; text-underline-offset: 0.4rem; }

.guides { background: rgba(221, 236, 242, 0.52); border-block: 1px solid var(--line); padding-block: clamp(4.5rem, 8vw, 7rem); }
.section-head { align-items: end; display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); margin: 0.5rem 0 0; }
.section-head p { color: var(--muted); justify-self: end; margin: 0; max-width: 35rem; }
.guide-grid { background: var(--line); border: 1px solid var(--line); display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); }
.guide-card { background: var(--white); min-height: 310px; padding: clamp(2rem, 5vw, 4rem); text-decoration: none; }
.guide-card:nth-child(2) { background: var(--ivory); }
.guide-card h3 { font-size: clamp(2rem, 3.2vw, 3rem); margin: 4.5rem 0 1rem; }
.guide-card p { color: var(--muted); max-width: 31rem; }
.guide-card:hover h3, .guide-card:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.45rem; }

.library { background: var(--white); padding-block: clamp(4.5rem, 9vw, 8rem); }
.article-grid { background: var(--line); border: 1px solid var(--line); display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); }
.article-card { background: var(--white); display: flex; flex-direction: column; min-height: 350px; padding: clamp(1.7rem, 3vw, 2.6rem); text-decoration: none; }
.article-card:nth-child(5n+2), .article-card:nth-child(5n+4) { background: var(--ivory); }
.article-card h3 { font-size: clamp(1.7rem, 2.5vw, 2.25rem); margin: auto 0 1rem; }
.article-card p { color: var(--muted); font-size: 0.96rem; margin: 0 0 1.4rem; }
.card-meta { align-items: center; color: rgba(32, 38, 48, 0.52); display: flex; font-size: 0.73rem; gap: 0.5rem; letter-spacing: 0.08em; text-transform: uppercase; }
.article-card:hover h3, .article-card:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.45rem; }

.article-hero { background: var(--white); border-bottom: 1px solid var(--line); padding-block: clamp(4.5rem, 9vw, 8rem); text-align: center; }
.breadcrumbs { color: rgba(32, 38, 48, 0.58); font-size: 0.78rem; margin-bottom: 2.3rem; }
.breadcrumbs a { color: var(--navy); }
.article-hero h1 { font-size: clamp(3rem, 7vw, 6.75rem); margin: 0.9rem auto 1.6rem; max-width: 15ch; }
.article-intro { color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.3rem); margin: 0 auto; max-width: 49rem; }
.article-meta { color: rgba(32, 38, 48, 0.56); font-size: 0.78rem; letter-spacing: 0.08em; margin-top: 2rem; text-transform: uppercase; }

.article-layout { display: grid; gap: clamp(3rem, 7vw, 7rem); grid-template-columns: minmax(0, 1fr) 280px; padding-block: clamp(4rem, 8vw, 7rem); }
.prose { font-size: 1.08rem; max-width: 750px; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.55rem; }
.prose h2, .prose h3 { color: var(--navy); font-family: "Libre Caslon Display", Georgia, serif; font-weight: 400; line-height: 1.16; }
.prose h2 { font-size: clamp(2.1rem, 4vw, 3.15rem); margin: 3.3rem 0 1.15rem; }
.prose h3 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin: 2.6rem 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.7rem; padding-left: 1.45rem; }
.prose li { margin-bottom: 0.65rem; }
.prose blockquote { border-left: 3px solid var(--sand); color: var(--navy); font-family: "Libre Caslon Display", Georgia, serif; font-size: 1.6rem; margin: 2.8rem 0; padding: 0.4rem 0 0.4rem 1.5rem; }
.prose a { color: var(--navy); text-underline-offset: 0.2rem; }
.historical-note { background: rgba(221, 236, 242, 0.68); border: 1px solid var(--line); color: var(--navy); margin-bottom: 2.5rem; padding: 1.3rem 1.5rem; }
.article-aside { align-self: start; position: sticky; top: 122px; }
.author-card { background: var(--navy); color: var(--white); padding: 1.6rem; }
.author-card img { aspect-ratio: 1 / 1.05; object-fit: cover; object-position: center 18%; width: 100%; }
.author-card h2 { color: var(--white); font-size: 2rem; margin: 1.3rem 0 0.7rem; }
.author-card p { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; margin: 0 0 1.2rem; }
.aside-link { border-top: 1px solid rgba(255, 255, 255, 0.2); display: block; font-size: 0.75rem; letter-spacing: 0.09em; padding-top: 1rem; text-decoration: none; text-transform: uppercase; }

.next-reading { background: rgba(221, 236, 242, 0.45); border-top: 1px solid var(--line); padding-block: clamp(4.5rem, 8vw, 7rem); }
.next-grid { background: var(--line); border: 1px solid var(--line); display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); }
.next-card { background: var(--white); min-height: 220px; padding: 2rem; text-decoration: none; }
.next-card h3 { font-size: 1.65rem; margin: 3rem 0 0; }

.site-footer { background: var(--ivory); border-top: 1px solid var(--line); padding-block: 3.5rem; }
.footer-top { align-items: start; display: grid; gap: 2rem; grid-template-columns: 1fr auto auto; }
.footer-brand { align-items: center; display: flex; gap: 1rem; }
.footer-brand img { height: 58px; width: 58px; }
.footer-links { display: grid; font-size: 0.9rem; gap: 0.5rem; }
.footer-label { color: rgba(8, 43, 111, 0.58); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; margin-bottom: 0.8rem; text-transform: uppercase; }
.footer-bottom { border-top: 1px solid var(--line); color: rgba(32, 38, 48, 0.55); display: flex; font-size: 0.76rem; gap: 2rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.5rem; }
.footer-bottom p { margin: 0; max-width: 54rem; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .brand { justify-self: start; }
  .nav-left { display: none; }
  .hero-grid, .featured-card, .section-head { grid-template-columns: 1fr; }
  .featured-aside { min-height: 220px; }
  .section-head p { justify-self: start; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .author-card { display: grid; gap: 1.7rem; grid-template-columns: 180px 1fr; }
  .author-card h2 { margin-top: 0; }
  .next-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .site-header { position: relative; }
  .header-inner { min-height: 80px; }
  .nav-right .nav-link:not(.nav-cta) { display: none; }
  .nav-cta { font-size: 0.7rem; padding: 0.65rem 0.7rem; }
  .brand-sub { display: none; }
  .guide-grid, .article-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 300px; }
  .article-layout { padding-inline: 1.25rem; }
  .author-card { display: block; }
  .author-card img { max-height: 340px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
