@import url("/styles/macos-colors.css");
:root {
  --canvas: var(--mac-window);
  --surface: var(--mac-surface);
  --ink: var(--mac-label);
  --muted: var(--mac-secondary-label);
  --brand: var(--mac-link);
  --jelly: var(--mac-panel);
  --accent: var(--mac-panel);
  --rule: var(--mac-separator);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif; font-size: 17px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; border-radius: 3px; }
h1, h2, h3, p, figure, pre { margin-top: 0; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.035em; }
h1 { font-size: clamp(34px, 4.2vw, 60px); font-weight: 900; margin-bottom: 24px; }
h2 { font-size: clamp(25px, 2.5vw, 32px); font-weight: 850; margin-bottom: 22px; }
h3 { font-size: 21px; }
p { margin-bottom: 20px; }
li { margin-bottom: 10px; }
ul, ol { padding-left: 24px; }
strong { font-weight: 750; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 20; background: var(--mac-dark-surface); color: var(--mac-white); padding: 10px 18px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--canvas); border-bottom: 1px solid var(--rule); }
.header-inner { max-width: 1320px; min-height: 82px; padding: 16px 24px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-size: 21px; font-weight: 900; line-height: 1; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; padding: 6px; flex-shrink: 0; overflow: hidden; border-radius: 12px; background: #1458e4; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%); }
.brand-mark__image { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center; transform: translateX(1px); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 750; font-size: 14px; }
.site-header nav a { text-decoration: none; }
.site-header nav a[aria-current] { border-bottom: 2px solid var(--ink); }
.eyebrow { font-size: 12px; font-weight: 850; letter-spacing: .09em; margin-bottom: 18px; }
.lead { max-width: 740px; font-size: clamp(19px, 2vw, 23px); line-height: 1.65; }
.byline { color: var(--muted); font-size: 13px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; gap: 20px; margin-top: 12px; padding: 12px 22px; background: var(--mac-dark-surface); color: var(--mac-white); border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 800; }
.button:hover { background: var(--mac-link); color: var(--mac-on-link); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--mac-panel); color: var(--ink); }
.guide-index { max-width: 1320px; padding: 0 24px; margin: auto; }
.index-hero { padding: 76px 0 84px; display: grid; grid-template-columns: 1.35fr .8fr; align-items: center; gap: 64px; }
.index-hero > div:first-child > p:not(.lead):not(.eyebrow):not(.byline) { max-width: 640px; }
.hero-note { padding: 42px 32px; background: var(--jelly); border: 2px solid var(--ink); border-radius: 30px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(2deg); }
.hero-note > p:not(.eyebrow) { font-size: clamp(27px, 3vw, 38px); font-weight: 900; line-height: 1.35; letter-spacing: -.04em; }
.hero-note > span { font-size: 14px; }
.guide-list { border-top: 3px solid var(--ink); padding: 52px 0 66px; }
.guide-list ol { list-style: none; padding: 0; margin: 32px 0 0; }
.guide-list li { display: grid; grid-template-columns: 52px 1fr 24px; gap: 28px; padding: 30px 0; border-top: 1px solid var(--rule); margin: 0; }
.guide-list h3 { margin-bottom: 10px; font-size: 24px; }
.guide-list h3 a { text-decoration: none; }
.guide-list p { color: var(--muted); margin: 0; max-width: 810px; }
.guide-number { display: inline-block; font-size: 12px; font-weight: 850; letter-spacing: .08em; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 11px; height: fit-content; }
.list-arrow { font-size: 26px; }
.about-guides { background: var(--surface); border: 2px solid var(--ink); border-radius: 28px; margin-bottom: 76px; padding: 42px; }
.about-guides p { max-width: 780px; }
.article-page { max-width: 1200px; margin: auto; padding: 32px 24px 70px; }
.breadcrumbs { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-bottom: 46px; }
.article-header { max-width: 850px; margin-bottom: 52px; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 60px; align-items: start; }
.toc { position: sticky; top: 110px; padding: 18px 0; border-top: 2px solid var(--ink); font-size: 14px; }
.toc p { font-weight: 800; margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 12px; }
.toc a { text-decoration: none; }
.article-body section { margin-bottom: 52px; }
.article-body section + section { border-top: 1px solid var(--rule); padding-top: 36px; }
.article-body section:first-child h2 { margin-top: 0; }
.note-example { padding: 25px 28px; border: 2px solid var(--ink); border-radius: 20px; background: var(--accent); margin: 28px 0; }
.note-example figcaption { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.note-example .note-title { font-size: 23px; font-weight: 850; line-height: 1.45; }
.note-example p:last-child { margin-bottom: 0; }
.example-pair .note-example:first-child { background: var(--surface); }
.note-stack .note-example { margin: 16px 0; }
.steps li { padding-left: 8px; margin-bottom: 18px; }
.steps strong { display: block; margin-bottom: 4px; }
.table-wrap { overflow-x: auto; margin: 26px 0; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 15px; }
caption { text-align: left; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
th, td { border: 1px solid var(--rule); padding: 14px; vertical-align: top; text-align: left; }
thead th { background: var(--accent); }
tbody th { min-width: 92px; }
.template { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 16px; padding: 24px; white-space: pre-wrap; font: inherit; font-size: 16px; }
code { background: var(--surface); padding: 2px 6px; border-radius: 4px; }
.exercise { background: var(--surface); border-left: 4px solid var(--brand); padding: 22px 26px; margin: 24px 0; }
.exercise ul { margin-bottom: 0; }
.checklist { padding-left: 24px; }
.editorial-note { background: var(--surface); padding: 24px; border-radius: 16px; color: var(--muted); font-size: 14px; }
.editorial-note h2 { font-size: 18px; color: var(--ink); }
.editorial-note p:last-child { margin-bottom: 0; }
.related { margin-top: 64px; padding-top: 36px; border-top: 3px solid var(--ink); }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.related li { margin: 0; }
.related li a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; font-weight: 700; }
.site-footer { background: var(--mac-dark-surface); color: var(--mac-white); }
.footer-inner { max-width: 1200px; padding: 44px 24px; margin: auto; }
.site-footer nav { display: flex; gap: 12px 26px; flex-wrap: wrap; font-size: 14px; margin: 28px 0; }
.site-footer a:hover { color: var(--mac-white); text-decoration-thickness: 2px; }
.site-footer a:focus-visible { outline-color: var(--mac-white); }
.small { font-size: 12px; opacity: .8; }
@media (max-width: 820px) {
  .index-hero { grid-template-columns: 1fr; gap: 38px; padding: 46px 0 58px; }
  .hero-note { max-width: 440px; transform: none; }
  .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .toc { position: static; background: var(--surface); padding: 22px; border-radius: 16px; }
  .toc ol { columns: 2; column-gap: 30px; }
  .toc li { break-inside: avoid; }
  .article-header { margin-bottom: 34px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .header-inner { gap: 12px; flex-wrap: wrap; }
  .brand { font-size: 18px; gap: 9px; }
  .brand-mark { width: 38px; height: 38px; padding: 5px; border-radius: 10px; }
  .site-header nav { gap: 14px; font-size: 12px; }
  .guide-list li { grid-template-columns: 42px minmax(0, 1fr); gap: 16px; }
  .guide-list h3 { font-size: 21px; }
  .list-arrow { display: none; }
  .about-guides { padding: 28px 22px; }
  .breadcrumbs { margin-bottom: 30px; }
  .toc ol { columns: 1; }
  .note-example { padding: 22px; }
  .related ul { grid-template-columns: 1fr; }
  th, td { padding: 11px; }
  .template { padding: 18px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
