:root {
  --ink: #1b1b1b;
  --muted: #545454;
  --accent: #b24a2f;
  --accent-2: #1f5a7a;
  --bg: #f6f3ee;
  --card: rgba(255, 255, 255, 0.75);
  --shadow: 0 24px 60px rgba(26, 26, 26, 0.12);
  --border: rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", "Noto Sans", sans-serif;
  background: radial-gradient(circle at top left, #fef6e6, #f1efe9 40%, #e8ecef 100%);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent);
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='noise'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/></filter><rect width='240' height='240' filter='url(%23noise)' opacity='0.08'/></svg>");
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

.hero {
  position: relative;
  padding: 5rem 6vw 4rem;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.brand-label {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-family: "Spectral", "Noto Serif SC", serif;
  font-weight: 500;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
}

.tag-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-row span {
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.6);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card-inner {
  display: grid;
  gap: 1.2rem;
}

.card-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.card-desc {
  color: var(--muted);
}

.hero-stat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.2rem;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 600;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 4rem 6vw;
}

.section-header {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.featured-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 220px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(26, 26, 26, 0.18);
}

.content-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--accent-2);
}

.content-title {
  font-size: 1.2rem;
  font-family: "Spectral", "Noto Serif SC", serif;
}

.content-summary {
  color: var(--muted);
  font-size: 0.95rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-list span {
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.6);
}

.card-link {
  margin-top: auto;
  font-weight: 500;
  color: var(--accent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.search {
  display: grid;
  gap: 0.4rem;
}

.search input {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.filter-group span {
  font-size: 0.9rem;
  color: var(--muted);
}

.filter-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.footer {
  padding: 3rem 6vw 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.footer h2 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

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

@media (max-width: 720px) {
  .hero {
    padding: 4rem 6vw 2rem;
  }

  .filters {
    align-items: stretch;
  }

  .filter-group {
    gap: 0.4rem;
  }
}
