@import url('https://fonts.googleapis.com/css2?family=Bowlby+One&family=Charm:wght@400;700&family=Space+Grotesk:wght@300..700&display=swap');

:root {
    --bg-deep: #241A2C;
    --bg-panel: #271D31;
    --bg-header: #160F1C;
    --bg-footer: #160F1C;
    --text-cream: #F4EAD4;
    --text-muted: #B8AA8A;
    --accent: #FF6B1E;
    --header-bleed: 156px;
    --footer-bleed: 116px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    height: 100%;
    background-color: var(--bg-footer);
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    background:
        linear-gradient(
            to bottom,
            var(--bg-header) 0,
            var(--bg-header) var(--header-bleed),
            var(--bg-deep) var(--header-bleed),
            var(--bg-deep) calc(100% - var(--footer-bleed)),
            var(--bg-footer) calc(100% - var(--footer-bleed)),
            var(--bg-footer) 100%
        );
    background-attachment: fixed;
    color: var(--text-cream);
    font-family: 'Space Grotesk', sans-serif;

}

a {
    color: #FFD19C;
    text-decoration-style: dashed;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
    transition: color 140ms ease, text-decoration-color 140ms ease;
}

a:hover,
a:focus-visible {
    color: var(--accent);
    text-decoration-color: currentColor;
}

a[x-apple-data-detectors],
a[x-apple-data-detectors]:hover,
a[x-apple-data-detectors]:focus-visible,
a[x-apple-data-detectors="true"],
a[x-apple-data-detectors="true"]:hover,
a[x-apple-data-detectors="true"]:focus-visible {
    color: inherit !important;
    text-decoration: inherit !important;
    font: inherit !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Bowlby One', sans-serif;
    font-weight: normal;
    text-shadow: var(--accent) 1px 1px 1px;
    letter-spacing: 1.0;
}

#app-container {
    background-color: var(--bg-deep);
    margin: 0 auto;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    min-height: 100%;
    min-height: 100svh;
    min-height: 100dvh;
    width: 100%;
}

.content-shell {
    width: min(100%, 1200px);
    margin: 0 auto;
}

.site-header {
    background-color: var(--bg-header);
}

.site-header__inner {
    font-family: 'Bowlby One', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    min-height: 156px;
    padding: 34px 88px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand-mark {
    position: relative;
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
}

.brand-mark__shadow,
.brand-mark__face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 3px solid #F4EAD4;
}

.brand-mark__shadow {
    background-color: var(--accent);
    transform: rotate(-3deg) translate(10px, 8px);
    border-color: var(--accent);
}

.brand-mark__face {
    background-color: var(--text-cream);
    color: var(--bg-deep);
    transform: rotate(-3deg);
    font-size: 2rem;
    letter-spacing: 0.08em;
}

.brand-copy h1,
.brand-copy p {
    margin: 0;
}

.brand-copy h1 {
    font-size: clamp(1.7rem, 2.3vw, 2.8rem);
    line-height: 0.95;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.brand-copy p {
    margin-top: 10px;
    color: var(--accent);
    font-size: clamp(0.7rem, 0.95vw, 1rem);
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    min-height: 62px;
    padding: 0 22px;
    border: 4px solid var(--text-cream);
    color: var(--text-cream);
    text-decoration: none;
    text-transform: uppercase;
    font-size: clamp(0.9rem, 1.05vw, 1.35rem);
    letter-spacing: 0.04em;
    transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    background-color: var(--text-cream);
    color: var(--bg-deep);
    transform: translateY(-2px);
}

.nav-link--active {
    background-color: var(--accent);
    color: var(--bg-deep);
    border-color: var(--accent);
    transform: rotate(-1.2deg);
}

.nav-link--active:hover,
.nav-link--active:focus-visible {
    background-color: #FF7B34;
    color: var(--bg-deep);
}

.page-content {
    flex: 1 0 auto;
    width: 100%;
    line-height: 1.45rem;
}

.page-content__inner {
    padding: 30px 88px 48px;
}

.page-title {
    font-size: 2rem;
    line-height: 1;
}

.contact-intro {
    max-width: 42rem;
}

.contact-error {
    margin: 0 0 24px;
    padding: 16px 18px;
    border: 2px solid #FFB36E;
    background-color: rgba(255, 107, 30, 0.12);
    color: #FFE4C2;
}

.contact-form {
    display: grid;
    gap: 20px;
    max-width: 42rem;
}

.contact-form__field {
    display: grid;
    gap: 8px;
}

.contact-form__field span {
    font-family: 'Bowlby One', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--text-cream);
    background-color: rgba(244, 234, 212, 0.08);
    color: var(--text-cream);
    font: inherit;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    outline: 3px solid rgba(255, 107, 30, 0.35);
    outline-offset: 2px;
    border-color: var(--accent);
}

.contact-form__field textarea {
    resize: vertical;
    min-height: 12rem;
}

.contact-form__submit {
    justify-self: start;
    min-height: 56px;
    padding: 0 24px;
    border: 3px solid var(--text-cream);
    background-color: var(--accent);
    color: var(--bg-deep);
    font-family: 'Bowlby One', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 140ms ease, background-color 140ms ease;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
    background-color: #FF7B34;
    transform: translateY(-2px);
}

.contact-form__submit:disabled {
    cursor: wait;
    opacity: 0.8;
    transform: none;
}

.site-footer {
    margin-top: auto;
    background-color: var(--bg-footer);
}

.site-rule {
    height: 2px;
    background-color: var(--accent);
}

.site-footer__content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 32px;
    min-height: 112px;
    padding: 26px 88px;
}

.site-footer__meta,
.site-footer__tagline,
.site-footer__email {
    margin: 0;
}

.site-footer__meta,
.site-footer__email {
    color: var(--text-muted);
    font-size: clamp(0.68rem, 0.72vw, 0.9rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-footer__tagline {
    font-family: 'Bowlby One', sans-serif;
    color: var(--text-cream);
    font-size: clamp(0.95rem, 1.15vw, 1.45rem);
    line-height: 1;
    text-transform: uppercase;
    text-align: center;
}

.site-footer__email {
    justify-self: end;
    text-decoration: none;
}

.site-footer__email:hover,
.site-footer__email:focus-visible {
    color: var(--text-cream);
}

@media (max-width: 1100px) {
    .site-header__inner {
        padding: 28px 32px;
        gap: 32px;
    }

    .page-content__inner {
        padding: 30px 32px 40px;
    }

    .nav-link {
        min-width: 112px;
        min-height: 58px;
    }

    .site-footer__content {
        padding: 24px 32px;
    }
}

@media (max-width: 820px) {
    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__content {
        grid-template-columns: 1fr;
        align-items: flex-start;
        text-align: center;
    }

    .site-footer__tagline {
        text-align: center;
    }

    .site-footer__email {
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-block {
        align-items: flex-start;
        gap: 18px;
    }

    .brand-mark {
        width: 72px;
        height: 72px;
    }

    .brand-mark__face {
        font-size: 1.4rem;
    }

    .site-nav {
        width: 100%;
        gap: 10px;
        justify-content: flex-start;
    }

    .nav-link {
        min-width: calc(50% - 5px);
        min-height: 56px;
        padding: 0 18px;
        border-width: 3px;
    }

    .brand-copy h1 {
        white-space: normal;
    }

    .site-footer__content {
        gap: 18px;
    }

    .site-footer__meta,
    .site-footer__email {
        letter-spacing: 0.11em;
    }
}
