@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,700&display=swap");

:root {
  color-scheme: light;
  --bg: hsl(80 35% 96%);
  --ink: hsl(132 18% 15%);
  --muted: hsl(132 10% 36%);
  --accent: hsl(146 48% 33%);
  --accent-soft: hsl(80 45% 90%);
  --teal: hsl(163 44% 29%);
  --sand: hsl(62 36% 84%);
  --card: hsl(0 0% 100%);
  --shadow: 0 28px 80px rgba(29, 38, 23, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

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

body {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  background: linear-gradient(to bottom, hsl(80 40% 80%) 0%, transparent 55%), var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: hsl(150 52% 30%);
}

a:visited {
  color: hsl(168 36% 30%);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6vw 12px;
  gap: 24px;
}

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

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: conic-gradient(from 30deg, #ff6b3b, #f0d9c4, #1f6d6c, #ff6b3b);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.logo-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-sub {
  color: var(--muted);
  font-size: 0.85rem;
}

.logo img {
  width: 64px;
  height: 64px;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.cta {
  border: none;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 40px 6vw 20px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  margin-bottom: 16px;
  color: var(--teal);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions {
  margin: 22px 0 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  font-family: inherit;
}

.primary,
.secondary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 107, 59, 0.3);
}

.secondary {
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(31, 109, 108, 0.25);
}

.ghost {
  background: transparent;
  border: 1px solid rgba(26, 27, 31, 0.2);
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.stat-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
}

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

.hero-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  animation: floatIn 0.9s ease both;
}

.orbital {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(26, 27, 31, 0.2);
  animation: spin 12s linear infinite;
}

.orbit:nth-child(2) {
  inset: 18px;
  animation-duration: 16s;
}

.orbit:nth-child(3) {
  inset: 40px;
  animation-duration: 20s;
}

.core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  background: radial-gradient(circle, #ff6b3b 0%, #ffb493 50%, #ffffff 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 28px rgba(255, 107, 59, 0.35);
}

.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-card-text h2 {
  font-size: 1.4rem;
}

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

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

.latest-post {
  padding: 30px 6vw;
  display: grid;
  gap: 18px;
}

.section-title h3 {
  font-size: 1.6rem;
}

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

.post-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.post-card ul,
.post-card ol {
  padding-left: 1.5rem;
}

.post-header {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.post-header--end {
  justify-content: flex-end;
}

.post-header-inline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.post-header-inline h4 {
  margin: 0;
}

.post-summary {
  color: var(--muted);
  line-height: 1.6;
  flex: 1 1 auto;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: flex-start;
}

.card-tag {
  display: inline-block;
  flex: 0 0 auto;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.card-tag:visited,
.card-tag:hover,
.card-tag:focus,
.card-tag:active {
  color: var(--accent);
}

.post-card pre {
  background: #1f1f24;
  color: #f9f3ed;
  padding: 14px;
  border-radius: 14px;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  font-size: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 227, 214, 0.9) rgba(255, 255, 255, 0.08);
}

.highlight {
  min-width: 0;
}

.post-card pre::-webkit-scrollbar {
  height: 10px;
}

.post-card pre::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.post-card pre::-webkit-scrollbar-thumb {
  background: rgba(255, 227, 214, 0.9);
  border-radius: 999px;
  border: 2px solid rgba(31, 31, 36, 0.8);
}

.post-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.grid {
  padding: 20px 6vw 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.grid-card {
  background: linear-gradient(140deg, #ffffff, #fff1e8);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

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

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(42, 120, 72, 0.28);
}

.button-link:visited,
.button-link:hover,
.button-link:focus,
.button-link:active {
  color: #fff;
}

.page-hero {
  padding: 40px 6vw 20px;
  display: grid;
  gap: 14px;
}

.apps-grid,
.stack {
  padding: 20px 6vw 40px;
  display: grid;
  gap: 18px;
}

.apps-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stack-grid {
  grid-template-columns: 1fr;
}

.apps-stack-single {
  grid-template-columns: 1fr;
}

.snippet-grid {
  padding: 20px 6vw 40px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.app-card,
.snippet-card {
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.app-feature {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.app-feature-icon {
  min-width: 0;
}

.app-feature-text {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.snippet-card pre {
  background: #1f1f24;
  color: #f9f3ed;
  padding: 14px;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 227, 214, 0.9) rgba(255, 255, 255, 0.08);
}

.snippet-card pre::-webkit-scrollbar {
  height: 10px;
}

.snippet-card pre::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.snippet-card pre::-webkit-scrollbar-thumb {
  background: rgba(255, 227, 214, 0.9);
  border-radius: 999px;
  border: 2px solid rgba(31, 31, 36, 0.8);
}

.site-footer {
  padding: 24px 6vw 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(26, 27, 31, 0.1);
}

.footer-title {
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}


@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

  .nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-row {
    flex-direction: column;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .app-feature {
    grid-template-columns: 1fr;
  }
}
