@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: #f3f4f6;
  --ink: #111827;
  --muted: #6b7280;
  --accent: #fdb813;
  --accent-dark: #f59e0b;
  --link: #2563eb;
  --link-dark: #1e3a8a;
  --heading: #1e3a8a;
  --success: #16a34a;
  --card: #ffffff;
  --stroke: #e5e7eb;
  --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow: 0 16px 32px rgba(17, 24, 39, 0.14);
  --radius-card: 16px;
}

* {
  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%, rgba(253, 184, 19, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
    var(--bg);
  line-height: 1.7;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-dark);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

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

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

.site-header {
  padding: 32px 0 16px;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(243, 244, 246, 0.96), rgba(243, 244, 246, 0.7));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  z-index: 10;
}

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

.logo {
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  gap: 8px;
}

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

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

.nav a {
  color: var(--link-dark);
}

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

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

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

h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  margin: 16px 0;
  line-height: 1.15;
  color: var(--heading);
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-content {
  max-width: 560px;
}

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

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: var(--accent-dark);
}

.btn.ghost {
  background: transparent;
  color: var(--link-dark);
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--link-dark);
}

.hero-card {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--stroke);
}

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

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

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

.text-link:hover {
  color: var(--link-dark);
}

.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  max-width: 760px;
}

.section-header h2 {
  font-family: "Fraunces", serif;
  margin: 0;
  color: var(--heading);
  line-height: 1.2;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.section-header p:first-of-type {
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.section-header p:nth-of-type(2) {
  color: var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
}

.section-header p:nth-of-type(n + 3) {
  color: var(--muted);
}

.section-header p:only-of-type {
  color: var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0;
}

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

.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: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cta {
  background: linear-gradient(130deg, rgba(253, 184, 19, 0.16), rgba(37, 99, 235, 0.08));
  padding: 32px;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--stroke);
}

.site-footer {
  padding: 48px 0 32px;
  background: var(--bg);
  margin-top: 48px;
  border-top: 1px solid var(--stroke);
}

.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(253, 184, 19, 0.3) 0%, rgba(253, 184, 19, 0) 70%);
  top: 12%;
  left: 6%;
}

.orb-b {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0) 70%);
  top: 60%;
  right: 6%;
}

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

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

.article-hero {
  padding: 48px 0 16px;
}

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

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

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

.article-card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}

.ad-slot {
  background: #ffffff;
  border: 1px dashed var(--stroke);
  border-radius: var(--radius-card);
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

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

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
}

th {
  background: var(--bg);
  font-weight: 600;
}

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

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

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

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

.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(253, 184, 19, 0.18);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.auto-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--stroke);
  background: #ffffff;
}

.auto-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auto-image--hero,
.auto-image--inline {
  aspect-ratio: 3 / 2;
}

figure.auto-image {
  margin: 0 0 16px;
}

figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

p {
  margin: 0 0 16px;
}

h2,
h3,
h4 {
  margin: 0 0 16px;
  color: var(--heading);
  line-height: 1.25;
}

ul,
ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

@media (min-width: 767px) {
  .hero.hero--home {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    column-gap: 48px;
    row-gap: 24px;
    align-items: start;
    padding: 64px 0 64px;
    position: relative;
  }

  .hero.hero--home::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
    justify-self: stretch;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 0;
  }

  .hero.hero--home .auto-image--hero {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }

  .hero.hero--home .auto-image--hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero.hero--home .hero-content {
    grid-column: 1;
    grid-row: 2;
    padding: 0 32px 32px;
    position: relative;
    z-index: 1;
  }

  .hero.hero--home .hero-card {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
  }
}

@media (max-width: 766px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

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