:root {
  color-scheme: light;
  --ink: #102018;
  --muted: #5c6c62;
  --line: #dce6dc;
  --surface: #f3f7f1;
  --white: #fff;
  --forest: #143d2f;
  --green: #2f8747;
  --lime: #d9f26b;
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); line-height: 1.55; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #82a51c; outline-offset: 3px; }
.directory-header { min-height: 72px; padding: 0 max(20px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--white); border-bottom: 1px solid var(--line); }
.directory-header img { width: 140px; display: block; }
.directory-header > a:last-child { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--forest); font-size: 13px; font-weight: 900; text-decoration: none; }
main { width: min(calc(100% - 36px), 1180px); margin: 0 auto; padding: 46px 0 112px; }
.breadcrumbs { margin-bottom: 34px; color: var(--muted); font-size: 12px; font-weight: 750; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #9baa9e; }
.breadcrumbs a { min-height: 40px; display: inline-flex; align-items: center; }
.directory-hero { max-width: 790px; padding: 34px 0 54px; }
.directory-hero > p, .results-heading p, .category-group > div:first-child p { margin: 0; color: var(--green); font-size: 10px; font-weight: 950; letter-spacing: .16em; }
.directory-hero h1 { margin: 17px 0 22px; font-size: clamp(43px, 7.5vw, 80px); line-height: .99; letter-spacing: -.065em; }
.directory-hero > span { display: block; max-width: 700px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.category-browser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 76px; }
.category-group { min-width: 0; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.category-group h2 { margin: 5px 0 18px; font-size: 23px; letter-spacing: -.04em; }
.category-links { display: flex; flex-wrap: wrap; gap: 8px; }
.category-links a { min-height: 44px; padding: 9px 11px 9px 14px; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; background: var(--surface); border: 1px solid transparent; font-size: 13px; font-weight: 850; text-decoration: none; }
.category-links a[aria-current="page"] { background: var(--forest); color: var(--white); }
.category-links small { min-width: 23px; height: 23px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--white); color: var(--forest); font-size: 10px; }
.directory-results { scroll-margin-top: 24px; }
.results-heading { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.results-heading h2 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; }
.results-heading > span { min-width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-size: 14px; font-weight: 950; }
.content-grid { display: grid; gap: 22px; }
.content-card { min-height: 480px; display: grid; grid-template-columns: minmax(280px, .76fr) minmax(360px, 1.24fr); overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 28px; }
.poster { min-height: 480px; overflow: hidden; background: #dce7d9; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content-card-copy { padding: clamp(30px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 10px; font-weight: 950; letter-spacing: .14em; }
.taxonomy-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.taxonomy-tags a { min-height: 34px; padding: 6px 10px; display: inline-flex; align-items: center; border-radius: 999px; background: #eaf2e7; color: var(--forest); font-size: 11px; font-weight: 850; text-decoration: none; }
.content-card h2 { margin: 18px 0 18px; font-size: clamp(32px, 4vw, 54px); line-height: 1.08; letter-spacing: -.055em; }
.content-card h2 a { color: inherit; text-decoration: none; }
.content-card-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.75; }
.topic-tags { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.topic-tags small { padding: 7px 10px; background: var(--surface); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.actions a { min-height: 48px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--white); background: var(--forest); border: 1px solid var(--forest); border-radius: 13px; font-size: 12px; font-weight: 900; text-decoration: none; }
.actions .secondary { color: var(--forest); background: var(--white); border-color: #bdcbbc; }
.empty { padding: 38px; background: var(--white); color: var(--muted); border-radius: 20px; }
footer { padding: 38px max(20px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1fr auto; gap: 5px 24px; color: #d9e4dc; background: #102018; }
footer strong { color: var(--white); }
footer span { color: #aebdb2; font-size: 13px; }
footer nav { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 18px; }
footer a { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }

@media (max-width: 720px) {
  .directory-header { min-height: 64px; }
  .directory-header img { width: 120px; }
  main { padding-top: 24px; }
  .breadcrumbs { margin-bottom: 16px; }
  .directory-hero { padding: 26px 0 42px; }
  .directory-hero > span { font-size: 15px; }
  .category-browser { grid-template-columns: 1fr; margin-bottom: 58px; }
  .category-group { padding: 22px 18px; border-radius: 20px; }
  .content-card { min-height: 0; grid-template-columns: 1fr; border-radius: 22px; }
  .poster { min-height: 0; aspect-ratio: 4 / 3; }
  .content-card-copy { padding: 30px 24px; }
  .actions { flex-direction: column; }
  footer { grid-template-columns: 1fr; }
  footer nav { grid-row: auto; grid-column: auto; justify-content: start; margin-top: 16px; }
}

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