:root {
  color-scheme: dark;
  --ink: #f5ead7;
  --muted: #c9b99f;
  --ember: #e99a4b;
  --wine: #7c3347;
  --night: #100d16;
  --panel: rgba(28, 22, 35, 0.86);
  --border: rgba(233, 154, 75, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 51, 71, 0.38), transparent 34rem),
    radial-gradient(circle at 15% 90%, rgba(233, 154, 75, 0.15), transparent 26rem),
    var(--night);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 13, 22, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
}

.die-mini {
  width: 2rem;
  height: 2rem;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--night);
  font: 700 0.85rem/1 system-ui, sans-serif;
  background: var(--ember);
  clip-path: polygon(50% 0, 95% 25%, 82% 78%, 50% 100%, 18% 78%, 5% 25%);
}

.site-header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font: 0.8rem/1 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--ember);
}

/* Hero */

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem 3rem;
  text-align: center;
}

.hero .die {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  color: var(--night);
  font: 700 1.2rem/1 system-ui, sans-serif;
  background: var(--ember);
  clip-path: polygon(50% 0, 95% 25%, 82% 78%, 50% 100%, 18% 78%, 5% 25%);
  filter: drop-shadow(0 0 1rem rgba(233, 154, 75, 0.28));
}

.hero .tagline {
  margin: 0 0 0.75rem;
  color: var(--ember);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero p.lead {
  max-width: 42rem;
  margin: 1.75rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.75;
}

.page-header {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem 2rem;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.page-header p.lead {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.75;
}

/* Buttons */

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font: 600 0.9rem/1 system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ember);
  color: var(--night);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem rgba(233, 154, 75, 0.35);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
}

/* Sections */

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.prose h2 {
  text-align: left;
  margin-top: 2.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.prose {
  max-width: 46rem;
  margin: 0 auto;
}

/* Cards */

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

.card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--panel);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin: 0 0 0.65rem;
  color: var(--ember);
  font-size: 1.2rem;
  font-weight: 500;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card .tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(233, 154, 75, 0.15);
  color: var(--ember);
  font: 600 0.68rem/1 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Divider + quote */

.rule {
  width: 7rem;
  height: 1px;
  margin: 2.5rem auto;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}

blockquote.pull-quote {
  max-width: 46rem;
  margin: 1rem auto 3rem;
  text-align: center;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
}

blockquote.pull-quote cite {
  display: block;
  margin-top: 1.25rem;
  font: 600 0.75rem/1 system-ui, sans-serif;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Steps */

ol.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

ol.steps li {
  position: relative;
  padding-left: 3.75rem;
}

ol.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: var(--ink);
  font: 700 1.05rem/1 system-ui, sans-serif;
}

ol.steps h3 {
  margin: 0 0 0.4rem;
  color: var(--ember);
  font-size: 1.15rem;
  font-weight: 500;
}

ol.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* CTA banner */

.cta-banner {
  text-align: center;
  padding: 3.5rem 1.5rem;
  margin: 1rem auto 3rem;
  max-width: 1100px;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--panel);
}

.cta-banner h2 {
  margin-top: 0;
}

.cta-banner p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  line-height: 1.75;
}

/* Footer */

.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font: 0.75rem/1.8 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0.25rem 0;
}

@media (max-width: 640px) {
  .site-header nav ul {
    gap: 1rem;
  }
}
