:root {
  --ink: #0c0c0c;
  --ink-soft: #181713;
  --paper: #f6f2e8;
  --paper-bright: #fffdf8;
  --gold: #caa85b;
  --gold-light: #ead79f;
  --line: #d6cdb7;
  --muted: #625e53;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 1rem; line-height: 1.7; }
a { color: inherit; text-underline-offset: 0.25rem; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 10; padding: 0.75rem 1rem; background: var(--paper-bright); border: 2px solid var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.site-header { width: min(960px, calc(100% - 2rem)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--ink); color: var(--gold-light); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; }
.brand small { margin-top: 0.15rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.back-link { font-size: 0.86rem; font-weight: 700; }
main { width: min(860px, calc(100% - 2rem)); margin: 0 auto; }
article { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.resource-header { padding-bottom: 3rem; border-bottom: 1px solid var(--ink); }
.eyebrow, .section-label { margin-bottom: 0.75rem; color: #775817; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.12; }
h1 { margin: 0 0 1.4rem; font-size: clamp(2.7rem, 7vw, 5rem); letter-spacing: -0.045em; }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.025em; }
h3 { margin: 0 0 0.85rem; font-size: clamp(1.45rem, 3vw, 2rem); }
p { margin: 0 0 1rem; }
.lead { max-width: 760px; color: #3f3b32; font-size: 1.18rem; }
.key-question { max-width: 760px; padding-left: 1rem; border-left: 4px solid var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.categories { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.categories li { padding: 0.3rem 0.65rem; border: 1px solid #8c6a24; color: #634912; font-size: 0.78rem; font-weight: 700; }
article > section, article > aside { padding: 3rem 0; border-bottom: 1px solid var(--line); }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.45rem; }
.idea-key, .final-question { margin: 3rem 0 0; padding: clamp(1.6rem, 5vw, 2.7rem); background: var(--ink-soft); color: #fff; border-top: 7px solid var(--gold); }
.idea-key p, .final-question p { color: #eee8db; }
.idea-key p:last-child, .formula { color: var(--gold-light); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.template > section { padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.template > section:last-child { border-bottom: 0; }
blockquote { margin: 1.3rem 0; padding: 1rem 1.2rem; background: var(--paper-bright); border-left: 4px solid var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; }
dl { margin: 1.4rem 0; }
dt { margin-top: 1rem; font-weight: 800; }
dd { margin-left: 0; color: var(--muted); }
.evaluation ol { counter-reset: questions; padding: 0; list-style: none; }
.evaluation li { counter-increment: questions; position: relative; min-height: 2.4rem; padding: 0.75rem 0 0.75rem 3.2rem; border-top: 1px solid var(--line); }
.evaluation li::before { content: counter(questions); position: absolute; left: 0; top: 0.62rem; display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--ink); color: var(--gold-light); font-weight: 700; }
.resource-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem 0 0; }
.resource-footer p { margin: 0; font-weight: 700; }
.resource-footer a { font-weight: 700; }
:focus-visible { outline: 3px solid #b8841a; outline-offset: 3px; }

@media (max-width: 650px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 0.8rem; padding: 1rem 0; }
  .back-link { min-height: 44px; display: flex; align-items: center; }
  .resource-footer { align-items: flex-start; flex-direction: column; gap: 0.7rem; }
}

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