:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --paper-bright: #fffefa;
  --ink: #1f292b;
  --muted: #596564;
  --line: #d8ddd5;
  --green: #1d574c;
  --green-dark: #143e37;
  --green-pale: #e8efeb;
  --rust: #a95136;
  --rust-pale: #f5eae5;
  --serif: Georgia, 'Times New Roman', 'Noto Serif', 'Songti SC', 'Songti TC', serif;
  --sans: Arial, Helvetica, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', sans-serif;
  --measure: 740px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--green-dark); text-underline-offset: .19em; }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible, textarea:focus-visible {
  outline: 3px solid #bd7559;
  outline-offset: 3px;
}
button, textarea { font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3 { margin-top: 0; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: .65rem 1rem;
  color: white;
  background: var(--green-dark);
}
.skip-link:focus { top: 1rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 241, .96);
}
.header-inner, .footer-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark {
  display: grid;
  gap: .08rem;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-name {
  font: 700 1.48rem/1.1 var(--serif);
  letter-spacing: -.035em;
}
.wordmark-sub {
  color: var(--muted);
  font-size: .71rem;
  letter-spacing: .045em;
}
.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}
.main-nav, .language-switch, .footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
}
.main-nav a {
  color: var(--ink);
  font-size: .87rem;
  text-decoration: none;
}
.main-nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}
.language-switch {
  gap: .2rem;
  font-size: .75rem;
  line-height: 1.4;
}
.language-label {
  margin-right: .2rem;
  color: var(--muted);
}
.language-switch a {
  padding: .25rem .32rem;
  border-radius: 2px;
  color: var(--muted);
  text-decoration: none;
}
.language-switch a[aria-current="page"] {
  color: var(--green-dark);
  background: var(--green-pale);
  font-weight: 700;
}

main { min-height: 58vh; }
.home-hero, .guide-index, .home-about, .education-strip {
  width: min(1180px, calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
}
.home-hero {
  position: relative;
  max-width: 1180px;
  padding: clamp(5rem, 10vw, 9rem) 0 5.4rem;
}
.home-hero::after {
  position: absolute;
  right: 4%;
  top: 25%;
  z-index: -1;
  width: 28vw;
  height: 28vw;
  max-width: 370px;
  max-height: 370px;
  border: 1px solid #d6ddd6;
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 34px rgba(29, 87, 76, .025), 0 0 0 68px rgba(29, 87, 76, .02);
}
.eyebrow {
  margin-bottom: .85rem;
  color: var(--rust);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--ink); }
