* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Light Mode Defaults */

:root {
    color-scheme: light dark;

    --page-background: #ffffff;
    --surface-background: #f7f7f7;
    --footer-background: #f4f4f4;

    --ink: #171717;
    --text: #252525;
    --muted: #626262;
    --line: #dedede;

    --link: #424245;
    --footer-muted: #6e6e73;
    --footer-divider: #86868b;

    --header-background: #111111;
    --header-text: #ffffff;
    --header-muted: rgba(255, 255, 255, 0.72);

    --notice: #7a4b00;
    --notice-background: #fff7e6;

    --blue: #0071e3;
    --blue-hover: #0077ed;

    --body-font: 'Fira Sans', sans-serif;
    --title-font: 'League Spartan', sans-serif;
}

/* Dark Mode */

@media (prefers-color-scheme: dark) {
    :root {
        --page-background: #111111;
        --surface-background: #1a1a1a;
        --footer-background: #1a1a1a;

        --ink: #f5f5f5;
        --text: #e5e5e5;
        --muted: #b5b5b5;
        --line: #333333;

        --link: #d8d8d8;
        --footer-muted: #b5b5b5;
        --footer-divider: #666666;

        --notice: #ffd28a;
        --notice-background: rgba(255, 184, 77, 0.13);
    }
}

/* Base */

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background-color: var(--page-background);
    color: var(--ink);
    font-family: var(--body-font);
    line-height: 1.42;
}

img {
    user-select: none;
    -webkit-user-drag: none;
}

a {
    color: inherit;
}

.title-font {
    font-family: var(--title-font);
    font-weight: 700;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 54px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: var(--header-background);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--header-text);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.brand img {
    width: auto;
    height: 34px;
    max-width: 82px;
    object-fit: contain;
}

