@layer reset, foundations, layout, pieces, smallscreens;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  img { display: block; max-width: 100%; }
  button, input { font: inherit; }
  [hidden] { display: none !important; }
}
@layer foundations {
  :root { --ink: #1A1F26; --plum: #5B2F4E; --ochre: #8A6614; --teal: #2F6466; --granite: #F2F1EE; --notice: #E2EAF1; --display: 'Geist', sans-serif; --body: 'Mulish', sans-serif; }
  html { scroll-behavior: smooth; scroll-padding-top: 24px; }
  body { background-color: #FFFFFF; color: #1A1F26; font-family: 'Mulish', sans-serif; font-size: 17px; line-height: 1.65; font-weight: 400; }
  h1, h2, h3 { font-family: 'Geist', sans-serif; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
  h1 { font-size: clamp(40px, 4.4vw, 64px); }
  h2 { font-size: clamp(29px, 3.6vw, 52px); }
  h3 { font-size: 24px; }
  a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
  a, button, summary { -webkit-tap-highlight-color: rgba(91,47,78,.13); }
  a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #1A1F26; outline-offset: 5px; }
  .chapter a:focus-visible, .inner-lead a:focus-visible { outline-color: #FFFFFF; }
  button, summary { cursor: pointer; }
  button { color: #1A1F26; }
  p + p { margin-top: 20px; }
  p { max-width: 72ch; }
  ul { padding-left: 24px; }
  .skip { position: absolute; left: 16px; top: 8px; transform: translateY(-180%); padding: 12px 22px; background-color: #FFFFFF; color: #1A1F26; z-index: 20; min-height: 48px; min-width: 100px; }
  .skip:focus { transform: none; }
  .plum { --topic: #5B2F4E; --pale: #EEE5EB; --light: #F7F2F5; }
  .teal { --topic: #2F6466; --pale: #DFECEA; --light: #EFF5F4; }
  .ochre { --topic: #8A6614; --pale: #F0E7D4; --light: #F8F5ED; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
}
@layer layout {
  .notice { background-color: #E2EAF1; text-align: center; min-height: 44px; font-size: 16px; padding: 0 16px; }
  .notice a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; min-width: 44px; text-decoration: none; }
  .mast { background-color: #FFFFFF; border-radius: 24px 24px 0 0; position: relative; margin-top: -1px; padding: 12px 32px 16px; }
  .mast-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .name { font-family: var(--display); font-weight: 500; font-size: 23px; line-height: 1.15; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
  .header-line { font-size: 16px; line-height: 1.5; letter-spacing: 0; max-width: none; margin: 5px 0 0; white-space: nowrap; }
  .tools { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
  .menu { position: relative; }
  .menu > summary { width: 48px; height: 48px; list-style: none; display: grid; place-items: center; }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu summary svg { width: 24px; height: 24px; }
  .menu nav { position: absolute; z-index: 8; right: 0; top: 56px; width: min(390px, calc(100vw - 36px)); padding: 18px; background-color: #FFFFFF; border: 1px solid #D1D4D5; border-radius: 20px; box-shadow: 0 12px 32px rgba(26,31,38,.12); }
  .menu:not([open]) nav { display: none; }
  .menu nav a { display: flex; align-items: center; min-height: 48px; padding: 8px 12px; border-radius: 10px; text-decoration: none; }
  .menu nav a:hover { background-color: #F2F1EE; }
  .word-switch { min-height: 44px; min-width: 100px; padding: 9px 17px; border: 1px solid #DADDDD; border-radius: 40px; background-color: #FFFFFF; font-family: var(--display); font-weight: 600; font-size: 16px; box-shadow: 0 3px 14px rgba(26,31,38,.05); }
  .word-switch[aria-pressed='true'] { background-color: #E2EAF1; border-color: #2F6466; }
  .hero { padding: 22px 40px 34px; max-width: 1600px; margin: auto; }
  .hero h1 { max-width: 1320px; margin-bottom: 18px; }
  .hero h1 span { color: #5B2F4E; }
  .hero .identity { max-width: 102ch; margin-bottom: 26px; font-size: 17px; line-height: 1.5; }
  .topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .topic-wide { grid-column: span 2; }
  .chapter { border-radius: 26px; background-color: var(--topic); color: #FFFFFF; margin: 0 0 24px; padding: 88px 40px; }
  .chapter-inner { max-width: 1280px; margin: auto; }
  .chapter-intro { max-width: 780px; margin: 0 auto 36px; text-align: center; }
  .chapter-intro h2 { margin-bottom: 24px; }
  .chapter-intro p { margin-left: auto; margin-right: auto; }
  .chapter-intro .tone { color: #E2EAF1; }
  .question-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .chapter .photo-surface { margin-bottom: 36px; }
  .inner-wrap { padding: 12px 40px 0; max-width: 1600px; margin: auto; }
  .inner-lead { border-radius: 24px; padding: 44px 52px; color: #FFFFFF; background-color: var(--topic); }
  .inner-lead h1 { max-width: 1000px; font-size: clamp(38px, 4vw, 58px); }
  .inner-lead p { margin-top: 22px; max-width: 65ch; font-size: 19px; }
  .reading-layout { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 55px; padding: 36px 0 72px; align-items: start; }
  .anchor-rail { position: sticky; top: 24px; display: flex; flex-direction: column; font-size: 16px; }
  .anchor-rail a { display: flex; align-items: center; min-height: 48px; padding: 8px 12px; text-decoration: none; border-left: 2px solid #DADDDD; }
  .anchor-rail a:hover { color: var(--topic); border-left-color: var(--topic); }
  .answer { min-width: 0; }
  .answer-section { padding: 28px 0 38px; }
  .answer-section h2 { font-size: clamp(27px, 2.4vw, 35px); max-width: 26ch; margin-bottom: 26px; }
  .answer-section.summary { padding: 32px 36px; margin: 0 0 18px; background-color: var(--light); color: #1A1F26; border-radius: 22px; }
  .answer-section p { max-width: 69ch; }
  .answer-section.depth { padding-left: 36px; padding-right: 36px; }
  .article-photo { margin: 30px 0 4px; border-radius: 18px; overflow: hidden; background-color: #E2EAF1; }
  .article-photo img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; object-position: 54% 50%; }
  .source-panel { padding: 24px 36px; border-top: 1px solid #D1D4D5; }
  .source-panel h2 { font-size: 27px; margin-bottom: 16px; }
  .next-links { max-width: 1180px; margin: 0 auto 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .next-links a { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; padding: 18px 26px; background-color: #F2F1EE; border-radius: 20px; text-decoration: none; }
  .site-foot { background-color: #F2F1EE; padding: 52px 40px 28px; color: #1A1F26; border-radius: 26px 26px 0 0; }
  .foot-inner { max-width: 1360px; margin: auto; }
  .site-foot p { max-width: 76ch; font-size: 16px; }
  .foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0; }
  .foot-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-foot .copyright { font-size: 16px; }
  .missing { min-height: 48vh; max-width: 850px; margin: 50px auto; padding: 32px; }
  .missing p { margin-top: 24px; }
}
@layer pieces {
  .topic-wide { position: relative; border-radius: 24px; background-color: var(--topic); color: #FFFFFF; overflow: hidden; text-decoration: none; min-height: 216px; display: flex; }
  .tile-image { position: absolute; inset: 0; overflow: hidden; }
  .tile-image img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 54%; }
  .tile-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(47,100,102,.5), rgba(47,100,102,.04) 90%); }
  .topic-wide.plum .tile-image::after { background: linear-gradient(90deg, rgba(91,47,78,.5), rgba(91,47,78,.04) 90%); }
  .tile-copy { position: relative; z-index: 1; padding: 22px 24px; width: 50%; display: flex; flex-direction: column; justify-content: space-between; min-height: 216px; background-color: var(--topic); }
  .tile-copy h2 { font-size: 25px; max-width: 17ch; }
  .tile-copy .tile-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; margin-top: 24px; }
  .chevron { width: 20px; height: 20px; flex-shrink: 0; }
  .topic-small { min-height: 98px; background: linear-gradient(120deg, #F2F1EE, #FAF9F6); color: #1A1F26; border-radius: 23px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; text-decoration: none; }
  .topic-small h2 { font-size: 22px; line-height: 1.2; }
  .topic-small h2 span { color: var(--topic); }
  .topic-small:hover, .next-links a:hover { background: #E2EAF1; }
  .topic-small.ochre:hover { background: #F2F1EE; }
  .topic-wide:hover .tile-copy h2, .question-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
  .question-card { border-radius: 20px; background-color: var(--pale); color: #1A1F26; padding: 28px; display: flex; flex-direction: column; text-decoration: none; min-height: 230px; }
  .question-card h3 { font-size: 25px; margin-bottom: 20px; }
  .question-card p { font-size: 17px; line-height: 1.55; }
  .question-card .card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 26px; min-height: 44px; font-size: 16px; font-family: var(--display); font-weight: 600; }
  .pill { display: inline-flex; min-height: 48px; min-width: 44px; align-items: center; justify-content: center; gap: 20px; border-radius: 40px; padding: 12px 25px; font-family: var(--display); font-size: 16px; font-weight: 600; text-decoration: none; background-color: #FFFFFF; color: var(--topic, #5B2F4E); }
  .photo-surface { border-radius: 22px; position: relative; min-height: 430px; overflow: hidden; background-color: var(--topic); color: #FFFFFF; }
  .photo-surface img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 52%; }
  .photo-surface::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(91,47,78,.48), rgba(91,47,78,.03) 85%); }
  .photo-surface.teal-photo::after { background: linear-gradient(90deg, rgba(47,100,102,.48), rgba(47,100,102,.03) 85%); }
  .photo-content { z-index: 1; position: relative; padding: 48px; max-width: 630px; min-height: 430px; background-color: var(--topic); }
  .photo-content h2 { font-size: clamp(34px, 3.8vw, 54px); margin-bottom: 22px; }
  .photo-content p { margin-bottom: 28px; }
  .sources { border-bottom: 1px solid #D1D4D5; }
  .sources > summary { min-height: 52px; padding: 10px 0; font-size: 17px; }
  .source-list { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 12px 0 18px; padding: 0; list-style: none; }
  .source-list a { display: flex; min-height: 44px; align-items: center; padding: 8px 0; line-height: 1.5; }
  .source-note { color: #414C50; font-size: 16px; margin: 15px 0; }
  .home-source { background-color: #FFFFFF; color: #1A1F26; padding: 16px 40px 64px; max-width: 1440px; margin: auto; }
  .home-source h2 { font-size: 32px; margin-bottom: 16px; }
  html[data-plain='true'] .answer-section p { line-height: 1.85; }
}
@layer smallscreens {
  @media (min-width: 1600px) { .chapter, .site-foot { border-radius: 28px; } }
  @media (max-width: 1000px) {
    .mast { padding-left: 24px; padding-right: 24px; }
    .hero, .inner-wrap { padding-left: 24px; padding-right: 24px; }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-wide { grid-column: span 1; }
    .tile-copy { width: 60%; padding: 20px; }
    .topic-small { padding: 18px; }
    .topic-small h2 { font-size: 20px; }
    .chapter { padding: 65px 24px; }
    .question-row { gap: 8px; }
    .question-card { padding: 22px; }
    .question-card h3 { font-size: 23px; }
    .reading-layout { grid-template-columns: 155px minmax(0, 1fr); gap: 20px; }
    .answer-section.summary, .answer-section.depth, .source-panel { padding-left: 25px; padding-right: 25px; }
    .inner-lead { padding: 38px; }
    .photo-content { padding: 34px; max-width: 70%; }
  }
  @media (max-width: 759px) {
    body { font-size: 17px; }
    .notice { font-size: 16px; text-align: left; }
    .notice a { justify-content: flex-start; }
    .mast { padding: 12px 18px 14px; }
    .mast-row { gap: 10px; align-items: flex-start; }
    .name { font-size: 20px; max-width: 180px; min-height: 48px; }
    .tools { gap: 3px; }
    .word-switch { min-width: 80px; max-width: 100px; padding: 8px 10px; line-height: 1.15; }
    .menu > summary { width: 44px; }
    .header-line { white-space: normal; margin-top: 12px; font-size: 16px; }
    .hero { padding: 22px 16px 30px; }
    .hero h1 { font-size: clamp(39px, 10.8vw, 56px); line-height: 1.04; margin-bottom: 20px; }
    .hero .identity { margin-bottom: 24px; }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .topic-wide { grid-column: span 1; display: flex; flex-direction: column; min-height: 260px; }
    .tile-image { position: relative; height: 150px; flex-shrink: 0; }
    .tile-image::after { display: none; }
    .tile-copy { width: 100%; min-height: 160px; padding: 18px 15px; }
    .tile-copy h2 { font-size: 22px; }
    .tile-copy .tile-bottom { font-size: 16px; line-height: 1.35; gap: 7px; margin-top: 18px; }
    .tile-bottom .chevron { width: 16px; }
    .topic-small { grid-column: 1 / -1; min-height: 86px; padding: 20px 24px; }
    .topic-small h2 { font-size: 23px; }
    .chapter { border-radius: 24px; padding: 52px 16px; margin-bottom: 16px; }
    .chapter-intro { margin-bottom: 28px; text-align: left; }
    .chapter-intro h2 { font-size: 39px; }
    .chapter-intro p { font-size: 17px; }
    .question-row { grid-template-columns: 1fr; gap: 10px; }
    .question-card { min-height: 0; padding: 26px; }
    .question-card h3 { font-size: 27px; margin-bottom: 14px; }
    .question-card .card-link { margin-top: 8px; padding-top: 12px; }
    .photo-surface { min-height: 0; display: flex; flex-direction: column; border-radius: 20px; }
    .photo-surface img { position: relative; height: 270px; object-position: 65% 50%; }
    .photo-surface::after { display: none; }
    .photo-content { max-width: none; min-height: 0; padding: 28px 12px 8px; }
    .photo-content h2 { font-size: 36px; }
    .inner-wrap { padding: 10px 16px 0; }
    .inner-lead { padding: 32px 25px; }
    .inner-lead h1 { font-size: clamp(37px, 9.7vw, 52px); }
    .inner-lead p { font-size: 18px; margin-top: 22px; }
    .reading-layout { display: block; padding: 20px 0 40px; }
    .anchor-rail { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 22px; }
    .anchor-rail a { min-height: 44px; border: 1px solid #D1D4D5; border-radius: 30px; padding: 8px 17px; }
    .answer-section.summary { padding: 28px 25px; margin-bottom: 8px; }
    .answer-section.depth { padding: 30px 9px 38px; }
    .answer-section h2 { font-size: 30px; }
    .answer-section p { max-width: none; }
    .source-panel { padding: 25px 9px; }
    .article-photo img { aspect-ratio: 1.2; object-position: 58% 50%; }
    .next-links { grid-template-columns: 1fr; margin-bottom: 38px; }
    .next-links a { padding: 18px 22px; min-height: 80px; }
    .site-foot { padding: 38px 24px 24px; }
    .foot-nav { gap: 4px 24px; }
    .home-source { padding: 20px 24px 48px; }
  }
  @media print {
    .notice, .tools, .anchor-rail, .next-links, .foot-nav { display: none; }
    .chapter, .inner-lead { color: #1A1F26; background-color: #FFFFFF; }
    .reading-layout { display: block; }
    .header-line { white-space: normal; }
    .sources { display: block; }
  }
}
@layer pieces {
  .answer-section h3 { font-size: 23px; line-height: 1.2; margin: 32px 0 20px; max-width: 30ch; }
}
