:root {
  color-scheme: dark;
  --orange-pantone: #fb6107;
  --citrine: #f3de2c;
  --apple-green: #7cb518;
  --avocado: #5c8001;
  --xanthous: #fbb02d;
  --bg: #0e0a02;
  --fg: #fff9e8;
  --muted: rgba(250, 239, 194, 0.75);
  --panel: rgba(32, 28, 8, 0.9);
  --panel-alt: rgba(92, 128, 1, 0.65);
  --border: rgba(243, 222, 44, 0.35);
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fg);
  background: radial-gradient(circle at 15% 20%, rgba(124, 181, 24, 0.35), transparent 45%),
    radial-gradient(circle at 80% -5%, rgba(251, 176, 45, 0.35), transparent 50%),
    linear-gradient(160deg, #070502, var(--bg));
  padding: clamp(1rem, 3vw, 2.5rem);
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.3rem;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(243, 222, 44, 0.1), transparent 60%);
  z-index: -1;
}

.layout,
.site-header,
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(120deg, rgba(92, 128, 1, 0.95), rgba(124, 181, 24, 0.8));
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(243, 222, 44, 0.6);
  background: rgba(124, 181, 24, 0.15);
  font-size: 1.6rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--citrine);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--orange-pantone);
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.panel {
  background: var(--panel);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.35);
}

.intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.intro .tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.intro .bio {
  color: var(--muted);
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.stats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stats-list li {
  padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(243, 222, 44, 0.35);
  background: rgba(92, 128, 1, 0.25);
}

.stat-value {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
}

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

.featured-post {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(251, 176, 45, 0.4);
  background: linear-gradient(120deg, rgba(251, 97, 7, 0.85), rgba(251, 176, 45, 0.85));
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-list li {
  border: 1px solid rgba(124, 181, 24, 0.5);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.85rem;
}

.post-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-body {
  line-height: 1.65;
  color: var(--muted);
}

.post-body h2,
.post-body h3,
.post-body h4 {
  color: var(--fg);
  margin: 1.2rem 0 0.5rem;
}

.post-body p {
  margin: 0 0 1rem;
}

.post-body ul,
.post-body ol {
  margin: 0.5rem 0 1rem 1.2rem;
}

.post-feed .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.post-card {
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(124, 181, 24, 0.25);
  background: rgba(20, 18, 6, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-link,
.text-link {
  color: var(--xanthous);
  text-decoration: none;
  font-weight: 600;
}

.empty-state {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px dashed rgba(243, 222, 44, 0.45);
  background: rgba(32, 28, 8, 0.6);
  color: var(--muted);
}

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

.collection-card {
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(251, 176, 45, 0.35);
  background: rgba(92, 128, 1, 0.35);
}

.collection-count {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.tool-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.tool-list li {
  padding: 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(243, 222, 44, 0.25);
  background: rgba(32, 28, 8, 0.85);
}

.tool-label {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.tool-value {
  margin: 0;
  font-size: 1.1rem;
}

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(140deg, rgba(92, 128, 1, 0.85), rgba(251, 97, 7, 0.85));
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1 1 240px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 222, 44, 0.4);
  background: rgba(9, 7, 1, 0.8);
  color: var(--fg);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--orange-pantone), var(--xanthous));
  color: #3b2500;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(125deg, rgba(32, 28, 8, 0.95), rgba(92, 128, 1, 0.75));
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.socials a {
  color: var(--citrine);
  text-decoration: none;
  font-weight: 600;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  body {
    padding: 1.25rem;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
