:root {
  color-scheme: light;
  --cream: #fff5e8;
  --paper: #fffaf4;
  --ink: #603823;
  --muted: #8b6a58;
  --peach: #f58b73;
  --peach-deep: #d96e5c;
  --line: rgba(96, 56, 35, 0.14);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); line-height: 1.7; }
a { color: inherit; }
.shell { width: min(920px, calc(100% - 36px)); margin: 0 auto; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 10; padding: 10px 14px; border-radius: 12px; color: white; background: var(--ink); }
.skip:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(255, 245, 232, 0.94); backdrop-filter: blur(14px); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; }
.brand-character { width: 42px; height: 42px; object-fit: contain; }
.nav-links { display: flex; gap: 20px; color: var(--muted); font-size: 0.94rem; font-weight: 700; }
.nav-links a { text-decoration: none; }
.hero { padding: 90px 0 80px; text-align: center; }
.eyebrow { margin: 0 0 14px; color: var(--peach-deep); font-size: 0.8rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.04em; }
h1 { margin: 0 auto 24px; max-width: 760px; font-size: clamp(3rem, 8vw, 5.8rem); }
h2 { margin: 0 0 18px; font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { margin: 0 0 8px; }
.hero-copy { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: 1.12rem; }
.hero-copy.left { margin-left: 0; }
.mallang-image { display: block; width: min(330px, 78vw); height: auto; margin: 32px auto -10px; filter: drop-shadow(0 26px 28px rgba(124, 73, 43, 0.18)); }
.section { padding: 72px 0; border-top: 1px solid var(--line); background: var(--paper); }
.section.alt { background: var(--cream); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 25px; background: white; box-shadow: 0 16px 40px rgba(92, 55, 35, 0.06); }
.card p { margin: 0; color: var(--muted); }
.pill { display: inline-block; margin-bottom: 14px; padding: 5px 10px; border-radius: 999px; color: var(--peach-deep); background: #ffe7df; font-size: 0.78rem; font-weight: 850; }
.content { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 54px; padding: 62px 0 90px; }
.toc { position: sticky; top: 94px; align-self: start; display: grid; gap: 10px; }
.toc strong { color: var(--peach-deep); font-size: 0.78rem; letter-spacing: 0.12em; }
.toc a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.article section { scroll-margin-top: 92px; margin-bottom: 52px; }
.article h2 { font-size: 2rem; }
.article p, .article li { color: #745748; }
.notice { padding: 18px 20px; border-left: 4px solid var(--peach); border-radius: 10px; background: #fff0e9; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px; border-radius: 22px; color: white; background: var(--ink); }
.contact p { margin: 3px 0 0; color: #f0ded3; }
.contact a { font-weight: 800; }
.faq { border-top: 1px solid var(--line); }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; }
.form-card { display: grid; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 16px 40px rgba(92, 55, 35, 0.06); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 800; }
.field input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(96, 56, 35, 0.24); border-radius: 13px; color: var(--ink); background: var(--paper); font: inherit; text-transform: uppercase; }
.field input:focus { outline: 3px solid rgba(245, 139, 115, 0.32); border-color: var(--peach-deep); }
.confirm-row { display: flex; align-items: flex-start; gap: 10px; color: #745748; }
.confirm-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--peach-deep); }
.danger-button { min-height: 50px; border: 0; border-radius: 14px; color: white; background: #ad3d36; font: inherit; font-weight: 850; cursor: pointer; }
.danger-button:hover { background: #8e302b; }
.danger-button:focus { outline: 3px solid rgba(173, 61, 54, 0.28); outline-offset: 2px; }
.danger-button:disabled { cursor: wait; opacity: 0.62; }
.form-status { min-height: 1.7em; margin: 0; font-weight: 750; }
.form-status.error { color: #9a332d; }
.form-status.success { color: #33734c; }
.footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-decoration: none; }

@media (max-width: 720px) {
  .nav-links a:first-child { display: none; }
  .hero { padding-top: 58px; }
  .grid, .content { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(2, 1fr); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .toc strong { grid-column: span 2; }
  .contact, .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
