:root {
  --ink: #18211a;
  --muted: #5f695f;
  --paper: #f4f3ed;
  --surface: #ffffff;
  --line: #d9ddd6;
  --accent: #334d39;
  --accent-dark: #213629;
  --warm: #d9c99d;
  --focus: #955f00;
  --shadow: 0 12px 30px rgba(22, 33, 25, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

button, input { font: inherit; }

button { cursor: pointer; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 10px 14px;
  z-index: 100;
}

.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 243, 237, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: white;
  background: var(--accent);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: .78rem; }

nav { display: flex; gap: 24px; }
nav a { text-decoration: none; font-weight: 650; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero {
  padding: 86px 0 72px;
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 201, 157, .45), transparent 26rem),
    linear-gradient(160deg, #eef0e9, var(--paper));
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  align-items: end;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.12; }
h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  letter-spacing: -.045em;
}
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.035em; }
h3 { margin-top: 0; }

.hero-copy {
  max-width: 720px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 1.15rem;
}

.search-box {
  max-width: 780px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.search-box:focus-within {
  outline: 3px solid rgba(149, 95, 0, .25);
  border-color: var(--focus);
}

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.search-box span:last-child { font-size: 1.6rem; }

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-actions button, .filter {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ink);
}

.quick-actions button:hover, .filter:hover, .filter.active {
  border-color: var(--accent);
  color: white;
  background: var(--accent);
}

.status-panel {
  padding: 26px;
  background: var(--accent-dark);
  color: white;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.status-panel h2 { font-size: 1.2rem; letter-spacing: 0; }
.status-panel dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0;
}
.status-panel dl div {
  padding-right: 10px;
  border-right: 1px solid rgba(255,255,255,.2);
}
.status-panel dl div:last-child { border-right: 0; }
.status-panel dt { font-size: 1.7rem; font-weight: 800; }
.status-panel dd { margin: 0; opacity: .72; font-size: .75rem; }
.status-panel p { margin-bottom: 0; color: rgba(255,255,255,.78); }

.directory { padding: 76px 0 88px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

#result-summary { margin: 0; color: var(--muted); }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(22, 33, 25, .035);
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.category {
  color: var(--accent);
  font-weight: 800;
  font-size: .73rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.access-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: #edf0eb;
  font-size: .7rem;
  font-weight: 750;
}

.resource-card h3 { margin: 18px 0 10px; font-size: 1.3rem; }
.resource-card p { color: var(--muted); }

.card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.verified {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .76rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}
.resource-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.empty-state {
  padding: 52px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.study-section {
  padding: 76px 0;
  color: white;
  background: var(--accent-dark);
}

.coming-soon {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: .78rem;
}

.study-section .eyebrow { color: var(--warm); }
.study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.study-grid article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
}
.study-grid p { color: rgba(255,255,255,.72); }

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding-top: 82px;
  padding-bottom: 82px;
}
.about-section p { color: var(--muted); font-size: 1.05rem; }

footer {
  padding: 44px 0;
  color: white;
  background: #111712;
}

.footer-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 60px;
}

footer p { color: rgba(255,255,255,.65); }
.disclaimer p { margin-bottom: 0; font-size: .86rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero-grid, .about-section { grid-template-columns: 1fr; }
  .resource-grid, .study-grid { grid-template-columns: repeat(2, 1fr); }
  .status-panel { max-width: 620px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav { display: none; }
  .hero { padding-top: 58px; }
  .resource-grid, .study-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .brand small { display: none; }
  .status-panel dl { gap: 8px; }
}
