:root {
  --cream: #fbf7ec;
  --cream-deep: #f4eedc;
  --ink: #131211;
  --paper: #fff;
  --coral: #ff6b6b;
  --sun: #ffe56b;
  --mint: #b6e8c8;
  --lilac: #ddd6f5;
  --sky: #bfe7ff;
  --shadow-sm: 3px 3px 0 0 var(--ink);
  --shadow: 5px 5px 0 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  background-image:
    linear-gradient(to right, rgba(19, 18, 17, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 18, 17, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 48px, 1240px); margin-inline: auto; }
.display { font-family: 'Archivo Black', sans-serif; line-height: 0.96; text-transform: uppercase; }
.mono { font-family: 'JetBrains Mono', monospace; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 11px;
  border: 2px solid var(--ink);
  background: var(--sun);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #1f6fff; outline-offset: 3px; }
.btn.primary { background: var(--coral); }
.btn.ink { background: var(--ink); color: #fffcec; }

header.site {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 2px solid var(--ink);
  background: rgba(251, 247, 236, 0.97);
}
header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 48px, 1240px);
  min-height: 78px;
  margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}
.brand-name .name {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 21px;
  line-height: 1;
  text-transform: uppercase;
}
nav.primary { display: flex; align-items: center; gap: 20px; }
nav.primary > a, .nav-menu summary { font-size: 14px; font-weight: 700; }
nav.primary a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nav-menu { position: relative; }
.nav-menu summary { cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: '\25be'; margin-left: 7px; }
.nav-menu-panel {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 290px;
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.nav-menu-panel a { display: block; padding: 10px; }
.nav-menu-panel span { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; }

.blog-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--sky);
}
.blog-hero .container {
  display: grid;
  min-height: 510px;
  place-content: center start;
  padding-block: 72px;
}
.blog-hero h1 {
  max-width: 940px;
  margin: 20px 0 24px;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(52px, 8vw, 108px);
  line-height: 0.9;
  text-transform: uppercase;
}
.blog-hero p { max-width: 660px; margin: 0; font-size: 21px; }
.hero-stamp {
  position: absolute;
  right: max(4vw, 30px);
  bottom: 54px;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: var(--shadow);
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(8deg);
}

.blog-list { padding-block: 82px 104px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--ink);
}
.section-head h2 { margin: 0; font-family: 'Archivo Black', sans-serif; font-size: 42px; line-height: 1; text-transform: uppercase; }
.section-head p { max-width: 440px; margin: 0; }
.article-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: center;
  padding-block: 42px;
  border-bottom: 2px solid var(--ink);
}
.article-row figure { margin: 0; border: 2px solid var(--ink); background: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.article-row img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; }
.article-row h2 { max-width: 750px; margin: 14px 0; font-family: 'Archivo Black', sans-serif; font-size: clamp(32px, 5vw, 58px); line-height: 0.98; text-transform: uppercase; }
.article-row p { max-width: 720px; margin: 0 0 22px; font-size: 18px; }

.article-hero {
  border-bottom: 2px solid var(--ink);
  background: var(--lilac);
}
.article-hero .container { padding-block: 54px 62px; }
.breadcrumbs { margin-bottom: 42px; font-size: 13px; font-weight: 700; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; }
.article-hero h1 {
  max-width: 1040px;
  margin: 18px 0 24px;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.93;
  text-transform: uppercase;
}
.article-hero .dek { max-width: 800px; margin: 0; font-size: clamp(19px, 2.3vw, 25px); line-height: 1.45; }
.article-hero .byline { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; }
.article-cover { border-bottom: 2px solid var(--ink); background: var(--ink); }
.article-cover img { width: min(100% - 48px, 1240px); height: min(40vw, 480px); margin-inline: auto; object-fit: cover; object-position: center; }

