@font-face {
    font-family: "NanumSquareNeo";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.woff2") format("woff2");
}

@font-face {
    font-family: "NanumSquareNeo";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-cBd.woff2") format("woff2");
}

@font-face {
    font-family: "NanumSquareNeo";
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    src: url("https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-dEb.woff2") format("woff2");
}

@font-face {
    font-family: "NanumSquareNeo";
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    src: url("https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-eHv.woff2") format("woff2");
}

:root {
    --font-site: "NanumSquareNeo", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    --font-sans: "NanumSquareNeo", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    --default-font-family: "NanumSquareNeo", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    --ink: var(--c-heading);
    --kraft: #d9ae74;
    --kraft-light: #f3dfbf;
    --kraft-tape: rgba(217, 174, 116, 0.82);
    --line: 2.5px;
    --line-thin: 2px;
    --radius: 6px;
    --radius-small: 4px;
    --drop: 5px 5px 0 var(--ink);
    --drop-small: 3px 3px 0 var(--ink);
    --drop-kraft: 4px 4px 0 var(--kraft);
}

html,
body {
    font-family: var(--font-site);
}

body {
    background-color: var(--c-background);
    background-image: radial-gradient(color-mix(in srgb, var(--kraft) 22%, transparent) 1px, transparent 1px);
    background-size: 22px 22px;
}

h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.025em;
}

.site-header {
    background: var(--c-background);
    border-bottom: 3px solid var(--ink);
}

.site-menu a {
    font-weight: 700;
    border-radius: var(--radius-small);
}

.site-menu a.is-board {
    color: var(--c-primary-light);
    background: var(--c-surface);
    border: var(--line-thin) solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
}

.site-menu a.is-board:hover,
.site-menu a.is-board.is-active {
    color: var(--c-on-primary);
    background: var(--c-primary-dark);
}

.site-menu-toggle {
    border: var(--line-thin) solid var(--ink);
    border-radius: var(--radius-small);
    box-shadow: 2px 2px 0 var(--ink);
}

.site-brand-text,
.site-footer-brand > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.box-h2 {
    position: relative;
    border: var(--line) solid var(--ink);
    border-radius: var(--radius);
    background: var(--c-surface);
    box-shadow: var(--drop);
}

.box-h2:hover {
    background: var(--c-surface);
    box-shadow: var(--drop);
}

.box-h2::before {
    content: "";
    position: absolute;
    top: -13px;
    left: 50%;
    width: 7.5rem;
    height: 24px;
    transform: translateX(-50%) rotate(-1.5deg);
    background:
        repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 255, 255, 0.18) 10px 12px),
        var(--kraft-tape);
    pointer-events: none;
}

.box-h2 h2 {
    display: inline-block;
    padding: 0.35em 0.85em 0.3em;
    border: var(--line-thin) solid var(--ink);
    border-radius: var(--radius-small);
    background: var(--kraft-light);
    box-shadow: var(--drop-small);
    color: var(--ink);
    line-height: 1.4;
}

.box-h2 .title-bar,
.related-links-heading-bar {
    display: none;
}

.box-h3 {
    --box3-bg: #fffaf1;
    border: var(--line-thin) solid var(--ink);
    border-radius: var(--radius-small);
    background: var(--box3-bg);
    box-shadow: var(--drop-kraft);
}

.box-h3:hover {
    transform: none;
    background: var(--box3-bg);
    box-shadow: var(--drop-kraft);
}

a.box-h3:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--c-primary);
}

.box-h3 h3 {
    color: var(--ink);
}

.badge {
    border-radius: var(--radius-small);
    border: 1.5px solid var(--ink);
    background: var(--c-primary-soft);
    color: var(--c-primary-light);
    font-weight: 700;
}

.badge-board {
    background: #eef5e3;
    color: var(--c-secondary);
    border-color: var(--ink);
}

.faq-q {
    border-radius: var(--radius-small);
    border: 1.5px solid var(--ink);
    font-weight: 800;
}

.btn {
    border: var(--line-thin) solid var(--ink);
    border-radius: var(--radius-small);
    box-shadow: var(--drop-small);
    font-weight: 800;
    transition: transform 0.15s, box-shadow 0.15s, background-color 0.2s, color 0.2s;
}

.btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--ink);
}

.btn-secondary {
    border: var(--line-thin) solid var(--ink);
}

.btn-outline {
    border: var(--line-thin) solid var(--ink);
    background: var(--c-surface);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--ink);
    color: var(--c-primary-light);
}

.page-hero {
    border-bottom: 3px solid var(--ink);
    background:
        repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--kraft) 14%, transparent) 14px 16px),
        var(--c-surface-alt);
}

.page-hero::after {
    height: 10px;
    bottom: -3px;
    background: repeating-linear-gradient(90deg, var(--c-primary) 0 34px, var(--kraft) 34px 68px);
}

.page-hero h1 {
    font-weight: 900;
}

.post-panel {
    border: var(--line) solid var(--ink);
    border-radius: var(--radius);
    background: var(--c-surface);
    box-shadow: 6px 6px 0 var(--ink);
}

