@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600&family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f4eee6;
  --bg-warm: #efe1d1;
  --bg-card: rgba(252, 248, 244, 0.92);
  --surface: rgba(255, 251, 247, 0.88);
  --surface-strong: rgba(248, 239, 230, 0.96);
  --ink: #241918;
  --ink-soft: #5b4742;
  --muted: #7f6961;
  --accent: #8f1e2d;
  --accent-strong: #ba3048;
  --gold: #b67b24;
  --teal: #265d6b;
  --border: rgba(95, 66, 55, 0.16);
  --border-strong: rgba(140, 95, 63, 0.28);
  --shadow: 0 24px 70px rgba(70, 36, 30, 0.12);
  --radius-xl: 2rem;
  --radius-lg: 1.45rem;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(186, 48, 72, 0.12), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(38, 93, 107, 0.1), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(182, 123, 36, 0.12), transparent 30%),
    linear-gradient(180deg, #f5efe7 0%, #f1e7db 56%, #efe0cd 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(76, 44, 35, 0.018) 0, rgba(76, 44, 35, 0.018) 1px, transparent 1px, transparent 78px),
    repeating-linear-gradient(0deg, rgba(76, 44, 35, 0.014) 0, rgba(76, 44, 35, 0.014) 1px, transparent 1px, transparent 78px),
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.4), transparent 26%),
    radial-gradient(circle at 70% 72%, rgba(255, 255, 255, 0.28), transparent 22%);
  opacity: 0.7;
  z-index: -2;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a,
button,
summary {
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 999px;
  color: #000;
  z-index: 50;
}

.skip-link:focus {
  top: 1rem;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.94), rgba(247, 239, 230, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
  box-shadow: var(--shadow);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.38), transparent 38%);
  opacity: 0.75;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(249, 243, 236, 0.72);
  backdrop-filter: blur(14px);
}

.topbar.is-scrolled {
  border-color: rgba(132, 86, 67, 0.16);
  box-shadow: 0 16px 36px rgba(59, 31, 28, 0.12);
}

.brand {
  flex: 0 1 27rem;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.nav a {
  padding: 0.72rem 1rem;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(124, 88, 68, 0.14);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.4);
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  border-color: rgba(143, 30, 45, 0.3);
  background: rgba(255, 250, 245, 0.88);
}

.section {
  margin-top: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-art,
.summary-card,
.step-card,
.starter-card,
.screenshot-card,
.faq-item,
.site-footer {
  animation: rise-in 640ms ease both;
}

.hero-copy {
  padding: 2.3rem;
}

.hero-art {
  display: grid;
  grid-template-rows: auto 1fr;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.badge,
.eyebrow,
.step-index,
.fact-card dt,
.footer-meta {
  font-family: "Chakra Petch", sans-serif;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 30, 45, 0.18);
  background: rgba(143, 30, 45, 0.06);
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
summary {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

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

h3,
summary {
  font-size: 1.35rem;
}

p {
  margin: 0;
  color: var(--ink-soft);
}

.hero-dek {
  max-width: 58ch;
  margin-top: 1rem;
  font-size: 1.08rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 1rem 1.35rem;
  min-width: 14rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #fff7f4;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 50%, #d56c3b 100%);
  box-shadow: 0 18px 34px rgba(143, 30, 45, 0.26);
}

.hero-cta:hover {
  transform: translateY(-2px);
}

.hero-note {
  margin-top: 1rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 2rem 0 0;
}

.fact-card {
  padding: 1rem;
  border: 1px solid rgba(121, 93, 73, 0.14);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.44);
}

.fact-card dt {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact-card dd {
  margin: 0.45rem 0 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
}

.hero-figure {
  padding: 1.15rem;
}

.hero-figure img {
  width: 100%;
  border-radius: 1.3rem;
  border: 1px solid rgba(99, 70, 57, 0.18);
  box-shadow: 0 18px 36px rgba(32, 16, 16, 0.16);
}

.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-side-note {
  padding: 0 1.3rem 1.4rem;
}

.hero-side-note p:last-child {
  margin-top: 0.9rem;
}

.summary-grid,
.steps-grid,
.screenshot-grid,
.footer-grid {
  display: grid;
  gap: 1rem;
}

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

.summary-card,
.step-card,
.screenshot-card,
.starter-card {
  padding: 1.45rem;
}

.summary-card h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}

.summary-card p:last-child {
  margin-top: 0.95rem;
}

.section-heading {
  max-width: 60rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin-top: 0.35rem;
}

.section-heading p:last-child {
  margin-top: 0.75rem;
  max-width: 62ch;
}

.section-heading.compact {
  margin-bottom: 0.8rem;
}

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

.step-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(182, 123, 36, 0.24);
  background: rgba(182, 123, 36, 0.08);
  color: var(--gold);
  font-size: 1rem;
}

.starter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
}

.checklist,
.mistake-list,
.footer-links {
  margin: 0;
  padding-left: 1.15rem;
}

.checklist li,
.mistake-list li,
.footer-links li {
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

.checklist li:first-child,
.mistake-list li:first-child {
  margin-top: 0;
}

.fact-callout {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(38, 93, 107, 0.16);
  border-radius: 1.1rem;
  background: rgba(38, 93, 107, 0.05);
}

.fact-callout p:last-child {
  margin-top: 0.35rem;
}

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

.screenshot-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.screenshot-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(104, 73, 57, 0.16);
}

.screenshot-copy {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  padding: 1rem 1.2rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 0.8rem;
  max-width: 66ch;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem;
}

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

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

.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-meta {
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (max-width: 1080px) {
  .hero,
  .starter-grid,
  .summary-grid,
  .steps-grid,
  .screenshot-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(var(--max-width), calc(100% - 1rem));
    padding-top: 0.6rem;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 1.5rem;
  }

  .brand {
    max-width: 18rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav a {
    padding: 0.68rem 0.9rem;
  }

  .hero-copy,
  .hero-art,
  .summary-card,
  .step-card,
  .starter-card,
  .screenshot-card,
  .faq-item,
  .site-footer {
    border-radius: 1.3rem;
  }

  .hero-copy,
  .summary-card,
  .step-card,
  .starter-card,
  .screenshot-card,
  .site-footer {
    padding: 1.25rem;
  }

  .hero-side-note {
    padding: 0 1.1rem 1.2rem;
  }

  .hero-cta {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.1rem);
  }

  h2 {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }
}
