@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-VariableItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7faf9;
  --panel: #fff;
  --line: #cbd9d4;
  --text: #172f2a;
  --muted: #46615a;
  --accent: #236250;
  --highlight: #def1bd;
  font: 16px/1.55 "IBM Plex Sans", system-ui, sans-serif;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 13px; font-size: clamp(1.25rem, 4vw, 3.25rem); font-weight: 700; line-height: 1; letter-spacing: -.045em; white-space: nowrap; text-decoration: none; }
.mark { display: block; width: clamp(64px, 8vw, 106px); height: auto; margin-block: 4px; }
nav { display: flex; gap: clamp(14px, 3vw, 36px); }
nav a { text-decoration: none; color: var(--muted); font-size: .9375rem; }
nav a:hover, .links a:hover { color: var(--accent); }
.site-header nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px clamp(12px, 2.8vw, 25px); border-radius: 9px; background: var(--accent); color: white; font-size: 1rem; font-weight: 750; }
.site-header nav a:hover { background: #184a3b; color: white; }
.site-header nav a[aria-current="page"] { box-shadow: inset 0 0 0 2px #adcfbd; }
.hero { position: relative; display: grid; align-items: center; min-height: min(660px, calc(100svh - 76px)); overflow: hidden; border-bottom: 1px solid var(--line); background: #dceee4; }
.hero-content { position: relative; padding-block: clamp(44px, 7vw, 100px); }
.hero-card { width: min(100%, 630px); padding: clamp(16px, 4vw, 46px); border: 1px solid #fff9; border-radius: 20px; background: #f5faf2f0; box-shadow: 0 16px 42px #122c2a33; container-type: inline-size; }
.hero-card h1 { font-size: min(4.5rem, 11.6cqi); overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 5.55rem); letter-spacing: -.06em; line-height: 1; font-weight: 850; }
h1 em { color: var(--accent); font-style: normal; }
.hero p { max-width: 470px; color: var(--muted); margin-block: 26px; font-size: 1.0625rem; }
.collage { position: absolute; inset: 0; background: #d4e4dc; --slant: clamp(34px, 8vw, 146px); }
.collage img { position: absolute; top: 0; height: 100%; width: calc(33.34% + var(--slant)); object-fit: cover; object-position: center 56%; filter: saturate(.72); }
.collage img:nth-child(1) { left: 0; clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.collage img:nth-child(2) { left: calc(33.33% + 6px); clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.collage img:nth-child(3) { left: calc(66.67% + 12px); clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); }
form { display: flex; align-items: center; padding: 6px; gap: 6px; max-width: 620px; border: 1px solid #88a799; border-radius: 13px; background: var(--panel); }
input { flex: 1; min-width: 0; padding: 12px 10px; border: 0; background: transparent; color: var(--text); border-radius: 6px; }
input::placeholder { color: var(--muted); }
button { padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); }
form button, .topics button[aria-pressed="true"] { background: var(--accent); color: white; border-color: var(--accent); font-weight: 750; }
button:hover { border-color: var(--accent); }
.catalog-header { background: #edf5f1; border-bottom: 1px solid var(--line); padding-block: 28px 32px; }
.catalog-header h1 { font-size: clamp(1.95rem, 5vw, 3rem); margin-bottom: 16px; }
.catalog-header form { max-width: 760px; }
.catalog-layout { display: grid; grid-template-columns: minmax(200px, 246px) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); padding-block: 36px 64px; }
.filters { align-self: start; padding: 18px; border-radius: 14px; background: #edf5f1; }
.filters h2 { font-size: 1.3rem; margin-bottom: 18px; }
.filters fieldset { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.filters legend { padding: 0; font-weight: 650; }
.results-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.results-heading h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
.results-toolbar:has(.active-filters:not([hidden])) {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-block: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.active-filters:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.active-filters p { color: var(--accent); font-weight: 650; }
.active-filters button { min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.results-toolbar:has(.active-filters:not([hidden])) ~ .results .study-link { scroll-margin-top: 120px; }
h2 { font-size: clamp(1.7rem, 4vw, 2.45rem); letter-spacing: -.04em; line-height: 1.1; }
#count { color: var(--muted); margin-top: 7px; }
.year { display: grid; gap: 6px; font-weight: 650; }
select { appearance: none; padding: 8px 34px 8px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); background: linear-gradient(45deg, transparent 48%, var(--muted) 50%) right 15px center / 5px 5px no-repeat, linear-gradient(135deg, var(--muted) 50%, transparent 52%) right 10px center / 5px 5px no-repeat, var(--panel); }
.topics { display: grid; gap: 5px; margin-top: 8px; }
.topics button { padding: 6px 9px; border-color: transparent; background: transparent; text-align: left; font-size: .875rem; }
.topics button:hover { border-color: var(--accent); }
.results { margin: 12px 0 0; padding-inline-start: 2rem; }
.result { padding: 17px 0 20px 8px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.result::marker { color: var(--muted); font-size: .875rem; }
.result p { margin-top: 6px; }
#more { margin-top: 12px; }
.study-link { color: var(--accent); text-underline-offset: 3px; }
.study-link:hover { text-decoration-thickness: 2px; }
.meta { color: var(--accent); font-size: .875rem; }
h3 { font-size: 1.27rem; letter-spacing: -.02em; line-height: 1.25; }
.summary, .foot p { color: var(--muted); }
.original { font-style: italic; }
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .875rem; text-underline-offset: 3px; }
.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 26px; }
.empty button { margin-top: 12px; }
footer { border-top: 1px solid var(--line); background: #edf5f1; }
.foot { padding-block: 35px 48px; }
.foot p { max-width: 650px; margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-topics { padding-block: 32px 26px; }
.home-reading { padding-block: 18px 42px; }
.reading-content { display: grid; gap: 24px; margin-top: 26px; }
.reading-content > section { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.reading-content h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.25; }
.reading-content ul { padding-inline-start: 1.4rem; margin-block: 10px 0; }
.reading-content li + li { margin-top: 5px; }
.reading-content p { margin-top: 8px; line-height: 1.65; }
.reading-content a { color: var(--accent); text-underline-offset: 3px; }
.home-topics h2, .home-reading h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.topic-links { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 10px 0 0; padding: 0; list-style: none; }
.topic-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 650; text-underline-offset: 4px; }
.topic-links a:hover { text-decoration-thickness: 2px; }
.study { max-width: 820px; padding-block: clamp(24px, 5vw, 58px) 72px; }
.back-link { color: var(--accent); text-underline-offset: 3px; }
.study-heading { margin-block: 34px 26px; }
.study-heading h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.05em; margin-top: 10px; overflow-wrap: anywhere; }
.study > article .study-heading { margin-block: 32px; }
.study > article .study-heading h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -.04em; margin-top: 8px; }
.study-content { display: grid; gap: 24px; }
.study-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.study-authors { margin-top: 16px; color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.study-conclusion { background: var(--highlight); padding: clamp(16px, 3vw, 24px); border-radius: 14px; }
.study-content h2, .study-source h2 { font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.25; }
.study-content p, .study-source p { margin-top: 8px; max-width: 70ch; line-height: 1.7; }
.study-content p + p { margin-top: 12px; }
.study-source { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.study-source .links { margin-top: 10px; color: var(--accent); }
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .bar { min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
  .brand { gap: 7px; }
  .hero { display: block; min-height: auto; }
  .collage { position: relative; height: clamp(160px, 48vw, 250px); }
  .hero-content { padding-block: 0 26px; margin-top: -18px; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); padding-block: 24px 48px; }
  .topics { display: flex; flex-wrap: wrap; }
  .topic-links { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
