:root {
    --bg: #f6efe4;
    --panel: rgba(255, 252, 248, 0.88);
    --ink: #1d2433;
    --muted: #5d6474;
    --line: rgba(29, 36, 51, 0.12);
    --accent: #b7642f;
    --accent-strong: #90481c;
    --navy: #263452;
    --shadow: 0 18px 50px rgba(38, 52, 82, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shell: min(1120px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Avenir Next", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
    line-height: 1.7;
    background:
        radial-gradient(circle at top left, rgba(240, 213, 191, 0.9), transparent 32%),
        radial-gradient(circle at top right, rgba(38, 52, 82, 0.08), transparent 24%),
        linear-gradient(180deg, #f6efe4 0%, #fbf7f1 46%, #f1e7d8 100%);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.shell {
    width: var(--shell);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(29, 36, 51, 0.08);
    background: rgba(246, 239, 228, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--navy) 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong,
h1,
h2,
h3 {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    letter-spacing: -0.02em;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.88rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--ink);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    padding: 10px 14px;
    font: inherit;
}

.hero,
.section {
    padding: 64px 0;
}

.hero {
    padding-top: 72px;
}

.hero-grid,
.split-layout,
.article-hero,
.contact-layout,
.article-layout {
    display: grid;
    gap: 28px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
}

.article-hero,
.contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.article-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
    padding-bottom: 60px;
}

.split-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.eyebrow,
.card-kicker,
.meta-line {
    margin: 0 0 12px;
    color: var(--accent-strong);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.hero h1,
.section-heading h2,
.prose h2,
.article-body h2,
.tool-panel h2 {
    margin: 0 0 16px;
    line-height: 1.1;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    max-width: 12ch;
}

.article-title {
    margin: 0 0 18px;
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1.08;
}

.lead,
.hero-text,
.card p,
.prose p,
.article-body p,
.info-panel p,
.contact-card p,
.faq-item p,
.footer-grid p,
.tool-note,
.status-line,
.contact-note {
    color: var(--muted);
}

.hero-panel,
.card,
.info-panel,
.tool-panel,
.content-panel,
.contact-card,
.article-sidebar,
.stat-box {
    padding: 28px;
    border: 1px solid rgba(29, 36, 51, 0.08);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-actions,
.inline-actions,
.related-links,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button,
.button-secondary,
.tool-button,
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
}

.button,
.tool-button,
.submit-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #fff;
}

.button-secondary {
    border-color: rgba(29, 36, 51, 0.12);
    background: rgba(255, 255, 255, 0.62);
    color: var(--ink);
}

.plain-list,
.check-list {
    margin: 0;
    padding-left: 18px;
}

.plain-list li + li,
.check-list li + li {
    margin-top: 10px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.card-grid,
.stat-grid,
.faq-list,
.mini-list,
.result-list,
.steps-list,
.toc {
    display: grid;
    gap: 14px;
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.55rem;
    line-height: 1.18;
}

.card h3 a,
.mini-list a,
.toc a,
.footer-links a {
    text-decoration: none;
}

.section-soft {
    background: linear-gradient(180deg, rgba(38, 52, 82, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.mini-list a,
.related-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    padding: 0 20px;
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 0;
    font-weight: 700;
}

.faq-item p {
    margin: 0 0 18px;
}

.page-hero {
    padding: 56px 0 30px;
}

.site-footer {
    padding: 28px 0 44px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr auto;
    gap: 24px;
    align-items: end;
    border-top: 1px solid rgba(29, 36, 51, 0.08);
    padding-top: 24px;
}

.footer-title {
    margin: 0 0 8px;
    font-weight: 800;
}

.footer-meta {
    white-space: nowrap;
}

.article-body {
    display: grid;
    gap: 24px;
}

.content-panel {
    padding: 34px;
}

.article-body h2 {
    font-size: 2rem;
}

.article-body h3 {
    margin: 22px 0 10px;
    font-size: 1.35rem;
}

.article-body ul,
.article-body ol {
    padding-left: 22px;
    color: var(--muted);
}

.article-body li + li {
    margin-top: 8px;
}

.tool-panel {
    display: grid;
    gap: 18px;
}

.status-line,
.result-summary {
    margin: 0;
    min-height: 1.6em;
}

.numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 70px;
}

.number {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(38, 52, 82, 0.18);
}

.steps-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps-list li {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
}

.upload-area {
    display: grid;
    place-items: center;
    min-height: 220px;
    border: 1.5px dashed rgba(183, 100, 47, 0.38);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.56);
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.upload-area:focus-visible {
    outline: 3px solid rgba(183, 100, 47, 0.45);
    outline-offset: 4px;
}

.upload-area.dragover {
    background: rgba(240, 213, 191, 0.58);
    border-color: var(--accent);
}

.preview-image {
    display: none;
    margin-top: 18px;
    max-height: 240px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 14px 28px rgba(38, 52, 82, 0.12);
}

.result-item {
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid var(--line);
}

.result-label {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bar-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(38, 52, 82, 0.08);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--navy) 100%);
}

.contact-card form {
    display: grid;
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(29, 36, 51, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    font: inherit;
}

.form-field textarea {
    min-height: 180px;
    resize: vertical;
}

@media (max-width: 980px) {
    .hero-grid,
    .split-layout,
    .article-hero,
    .article-layout,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        white-space: normal;
    }
}

@media (max-width: 760px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0 4px;
        gap: 12px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero,
    .section {
        padding: 48px 0;
    }

    .hero h1,
    .article-title {
        max-width: none;
    }

    .hero-panel,
    .card,
    .info-panel,
    .tool-panel,
    .content-panel,
    .contact-card,
    .article-sidebar,
    .stat-box {
        padding: 22px;
        border-radius: 22px;
    }

    .number {
        width: 52px;
        height: 52px;
    }
}
