/* =========================================================
   WOOSURI MAPAE Release 1A
   Common Style
   ========================================================= */

/* ---------------------------------------------------------
   Design Tokens
   --------------------------------------------------------- */

:root {
    --color-navy: #061e30;
    --color-navy-light: #0a3448;
    --color-teal: #0f7778;
    --color-ivory: #fbf8f1;
    --color-paper: #fffdfa;
    --color-gold: #d2b36d;

    --color-text: #1d2933;
    --color-text-muted: #68747d;
    --color-border: #ddd7ca;
    --color-white: #ffffff;

    --container-width: 1200px;

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 24px;

    --shadow-soft:
        0 12px 36px rgba(6, 30, 48, 0.12);
}

/* ---------------------------------------------------------
   Reset
   --------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    color: var(--color-text);
    background: var(--color-ivory);

    font-family:
        "Pretendard",
        "Noto Sans KR",
        "Malgun Gothic",
        sans-serif;

    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* ---------------------------------------------------------
   Common Layout
   --------------------------------------------------------- */

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin-inline: auto;
}

.site-main {
    flex: 1;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
    color: var(--color-white);
    background: var(--color-navy);
    border-bottom: 1px solid rgba(210, 179, 109, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.brand-name {
    color: var(--color-gold);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}


.brand-version {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.75rem;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero-section {
    display: flex;
    align-items: center;

    min-height: calc(100vh - 150px);

    color: var(--color-white);

    background:
        linear-gradient(
            145deg,
            var(--color-navy) 0%,
            var(--color-navy-light) 55%,
            var(--color-teal) 100%
        );
}

.hero-inner {
    padding-block: 90px;
}

.hero-label {
    margin: 0 0 18px;

    color: var(--color-gold);

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.hero-title {
    margin: 0;

    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-description {
    max-width: 620px;
    margin: 28px 0 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 1.05rem;
    word-break: keep-all;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 38px;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 140px;
    min-height: 48px;
    padding: 12px 24px;

    border: 1px solid transparent;
    border-radius: var(--radius-small);

    font-weight: 700;

    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--color-navy);
    background: var(--color-gold);
}

.button-secondary {
    color: var(--color-white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------------------------------------
   Shared Footer
   --------------------------------------------------------- */

.site-footer {
    padding: 29px 0 calc(27px + env(safe-area-inset-bottom));

    color: rgba(255, 255, 255, 0.58);
    background: #041522;

    text-align: left;
}

.footer-inner {
    display: grid;
    gap: 18px;

    width: min(var(--container-width), calc(100% - 28px));
    margin-inline: auto;
}

.footer-brand {
    margin-bottom: 9px;

    color: #ffffff;

    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;

    margin-bottom: 10px;

    font-size: 0.73rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.64);
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.copy,
.release {
    font-size: 0.69rem;
}

.release strong {
    display: block;

    color: var(--color-gold);

    font-size: 0.73rem;
    letter-spacing: 0.1em;
}

@media (min-width: 740px) {
    .footer-inner {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .release {
        text-align: right;
    }
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 28px), var(--container-width));
    }

    .header-inner {
        min-height: 60px;
    }

    .brand-version {
        display: none;
    }

    .hero-inner {
        padding-block: 64px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }
}


/* =========================================================
   Header Brand Final Override
   ========================================================= */

.site-header .brand {
    align-items: center;
    gap: 7px;
}

.site-header .brand .brand-logo {
    display: block !important;

    width: 30px !important;
    height: 30px !important;

    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.site-header .brand .brand-name {
    font-size: 0.72rem !important;
    letter-spacing: 0.07em;
}

/* =========================================================
   RELEASE 1A · COMMON BRAND LOGO
   Header component shared logo size
========================================================= */

.brand-logo {
    display: block;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
}