@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Nunito:wght@600;700;800;900&display=swap');

:root {
  color-scheme: light;
  --ink: #172a3a;
  --muted: #526575;
  --blue: #206b93;
  --line: #dce7e9;
  --paper: #fffefa;
  --background: #f4f8f7;
  font-family: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--background); color: var(--ink); }
a { color: inherit; }
.site-header, .site-footer, .home-main, .article-main { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { padding: 28px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: Nunito, Arial, sans-serif; font-size: 1.08rem; font-weight: 900; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #d9eee8; color: #126b64; font-size: 1.5rem; }
.home-main { padding-bottom: 90px; }
.hero { position: relative; overflow: hidden; margin-top: 24px; padding: 72px min(7vw, 78px); border-radius: 30px; background: #d9eee8; }
.hero::after { content: ''; position: absolute; width: 300px; height: 300px; right: -70px; bottom: -170px; border: 42px solid #c2e4d9; border-radius: 50%; pointer-events: none; }
.eyebrow, .card-kicker, .article-kicker { margin: 0 0 18px; color: #176f6b; font-size: .77rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .card-title { font-family: Nunito, Arial, sans-serif; letter-spacing: -.035em; }
.hero h1 { position: relative; z-index: 1; max-width: 700px; margin-bottom: 18px; font-size: clamp(2.45rem, 5.5vw, 4.35rem); line-height: 1.1; font-weight: 900; }
.hero-text { position: relative; z-index: 1; max-width: 570px; margin-bottom: 0; color: #365c5e; font-size: 1.12rem; line-height: 1.7; }
.topics { padding-top: 61px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 1.65rem; }
.topic-count { color: var(--muted); font-size: .9rem; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.topic-card { display: flex; gap: 25px; min-height: 252px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); text-decoration: none; box-shadow: 0 9px 24px rgba(31, 70, 80, .035); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.topic-card:hover { transform: translateY(-4px); border-color: #a9cbcb; box-shadow: 0 16px 30px rgba(31, 70, 80, .1); }
.topic-card:focus-visible, .brand:focus-visible, .back-link:focus-visible { outline: 3px solid #e89b52; outline-offset: 4px; }
.icon-tile { flex: 0 0 92px; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 21px; }
.icon-tile--blue { background: #e3f1f8; }
.icon-tile--peach { background: #fff0e4; }
.icon-tile--mint { background: #e4f4e9; }
.icon-tile--lavender { background: #f0eafb; }
.topic-icon { width: 57px; height: 57px; pointer-events: none; }
.card-content { display: flex; flex-direction: column; align-items: flex-start; }
.card-kicker { margin: 4px 0 7px; color: var(--blue); }
.card-title { display: block; margin-bottom: 10px; font-size: 1.48rem; font-weight: 900; line-height: 1.2; }
.card-description { display: block; max-width: 320px; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.card-link { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 24px; color: #126b64; font-weight: 800; font-size: .9rem; }
.site-footer { padding: 0 0 30px; color: #72828c; font-size: .86rem; }

.article-main { max-width: 820px; padding: 18px 0 92px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 34px; color: #286d73; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.article-hero { display: flex; align-items: center; gap: 27px; padding: 39px; border-radius: 27px; background: #d9eee8; }
.article-hero--peach { background: #ffead9; }
.article-hero .icon-tile { flex-basis: 108px; width: 108px; height: 108px; background: #fffefa; }
.article-hero .topic-icon { width: 68px; height: 68px; }
.article-kicker { margin-bottom: 8px; }
.article-hero h1 { margin-bottom: 9px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; }
.article-hero p:last-child { margin-bottom: 0; color: #466068; line-height: 1.6; }
.intro { margin: 36px 0 28px; color: #3b5360; font-size: 1.1rem; line-height: 1.7; }
.keyboard-tip { margin: 0 0 30px; padding: 20px 24px; border: 1px solid #b9dcd6; border-radius: 15px; background: #e9f5f1; color: #315b58; line-height: 1.65; }
.keyboard-tip p { margin: 0; }
.steps-title { margin-bottom: 18px; font-size: 1.55rem; }
.steps { list-style: none; display: grid; gap: 13px; margin: 0; padding: 0; counter-reset: steps; }
.steps li { position: relative; min-height: 94px; padding: 24px 25px 23px 82px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); counter-increment: steps; }
.steps li::before { content: counter(steps); position: absolute; top: 24px; left: 25px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #d9eee8; color: #126b64; font-weight: 900; }
.steps h3 { margin-bottom: 5px; font-size: 1.1rem; }
.steps p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.steps .step-note { margin-top: 12px; padding: 12px 15px; border-radius: 10px; background: #eef6f5; color: #365c5e; }
.step-figure { width: fit-content; max-width: 100%; margin: 18px 0 0; }
.step-figure--small { max-width: min(100%, 360px); }
.step-figure--medium { max-width: min(100%, 540px); }
.step-figure--portrait { max-width: min(100%, 390px); }
.step-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.step-figure figcaption { margin-top: 8px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.tip { margin-top: 26px; padding: 22px 25px; border-left: 4px solid #e9aa65; border-radius: 0 15px 15px 0; background: #fff4e6; line-height: 1.6; }
.tip p { margin: 0; }
.guide-section { margin-top: 42px; }
.guide-section h2 { margin-bottom: 17px; font-size: 1.55rem; }
.guide-section > p { color: var(--muted); line-height: 1.7; }
.related-links { margin-top: 30px; padding: 22px 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); line-height: 1.65; }
.related-links p { margin-bottom: 8px; }
.related-links ul { margin: 0; padding-left: 20px; }
.related-links a, .steps a { color: #126b64; font-weight: 700; }
.source-note { margin-top: 28px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.source-note a { color: #126b64; }
kbd { display: inline-block; padding: 1px 6px; border: 1px solid #b7c8cb; border-bottom-width: 2px; border-radius: 5px; background: white; font: inherit; font-weight: 700; white-space: nowrap; }

@media (max-width: 760px) {
  .hero { padding: 53px 30px; }
  .topic-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .site-header, .site-footer, .home-main, .article-main { width: min(100% - 28px, 1120px); }
  .hero { margin-top: 8px; padding: 42px 25px; border-radius: 23px; }
  .topic-card { min-height: 0; gap: 18px; padding: 22px; }
  .icon-tile { flex-basis: 65px; width: 65px; height: 65px; border-radius: 15px; }
  .topic-icon { width: 42px; height: 42px; }
  .card-title { font-size: 1.28rem; }
  .article-hero { align-items: flex-start; flex-direction: column; padding: 27px; }
  .article-hero .icon-tile { flex-basis: auto; width: 78px; height: 78px; }
  .article-hero .topic-icon { width: 50px; height: 50px; }
  .steps li { padding-left: 69px; }
  .steps li::before { left: 19px; }
}

.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.all-projects { color: #126b64; font-weight: 700; text-decoration: none; }
.all-projects:hover { text-decoration: underline; }
.all-projects:focus-visible { outline: 3px solid #e89b52; outline-offset: 4px; }
.site-footer a { color: #126b64; }
