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

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fffaf2;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
    font: inherit;
}

.noodle-shell {
    min-height: 100vh;
    color: #302925;
    background:
        radial-gradient(circle at 8% 2%, rgba(255, 205, 112, 0.25), transparent 27rem),
        radial-gradient(circle at 92% 14%, rgba(235, 122, 83, 0.12), transparent 24rem),
        #fffaf2;
}

.noodle-header,
.noodle-footer {
    width: min(calc(100% - 2rem), 78rem);
    margin: 0 auto;
}

.noodle-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.noodle-header {
    display: grid;
    min-height: 8.5rem;
    padding-block: 1.25rem;
    grid-template-columns: 4.75rem minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    border-bottom: 1px solid #eadfd2;
}

.noodle-brand {
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    align-items: center;
    justify-items: center;
    border-radius: 1rem;
    color: inherit;
    background: #fff0df;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.noodle-brand:hover {
    background: #ffe4ca;
    transform: translateY(-1px);
}

.noodle-brand:focus-visible {
    outline: 3px solid rgba(230, 111, 69, 0.25);
    outline-offset: 3px;
}

.header-bowl {
    width: 3.6rem;
    height: 3.6rem;
}

.header-steam,
.header-noodles,
.header-rim,
.header-bowl-body,
.header-chopsticks {
    fill: none;
    stroke: #392f29;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.header-steam {
    stroke: #d98764;
    stroke-width: 2.5;
}

.header-rim {
    fill: #ffc85e;
}

.header-bowl-body {
    fill: #e66f45;
}

.header-chopsticks {
    stroke-width: 2.5;
}

.header-intro {
    min-width: 0;
}

.header-intro h1 {
    max-width: 52rem;
    margin: 0;
    color: #312823;
    font-size: clamp(1.65rem, 3.2vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.header-intro p {
    margin: 0.45rem 0 0;
    color: #746860;
    font-size: 0.92rem;
    line-height: 1.45;
}

.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.language-switch {
    display: inline-flex;
    padding: 0.2rem;
    gap: 0.15rem;
    border: 1px solid #ead8ca;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.56);
}

.language-switch button {
    display: inline-flex;
    min-height: 2rem;
    padding: 0.25rem 0.45rem;
    align-items: center;
    gap: 0.32rem;
    border: 0;
    border-radius: 0.48rem;
    color: #77685f;
    background: transparent;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
    color: #783d2a;
    background: #fff;
    box-shadow: 0 0.12rem 0.45rem rgba(92, 57, 37, 0.1);
}

.language-switch button:focus-visible {
    outline: 3px solid rgba(230, 111, 69, 0.22);
    outline-offset: 1px;
}

.language-switch svg {
    width: 1.35rem;
    height: 0.9rem;
    overflow: hidden;
    border-radius: 0.12rem;
    box-shadow: 0 0 0 1px rgba(55, 40, 32, 0.12);
}

.dev-label {
    padding: 0.25rem 0.55rem;
    border: 1px solid #f0cfb5;
    border-radius: 999px;
    color: #985133;
    background: #fff1df;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.noodle-footer {
    min-height: 5.5rem;
    padding-block: 1rem;
    border-top: 1px solid #eadfd2;
    color: #756e68;
    font-size: 0.82rem;
}

.noodle-footer a {
    color: #b84d2d;
    font-weight: 700;
    text-decoration: none;
}

.noodle-footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.noodle-footer a:hover,
.noodle-footer a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

@media (max-width: 600px) {
    .noodle-header {
        min-height: 7.5rem;
        padding-block: 0.9rem;
        grid-template-columns: 3.4rem minmax(0, 1fr) auto;
        gap: 0.7rem;
    }

    .noodle-brand {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 0.8rem;
    }

    .header-bowl {
        width: 2.75rem;
        height: 2.75rem;
    }

    .header-intro h1 {
        font-size: clamp(1.08rem, 5.2vw, 1.3rem);
        line-height: 1.12;
    }

    .header-intro p {
        margin-top: 0.25rem;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .header-tools {
        align-items: flex-end;
        flex-direction: column-reverse;
        gap: 0.35rem;
    }

    .language-switch {
        padding: 0.12rem;
    }

    .language-switch button {
        min-height: 1.75rem;
        padding: 0.18rem 0.3rem;
    }

    .language-switch button span {
        display: none;
    }

    .noodle-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}
