:root {
  color-scheme: light;
  --bg: #eaf0e4;
  --surface: #fbfcf7;
  --text: #14261b;
  --accent: #1d5b3a;
  --accent2: #a9772c;
  --muted: #4e6252;
  --rule: #bac8b6;
  --heading: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1.125rem, 4vw, 4rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: clamp(1rem, .96rem + .18vw, 1.125rem); line-height: 1.75; overflow-wrap: break-word; }
.page { min-width: 0; }
main, section, article, header, footer, nav, div, figure { min-width: 0; }
::selection { background: var(--accent); color: var(--surface); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
a:hover { color: var(--text); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent2); outline-offset: 5px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); font-weight: 400; line-height: 1.16; margin: 0 0 .65em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.35rem + 3vw, 4.65rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 1.25rem + 1.5vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.4rem, 1.15rem + .65vw, 1.9rem); }
h4, h5, h6 { font-size: 1.25rem; }
p { margin: 0 0 1.2em; }
ul, ol { padding-inline-start: 1.5rem; }
li::marker { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .8rem; line-height: 1.6; padding-top: .85rem; }
strong, b { font-weight: 650; }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--accent2); background: var(--bg); }
table { border-collapse: collapse; width: 100%; font-size: .9em; }
th, td { border: 1px solid var(--rule); padding: .75rem; text-align: left; overflow-wrap: anywhere; }
th { background: var(--bg); }
pre { overflow: auto; padding: 1rem; background: var(--bg); }
code { font-size: .9em; }
input, select, textarea, button { max-width: 100%; font: inherit; }
input, select, textarea { border: 1px solid var(--rule); background: var(--surface); padding: .6rem; color: var(--text); }
.wrap { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .75rem 1rem; background: var(--surface); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--surface); border-top: 5px solid var(--accent); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; padding-block: 1.4rem; }
.brand { flex-shrink: 0; font-family: var(--heading); font-size: clamp(1.7rem, 1.4rem + .6vw, 2.1rem); letter-spacing: -.04em; text-decoration: none; }
.brand::before { content: ''; display: inline-block; width: .65rem; height: 1.25rem; margin-right: .7rem; border: 1px solid var(--accent); border-radius: 100% 0 100% 0; transform: rotate(-15deg); }
.site-nav ul, .footer-nav ul { list-style: none; padding: 0; margin: 0; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; }
.site-nav a { display: inline-block; padding-block: .45rem; font-size: .82rem; font-weight: 550; text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-color: var(--accent2); }
.hero { background: var(--text); color: var(--surface); padding-block: clamp(2.5rem, 5vw, 5.5rem); border-bottom: 5px solid var(--accent2); }
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-text { max-width: 41rem; }
.eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; }
.eyebrow::before { content: ''; width: 2.5rem; height: 1px; background: var(--accent2); }
.hero h1 { max-width: 13ch; }
.lead { font-size: clamp(1.075rem, 1rem + .4vw, 1.3rem); line-height: 1.7; }
.hero .lead { font-size: clamp(.95rem, .88rem + .25vw, 1.1rem); color: #d9e4d4; }
.hero-actions { margin-top: 1.8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; min-height: 48px; padding: .8rem 1.35rem; border: 1px solid var(--accent); font-size: .9rem; font-weight: 600; text-decoration: none; }
.btn-primary { color: var(--surface); background: var(--accent); }
.hero .btn-primary { background: var(--surface); color: var(--text); border-color: var(--surface); }
.btn::after { content: '\2192'; font-size: 1.2em; }
.btn-primary:hover { background: var(--bg); color: var(--text); border-color: var(--accent2); }
.hero-media { position: relative; padding: clamp(.75rem, 1.8vw, 1.5rem); background: var(--surface); color: var(--text); border: 1px solid #d1d9c8; box-shadow: 10px 10px 0 #0d1c13; }
.hero-media::before, .hero-media::after { display: block; font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; }
.hero-media::before { content: 'Herbarium / Coniferae'; padding-bottom: .85rem; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
.hero-media::after { content: 'Tabula 01 / Hortus'; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--rule); }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; }
.page-home main { counter-reset: plate; }
.section { counter-increment: plate; padding-block: clamp(2rem, 4vw, 4rem); border-bottom: 1px solid var(--rule); }
.section > .wrap { position: relative; padding: clamp(1.4rem, 3vw, 3rem); border: 1px solid var(--rule); background: var(--surface); }
.section > .wrap::before { content: 'Tabula ' counter(plate, decimal-leading-zero) ' / Hortus'; display: block; color: var(--accent); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 1.5rem; }
.section:nth-of-type(odd) { background: #e2e9dc; }
.section-title { max-width: 25ch; }
.section-intro { max-width: 76ch; color: var(--muted); }
.section > .wrap > p { max-width: 78ch; }
.section p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0 clamp(2rem, 4vw, 4rem); align-items: center; }
.split::before { grid-column: 1 / -1; }
.split-text { max-width: 65ch; }
.split-media { padding: .65rem; border: 1px solid var(--rule); background: var(--bg); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; }
.section-feature .split-media { border-bottom: 4px solid var(--accent2); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2rem 0; gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); counter-reset: guide; }
.card { counter-increment: guide; display: flex; flex-direction: column; position: relative; padding: clamp(1.25rem, 2.5vw, 2rem); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background-color 180ms ease; }
.card::before { content: counter(guide, upper-roman) ' /'; font-family: var(--heading); font-size: .9rem; color: var(--accent); margin-bottom: 1.25rem; }
.card:hover, .card:focus-within { background: var(--bg); }
.card-title { max-width: 23ch; }
.card-text { color: var(--muted); font-size: .95rem; }
.card-link { margin-top: auto; padding-top: .8rem; font-size: .83rem; font-weight: 600; }
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; margin: 2rem 0; list-style: none; border-top: 1px solid var(--rule); }
.fact { padding: 1rem; border-bottom: 1px solid var(--rule); border-left: 2px solid var(--accent); }
.section-partners { background: var(--bg); padding-block: 2.5rem; }
.section-partners > .wrap { background: transparent; padding: clamp(1rem, 2vw, 2rem); }
.section-partners .section-title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.section-partners .section-intro { font-size: .9rem; }
.partner-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; padding: 0; margin: 1.5rem 0 0; }
.partner { min-width: 0; padding: 1rem; border: 1px solid var(--rule); background: #f1f5ec; font-size: .8rem; line-height: 1.6; }
.partner-link { display: block; overflow-wrap: anywhere; word-break: normal; font-size: .75rem; line-height: 1.5; }
.partner-phrase { margin: .7rem 0 .35rem; font-weight: 650; }
.partner-desc { color: var(--muted); margin: 0; font-size: .78rem; }
.page-sub { background: var(--surface); }
.article { padding-block: clamp(1.8rem, 4vw, 4rem) clamp(3rem, 6vw, 6rem); }
.article > .wrap { max-width: 850px; border-left: 2px solid var(--accent); padding-left: clamp(1rem, 4vw, 3.5rem); }
.breadcrumb { color: var(--muted); font-size: .78rem; margin-bottom: 2.5rem; line-height: 1.8; overflow-wrap: anywhere; }
.breadcrumb a { margin-right: .3rem; }
.breadcrumb span { margin-left: .3rem; }
.page-header { border-bottom: 1px solid var(--rule); padding-bottom: 2rem; margin-bottom: 2.5rem; }
.page-header h1 { font-size: clamp(2.1rem, 1.5rem + 2.3vw, 3.6rem); }
.page-header .lead { color: var(--muted); }
.page-media { margin-top: 2rem; padding: clamp(.6rem, 1.8vw, 1rem); border: 1px solid var(--rule); background: var(--bg); }
.page-media img { width: 100%; aspect-ratio: 3 / 2; }
.prose { max-width: 68ch; counter-reset: passage; }
.prose p { margin-bottom: 1.4rem; }
.prose h2 { counter-increment: passage; font-size: clamp(1.55rem, 1.25rem + 1vw, 2.15rem); margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.prose h2::before { content: counter(passage, decimal-leading-zero) ' /'; display: block; font-family: var(--body); font-size: .7rem; letter-spacing: .15em; color: var(--accent); margin-bottom: .8rem; }
.prose li { margin-block: .55rem; }
.prose a { overflow-wrap: anywhere; }
.note { margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--bg); border-left: 3px solid var(--accent2); font-size: .95rem; }
.note p:last-child { margin-bottom: 0; }
.site-footer { background: var(--text); color: #d9e4d4; padding-block: clamp(2rem, 4vw, 4rem); border-top: 4px double #81947a; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem 5rem; }
.footer-note { max-width: 40ch; font-family: var(--heading); font-size: 1.25rem; line-height: 1.5; margin: 0; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 2rem; }
.footer-nav a { display: inline-block; padding-block: .2rem; font-size: .8rem; color: #d9e4d4; }
.footer-nav a:hover { color: var(--surface); }
@media (min-width: 1400px) {
  .section:not(.section-feature):not(.section-partners) > .wrap { padding-left: 10rem; }
  .section:not(.section-feature):not(.section-partners) > .wrap::before { position: absolute; left: 2rem; top: 3.25rem; max-width: 6rem; line-height: 2; }
}
@media (max-width: 1000px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: .65rem; }
  .site-nav ul { gap: .15rem 1.25rem; }
  .hero-inner { gap: 2rem; }
  .hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero-inner, .split { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 18ch; }
  .hero-text { max-width: none; }
  .hero-media { width: min(100%, 32rem); margin-inline: auto; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .split-media { margin-top: 1.75rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .site-nav ul { gap: .1rem 1.1rem; }
  .site-nav a { font-size: .78rem; }
  .header-inner { padding-block: 1rem; }
  .hero h1 { font-size: clamp(2.15rem, 8.2vw, 2.8rem); }
  .hero-media { box-shadow: 5px 5px 0 #0d1c13; }
  .section > .wrap { padding: 1.2rem; }
  .card-grid, .partner-list, .fact-list { grid-template-columns: minmax(0, 1fr); }
  .partner { padding: .9rem; }
  .footer-nav ul { grid-template-columns: minmax(0, 1fr); }
  .article > .wrap { padding-left: 1rem; }
  .breadcrumb { margin-bottom: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body, .page-sub, .hero, .site-footer { background: white; color: black; }
  .site-header, .site-footer, .skip-link, .hero-actions { display: none; }
  .wrap { width: 100%; }
  .article > .wrap { max-width: none; }
  .hero .lead { color: black; }
  .hero-media { box-shadow: none; }
  a { color: black; }
  .card, .partner, figure { break-inside: avoid; }
}
