:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --surface: #fffdf7;
  --surface-soft: #eeeae0;
  --surface-hover: #e8eee6;
  --ink: #243d39;
  --muted: #566962;
  --subtle: #5d6c64;
  --line: #c9d0c5;
  --control-border: #75867b;
  --accent: #9d432e;
  --accent-hover: #7f3424;
  --on-accent: #fffaf2;
  --accent-soft: #f8e9df;
  --sage: #e6eee4;
  --sage-ink: #345641;
  --warning: #fbefdb;
  --warning-ink: #795020;
  --danger: #9d382d;
  --success: #35633e;
  --header-bg: #f5f1e8f5;
  --shadow: 0 18px 55px #263d3210;
  --font-body: 'Malgun Gothic', '맑은 고딕', system-ui, sans-serif;
  --font-display: 'Batang', '바탕', Georgia, serif;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #101b20;
  --surface: #18282e;
  --surface-soft: #203239;
  --surface-hover: #2a4047;
  --ink: #eeeae0;
  --muted: #b9c7c4;
  --subtle: #a6b9b4;
  --line: #465d61;
  --control-border: #638087;
  --accent: #edb38c;
  --accent-hover: #f7cbaa;
  --on-accent: #17252a;
  --accent-soft: #382c27;
  --sage: #223a35;
  --sage-ink: #cae0c9;
  --warning: #372f23;
  --warning-ink: #f2c88e;
  --danger: #f2ac9f;
  --success: #b8d8ad;
  --header-bg: #101b20f5;
  --shadow: 0 20px 60px #00000028;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.7 var(--font-body); }
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-underline-offset: 5px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1260px; min-height: 78px; margin: auto; padding: 12px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); font: 600 23px/1.4 var(--font-display); white-space: nowrap; }
.brand-mark { border: 1px solid var(--accent); color: var(--accent); font: 18px/1 var(--font-display); padding: 8px 6px; border-radius: 3px; }
.brand small { font: 11px var(--font-body); color: var(--subtle); letter-spacing: 1px; }
.header-tools { display: flex; align-items: center; gap: 24px; }
.quick-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 13px; color: var(--muted); padding: 10px 0; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--control-border); border-radius: 50px; background: var(--surface); padding: 9px 15px; min-height: 44px; min-width: 108px; font-size: 13px; color: var(--ink); }
.theme-toggle:hover { background: var(--surface-hover); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-toggle .moon-icon { display: none; }
[data-theme='dark'] .theme-toggle .sun-icon { display: none; }
[data-theme='dark'] .theme-toggle .moon-icon { display: block; }
.skip-link { position: fixed; z-index: 50; top: -100px; left: 20px; padding: 12px 18px; background: var(--surface); border: 1px solid var(--accent); }
.skip-link:focus { top: 12px; }
@media (max-width: 760px) {
  .header-inner { min-height: 68px; padding: 10px 20px; gap: 12px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand small { display: none; }
  .brand-mark { font-size: 16px; padding: 7px 5px; }
  .header-tools { gap: 12px; }
  .quick-link { font-size: 12px; }
  .link-full { display: none; }
  .theme-toggle { min-width: 44px; padding: 9px 11px; }
  .theme-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
