:root {
  color-scheme: light;
  --ink: #12241d;
  --ink-soft: #4e5d56;
  --paper: #f4f0e7;
  --paper-deep: #e9e3d6;
  --surface: #fffdf8;
  --forest: #10261e;
  --forest-soft: #17392d;
  --acid: #d8ff72;
  --coral: #ea6a57;
  --blue: #87d7ff;
  --line: rgba(18, 36, 29, 0.16);
  --shadow: 0 24px 62px rgba(20, 35, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(216, 255, 114, 0.3), transparent 25rem),
    linear-gradient(180deg, #faf7f0 0%, var(--paper) 62%, var(--paper-deep) 100%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  color: white;
  background: var(--forest);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.learn-header,
.learn-main,
.learn-footer {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}

.learn-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px 11px 11px 3px;
  color: var(--acid);
  background: var(--forest);
  font-size: 0.92rem;
  font-weight: 850;
  transform: rotate(-3deg);
}

.learn-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
}

.learn-nav a,
.learn-footer a {
  min-height: 44px;
  align-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.learn-main {
  padding-block: clamp(34px, 7vw, 76px) 84px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.breadcrumb a {
  text-underline-offset: 3px;
}

.eyebrow {
  margin: 0;
  color: #3d594c;
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.learn-hero {
  max-width: 840px;
}

.learn-hero h1,
.article-header h1 {
  margin: 17px 0 20px;
  font-size: clamp(2.65rem, 8.5vw, 5.7rem);
  font-weight: 760;
  letter-spacing: -0.061em;
  line-height: 0.96;
  text-wrap: balance;
}

.article-header h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 7.4vw, 5rem);
}

.lede {
  max-width: 710px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 3vw, 1.23rem);
  line-height: 1.68;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 23px 0 0;
  color: #64716b;
  font-size: 0.78rem;
}

.guide-grid {
  display: grid;
  gap: 18px;
  margin-top: 52px;
}

.guide-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 12px 34px rgba(20, 35, 29, 0.07);
}

.guide-card:nth-child(2n) {
  background:
    linear-gradient(145deg, rgba(135, 215, 255, 0.12), transparent 70%),
    rgba(255, 253, 248, 0.78);
}

.guide-card-tag {
  margin: 0;
  color: #557064;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.guide-card h2 {
  margin: 15px 0 10px;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.guide-card p:not(.guide-card-tag) {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.guide-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: #274b3b;
  font-size: 0.88rem;
  font-weight: 780;
  text-underline-offset: 4px;
}

.article-layout {
  display: grid;
  gap: 42px;
  margin-top: 48px;
}

.article-nav {
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.67);
}

.article-nav b {
  display: block;
  margin-bottom: 9px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-nav ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.45;
}

.article-nav a {
  text-underline-offset: 3px;
}

.article-body {
  max-width: 760px;
}

.article-body section + section {
  margin-top: 48px;
}

.article-body h2 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  letter-spacing: -0.042em;
  line-height: 1.08;
  text-wrap: balance;
}

.article-body h3 {
  margin: 28px 0 10px;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.article-body p,
.article-body li {
  color: #34473f;
  font-size: 1rem;
  line-height: 1.76;
}

.article-body p {
  margin: 0 0 17px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.article-body li + li {
  margin-top: 9px;
}

.fact-box,
.practice-box,
.source-box {
  margin: 24px 0;
  padding: 22px 24px;
  border-radius: 18px;
}

.fact-box {
  border-left: 5px solid #4e806b;
  background: rgba(255, 253, 248, 0.86);
}

.practice-box {
  border-left: 5px solid var(--acid);
  color: white;
  background: var(--forest);
}

.practice-box p,
.practice-box li {
  color: rgba(255, 255, 255, 0.82);
}

.practice-box a {
  color: var(--acid);
}

.source-box {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.55);
}

.fact-box > :last-child,
.practice-box > :last-child,
.source-box > :last-child {
  margin-bottom: 0;
}

.comparison-wrap {
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.comparison {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.comparison th,
.comparison td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.48;
}

.comparison th {
  color: #365548;
  background: rgba(216, 255, 114, 0.16);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.article-next {
  display: grid;
  gap: 13px;
  margin-top: 58px;
  padding: 28px;
  border-radius: 24px;
  color: white;
  background: var(--forest);
}

.article-next p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.article-next a {
  color: var(--acid);
  font-size: 1.05rem;
  font-weight: 780;
  text-underline-offset: 5px;
}

.learn-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 25px 32px;
  border-top: 1px solid var(--line);
  color: #5b6761;
}

.learn-footer p {
  margin: 0;
  font-size: 0.78rem;
}

.learn-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

a:focus-visible {
  outline: 3px solid #6d9130;
  outline-offset: 4px;
}

@media (min-width: 720px) {
  .learn-header,
  .learn-main,
  .learn-footer {
    width: min(100% - 64px, 1040px);
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-card:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: start;
  }

  .article-nav {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 560px) {
  .learn-header {
    min-height: 76px;
  }

  .learn-nav a:first-child {
    display: none;
  }

  .learn-main {
    padding-top: 24px;
  }

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
