:root {
  color-scheme: light;
  --ink: #252733;
  --muted: #666879;
  --paper: #f7f4f5;
  --panel: #fffafb;
  --rose: #c65070;
  --rose-dark: #8f2f4d;
  --rose-soft: #f2dce3;
  --slate: #3d4252;
  --line: #ded8dc;
  --shadow: 0 18px 50px rgba(55, 35, 45, .08);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.72; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--rose-dark); }
button, input { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: #fff; border: 2px solid var(--rose); }
.skip-link:focus { top: 1rem; }
.site-header { width: min(1180px, calc(100% - 32px)); margin: 18px auto 0; min-height: 68px; display: flex; align-items: center; gap: 24px; padding: 10px 14px 10px 18px; background: rgba(255,250,251,.92); border: 1px solid var(--line); border-radius: 18px; position: sticky; top: 10px; z-index: 20; backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(45,35,42,.06); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--ink); color: #fff; border-radius: 11px 11px 11px 3px; font-size: .78rem; letter-spacing: .06em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: .62rem .72rem; text-decoration: none; border-radius: 10px; font-size: .9rem; }
.site-nav a:hover, .site-nav a:focus-visible { background: var(--rose-soft); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .55rem .7rem; gap: .45rem; align-items: center; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.page-hero { min-height: 580px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(260px, .82fr); align-items: center; gap: clamp(40px, 7vw, 110px); padding: clamp(64px, 9vw, 118px) 2vw 70px; }
.hero-copy { min-width: 0; }
.eyebrow, .section-number, .card-label, .byline { color: var(--rose-dark); font-size: .78rem; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; }
h1 { margin: .4rem 0 1.2rem; font-size: clamp(3rem, 8vw, 7rem); max-width: 10ch; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.7rem, 3.5vw, 3rem); margin: .3rem 0 1rem; }
h3 { font-size: 1.17rem; margin: .2rem 0 .65rem; }
.lede { max-width: 670px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.poster { justify-self: end; width: min(100%, 390px); aspect-ratio: 4 / 5; background: var(--slate); color: #fff; border-radius: 40px 40px 40px 8px; padding: clamp(28px, 5vw, 52px); display: flex; flex-direction: column; justify-content: space-between; transform: rotate(2.2deg); box-shadow: 24px 30px 0 var(--rose-soft); position: relative; }
.poster::after { content: ""; width: 92px; height: 92px; border: 20px solid var(--rose); border-radius: 50%; position: absolute; right: 24px; top: 88px; opacity: .9; }
.poster-index { font-weight: 800; letter-spacing: .18em; }
.poster p { font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.08; font-weight: 820; letter-spacing: -.04em; margin: auto 0; position: relative; z-index: 1; }
.poster small { color: #e6dfe3; }
main > section, .article-body > section { margin: 0 0 clamp(70px, 10vw, 130px); }
.split-feature, .tag-section { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(28px, 6vw, 84px); align-items: start; }
.quick-start, .note-panel, .tool-panel, .not-found { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 46px); }
.quick-start h2 { font-size: 1.35rem; }
.quick-start ol, .plain-list { padding-left: 1.25rem; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .7rem 1.1rem; background: var(--rose-dark); color: #fff; border: 1px solid var(--rose-dark); border-radius: 12px; text-decoration: none; font-weight: 700; cursor: pointer; }
.button:hover { background: var(--ink); color: #fff; }
.button.secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.soft-card { min-width: 0; padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 28px rgba(55, 35, 45, .045); }
.soft-card:nth-child(3n+2) { transform: translateY(12px); }
.soft-card a { overflow-wrap: anywhere; }
.soft-card p { color: var(--muted); }
.text-link { color: var(--rose-dark); font-weight: 720; font-size: .88rem; }
.rose-band { width: 100vw; margin-left: calc(50% - 50vw); padding: clamp(60px, 8vw, 110px) max(16px, calc((100vw - 1180px) / 2)); background: #ecd1da; }
.card-grid.compact .soft-card { background: rgba(255,255,255,.72); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a { padding: .55rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.editor-list { list-style: none; padding: 0; }
.editor-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.editor-list span { color: var(--muted); font-size: .88rem; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 740; cursor: pointer; }
.article-body { max-width: 1040px; margin: 0 auto; }
.article-body > section > p { max-width: 820px; }
.byline { margin: -30px 0 50px; text-transform: none; letter-spacing: .04em; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-grid > div { padding: 24px; border-left: 3px solid var(--rose); background: rgba(255,255,255,.55); }
.step-grid span { color: var(--rose-dark); font-weight: 820; }
.tool-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 36px; }
.checklist { display: grid; gap: 10px; margin: 22px 0; }
.checklist label { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.checklist input { width: 20px; height: 20px; accent-color: var(--rose-dark); flex: 0 0 auto; }
.progress { color: var(--rose-dark); }
.not-found { text-align: center; }
.giant-code { font-size: clamp(5rem, 15vw, 11rem); line-height: 1; font-weight: 860; color: var(--rose-dark); margin: 0; }
dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
dt { font-weight: 720; } dd { margin: 0; color: var(--muted); }
.site-footer { width: min(1180px, calc(100% - 32px)); margin: 30px auto 20px; padding: 40px; color: #f8f4f6; background: var(--ink); border-radius: 28px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; }
.site-footer a { color: #fff; }
.fine-print { grid-column: 1 / -1; color: #c9c6ce; font-size: .82rem; border-top: 1px solid #4e5260; padding-top: 18px; }
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero { min-height: auto; grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr); gap: 32px; }
  .poster { border-radius: 28px 28px 28px 6px; }
  .site-nav a { padding-inline: .5rem; font-size: .82rem; }
}
@media (max-width: 760px) {
  .site-header { align-items: center; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .site-nav[data-open="true"] { display: grid; grid-template-columns: 1fr 1fr; }
  .site-nav a { padding: .8rem; }
  .page-hero { grid-template-columns: 1fr; padding-top: 70px; }
  .poster { justify-self: start; width: min(82vw, 340px); aspect-ratio: 5 / 4; transform: rotate(1deg); }
  .poster::after { width: 60px; height: 60px; border-width: 14px; top: 50px; }
  .poster p { font-size: 2.4rem; }
  .split-feature, .tag-section, .tool-panel { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; padding: 28px; }
  .fine-print { grid-column: 1; }
}
@media (max-width: 520px) {
  .site-header, main, .site-footer { width: min(100% - 20px, 1180px); }
  .site-header { margin-top: 10px; }
  .brand span:last-child { display: none; }
  h1 { font-size: clamp(2.55rem, 14vw, 4.2rem); }
  .page-hero { padding-inline: 4px; }
  .card-grid, .step-grid { grid-template-columns: 1fr; }
  .soft-card:nth-child(3n+2) { transform: none; }
  .rose-band { padding-inline: 10px; }
  dl div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