.home-hero h1 {
  max-width: 850px;
  margin-bottom: 1.55rem;
  font: 500 clamp(2.8rem, 6vw, 5.6rem)/1.06 var(--serif);
  letter-spacing: -.05em;
}
.hero-lead {
  max-width: 760px;
  margin-bottom: 1rem;
  color: var(--green-dark);
  font: 400 clamp(1.18rem, 2.2vw, 1.6rem)/1.5 var(--serif);
}
.hero-detail, .hero-prompt {
  max-width: 720px;
  color: var(--muted);
}
.hero-prompt { margin-bottom: 1.65rem; }
.quiet-action, .text-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--green-dark);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}
.quiet-action {
  padding: .78rem 1.05rem;
  border: 1px solid var(--green);
  background: var(--paper-bright);
}
.quiet-action:hover {
  color: white;
  border-color: var(--green-dark);
  background: var(--green-dark);
}
.text-link { border-bottom: 1px solid #aebeb4; }
.text-link:hover { border-color: var(--rust); }

.guide-index {
  padding: 3.2rem 0 5.7rem;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(250px, .9fr) minmax(230px, .6fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.1rem;
}
.section-heading h2 {
  margin-bottom: 0;
  font: 500 clamp(2rem, 3.4vw, 3.15rem)/1.14 var(--serif);
  letter-spacing: -.035em;
}
.section-heading > p {
  max-width: 400px;
  margin-bottom: .15rem;
  color: var(--muted);
  font-size: .92rem;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.guide-card {
  min-height: 265px;
  padding: 1.8rem 1.85rem 1.6rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .42);
  transition: background .18s ease, transform .18s ease;
}
.guide-card:hover { background: var(--paper-bright); }
.card-index {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  color: var(--rust);
  font: 500 1.1rem/1 var(--serif);
}
.card-index span {
  color: var(--muted);
  font: 700 .65rem/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.guide-card h3 {
  max-width: 540px;
  margin-bottom: .8rem;
  font: 500 clamp(1.35rem, 2.5vw, 2rem)/1.2 var(--serif);
  letter-spacing: -.025em;
}
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a:hover { color: var(--green); }
.guide-card > p:not(.card-index) {
  max-width: 540px;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: .9rem;
}
.home-about {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 2.2rem;
  padding: 2.3rem 0 3.7rem;
  border-top: 1px solid var(--line);
}
.home-about .eyebrow { grid-row: span 2; padding-top: .2rem; }
.home-about > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}
.home-about .text-link { justify-self: start; }
.education-strip {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  max-width: 1180px;
  margin-bottom: 4.5rem;
  padding: 1.15rem 1.3rem;
  border-left: 3px solid var(--rust);
  background: var(--rust-pale);
}
.education-strip p { margin: 0; color: #4e403b; font-size: .85rem; }
.strip-mark {
  display: grid;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border: 1px solid #c88e7c;
  border-radius: 50%;
  color: var(--rust);
  font: 700 .76rem/1 var(--serif);
}

.content-narrow, .article-wrap {
  width: min(var(--measure), calc(100% - 48px));
  margin: 0 auto;
}
.article-wrap { padding: 2.1rem 0 6rem; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 2.7rem;
  color: var(--muted);
  font-size: .78rem;
}
.breadcrumb a { color: var(--muted); }
.article-header { margin-bottom: 2rem; }
.article-header h1, .page-heading h1, .error-page h1 {
  margin-bottom: .9rem;
  font: 500 clamp(2.5rem, 5vw, 4.15rem)/1.08 var(--serif);
  letter-spacing: -.045em;
}
.article-dek, .page-lead {
  max-width: 720px;
  margin-bottom: 1rem;
  color: var(--muted);
  font: 400 clamp(1.07rem, 2vw, 1.3rem)/1.55 var(--serif);
}
.updated-line {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: .75rem;
}
.updated-line span { font-weight: 700; }
.learning-outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
  margin: 2rem 0;
  padding: 1.35rem 1.45rem;
  border: 1px solid #ccd8d0;
  background: var(--green-pale);
}
.learning-outcomes h2 {
  margin-bottom: .35rem;
  color: var(--green-dark);
  font-size: .67rem;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}
.learning-outcomes p { margin-bottom: 0; font-size: .9rem; }
.fiction-note {
  padding: .9rem 1rem;
  border-left: 2px solid #c87e60;
  color: #574944;
  background: #f4ece6;
  font-size: .88rem;
}
.contents-nav {
  margin: 2.2rem 0 2.8rem;
  padding: 1.15rem 1.35rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contents-nav > span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contents-nav ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem 1.6rem;
  margin: .75rem 0 0;
  padding-left: 1.25rem;
}
.contents-nav li { padding-left: .2rem; color: var(--rust); font-size: .82rem; }
.contents-nav a { color: var(--green-dark); }
.prose { color: #293433; }
.prose section { margin: 0 0 2.45rem; scroll-margin-top: 1.5rem; }
.prose h2 {
  margin-bottom: .8rem;
  font: 500 clamp(1.55rem, 3vw, 2.05rem)/1.2 var(--serif);
  letter-spacing: -.025em;
}
.prose p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.82; }
.related-learning {
  margin: 3rem 0 2.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}
.related-learning .eyebrow { margin-bottom: .6rem; }
.source-block {
  padding: 1.6rem 0 1.7rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.source-block h2 { margin-bottom: .4rem; font: 500 1.45rem/1.25 var(--serif); }
.source-block > p { color: var(--muted); font-size: .85rem; }
.source-block ul { margin-bottom: 0; padding-left: 1.15rem; }
.source-block li { margin: .48rem 0; font-size: .88rem; }
.external-note { color: var(--rust); font-size: .75rem; }
.article-return { margin-top: 1.6rem; font-size: .85rem; }
.article-return a { color: var(--muted); }

.page-heading { padding: 3.6rem 0 1rem; }
.notes-page { padding-bottom: 5rem; }
.notes-instructions {
  margin: 1rem 0 1.6rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--green);
  background: var(--green-pale);
}
.notes-instructions h2 {
  margin-bottom: .35rem;
  font: 500 1.2rem/1.3 var(--serif);
}
.notes-instructions p { margin-bottom: 0; color: #3e504c; font-size: .9rem; }
.notes-fields { display: grid; gap: 1.25rem; }
.note-field label {
  display: block;
  margin-bottom: .25rem;
  color: var(--ink);
  font: 500 1.16rem/1.35 var(--serif);
}
.field-help { margin: 0 0 .5rem; color: var(--muted); font-size: .8rem; }
.note-field textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: .7rem .8rem;
  border: 1px solid #bdc7bf;
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-bright);
  line-height: 1.55;
}
.note-field textarea:focus { border-color: var(--green); }
.notes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
}
.button-primary, .button-secondary, .button-text, .example-toggle {
  min-height: 42px;
  padding: .62rem .9rem;
  border-radius: 0;
  font-size: .82rem;
  font-weight: 700;
}
.button-primary {
  border: 1px solid var(--green-dark);
  color: white;
  background: var(--green-dark);
}
.button-primary:hover { background: #0e332e; }
.button-secondary, .example-toggle {
  border: 1px solid var(--green);
  color: var(--green-dark);
  background: transparent;
}
.button-secondary:hover, .example-toggle:hover { background: var(--green-pale); }
.button-text {
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.button-text:hover { color: var(--rust); }
.note-status {
  min-height: 1.35rem;
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .78rem;
}
.privacy-hint {
  margin: .3rem 0 2.7rem;
  color: var(--muted);
  font-size: .82rem;
}
.worked-example {
  padding: 1.4rem 1.45rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .55);
}
.worked-example h2 { margin-bottom: .65rem; font: 500 1.55rem/1.25 var(--serif); }
.worked-example > p { max-width: 700px; color: var(--muted); font-size: .9rem; }
.example-body {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--rust);
  background: var(--rust-pale);
}
.example-body p { margin-bottom: .6rem; font-size: .93rem; }
.example-body .example-fiction { margin: .75rem 0 0; color: #604d46; font-size: .78rem; }
.example-body[hidden] { display: none; }

.editorial-page { padding-bottom: 5.5rem; }
.editorial-page .prose { padding-top: .4rem; }
.editorial-page .prose section { margin-bottom: 2rem; }
.editorial-page .prose h2 { font-size: 1.55rem; }
.editorial-page .prose p { font-size: .97rem; }
.error-page { display: grid; align-content: center; min-height: 55vh; padding: 5rem 0; }
.error-page h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }

