/* Nature Paladin: page layer, tokens only. */
@font-face { font-family: Lora; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/lora-latin-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Lora; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/lora-latin-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Lora; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/lora-cyrillic-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Lora; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/lora-cyrillic-italic.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/source-sans-3-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/source-sans-3-cyrillic.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root { --shell: min(1240px, calc(100% - 40px)); --measure: 40rem; }
@media (min-width: 760px) { :root { --shell: min(1240px, calc(100% - 96px)); } }
body { font-size: 1.125rem; line-height: 1.65; }
::selection { background: var(--accent-soft); }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0; }
.brand svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; color: var(--muted-strong); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.theme-toggle { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--muted-strong); cursor: pointer; border-radius: 50%; }
.theme-toggle:hover { color: var(--ink); background: var(--surface-2); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-toggle[hidden] { display: none; }
@media (max-width: 520px) { .brand-word { display: none; } .site-nav a { padding-inline: 8px; } }

/* hero: herbarium plate */
.hero { min-height: auto; padding-block: clamp(48px, 7vw, 104px) clamp(40px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.hero-inner { gap: clamp(28px, 4vw, 64px); }
@media (min-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.plate-no { font-family: var(--font-display); font-style: italic; color: var(--accent-text); font-size: 1.0625rem; }
.hero .display { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.4rem); max-width: 14ch; margin-top: 14px; }
.display em, .h2 em { font-style: italic; font-weight: 400; color: var(--accent-text); }
.hero .lead { margin-top: 22px; }
.hero .actions { margin-top: 32px; }
.sprig { width: 100%; max-width: 420px; justify-self: end; color: var(--drawing); }
.sprig svg { width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sprig figcaption { margin-top: 12px; font-family: var(--font-display); font-style: italic; color: var(--muted); border-top: 1px solid var(--line-strong); padding-top: 10px; }
@media (max-width: 899px) { .sprig { max-width: 150px; justify-self: start; } }
.hero { border-bottom: 0; }
.button-primary { font-weight: 600; }

/* sections */
.h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); }
.index-list > li h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.index-list > li h3 a { text-decoration: none; }
.index-list > li h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.index-list > li p { color: var(--muted-strong); }
.index-list .meta { font-size: 0.875rem; color: var(--muted); margin-top: 6px; }
.index-list > li::before { font-style: italic; font-weight: 400; }
.rule-list h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.rule-list p { color: var(--muted-strong); }
.rule-list .label { color: var(--accent-text); }
.band-ink .quote { color: var(--on-ink); }
.band-ink p { color: var(--on-ink-muted); max-width: 44rem; }

/* article */
.article-head { padding-block: clamp(40px, 6vw, 88px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.article-head .display { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); max-width: 22ch; margin-top: 12px; }
.article-head .lead { margin-top: 20px; }
.crumbs { font-size: 0.875rem; color: var(--muted); }
.crumbs a { color: var(--muted-strong); }
.byline { margin-top: 20px; font-size: 0.9375rem; color: var(--muted); }
.article-body { padding-block: clamp(32px, 5vw, 64px) var(--section-pad); }
.article-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 1fr) 15rem; gap: 80px; } .toc { position: sticky; top: 32px; align-self: start; order: 2; } }
.prose { max-width: var(--measure); }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.125rem; font-weight: 700; margin: 1.6em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin-top: 0.9em; }
.prose ul { list-style: none; padding: 0; }
.prose ul > li { position: relative; padding-left: 1.4em; margin-top: 0.45em; }
.prose ul > li::before { content: ""; position: absolute; left: 0.2em; top: 0.72em; width: 0.5em; height: 1px; background: var(--accent); }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose ol > li { margin-top: 0.45em; padding-left: 0.2em; }
.prose a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--accent); font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--muted-strong); }
.note { margin-top: 1.6em; padding: 18px 20px; background: var(--accent-soft); border-radius: var(--radius); font-size: 1rem; }
.note strong { display: block; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-text); margin-bottom: 4px; }
.toc h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.toc ol { border-left: 1px solid var(--line-strong); }
.toc li a { display: block; padding: 6px 0 6px 14px; font-size: 0.9375rem; color: var(--muted-strong); text-decoration: none; }
.toc li a:hover { color: var(--ink); }
.sources { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line-strong); font-size: 0.9375rem; }
.sources h2 { margin-top: 0; font-size: 1.125rem; font-family: var(--font-body); font-weight: 700; }

/* forms */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; } }
.form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 6px; }
.field-row label { font-weight: 600; font-size: 0.9375rem; }
.field-row input, .field-row textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 1rem; }
.field-row textarea { min-height: 160px; resize: vertical; }
.field-row input:focus-visible, .field-row textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-weight: 600; }
.form-status[data-state="ok"] { color: var(--accent-text); }
.form-status[data-state="error"] { color: var(--ink); }
.form button { justify-self: start; border: 0; }
.form button[disabled] { opacity: 0.6; cursor: progress; }

/* footer */
.site-footer { background: var(--surface-2); }
.footer-cols p { color: var(--muted-strong); max-width: 34ch; }
.footer-cols a { color: var(--ink); }
.footer-base { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line-strong); color: var(--muted); }