.brand span {
    color: var(--header-text);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navigation */

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav a {
    color: var(--header-muted);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav a[aria-current="page"] {
    color: var(--header-text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Mobile Menu Button */

.menu-toggle {
    display: none;

    width: 38px;
    height: 38px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;
    margin: 5px auto;

    background: var(--header-text);
    border-radius: 999px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--header-text);
    outline-offset: 2px;
}

/* Contact Page */

.contact-main {
    flex: 1;
}

.contact-section {
    min-height: calc(100vh - 54px - 150px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 74px 24px;
}

.contact-panel {
    width: 100%;
    max-width: 980px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 58px;
}

.contact-message {
    max-width: 480px;
}

.contact-eyebrow {
    margin-bottom: 12px;

    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-message h1 {
    margin-bottom: 18px;

    color: var(--ink);
    font-size: clamp(3.3rem, 7vw, 5.8rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.contact-message > p {
    max-width: 430px;

    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.contact-direct {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.contact-direct p {
    margin-bottom: 5px;

    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.contact-direct a {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.contact-direct a:hover {
    text-decoration: underline;
}

/* Form */

.contact-form {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 14px;

    padding-left: 36px;
    border-left: 1px solid var(--line);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 600;
}

.form-field input,
.form-field textarea {
    width: 100%;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: var(--page-background);
    color: var(--ink);

    font: inherit;
    font-size: 0.96rem;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-field input {
    min-height: 48px;
    padding: 0 15px;
}

.form-field textarea {
    min-height: 128px;
    padding: 13px 15px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}

.contact-status {
    display: none;

    padding: 11px 13px;
    border-radius: 11px;

    background: var(--notice-background);
    color: var(--notice);

    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.35;
}

.contact-status.visible {
    display: block;
}

.contact-button {
    min-height: 48px;
    margin-top: 2px;

    border: 0;
    border-radius: 999px;

    background: var(--blue);
    color: #ffffff;

    font: inherit;
    font-size: 0.96rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-button:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 113, 227, 0.22);
}

.contact-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.contact-note {
    margin-top: 6px;

    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
}

.contact-note a {
    color: var(--link);
    font-weight: 600;
    text-decoration: none;
}

.contact-note a:hover {
    text-decoration: underline;
}

/* Footer */

.site-footer {
    background-color: var(--footer-background);
    color: var(--ink);
    border-top: 1px solid var(--line);
}

.footer-main {
    background-color: var(--footer-background);
    color: var(--ink);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;

    padding: 10px 32px;
    max-height: 66px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;

    font-size: 0.82rem;
    line-height: 1.25;
}

.footer-contact p {
    color: var(--ink);
    font-weight: 600;
}

.footer-contact a {
    color: var(--link);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-logo {
    flex: 0 0 auto;
    margin-left: auto;
}

.footer-logo img {
    height: 62px;
    width: auto;
    filter: brightness(0) saturate(100%);
}

@media (prefers-color-scheme: dark) {
    .footer-logo img {
        filter: brightness(0) invert(1);
    }
}

/* Bottom Footer */

.footer-bottom {
    background-color: var(--footer-background);
    color: var(--footer-muted);

    display: block;

    padding: 9px 32px 10px;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
}

.footer-bottom span {
    display: block;
    color: var(--footer-muted);
    margin-bottom: 3px;
}

.footer-bottom a {
    display: inline;
    color: var(--link);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-bottom a:not(:last-child)::after {
    content: "|";
    color: var(--footer-divider);
    margin: 0 6px;
    text-decoration: none;
}

/* Tablet */

@media (max-width: 900px) {
    .site-header,
    .footer-main,
    .footer-bottom {
        padding-left: 18px;
        padding-right: 18px;
    }

    .site-nav {
        gap: 12px;
    }

    .site-nav a {
        font-size: 0.8rem;
    }

    .contact-section {
        padding: 58px 18px;
    }

    .contact-panel {
        max-width: 720px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-message {
        max-width: 560px;
    }

    .contact-form {
        max-width: 460px;
        padding-left: 0;
        padding-top: 26px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .footer-main {
        min-height: auto;
        max-height: none;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .footer-logo img {
        height: 56px;
    }
}

/* Mobile */

@media (max-width: 640px) {
    .site-header {
        height: 50px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand {
        gap: 8px;
    }

    .brand img {
        height: 30px;
        max-width: 72px;
    }

    .brand span {
        font-size: 1.1rem;
    }


    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .site-nav {
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;

        padding: 8px 16px 14px;

        background: var(--header-background);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        padding: 12px 0;

        color: var(--header-muted);
        font-size: 0.92rem;
        font-weight: 600;
        text-decoration: none;
    }

    .site-nav a:hover,
    .site-nav a.active,
    .site-nav a[aria-current="page"] {
        color: var(--header-text);
        text-decoration: none;
    }

    .site-header.nav-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.nav-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.nav-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .contact-section {
        min-height: calc(100vh - 50px - 150px);
        align-items: flex-start;
        padding: 42px 16px;
    }

    .contact-panel {
        display: block;
        max-width: 420px;
    }

    .contact-message {
        margin-bottom: 30px;
    }

    .contact-message h1 {
        font-size: clamp(3.3rem, 17vw, 4.7rem);
    }

    .contact-message > p {
        font-size: 0.96rem;
        line-height: 1.5;
    }

    .contact-direct {
        margin-top: 24px;
        padding-top: 18px;
    }

    .contact-form {
        max-width: none;
        padding-left: 0;
        padding-top: 24px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .form-field input,
    .contact-button {
        min-height: 47px;
    }

    .footer-main {
        gap: 8px;
        padding: 8px 14px;
    }

    .footer-contact {
        font-size: 0.78rem;
    }

    .footer-logo img {
        height: 48px;
    }

    .footer-bottom {
        padding: 8px 14px 9px;
        font-size: 0.72rem;
        line-height: 1.22;
    }

    .footer-bottom a:not(:last-child)::after {
        margin: 0 5px;
    }
}

/* Print */

@media print {
    body {
        background: #ffffff;
        color: #000000;
    }

    .site-header,
    .site-footer {
        display: none;
    }

    .contact-main {
        background: #ffffff;
    }

    .contact-section {
        min-height: auto;
        padding: 0;
    }

    .contact-panel {
        display: block;
        max-width: none;
    }

    .contact-form {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid #cccccc;
        padding-top: 24px;
    }
}