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

:root {
  --bg: #f7f3e8;
  --ink: #0f1a22;
  --muted: #3e4b57;
  --accent: #ef7b45;
  --accent-dark: #c85b2b;
  --card: #ffffff;
  --stroke: rgba(15, 26, 34, 0.12);
  --shadow: 0 14px 40px rgba(15, 26, 34, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 8%, #ffe9d8 0%, transparent 42%),
    radial-gradient(circle at 90% 10%, #dfeaf2 0%, transparent 48%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 12px;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(247, 243, 232, 0.92), rgba(247, 243, 232, 0.2));
  backdrop-filter: blur(8px);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  gap: 6px;
}

.logo-accent {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 56px 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  color: var(--accent-dark);
  font-weight: 600;
}

h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  margin: 12px 0 12px;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 26, 34, 0.18);
  background: var(--accent-dark);
}

.btn.ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid rgba(239, 123, 69, 0.4);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(239, 123, 69, 0.1);
  color: var(--accent-dark);
}

.hero-card {
  background: var(--card);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 26, 34, 0.05);
}

.hero-card h2 {
  margin-top: 0;
}

.hero-card ol {
  padding-left: 18px;
  color: var(--muted);
}

.text-link {
  color: var(--accent-dark);
  font-weight: 600;
}

.section {
  padding: 36px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: "Fraunces", serif;
  margin: 0;
}

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

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

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

.card {
  background: var(--card);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 24px rgba(15, 26, 34, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 26, 34, 0.12);
}

.cta {
  background: linear-gradient(130deg, #fff2dd, #f6f9fc);
  padding: 28px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(15, 26, 34, 0.1);
}

.site-footer {
  padding: 40px 0 30px;
  background: #f0ebe0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.site-footer h4 {
  margin-top: 0;
}

.site-footer a {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.fine-print {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 24px;
}

.bg-orb {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.5;
  z-index: -1;
}

.orb-a {
  background: radial-gradient(circle, rgba(239, 123, 69, 0.35) 0%, rgba(239, 123, 69, 0) 70%);
  top: 12%;
  left: 6%;
}

.orb-b {
  background: radial-gradient(circle, rgba(72, 128, 156, 0.3) 0%, rgba(72, 128, 156, 0) 70%);
  top: 60%;
  right: 6%;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.article-hero {
  padding: 36px 0 12px;
}

.article-title {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 10px;
}

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

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 36px;
}

.article-card {
  background: var(--card);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 24px rgba(15, 26, 34, 0.08);
}

.ad-slot {
  background: linear-gradient(90deg, rgba(239, 123, 69, 0.1), rgba(72, 128, 156, 0.1));
  border: 1px dashed rgba(15, 26, 34, 0.18);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.ad-slot:empty {
  display: none;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--stroke);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 26, 34, 0.08);
  text-align: left;
}

th {
  background: rgba(15, 26, 34, 0.04);
  font-weight: 600;
}

.toc {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq h4 {
  margin-bottom: 4px;
}

.related {
  display: grid;
  gap: 12px;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(239, 123, 69, 0.12);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
