@import url("./design-system.css");
@import url("./curation-system.css");

:root {
    --background: var(--color-background);
    --surface: var(--color-surface);
    --text: var(--color-text);
    --muted: var(--color-muted);
    --border: var(--color-border);
    --primary: var(--color-primary);
    --focus: color-mix(in srgb, var(--color-focus) 18%, transparent);
    --color-news: #2563eb;
    --color-review: var(--color-primary);
    --color-guide: #7c3aed;
    --color-special: #c2415b;
    --color-list: #0f766e;
    --color-video: #c2410c;
    --color-rating-excellent: #27824a;
    --color-rating-great: #2563b8;
    --color-rating-good: #e0b83e;
    --color-rating-regular: #667085;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: fixed;
    z-index: 10000;
    top: var(--space-3, .75rem);
    left: var(--space-3, .75rem);
    padding: var(--space-3, .75rem) var(--space-4, 1rem);
    border-radius: var(--radius-md, .5rem);
    background: var(--color-text, #1f2933);
    color: var(--color-surface, #fff);
    font-weight: 700;
    transform: translateY(calc(-100% - 2rem));
    transition: transform 150ms ease;
}

.skip-link:focus { transform: translateY(0); }

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

a {
    color: inherit;
}

.site-header {
    display: flex;
    width: min(1160px, calc(100% - 40px));
    height: 82px;
    margin: 0 auto;
    align-items: center;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-brand span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 14px;
}

.public-page {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 80px;
}

.hero {
    max-width: 760px;
    margin-bottom: 64px;
}

.hero p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(36px, 7vw, 64px);
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.section-title {
    display: flex;
    margin-bottom: 24px;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-title h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.035em;
}

.section-title span {
    color: var(--muted);
    font-size: 13px;
}

.section-title > a {
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.home-reviews-section {
    margin-top: 80px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 12px;
}

.public-category {
    display: inline-flex;
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef1f5;
    color: #4b515b;
    font-size: 11px;
    font-weight: 600;
}

.public-empty {
    padding: 70px 24px;
    border: 1px solid rgba(23, 25, 29, 0.05);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 14px 40px rgba(27, 35, 48, 0.05);
    text-align: center;
}

.public-empty div {
    display: grid;
    width: 50px;
    height: 50px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
}

.public-empty h3 {
    margin: 0;
}

.public-empty p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.article-page {
    width: min(820px, calc(100% - 40px));
    margin: 0 auto;
    padding: 50px 0 90px;
}

.article-header {
    margin-bottom: 38px;
}

.article-back {
    display: block;
    width: fit-content;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.article-back:hover {
    color: var(--text);
}

.article-header h1 {
    margin: 18px 0;
    font-size: clamp(36px, 7vw, 62px);
    letter-spacing: -0.055em;
    line-height: 1.06;
}

.article-summary {
    margin: 0 0 25px;
    color: #535a64;
    font-size: clamp(17px, 2.5vw, 21px);
    line-height: 1.6;
}

.article-meta {
    justify-content: flex-start;
}

.article-cover {
    width: 100%;
    max-height: 500px;
    margin-bottom: 42px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 14px 40px rgba(27, 35, 48, 0.08);
}

.article-cover-placeholder {
    display: grid;
    min-height: 300px;
    place-items: center;
    background: #e8ebef;
    color: #9aa0a9;
    font-size: 64px;
    font-weight: 700;
}

.article-content {
    color: #2d3239;
    font-size: 17px;
    line-height: 1.85;
}

.article-content > :first-child {
    margin-top: 0;
}

.article-content h2,
.article-content h3 {
    margin: 1.8em 0 0.7em;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.article-content a {
    text-underline-offset: 3px;
}

.article-content img {
    height: auto;
    border-radius: 14px;
}

.article-content pre {
    overflow-x: auto;
    padding: 18px;
    border-radius: 12px;
    background: #e9edf2;
}

.not-found-page {
    display: grid;
    min-height: calc(100vh - 162px);
    padding: 40px 20px;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.not-found-code {
    color: #c6cbd2;
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -0.06em;
}

.not-found-page h1 {
    margin: 5px 0 10px;
    font-size: 28px;
}

.not-found-page p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
}

.public-button {
    display: inline-flex;
    min-height: 46px;
    padding: 0 18px;
    align-items: center;
    border-radius: 11px;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.site-footer {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    color: #9aa0a9;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 900px) {
}

@media (max-width: 620px) {
    .site-header,
    .public-page,
    .article-page,
    .site-footer {
        width: 95%;
    }

    .public-page {
        padding-top: 34px;
    }

    .hero {
        margin-bottom: 48px;
    }

    .article-page {
        padding-top: 35px;
    }

    .article-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