.site-footer {
  border-top: 1px solid var(--line);
  background: #efeee8;
}
.footer-inner { padding: 2rem 0 1.55rem; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.footer-brand {
  color: var(--ink);
  font: 600 1.25rem/1 var(--serif);
  text-decoration: none;
}
.footer-links { gap: .4rem 1.2rem; }
.footer-links a { color: var(--muted); font-size: .8rem; }
.footer-byline, .footer-disclaimer, .translation-note, .copyright {
  max-width: 930px;
  margin: .55rem 0;
  color: var(--muted);
  font-size: .77rem;
}
.footer-disclaimer { color: #35413e; }
.analytics-control {
  max-width: 930px;
  margin: 1rem 0;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}
.analytics-heading {
  margin: 0;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
}
.analytics-copy, .analytics-status {
  margin: .35rem 0;
  color: var(--muted);
  font-size: .77rem;
  line-height: 1.5;
}
.analytics-button {
  min-height: 2.45rem;
  margin: .3rem 0;
  padding: .48rem .8rem;
  border: 1px solid #737c75;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: 600 .78rem/1.2 var(--sans);
  cursor: pointer;
}
.analytics-button:hover { background: #e2e0d8; }
.analytics-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.copyright { margin-top: 1.1rem; font-size: .72rem; }

#print-sheet { display: none; }
@media print {
  @page { margin: 20mm 18mm; }
  html, body { background: white !important; }
  body.printing > *:not(#print-sheet) { display: none !important; }
  #print-sheet {
    display: block !important;
    color: #111;
    font: 12pt/1.55 var(--sans);
  }
  #print-sheet h1 {
    margin-bottom: .5rem;
    font: 500 25pt/1.15 var(--serif);
  }
  #print-sheet .print-disclaimer { margin-bottom: 1.4rem; color: #444; font-size: 9pt; }
  #print-sheet .print-answer { margin: 0 0 1.25rem; break-inside: avoid; }
  #print-sheet .print-answer h2 { margin: 0 0 .3rem; font: 600 12pt/1.4 var(--sans); }
  #print-sheet .print-answer p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
  #print-sheet .print-empty { color: #555; }
}

@media (max-width: 920px) {
  .header-inner { align-items: flex-start; padding: 1.2rem 0; }
  .header-tools { flex-direction: column; align-items: flex-end; gap: .55rem; }
  .main-nav { justify-content: flex-end; }
  .home-hero::after { right: 2%; width: 30vw; height: 30vw; opacity: .7; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .header-inner, .footer-inner, .home-hero, .guide-index, .home-about, .education-strip {
    width: min(100% - 36px, 1180px);
  }
  .header-inner { display: block; min-height: 0; padding: 1rem 0 .9rem; }
  .wordmark-name { font-size: 1.35rem; }
  .header-tools { align-items: flex-start; margin-top: .95rem; }
  .main-nav { justify-content: flex-start; gap: .3rem 1rem; }
  .main-nav a { font-size: .82rem; }
  .language-switch { gap: .12rem; }
  .home-hero { padding: 4.5rem 0 3.8rem; }
  .home-hero::after { top: 23%; right: 0; width: 38vw; height: 38vw; opacity: .45; }
  .home-hero h1 { max-width: 600px; font-size: clamp(2.65rem, 12vw, 4.2rem); }
  .hero-lead { font-size: 1.2rem; }
  .section-heading { grid-template-columns: 1fr; gap: .75rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 0; padding: 1.45rem 1.2rem 1.35rem; }
  .guide-card h3 { font-size: 1.55rem; }
  .home-about { grid-template-columns: 1fr; gap: .25rem; }
  .home-about .eyebrow { grid-row: auto; }
  .education-strip { margin-bottom: 3rem; padding: 1rem; }
  .content-narrow, .article-wrap { width: calc(100% - 36px); }
  .article-wrap { padding-top: 1.4rem; }
  .breadcrumb { margin-bottom: 2rem; }
  .article-header h1, .page-heading h1 { font-size: clamp(2.45rem, 11vw, 3.5rem); }
  .learning-outcomes { grid-template-columns: 1fr; gap: 1rem; padding: 1.1rem; }
  .contents-nav { padding: 1rem; }
  .contents-nav ol { grid-template-columns: 1fr; }
  .prose p { font-size: .98rem; line-height: 1.78; }
  .page-heading { padding-top: 2.8rem; }
  .notes-actions { display: grid; grid-template-columns: 1fr; }
  .notes-actions button { width: 100%; }
  .worked-example { padding: 1.1rem; }
  .footer-top { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
