:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --text: #17201c;
  --muted: #5d6a64;
  --line: #d9e0dc;
  --accent: #19715f;
  --accent-dark: #0e4f43;
  --accent-soft: #dceee8;
  --link: #155f91;
  --shadow: 0 16px 45px rgba(21, 41, 34, 0.08);
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f1f4f3;
  padding: 0.08rem 0.3rem;
}

.site-header {
  background:
    linear-gradient(135deg, rgba(25, 113, 95, 0.12), rgba(71, 133, 171, 0.1)),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar,
main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  color: var(--text);
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--muted);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 54px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 2rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.contribute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 0 15px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button:hover,
button:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.small {
  min-height: 36px;
  font-size: 0.9rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.stats div {
  background: var(--surface);
  padding: 22px;
}

.stats span {
  display: block;
  margin-bottom: 3px;
  font-size: 1.65rem;
  font-weight: 850;
}

.stats p,
.result-row p,
footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.section {
  padding: 48px 0;
}

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

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 220px;
  gap: 12px;
  margin-bottom: 16px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.result-row button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--link);
  padding: 0;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.model-card,
.resource-card,
.contribute {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.model-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.model-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.category {
  flex: none;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.notes {
  margin-bottom: 0;
  color: var(--muted);
}

.model-date {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.link-groups {
  display: grid;
  gap: 10px;
}

.link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.link-label {
  min-width: 70px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px 9px;
  font-size: 0.88rem;
  font-weight: 700;
}

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

.resource-card {
  padding: 18px;
}

.resource-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.contribute {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 26px;
}

footer {
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .topbar,
  .section-heading,
  .result-row,
  .contribute {
    align-items: start;
    flex-direction: column;
  }

  .stats,
  .filters,
  .model-grid,
  .resource-list,
  .contribute {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 38px;
  }

  h1 {
    font-size: 2.7rem;
  }
}
