:root {
  --ink: #0a0a0b;
  --paper: #f3f0e9;
  --warm: #c6a978;
  --muted: rgba(243, 240, 233, 0.62);
  --soft: rgba(243, 240, 233, 0.42);
  --line: rgba(243, 240, 233, 0.18);
  --display: "SUIT Variable", "Pretendard Variable", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; font-synthesis: none; }
html { background: var(--ink); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--warm); outline-offset: 5px; }
.skip-link { position: fixed; top: 1rem; left: 50%; z-index: 20; padding: 0.65rem 1rem; background: var(--paper); color: var(--ink); transform: translate(-50%, -180%); transition: transform 0.25s var(--ease); }
.skip-link:focus { transform: translate(-50%, 0); }
.guide-shell { width: min(100% - 3rem, 1240px); margin: 0 auto; }
.guide-header { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.guide-brand { display: inline-flex; min-height: 44px; align-items: center; gap: 0.75rem; font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: -0.07em; }
.guide-brand img { width: 28px; height: 28px; padding: 3px; border-radius: 8px; background: var(--paper); object-fit: contain; }
.guide-brand small { margin-left: 0.45rem; color: var(--soft); font-family: var(--mono); font-size: 0.55rem; font-weight: 400; letter-spacing: 0.08em; }
.guide-nav { display: flex; align-items: center; gap: 1.5rem; color: var(--soft); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; }
.guide-nav a { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; transition: color 220ms ease, border-color 220ms ease; }
.guide-nav a:hover, .guide-nav a[aria-current="page"] { color: var(--paper); border-color: var(--warm); }
.guide-main { padding: 7rem 0 8rem; }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.65fr); gap: clamp(2rem, 8vw, 9rem); align-items: end; padding-bottom: 7rem; }
.guide-eyebrow { color: var(--warm); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; }
.guide-hero h1 { max-width: 10ch; margin: 1.5rem 0 0; font-family: var(--display); font-size: clamp(3.5rem, 8vw, 7.8rem); font-weight: 650; letter-spacing: -0.12em; line-height: 0.9; }
.guide-hero h1 em { color: var(--warm); font-style: normal; }
.guide-hero__aside { padding-bottom: 0.35rem; }
.guide-hero__aside p { max-width: 30rem; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.guide-hero__aside small { display: block; margin-top: 1.8rem; color: var(--soft); font-family: var(--mono); font-size: 0.62rem; line-height: 1.7; }
.guide-section { padding: 3rem 0 5rem; border-top: 1px solid var(--line); }
.guide-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.guide-section h2 { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 3.1rem); font-weight: 600; letter-spacing: -0.09em; line-height: 1; }
.guide-section__head p { max-width: 29rem; margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.75; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 7vw, 7rem); }
.guide-item { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding: 1.3rem 0 1.6rem; border-top: 1px solid rgba(243, 240, 233, 0.12); }
.guide-item:nth-child(-n + 2) { border-top-color: var(--line); }
.guide-item__index { color: var(--warm); font-family: var(--mono); font-size: 0.62rem; }
.guide-item h3 { margin: 0; font-family: var(--display); font-size: 1.16rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1.35; }
.guide-item p { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.75; }
.guide-item__link { display: inline-flex; min-height: 38px; align-items: center; margin-top: 0.65rem; color: var(--warm); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; }
.guide-note { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 7rem); margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.guide-note h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.guide-note p { max-width: 40rem; margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.9; }
.guide-note strong { color: var(--paper); font-weight: 500; }
.guide-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--soft); font-family: var(--mono); font-size: 0.62rem; line-height: 1.7; }
.guide-footer a { color: var(--warm); }

.article-main { max-width: 880px; margin: 0 auto; padding: 7rem 0 8rem; }
.article-head { padding-bottom: 4.5rem; border-bottom: 1px solid var(--line); }
.article-head h1 { max-width: 15ch; margin: 1.6rem 0 1.5rem; font-family: var(--display); font-size: clamp(3rem, 7vw, 6.8rem); font-weight: 650; letter-spacing: -0.12em; line-height: 0.92; }
.article-head h1 em { color: var(--warm); font-style: normal; }
.article-dek { max-width: 42rem; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.85; }
.article-updated { display: block; margin-top: 2rem; color: var(--soft); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em; }
.article-prose { max-width: 720px; padding-top: 4rem; }
.article-prose h2 { margin: 3.6rem 0 1.1rem; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.08em; line-height: 1.05; }
.article-prose h2:first-child { margin-top: 0; }
.article-prose h3 { margin: 2.2rem 0 0.75rem; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.04em; }
.article-prose p, .article-prose li { color: var(--muted); font-size: 1rem; line-height: 1.95; }
.article-prose p { margin: 0 0 1.1rem; }
.article-prose ul, .article-prose ol { margin: 0 0 1.5rem; padding-left: 1.25rem; }
.article-prose li + li { margin-top: 0.55rem; }
.article-prose strong { color: var(--paper); font-weight: 550; }
.article-callout { margin: 2.5rem 0; padding: 1.25rem 1.35rem 1.35rem; border-left: 1px solid var(--warm); background: rgba(243, 240, 233, 0.04); }
.article-callout p { margin: 0; font-size: 0.9rem; }
.article-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.article-related a { display: block; min-height: 100%; padding: 1rem 0; border-top: 1px solid rgba(243, 240, 233, 0.12); transition: color 220ms ease; }
.article-related a:hover { color: var(--warm); }
.article-related small { color: var(--soft); font-family: var(--mono); font-size: 0.58rem; }
.article-related span { display: block; margin-top: 0.55rem; font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.04em; }
.article-back { display: inline-flex; min-height: 44px; align-items: center; margin-top: 3rem; color: var(--warm); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; }

@media (max-width: 760px) {
  .guide-shell { width: min(100% - 2.5rem, 1240px); }
  .guide-header { min-height: 72px; }
  .guide-brand small { display: none; }
  .guide-nav { gap: 0.85rem; font-size: 0.55rem; }
  .guide-main, .article-main { padding-top: 4.8rem; }
  .guide-hero { display: block; padding-bottom: 5rem; }
  .guide-hero h1 { font-size: clamp(3.2rem, 15vw, 5.4rem); }
  .guide-hero__aside { margin-top: 2.5rem; }
  .guide-hero__aside p { font-size: 0.92rem; }
  .guide-section { padding: 2.25rem 0 3.8rem; }
  .guide-section__head { display: block; margin-bottom: 1.5rem; }
  .guide-section__head p { margin-top: 1rem; }
  .guide-list, .article-related { grid-template-columns: 1fr; }
  .guide-item:nth-child(2) { border-top-color: rgba(243, 240, 233, 0.12); }
  .guide-note { display: block; margin-top: 0; }
  .guide-note p { margin-top: 1rem; font-size: 0.88rem; }
  .guide-footer { display: block; }
  .guide-footer p { margin: 0.8rem 0 0; }
  .article-head { padding-bottom: 3.5rem; }
  .article-head h1 { font-size: clamp(2.8rem, 13vw, 5rem); }
  .article-dek { font-size: 0.95rem; }
  .article-prose { padding-top: 3.2rem; }
  .article-prose p, .article-prose li { font-size: 0.92rem; line-height: 1.85; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skip-link, .guide-nav a, .article-related a { transition-duration: 0.001ms; }
}
