:root {
  --ink: #101013;
  --ink-soft: #18181d;
  --paper: #f7f5f2;
  --paper-deep: #eeebe6;
  --white: #ffffff;
  --text: #202024;
  --muted: #67636b;
  --line: #dcd7d1;
  --accent: #d80070;
  --accent-dark: #b30061;
  --green: #16865c;
  --max: 1180px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent-dark); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--ink); color: var(--white); border-bottom: 1px solid #2b2b31; }
.header-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo { color: var(--white); text-decoration: none; font-size: 28px; font-weight: 900; letter-spacing: -1.5px; line-height: 1; }
.logo span { color: var(--accent); }
.header-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; }
.header-nav a { color: #d8d5dc; text-decoration: none; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--white); }
.header-nav .trial-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
}
.header-nav .trial-link:hover { background: #c50068; }

.blog-hero { padding: 64px 24px 54px; background: radial-gradient(circle at 82% 30%, rgba(236,8,124,.09), transparent 34%), var(--ink); color: var(--white); }
.blog-hero-inner { width: min(var(--max), 100%); margin: 0 auto; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -0.035em; }
.blog-hero h1 { max-width: 840px; margin-bottom: 24px; font-size: clamp(46px, 7vw, 88px); }
.blog-hero h1 em { color: var(--accent); font-style: normal; }
.blog-hero p { max-width: 690px; margin: 0; color: #c8c4cc; font-size: 20px; line-height: 1.65; }

.blog-main { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 52px 0 64px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.section-heading p { max-width: 430px; margin: 0; color: var(--muted); font-size: 15px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.article-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 26px; }
.card-meta, .article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.card-meta .category { color: var(--accent-dark); }
.article-card h2, .article-card h3 { margin: 16px 0 12px; font-size: 27px; line-height: 1.2; }
.article-card h2 a, .article-card h3 a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .25s ease; }
.article-card p { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.read-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--accent-dark); font-size: 14px; font-weight: 800; text-decoration: none; }
.read-link::after { content: "→"; font-size: 20px; transition: transform .2s ease; }
.read-link:hover::after { transform: translateX(4px); }

.guide-strip { margin-top: 44px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--paper-deep); border-radius: 20px; }
.guide-strip h2 { margin: 0 0 8px; font-size: 27px; }
.guide-strip p { margin: 0; color: var(--muted); font-size: 15px; }
.guide-strip .read-link { margin-top: 14px; }
.button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.button:hover { background: #c50068; color: var(--white); }

.breadcrumbs { background: var(--ink); color: #aaa5af; border-top: 1px solid #29292e; }
.breadcrumbs ol {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 12px;
}
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #66616b; }
.breadcrumbs a { color: #d8d5dc; text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: #8e8993; }

.article-hero { padding: 48px 24px 0; background: var(--ink); color: var(--white); }
.article-hero-inner { width: min(1040px, 100%); margin: 0 auto; }
.article-hero .eyebrow { margin-bottom: 18px; color: #ff5ca8; }
.article-hero h1 { max-width: 960px; margin-bottom: 24px; font-size: clamp(40px, 5.7vw, 68px); }
.article-deck { max-width: 790px; margin: 0 0 25px; color: #c8c4cc; font-size: 20px; line-height: 1.65; }
.article-meta { padding-bottom: 32px; color: #aaa5af; }
.article-hero figure { margin: 0; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px 20px 0 0; }
.article-hero figcaption { padding: 10px 0 14px; color: #8e8993; font-size: 12px; }

.article-layout {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) 210px;
  justify-content: space-between;
  gap: 48px;
}
.article-content { min-width: 0; }
.article-content > p:first-child { font-size: 21px; line-height: 1.7; color: #363239; }
.article-content h2 { margin: 52px 0 18px; font-size: 34px; scroll-margin-top: 100px; }
.article-content h3 { margin: 34px 0 12px; font-size: 23px; }
.article-content p { margin: 0 0 22px; }
.article-content ul, .article-content ol { margin: 0 0 26px; padding-left: 25px; }
.article-content li { margin-bottom: 10px; padding-left: 5px; }
.article-content a { color: var(--accent-dark); font-weight: 650; }
.article-content strong { color: #141217; }
.article-content blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--accent);
  background: var(--paper-deep);
  color: #38343b;
  font-size: 19px;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.note {
  margin: 30px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font-size: 15px;
}
.note strong { display: block; margin-bottom: 6px; }
.note p:last-child { margin-bottom: 0; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.comparison-wrap { overflow-x: auto; margin: 26px 0 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
th, td { padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--ink); color: var(--white); }
tr:last-child td { border-bottom: 0; }

.article-aside { align-self: start; position: sticky; top: 30px; }
.toc { padding-top: 4px; }
.toc strong { display: block; margin-bottom: 14px; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.toc li { margin-bottom: 12px; padding-left: 3px; }
.toc a { text-decoration: none; }
.aside-help { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.aside-help p { color: var(--muted); }
.aside-help a { color: var(--accent-dark); font-weight: 800; }

.article-end { width: min(var(--reading), calc(100% - 48px)); margin: -20px auto 52px; }
.sources { padding-top: 30px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 22px; }
.sources ul { padding-left: 20px; color: var(--muted); font-size: 14px; }
.sources li { margin-bottom: 10px; }
.next-reading { margin-top: 36px; padding: 28px; border: 1px solid #303036; background: var(--ink); color: var(--white); border-radius: 16px; }
.next-reading span { color: #ff5ca8; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.next-reading h2 { margin: 10px 0 12px; font-size: 27px; }
.next-reading p { color: #bdb8c2; font-size: 14px; }
.next-reading a { color: var(--white); font-weight: 800; }

.site-footer { background: var(--ink); color: var(--white); }
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-inner p { margin: 8px 0 0; color: #918b96; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 24px; font-size: 13px; }
.footer-links a { color: #d8d5dc; }

@media (hover: hover) {
  .article-card:hover { transform: translateY(-4px); border-color: #cec6cd; box-shadow: 0 16px 36px rgba(42,25,36,.08); }
  .article-card:hover img { transform: scale(1.025); }
  .article-card:hover h2 a, .article-card:hover h3 a { text-decoration-color: var(--accent); }
}

@media (max-width: 900px) {
  .header-nav { gap: 18px; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .article-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .article-card:last-child img { height: 100%; aspect-ratio: auto; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { display: none; }
  .article-end { width: min(100% - 48px, var(--reading)); margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { width: min(100% - 32px, var(--max)); min-height: 70px; gap: 14px; }
  .logo { font-size: 25px; }
  .header-nav { gap: 14px; }
  .header-nav > a:not(.trial-link) { display: none; }
  .header-nav .trial-link { min-height: 38px; padding: 0 14px; font-size: 12px; }
  .blog-hero { padding: 46px 20px 42px; }
  .blog-hero h1 { font-size: 45px; }
  .blog-hero p, .article-deck { font-size: 17px; }
  .blog-main { width: min(100% - 32px, var(--max)); padding: 38px 0 48px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card:last-child { grid-column: auto; display: flex; }
  .article-card:last-child img { height: auto; aspect-ratio: 16 / 9; }
  .guide-strip { display: block; padding: 25px; }
  .guide-strip .button { margin-top: 22px; }
  .breadcrumbs ol { width: calc(100% - 32px); }
  .article-hero { padding: 34px 16px 0; }
  .article-hero h1 { font-size: 39px; }
  .article-meta { padding-bottom: 24px; }
  .article-hero img { border-radius: 12px 12px 0 0; }
  .article-layout { width: calc(100% - 32px); padding: 30px 0 44px; }
  .article-content > p:first-child { font-size: 18px; }
  .article-content h2 { margin-top: 42px; font-size: 29px; }
  .article-content h3 { font-size: 21px; }
  .article-content blockquote { padding: 20px; font-size: 17px; }
  .article-end { width: calc(100% - 32px); margin-top: -16px; margin-bottom: 44px; }
  .footer-inner { width: calc(100% - 32px); display: block; }
  .footer-links { justify-content: flex-start; margin-top: 24px; }
  th, td { padding: 12px; min-width: 120px; }
}

@media print {
  .site-header, .breadcrumbs, .article-aside, .next-reading, .site-footer { display: none; }
  body, .article-hero { background: white; color: black; }
  .article-hero { padding: 0; }
  .article-hero h1, .article-deck { color: black; }
  .article-layout { display: block; width: 100%; padding-top: 20px; }
  a { color: black !important; }
}