.post-card-thumb {
    border-bottom: var(--line-thin) solid var(--ink);
}

.post-card-title {
    font-weight: 800;
}

.post-top-image img {
    border: var(--line-thin) solid var(--ink);
    border-radius: var(--radius-small);
}

.post-content h2 {
    display: inline-block;
    margin: 2.75rem 0 1rem;
    padding: 0.35em 0.85em 0.3em;
    border: var(--line-thin) solid var(--ink);
    border-radius: var(--radius-small);
    background: var(--kraft-light);
    box-shadow: var(--drop-small);
    font-size: 1.375rem;
}

.post-content h3 {
    padding-left: 0.7rem;
    border-left: 5px solid var(--c-accent);
}

.post-content img {
    border: var(--line-thin) solid var(--ink);
    border-radius: var(--radius-small);
}

.post-content a,
.box-h2 p.text-body a,
.box-h3 p.text-body a {
    color: var(--c-primary-light);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.related-links-section {
    margin-top: 3.5rem;
}

.related-link-point {
    border-radius: 2px;
    background: var(--c-primary);
}

.banner-box {
    border: var(--line) solid var(--ink);
    border-radius: var(--radius);
    background: var(--c-surface);
    box-shadow: var(--drop);
}

.banner-box img {
    border-radius: calc(var(--radius) - var(--line));
}

main section:has(> div > .banner-box) > div {
    max-width: none;
}

.site-footer {
    border-top: 3px solid var(--ink);
}

.site-footer nav a {
    font-weight: 700;
}

.site-footer-bottom {
    border-top: 1.5px dashed var(--ink);
}

.hero {
    container-type: inline-size;
    border-bottom: 0;
    background: transparent;
}

.hero::before,
.hero-deco {
    display: none;
}

.hero-media {
    position: relative;
    inset: auto;
    z-index: 0;
    display: block;
    box-sizing: border-box;
    width: min(calc(100% - 2.5rem), calc(72rem - 2.5rem));
    height: auto;
    margin: 1.75rem auto 0;
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    background: var(--c-surface);
    box-shadow: 6px 6px 0 var(--ink);
}

.hero-media img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: initial;
    border-radius: calc(var(--radius) - 3px);
}

.hero-inner {
    position: static;
    padding-block: calc(5rem + 3.15625rem + 4px) 0;
}

@media (min-width: 768px) {
    .hero-media {
        width: 100%;
        margin-top: 2.5rem;
    }
}

.hero-content {
    position: relative;
    max-width: none;
    width: 100%;
    padding: 2rem 2.25rem;
    border: var(--line) solid var(--ink);
    border-radius: var(--radius);
    background: var(--c-surface);
    box-shadow: var(--drop);
}

.hero-content::before {
    content: "";
    position: absolute;
    top: -13px;
    left: 2rem;
    width: 7.5rem;
    height: 24px;
    transform: rotate(-2deg);
    background:
        repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 255, 255, 0.18) 10px 12px),
        var(--kraft-tape);
    pointer-events: none;
}

.hero-content h1 {
    color: var(--ink);
    font-weight: 900;
}

.hero-content .hero-lead {
    color: var(--c-text);
}

.hero-content .hero-actions {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 50%;
    transform: translate(-50%, calc(-100% - 2.5rem - var(--line)));
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.875rem;
    margin: 0;
    width: max-content;
}

.hero-content .hero-actions .btn {
    white-space: nowrap;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .hero-inner {
        padding-block: calc(3.5rem + 3.15625rem + 4px) 0;
    }

    .hero-content {
        padding: 1.5rem 1.25rem 1.5rem;
    }

    .hero-content .hero-actions {
        transform: translate(-50%, calc(-100% - 1.75rem - var(--line)));
        width: 100%;
    }

    .hero-content .hero-actions .btn {
        flex: 1 1 0;
    }

    .box-h2 h2,
    .post-content h2 {
        font-size: 1.1875rem;
    }
}

body:has(> .hero) {
    display: flex;
    flex-direction: column;
}

body:has(> .hero) > .site-header {
    order: 1;
}

body:has(> .hero) > .hero {
    order: 2;
}

body:has(> .hero) > main {
    display: contents;
}

body:has(> .hero) > main > * {
    order: 5;
    box-sizing: border-box;
    width: min(calc(100% - 2.5rem), calc(72rem - 2.5rem));
    margin-inline: auto;
    margin-block: 0 2.5rem;
}

body:has(> .hero) > main > :first-child {
    order: 3;
    margin-block: 2.5rem;
}

body:has(> .hero) > main > :last-child {
    margin-block-end: 4rem;
}

body:has(> .hero) > .site-footer {
    order: 6;
}

@media (min-width: 768px) {
    body:has(> .hero) > main > * {
        width: min(calc(100% - 4rem), 68rem);
        margin-block-end: 3.5rem;
    }

    body:has(> .hero) > main > :first-child {
        margin-block: 2.5rem 3.5rem;
    }

    body:has(> .hero) > main > :last-child {
        margin-block-end: 4rem;
    }
}