.article-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 72px;
  align-items: start;
  justify-content: center;
  padding-block: 72px 108px;
}
.toc { position: sticky; top: 112px; border-top: 3px solid var(--ink); padding-top: 16px; }
.toc strong { display: block; margin-bottom: 10px; font-family: 'Archivo Black', sans-serif; text-transform: uppercase; }
.toc a { display: block; padding: 7px 0; border-bottom: 1px solid rgba(19, 18, 17, 0.24); font-size: 14px; font-weight: 600; }
.toc a:hover { background: var(--sun); }
.article-body { min-width: 0; }
.article-body > p:first-of-type { font-size: 21px; }
.article-body h2 {
  margin: 64px 0 18px;
  scroll-margin-top: 110px;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
}
.article-body h3 { margin: 34px 0 10px; scroll-margin-top: 110px; font-size: 23px; line-height: 1.2; }
.article-body p, .article-body li { font-size: 18px; }
.article-body a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li + li { margin-top: 10px; }
.quick-answer {
  margin: 34px 0 46px;
  padding: 24px 26px;
  border: 2px solid var(--ink);
  background: var(--sun);
  box-shadow: var(--shadow);
}
.quick-answer strong { display: block; margin-bottom: 8px; font-family: 'Archivo Black', sans-serif; text-transform: uppercase; }
.quick-answer p { margin: 0; }
.comparison-wrap { overflow-x: auto; margin: 30px 0; border: 2px solid var(--ink); box-shadow: var(--shadow); }
.comparison { width: 100%; min-width: 650px; border-collapse: collapse; background: var(--paper); }
.comparison th, .comparison td { padding: 16px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-align: left; vertical-align: top; }
.comparison th { background: var(--sky); font-family: 'Archivo Black', sans-serif; font-size: 14px; text-transform: uppercase; }
.comparison th:last-child { background: var(--mint); }
.comparison tr:last-child td { border-bottom: 0; }
.comparison th:last-child, .comparison td:last-child { border-right: 0; }
.note { padding-left: 14px; border-left: 5px solid var(--coral); font-size: 14px !important; }
.article-cta {
  margin: 62px 0 10px;
  padding: 30px;
  border: 3px solid var(--ink);
  background: var(--mint);
  box-shadow: var(--shadow);
}
.article-cta h2 { margin-top: 0; }
.article-cta p { max-width: 610px; }
.faq-list { margin-top: 26px; border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 2px solid var(--ink); background: rgba(255, 255, 255, 0.48); }
.faq-list summary { cursor: pointer; padding: 20px 4px; font-size: 19px; font-weight: 800; }
.faq-list details p { margin: 0; padding: 0 4px 22px; }

footer.site { border-top: 2px solid var(--ink); background: var(--ink); color: #fffcec; }
footer.site .container { padding-block: 52px 28px; }
footer.site .cols { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; gap: 46px; }
footer.site h4 { margin: 0 0 16px; font-family: 'Archivo Black', sans-serif; font-size: 13px; text-transform: uppercase; }
footer.site ul { margin: 0; padding: 0; list-style: none; }
footer.site li + li { margin-top: 10px; }
footer.site li a { font-size: 14px; opacity: 0.82; }
footer.site li a:hover { opacity: 1; text-decoration: underline; }
footer.site .bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 12px; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.article-hero h1, .blog-hero h1 { animation: rise-in 550ms ease both; }
.article-row { transition: background 160ms ease; }
.article-row:hover { background: rgba(255, 229, 107, 0.22); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 980px) {
  nav.primary > a:not(.btn), .nav-menu { display: none; }
  .article-shell { grid-template-columns: minmax(0, 760px); gap: 24px; }
  .toc { position: static; }
  .toc a { display: inline-block; margin-right: 12px; }
  .hero-stamp { opacity: 0.22; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container, header.site .row { width: min(100% - 28px, 1240px); }
  header.site .row { min-height: 70px; }
  .brand-name .name { max-width: 130px; font-size: 17px; }
  nav.primary { gap: 10px; }
  nav.primary .btn:not(.primary) { display: none; }
  nav.primary .btn.primary { min-height: 42px; padding-inline: 12px; font-size: 11px; }
  .blog-hero .container { min-height: 430px; padding-block: 52px; }
  .blog-hero h1 { font-size: 52px; }
  .blog-hero p { font-size: 18px; }
  .hero-stamp { display: none; }
  .section-head { align-items: start; flex-direction: column; }
  .article-row { grid-template-columns: 1fr; gap: 26px; }
  .article-row h2 { font-size: 38px; }
  .article-hero .container { padding-block: 34px 48px; }
  .breadcrumbs { margin-bottom: 30px; }
  .article-hero h1 { font-size: 43px; }
  .article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .article-shell { padding-block: 46px 80px; }
  .article-body p, .article-body li { font-size: 17px; }
  .quick-answer, .article-cta { padding: 20px; }
  footer.site .cols { grid-template-columns: 1fr; }
  footer.site .bottom { align-items: flex-start; flex-direction: column; }
}
