:root {
  --paper: #fffdf7;
  --paper-deep: #f6f0df;
  --ink: #171612;
  --muted: #706b62;
  --line: #1e1d19;
  --purple: #7c4dff;
  --pink: #ff4d8d;
  --yellow: #ffd84d;
  --cyan: #5de1e6;
  --green: #90e36f;
  --content: 760px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 216, 77, 0.2), transparent 23rem),
    radial-gradient(circle at 92% 12%, rgba(93, 225, 230, 0.16), transparent 25rem),
    var(--paper);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.08rem;
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.reading-progress {
  position: fixed;
  z-index: 100;
  inset: 0 auto auto 0;
  width: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
  box-shadow: 0 1px 8px rgba(124, 77, 255, 0.35);
}

.site-header {
  width: min(1180px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 1.35rem 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Londrina Solid", Impact, sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.site-brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--line);
}

.site-brand .dot {
  color: var(--pink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.site-nav a {
  padding: 0.42rem 0.78rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-color: var(--line);
  background: white;
  outline: none;
}

.site-nav .play-link {
  border-color: var(--line);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--line);
}

.page-shell {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 5.2rem) 0 4rem;
}

.blog-hero {
  max-width: 900px;
  margin-bottom: clamp(2.5rem, 6vw, 4.8rem);
}

.eyebrow,
.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  color: #5749c8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before,
.article-kicker::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid var(--line);
  border-radius: 3px;
  background: var(--yellow);
  transform: rotate(8deg);
}

.blog-hero h1,
.article-header h1 {
  margin: 0;
  font-family: "Londrina Solid", Impact, sans-serif;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.blog-hero h1 {
  max-width: 800px;
  font-size: clamp(3.5rem, 9vw, 7.2rem);
}

.blog-hero > p:last-child {
  max-width: 700px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.article-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 3px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 6px 7px 0 var(--line);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translate(-2px, -3px) rotate(-0.2deg);
  box-shadow: 9px 11px 0 var(--line);
  outline: none;
}

.article-card:nth-child(4n + 1) {
  background: #fff7ca;
}

.article-card:nth-child(4n + 2) {
  background: #eafbe1;
}

.article-card:nth-child(4n + 3) {
  background: #e9faff;
}

.article-card:nth-child(4n + 4) {
  background: #f5edff;
}

.card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-card h2 {
  margin: 1rem 0 0.65rem;
  font-family: "Londrina Solid", Impact, sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
}

.article-card p {
  margin: 0;
  color: #5f5a51;
  font-size: 1rem;
  line-height: 1.5;
}

.article-card .read-link {
  margin-top: auto;
  padding-top: 1.4rem;
  font-weight: 800;
}

.article-header {
  max-width: 930px;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.article-header h1 {
  font-size: clamp(3.1rem, 8.8vw, 6.8rem);
}

.article-dek {
  max-width: 760px;
  margin: 1.25rem auto 1.1rem;
  color: #5f5a51;
  font-size: clamp(1.12rem, 2.1vw, 1.42rem);
  font-weight: 600;
  line-height: 1.45;
}

.article-meta {
  justify-content: center;
}

.article-layout {
  width: min(1020px, 100%);
  display: grid;
  grid-template-columns: 190px minmax(0, var(--content));
  justify-content: center;
  gap: clamp(2.25rem, 6vw, 4.5rem);
  margin: 0 auto;
}

.article-toc {
  align-self: start;
  position: sticky;
  top: 1.5rem;
  padding: 1rem;
  border: 2px solid rgba(30, 29, 25, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.article-toc strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-toc a {
  display: block;
  padding: 0.26rem 0;
  color: #676158;
  font-size: 0.9rem;
  line-height: 1.3;
  text-decoration: none;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  color: var(--purple);
  text-decoration: underline;
  outline: none;
}

.article-content {
  min-width: 0;
}

.article-content > p:first-child {
  margin-top: 0;
  font-size: 1.23rem;
  font-weight: 600;
  line-height: 1.55;
}

.article-content h2 {
  margin: 3.2rem 0 0.8rem;
  font-family: "Londrina Solid", Impact, sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 900;
  line-height: 1.02;
  scroll-margin-top: 2rem;
}

.article-content h3 {
  margin: 2.1rem 0 0.55rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.article-content p,
.article-content li {
  color: #403d37;
}

.article-content a:not(.article-cta) {
  color: #5138c4;
  font-weight: 700;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.14em;
}

.article-content ul,
.article-content ol {
  padding-left: 1.4rem;
}

.article-content li + li {
  margin-top: 0.55rem;
}

.answer-box,
.note-box {
  margin: 1.7rem 0;
  padding: 1.15rem 1.25rem;
  border: 2px solid var(--line);
  border-radius: 17px;
  background: #fff7c9;
  box-shadow: 4px 4px 0 rgba(30, 29, 25, 0.9);
}

.note-box {
  background: #e9faff;
}

.answer-box strong,
.note-box strong {
  display: block;
  margin-bottom: 0.25rem;
}

.answer-box p,
.note-box p {
  margin: 0;
}

.comparison-table {
  width: 100%;
  margin: 1.5rem 0 2rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 15px;
  background: white;
  font-size: 0.96rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(30, 29, 25, 0.15);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: #f1ebdc;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  padding: 1.35rem 1.5rem;
  border: 3px solid var(--line);
  border-radius: 20px;
  background: var(--yellow);
  box-shadow: 6px 7px 0 var(--line);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.article-cta:hover,
.article-cta:focus-visible {
  transform: translate(-2px, -3px);
  box-shadow: 9px 10px 0 var(--line);
  outline: none;
}

.article-cta strong {
  display: block;
  font-family: "Londrina Solid", Impact, sans-serif;
  font-size: 1.9rem;
  line-height: 1;
}

.article-cta span {
  display: block;
  margin-top: 0.2rem;
  color: #5f5421;
  font-size: 0.94rem;
}

.article-cta b {
  font-size: 1.9rem;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 2px dashed rgba(30, 29, 25, 0.22);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.copy-link {
  padding: 0.42rem 0.75rem;
  border: 2px solid rgba(30, 29, 25, 0.3);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font: inherit;
  cursor: pointer;
}

.copy-link:hover,
.copy-link:focus-visible {
  border-color: var(--line);
  outline: none;
}

.site-footer {
  width: min(1180px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 2px dashed rgba(30, 29, 25, 0.2);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

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

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--purple);
  text-decoration: underline;
  outline: none;
}

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

  .article-layout {
    display: block;
  }

  .article-toc {
    position: static;
    margin-bottom: 2rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.36rem 0.55rem;
    font-size: 0.82rem;
  }

  .site-brand {
    font-size: 1.5rem;
  }

  .site-brand img {
    width: 38px;
    height: 38px;
  }

  .page-shell {
    padding-top: 2rem;
  }

  .article-header {
    text-align: left;
  }

  .article-header h1 {
    font-size: clamp(2.9rem, 15vw, 4.5rem);
  }

  .article-dek {
    margin-left: 0;
  }

  .article-meta {
    justify-content: flex-start;
  }

  .article-cta {
    grid-template-columns: 1fr auto;
    padding: 1.1rem;
  }

  .article-footer,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .comparison-scroll {
    overflow-x: auto;
  }

  .comparison-table {
    min-width: 570px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
