:root {
  --ink: #1a1a2e;
  --ink-light: #2d2d44;
  --terracotta: #c4654a;
  --terracotta-light: #d4876f;
  --terracotta-pale: #f0d5cc;
  --warm: #fffaf5;
  --warm-mid: #fff5ed;
  --linen: #f5ede4;
  --stone: #e8ddd3;
  --text: #3a3a4a;
  --text-light: #6b6b7b;
  --text-muted: #9a9aaa;
  --white: #fff;
  --shadow: 0 16px 40px rgba(26, 26, 46, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, sans-serif;
  background: var(--warm);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--terracotta);
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--ink);
  color: var(--warm);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  z-index: 10000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 250, 245, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 221, 211, 0.9);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: url("/favicon.svg?v=999") center/cover no-repeat;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.logo-role {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.84rem;
}

.nav-links a:hover {
  background: var(--linen);
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--warm) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-cta:hover {
  background: var(--terracotta);
}

main {
  padding: 3rem 1.25rem 5rem;
}

.article-shell {
  max-width: 820px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--terracotta-pale);
  color: var(--terracotta);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 1rem 0 1rem;
}

.article-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.lead-card,
.search-box,
.step-box,
.related-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.04);
}

.lead-card {
  padding: 1.5rem 1.6rem;
  margin-bottom: 2rem;
}

.lead-card p:last-child {
  margin-bottom: 0;
}

.article-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 3rem 0 1rem;
}

.article-content h3 {
  font-size: 1.18rem;
  color: var(--ink-light);
  margin: 1.8rem 0 0.8rem;
}

.article-content p {
  margin: 0 0 1.2rem;
  color: var(--text-light);
  font-size: 1.02rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
}

.article-content li {
  margin-bottom: 0.7rem;
  color: var(--text-light);
}

.article-content strong {
  color: var(--ink);
}

.search-box {
  padding: 1.35rem 1.45rem;
  margin: 2rem 0;
}

.search-box h3 {
  margin: 0 0 0.75rem;
}

.warning-box,
.highlight-box {
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--terracotta);
  background: var(--warm-mid);
  border-radius: 0 16px 16px 0;
}

.warning-box p,
.highlight-box p {
  margin: 0;
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.step-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  align-items: start;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--terracotta-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 700;
}

.step-box h4 {
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.step-box p {
  margin: 0;
}

.cta-box {
  margin: 3rem 0;
  padding: 2rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--ink), #24243e);
  color: var(--warm);
  box-shadow: var(--shadow);
}

.cta-box h3 {
  margin: 0 0 0.8rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  color: var(--warm);
}

.cta-box p {
  margin: 0 0 1.2rem;
  color: rgba(255, 250, 245, 0.84);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--warm) !important;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cta-button:hover {
  background: var(--terracotta-light);
}

.related-articles {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--stone);
}

.related-articles h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 0 1rem;
}

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

.related-card {
  padding: 1.25rem;
}

.related-card h4 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 1rem;
}

.related-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--stone);
  padding: 2rem 1.25rem 5rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.footer-links a {
  font-size: 0.84rem;
  color: var(--text);
}

.footer-legal {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cta-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--warm) !important;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 999;
}

.cta-float:hover {
  background: var(--terracotta);
}

.cta-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(1.45);
  }
}

@media (max-width: 760px) {
  .nav-bar {
    justify-content: center;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }

  .nav-cta {
    width: 100%;
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .cta-float {
    left: 14px;
    right: 14px;
    justify-content: center;
  }
}
