:root {
  --bg: #f6f1e8;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-strong: #fffaf2;
  --text: #1a2233;
  --muted: #5d6472;
  --line: rgba(31, 41, 55, 0.12);
  --brand: #d45113;
  --brand-dark: #a83a0a;
  --accent: #0f766e;
  --accent-soft: #dff6f1;
  --shadow: 0 20px 60px rgba(44, 34, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(212, 81, 19, 0.16), transparent 24%),
    radial-gradient(circle at right 20%, rgba(15, 118, 110, 0.14), transparent 20%),
    linear-gradient(180deg, #fbf6ee 0%, #f2eadc 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.topbar,
.hero-panel .panel-card,
.search-strip,
.content-section,
.submit-card {
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #ef8a27);
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a,
.text-link {
  color: var(--muted);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.nav-cta,
.button-primary {
  background: var(--brand);
  color: white;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  padding: 54px 10px 26px;
}

.eyebrow,
.section-kicker,
.panel-label,
.mini-tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.eyebrow,
.section-kicker,
.panel-label {
  color: var(--brand);
}

.hero h1,
.search-strip h2,
.section-heading h2,
.split-layout h2,
.submit-section h2 {
  margin: 10px 0 0;
  font-family: "Source Serif 4", serif;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 5.1rem);
  max-width: 11ch;
}

.hero-text {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.pill-row,
.hero-stats,
.filter-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 28px;
}

.featured-action {
  margin-top: 18px;
}

.hero-stats {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero-stats li {
  min-width: 130px;
}

.hero-stats strong,
.stack-card h3,
.category-card h3,
.resource-list strong {
  display: block;
}

.hero-stats span,
.stack-card p,
.category-card p,
.resource-list span,
.listing-card p,
.panel-card p,
.submit-card label,
.feature-list {
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.panel-card {
  padding: 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel-highlight {
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.95), rgba(255, 251, 244, 0.9));
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pill,
.filter-chip,
.meta-tag,
.mini-tag {
  border-radius: 999px;
  padding: 8px 12px;
}

.pill,
.meta-tag {
  background: var(--accent-soft);
  color: var(--accent);
}

.search-strip,
.content-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.search-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  margin: 18px 0 22px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font: inherit;
}

.filter-chip.is-active {
  background: var(--text);
  color: white;
}

.filter-chip.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.content-section {
  padding: 28px;
  margin-top: 22px;
}

.section-heading,
.split-layout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.card-grid,
.category-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-card,
.category-card,
.stack-card {
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(14px);
  opacity: 0;
  animation: riseIn 0.55s ease forwards;
}

.listing-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.listing-card-empty {
  justify-content: center;
  min-height: 220px;
}

.listing-meta,
.listing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.listing-actions a {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.action-primary {
  background: var(--brand);
  color: white;
}

.action-secondary {
  border: 1px solid var(--line);
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split-layout {
  align-items: start;
}

.split-layout > * {
  flex: 1;
}

.stack-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.mini-tag {
  display: inline-block;
  background: #efe3cd;
  color: #935f00;
}

.resource-panel {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffaf0, #fdf4e4);
  border: 1px solid var(--line);
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.resource-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.08);
}

.resource-list a {
  white-space: nowrap;
  color: var(--brand-dark);
  font-weight: 700;
}

.submit-section {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 22px;
}

.feature-list {
  margin: 18px 0 0;
  padding-left: 18px;
  line-height: 1.8;
}

.submit-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.submit-card label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.submit-card input,
.submit-card select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  background: white;
  color: var(--text);
}

.submit-card input[readonly] {
  background: #f7f2ea;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .submit-section,
  .split-layout,
  .search-strip,
  .section-heading,
  .topbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .card-grid,
  .category-grid,
  .panel-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 18px, 100%);
    margin-top: 10px;
  }

  .topbar,
  .content-section,
  .search-strip {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding: 32px 0 8px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .card-grid,
  .category-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .resource-list li {
    align-items: flex-start;
    flex-direction: column;
  }
}
