:root {
    --text: #e8f0f4;
    --background: #10263b;
    --primary: #f3b46a;
    --muted: #b2c1cd;
    --surface: #19354c;
    --line: #526b7f;
    --photo-shade: rgb(16 38 59 / 56%);
    --credit-shade: rgb(16 38 59 / 88%);
    --body-font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --heading-font: Georgia, 'Times New Roman', serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.6;
}

::selection {
    background: var(--primary);
    color: var(--background);
}

a {
    color: inherit;
    text-underline-offset: 0.3em;
}

a:hover {
    color: var(--primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 5px;
}

.brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.75rem;
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.brand img {
    display: block;
}

h1 {
    margin: 0;
    font-family: var(--heading-font);
    font-size: clamp(2.75rem, 4vw, 3.75rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.intro {
    margin: 1.25rem 0 2.5rem;
    color: var(--muted);
}

button {
    min-height: 54px;
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 5px;
    background: var(--primary);
    color: var(--background);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

button:disabled {
    cursor: wait;
    opacity: 0.65;
}

[hidden] {
    display: none !important;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.panel-footer a {
    padding-block: 0.5rem;
    text-decoration: none;
}

@media (max-width: 640px) {
    .panel-footer {
        width: 100%;
        max-width: 390px;
        margin-inline: auto;
    }
}
