/* 디에스기획 자료실 — 단일 주조색(#7c2d2d), 종이 배경, 납작한 구조 */

:root {
    --paper: #f2f2ef;
    --ink: #1a1c1e;
    --muted: #55575a;
    --rule: #d4d4cd;
    --accent: #7c2d2d;
    --measure: 41rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 17px;
    line-height: 1.75;
    font-feature-settings: "tnum";
}

.sheet {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 6rem;
}

/* ─ 머리글 ─ */

.masthead {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: baseline;
    justify-content: space-between;
}

.masthead a { text-decoration: none; }

.wordmark {
    font-family: "Gowun Batang", Batang, serif;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.meta-line {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

/* ─ 표제 ─ */

.eyebrow {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

h1 {
    font-family: "Gowun Batang", Batang, serif;
    font-size: 2rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
}

.standfirst {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
}

h2 {
    font-family: "Gowun Batang", Batang, serif;
    font-size: 1.375rem;
    line-height: 1.45;
    font-weight: 700;
    margin: 3.25rem 0 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
}

h3 {
    font-family: "Gowun Batang", Batang, serif;
    font-size: 1.125rem;
    line-height: 1.55;
    font-weight: 700;
    margin: 2.25rem 0 0.5rem;
}

/* 질문 앞 매달린 표식 */
h3.q { padding-left: 1.6rem; text-indent: -1.6rem; }
h3.q::before {
    content: "묻";
    display: inline-block;
    width: 1.6rem;
    text-indent: 0;
    color: var(--accent);
    font-weight: 700;
}

p { margin: 0 0 1.15rem; }

ul, ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
li { margin-bottom: 0.45rem; }

strong { font-weight: 700; }

a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 0.2em; transition: color 0.15s ease; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─ 수치 강조: 카드 대신 밑줄 ─ */

.num {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.95em;
    color: var(--accent);
    font-weight: 600;
    border-bottom: 2px solid rgba(124, 45, 45, 0.28);
    padding-bottom: 0.05em;
    white-space: nowrap;
}

/* ─ 시그니처: 여백에 매달린 실측 기록 ─ */

.log {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--muted);
    border-left: 2px solid var(--accent);
    padding: 0.15rem 0 0.15rem 0.85rem;
    margin: 1.5rem 0 1.75rem;
}

.log b { color: var(--ink); font-weight: 600; display: block; letter-spacing: 0.05em; }

@media (min-width: 1280px) {
    .sheet { position: relative; }
    .log {
          position: absolute;
          right: -17rem;
          width: 14.5rem;
          margin-top: -0.2rem;
          border-left-width: 1px;
    }
}

/* ─ 채워야 할 자리 ─ */

.fill {
    background: rgba(124, 45, 45, 0.1);
    color: var(--accent);
    padding: 0.05em 0.3em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85em;
}

/* ─ 목록형 안내(표 대체) ─ */

.spec { margin: 0 0 1.5rem; }
.spec div {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rule);
}
.spec dt {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    flex: 0 0 8.5rem;
    padding-top: 0.2rem;
}
.spec dd { margin: 0; flex: 1 1 14rem; }

/* ─ 꼬리말 ─ */

.footnote {
    margin-top: 3.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--muted);
}

.cta { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 2px solid var(--accent); }
.cta p { margin-bottom: 0.5rem; }

.index-list { list-style: none; padding: 0; }
.index-list li { border-bottom: 1px solid var(--rule); padding: 1.1rem 0; margin: 0; }
.index-list a { font-family: "Gowun Batang", Batang, serif; font-size: 1.125rem; font-weight: 700; }
.index-list span { display: block; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }

@media (max-width: 480px) {
    h1 { font-size: 1.625rem; }
    .sheet { padding: 2rem 1.25rem 4rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
