:root {
    --primary-bg: #F8FAFC;
    --surface-bg: #FFFFFF;
    --secondary-surface: #F1F5F9;
    --accent-bg: #0F172A;
    --primary-text: #0F172A;
    --secondary-text: #475569;
    --muted-text: #94A3B8;
    --brand-primary: #2563EB;
    --brand-primary-hover: #1D4ED8;
    --brand-accent: #38BDF8;
    --border-color: #E2E8F0;
    --border-focus: #3B82F6;
    --success-badge: #ECFDF5;
    --success-text: #059669;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: break-word;
}

code,
kbd,
samp,
pre {
    font-family: 'JetBrains Mono', monospace;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s ease-in-out;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        line-height: 1.25;
    }

    h2 {
        font-size: clamp(1.35rem, 4vw, 1.75rem);
        line-height: 1.3;
    }

    h3 {
        font-size: clamp(1.15rem, 3.5vw, 1.4rem);
    }

    .truncate-mobile,
    [data-word-break='break-all'] {
        word-break: break-all;
    }
}

/* ===== header_section ===== */
#header {
    overflow: visible;
}

.js-mobile-menu.open {
    display: block;
}

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
}

#hero input::placeholder {
    color: #94A3B8;
}

/* ===== main_article_section ===== */
#main-article {
    overflow: hidden;
}

#main-article img {
    width: 100%;
    object-fit: cover;
}

/* ===== comparison_section ===== */
#comparison-table {
    scroll-margin-top: 80px;
}

#comparison-table table {
    border-spacing: 0;
}

/* ===== infographic_section ===== */
#boot-process {
    overflow: hidden;
    hyphens: auto;
}

#boot-process .js-metric-item {
    transition: transform 0.2s ease;
}

#boot-process .js-metric-item:hover {
    transform: translateX(3px);
}

/* ===== timeline_section ===== */
#storage-timeline {
    overflow: hidden;
}

#storage-timeline .container {
    width: 100%;
}

/* ===== nvme_tech_section ===== */
#nvme-breakdown {
    hyphens: auto;
    word-break: keep-all;
}

#nvme-breakdown h1,
#nvme-breakdown h2,
#nvme-breakdown h3 {
    line-height: 1.25;
}

/* ===== use_cases_section ===== */
#practical-scenarios {
    word-break: keep-all;
    hyphens: auto;
}

/* ===== myths_section ===== */
#myth-busting {
    font-family: inherit;
}

/* ===== guide_section ===== */
#buyers-guide {
    overflow: hidden;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    hyphens: auto;
}

#buyers-guide h2,
#buyers-guide h3 {
    color: var(--primary-text);
}

#buyers-guide p {
    color: var(--secondary-text);
}

/* ===== architecture_section ===== */
#pc-architecture {
    overflow: hidden;
}

#pc-architecture h2,
#pc-architecture h3 {
    hyphens: auto;
}

/* ===== related_posts_section ===== */
#related-articles {
    overflow: hidden;
    hyphens: auto;
}

#related-articles .js-article-modal:not(.hidden) {
    display: flex;
}

/* ===== footer_section ===== */
#footer {
    width: 100%;
    hyphens: auto;
    word-break: keep-all;
}

#footer a {
    transition: color 0.2s ease-in-out;
}