:root {
    color-scheme: dark;
    --background: #21130e;
    --surface: #302019;
    --gold: #dfb96e;
    --cream: #fff2d9;
    --muted: #d0bda5;
    --border: rgba(223, 185, 110, .3);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--cream);
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

.page {
    width: min(1100px, 90%);
    margin: auto;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}

.brand {
    color: var(--gold);
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 28px;
    letter-spacing: 3px;
    direction: ltr;
}

.brand small {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 5px;
    text-align: center;
}

.languages {
    display: flex;
    gap: 8px;
    direction: ltr;
}

button, input, textarea {
    font: inherit;
}

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--gold);
    border-radius: 5px;
    background: var(--gold);
    color: var(--background);
    text-decoration: none;
    cursor: pointer;
}

button:hover, .button:hover {
    background: var(--cream);
}

.languages button {
    background: transparent;
    color: var(--cream);
}

.languages button[aria-pressed="true"] {
    background: var(--gold);
    color: var(--background);
}

a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.hero {
    padding: 65px 0 35px;
    text-align: center;
}

.eyebrow {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

h1, h2 {
    font-family: Georgia, serif;
    font-weight: normal;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

h1 {
    margin: 15px 0;
    font-size: clamp(36px, 6vw, 64px);
}

h2 {
    font-size: clamp(26px, 4vw, 36px);
}

.intro {
    max-width: 650px;
    margin: 20px auto 30px;
    color: var(--muted);
    font-size: 18px;
}

figure {
    margin: 35px 0 0;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

figcaption {
    padding: 15px;
    color: var(--gold);
}

.panel {
    max-width: 720px;
    margin: 30px auto;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.panel h2 {
    margin-top: 0;
}

label {
    display: block;
    margin: 20px 0 8px;
}

input, textarea {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--background);
    color: var(--cream);
    text-align: start;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input::placeholder, textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}

form button {
    margin-top: 20px;
}

.note {
    color: var(--muted);
    font-size: 14px;
}

.status {
    color: var(--gold);
    min-height: 28px;
}

footer {
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

.comment {
    padding: 22px 0;
    border-top: 1px solid var(--border);
}

.comment h2 {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.comment .message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.comment time {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
}

.comment button {
    background: transparent;
    color: var(--gold);
}

[hidden] {
    display: none !important;
}

html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2 {
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.8;
}

html[lang="ar"] .eyebrow {
    letter-spacing: normal;
}

@media (max-width: 600px) {
    header {
        justify-content: center;
    }

    .hero {
        padding-top: 35px;
    }

    .panel {
        padding: 20px;
    }

    figcaption {
        padding: 12px 4px;
    }
}