@import url('fonts/cormorant.css');
@import url('fonts/inter.css');

:root {
  --paper: #f7f5ef;
  --white: #fff;
  --sand: #e8e0d4;
  --ink: #292a27;
  --quiet: #625f59;
  --wine: #793d40;
  --charcoal: #3d403c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Arial, sans-serif; font-size: 16px; line-height: 1.65; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--wine); }
button, summary { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--wine); outline-offset: 6px; }
button { cursor: pointer; }
h1, h2, h3, .brand, .footer-name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(58px, 7.4vw, 112px); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(40px, 4.4vw, 66px); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-size: 34px; line-height: 1.15; text-wrap: balance; }
p + p { margin-top: 20px; }
.wrap { width: min(1280px, 88%); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 118px; }
.brand { font-size: 30px; line-height: .94; text-decoration: none; letter-spacing: -.025em; }
.brand span { display: block; }
.site-nav { display: flex; gap: 34px; align-items: center; }
.site-nav a { font-size: 14px; text-decoration: none; padding-block: 12px; }
.site-nav a[aria-current] { text-decoration: underline; color: var(--wine); }
.menu-toggle { display: none; border: 0; background: var(--sand); color: var(--ink); padding: 10px 15px; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 12px 20px; background: var(--white); z-index: 10; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.hero { padding-top: 42px; }
.hero h1 { max-width: 1100px; }
.hero-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 7%; align-items: center; margin-top: 42px; }
.hero-copy { padding-block: 30px 50px; }
.hero-copy p { max-width: 33ch; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; padding: 15px 25px; background: var(--charcoal); color: var(--white); text-decoration: none; margin-top: 28px; border: 0; transition: background .2s, transform .2s; }
.button:hover { background: var(--wine); color: var(--white); transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.hero-figure { margin-top: -12px; }
.hero-figure img { aspect-ratio: 1.56; object-fit: cover; }
figcaption { font-size: 13px; color: var(--quiet); line-height: 1.5; margin-top: 12px; }
.section { margin-top: 132px; }
.intro-grid { display: grid; grid-template-columns: 5fr 5fr; gap: 16%; align-items: center; }
.intro-grid .small-print { width: 78%; }
.intro-grid h2 { margin-bottom: 28px; }
.intro-grid p { max-width: 43ch; }
.text-link { display: inline-block; margin-top: 24px; }
.reading-section { background: var(--sand); padding-block: 80px 90px; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 54px; }
.section-top p { max-width: 33ch; }
.reading-grid { display: grid; grid-template-columns: 1.25fr 1fr .9fr; gap: 5%; align-items: start; }
.reading-grid article:nth-child(2) { padding-top: 65px; }
.reading-grid article:nth-child(3) { padding-top: 125px; }
.reading-grid img { aspect-ratio: 1.2; object-fit: cover; }
.reading-grid h3 { margin-top: 22px; }
.reading-grid h3 a { text-decoration: none; }
.reading-grid p { margin-top: 14px; }
.reading-grid figure a { display: block; overflow: hidden; }
.reading-grid figure a img { transition: transform .6s ease; }
.reading-grid figure a:hover img { transform: scale(1.03); }
.bridge { display: grid; grid-template-columns: 5fr 5fr; gap: 16%; align-items: center; }
.bridge h2 { margin-bottom: 25px; }
.bridge-image { aspect-ratio: 1.25; object-fit: cover; }
.site-footer { margin-top: 130px; padding-block: 62px 30px; background: var(--sand); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; }
.footer-top p { max-width: 38ch; }
.footer-links { display: flex; align-items: start; gap: 26px; }
.footer-name { font-size: clamp(44px, 8.4vw, 126px); line-height: 1; letter-spacing: -.045em; margin-block: 45px 32px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--quiet); }
.page-heading { padding-block: 55px 65px; max-width: 950px; }
.page-heading h1 { font-size: clamp(56px, 6.8vw, 96px); max-width: 18ch; }
.page-heading .lead { font-size: 19px; max-width: 58ch; margin-top: 30px; }
.feature-photo { max-width: 980px; margin-left: auto; }
.feature-photo img { aspect-ratio: 2.1; object-fit: contain; background: #eeede8; }
.prose-layout { display: grid; grid-template-columns: 1fr 3fr; gap: 9%; margin-top: 70px; }
.contents { align-self: start; position: sticky; top: 30px; }
.contents p { color: var(--quiet); font-size: 14px; margin-bottom: 12px; }
.contents a { display: block; font-size: 14px; padding-block: 8px; text-decoration: none; }
.prose { max-width: 700px; }
.prose section + section { margin-top: 64px; }
.prose h2 { font-size: 43px; margin-bottom: 22px; }
.prose h3 { margin-block: 28px 12px; font-size: 30px; }
.prose p, .prose li { font-size: 17px; }
.prose ul { padding-left: 22px; }
section[id] { scroll-margin-top: 32px; }
.quote { background: var(--sand); padding: 32px; margin: 32px 0; }
.quote p { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 29px; line-height: 1.3; }
.quote cite { display: block; font-size: 13px; margin-top: 18px; font-style: normal; }
.sources { margin-top: 64px; padding: 28px; background: var(--white); }
.sources h2 { font-size: 30px; }
.sources p, .sources li { font-size: 14px; }
.sources ul { margin-bottom: 0; }
.related { padding: 35px; background: var(--sand); margin-top: 50px; }
.related h2 { font-size: 32px; }
.related a { display: block; padding-top: 15px; }
.story-list article { display: grid; grid-template-columns: 5fr 5fr; gap: 16%; margin-block: 20px 100px; align-items: center; }
.story-list article:nth-child(2) figure { order: 2; }
.story-list img { aspect-ratio: 1.45; object-fit: cover; }
.story-list h2 { margin-bottom: 24px; }
.comparison { width: 100%; border-collapse: collapse; margin-top: 26px; }
.comparison th, .comparison td { padding: 22px 24px; text-align: left; vertical-align: top; }
.comparison thead { background: var(--charcoal); color: var(--white); }
.comparison tbody tr:nth-child(odd) { background: var(--sand); }
.comparison tbody tr:nth-child(even) { background: var(--white); }
details { background: var(--white); padding: 20px 24px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 500; }
details p { margin-top: 16px; }
.trigrams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0; }
.trigrams div { background: var(--sand); text-align: center; padding: 18px 8px; }
.trigrams span { font-family: Georgia, serif; display: block; font-size: 36px; line-height: 1.4; }
.trigrams small { font-size: 13px; }
.enter { animation: arrive .7s ease both; }
@keyframes arrive { from { opacity: .4; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .wrap { width: 90%; }
  .site-nav { gap: 20px; }
  .hero-grid { grid-template-columns: 4fr 6fr; gap: 5%; }
  .section { margin-top: 85px; }
  .intro-grid, .bridge, .story-list article { gap: 8%; }
  .reading-grid { gap: 4%; }
  .reading-grid h3 { font-size: 29px; }
  .prose-layout { grid-template-columns: 1fr 3fr; gap: 6%; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 94px; flex-wrap: wrap; gap: 16px; padding-block: 22px; }
  .brand { font-size: 27px; }
  .js .menu-toggle { display: block; }
  .site-nav { width: 100%; display: flex; flex-direction: column; align-items: start; gap: 0; }
  .site-nav a { padding: 12px 0; width: 100%; font-size: 16px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .hero { padding-top: 24px; }
  h1 { font-size: clamp(48px, 12.2vw, 72px); }
  .hero-grid { display: flex; flex-direction: column-reverse; gap: 26px; margin-top: 30px; }
  .hero-figure { margin: 0; width: 100%; }
  .hero-copy { width: 100%; padding: 0; }
  .hero-copy p { max-width: 38ch; }
  .button { margin-top: 22px; }
  .section { margin-top: 76px; }
  h2 { font-size: 43px; }
  .intro-grid, .bridge { display: flex; flex-direction: column; gap: 35px; align-items: stretch; }
  .intro-grid .small-print { width: 78%; }
  .intro-grid figure { order: 2; }
  .reading-section { padding-block: 50px; }
  .section-top { display: block; margin-bottom: 38px; }
  .section-top p { margin-top: 22px; }
  .reading-grid { display: block; }
  .reading-grid article { padding-top: 0 !important; margin-top: 45px; }
  .reading-grid article:first-child { margin-top: 0; }
  .reading-grid article:nth-child(2) { width: 88%; margin-left: auto; }
  .reading-grid article:nth-child(3) { width: 88%; }
  .reading-grid h3 { font-size: 34px; }
  .bridge figure { width: 88%; margin-left: auto; }
  .site-footer { margin-top: 76px; padding-top: 42px; }
  .footer-top, .footer-bottom { display: block; }
  .footer-links { margin-top: 25px; }
  .footer-bottom p + p { margin-top: 16px; }
  .footer-name { font-size: 12vw; margin-block: 38px 25px; }
  .page-heading { padding-block: 30px 40px; }
  .page-heading h1 { font-size: 53px; }
  .page-heading .lead { font-size: 17px; margin-top: 24px; }
  .feature-photo img { aspect-ratio: 1.4; }
  .prose-layout { display: block; margin-top: 36px; }
  .contents { position: static; margin-bottom: 40px; }
  .contents a { display: inline-block; padding-right: 20px; }
  .prose h2 { font-size: 36px; }
  .quote, .sources, .related { padding: 24px; }
  .story-list article { display: flex; flex-direction: column; align-items: stretch; gap: 30px; margin-bottom: 65px; }
  .story-list article:nth-child(2) figure { order: 0; width: 88%; margin-left: auto; }
  .comparison { font-size: 14px; }
  .comparison th, .comparison td { padding: 15px 10px; }
  .trigrams { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
