:root {
    color-scheme: light;
    --paper: #f7f5ed;
    --surface: #fffdf8;
    --ink: #203128;
    --muted: #565c52;
    --forest: #182d25;
    --forest-light: #284337;
    --gold: #d3bd8b;
    --rule: #d9d2c1;
    --serif: "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.6 var(--sans);
}

main { flex: 1; }
a { color: inherit; }
h1, h2, p { margin: 0; }

h1, h2 {
    font-family: var(--serif);
    font-weight: 500;
    overflow-wrap: anywhere;
}

:focus-visible {
    outline: 2px solid #8b6839;
    outline-offset: 4px;
}

.wrap {
    width: min(1160px, calc(100% - 96px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 1;
    transform: translateY(-150%);
    padding: 8px 16px;
    background: var(--surface);
}

.skip-link:focus { transform: none; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.header-inner, .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.header-inner { min-height: 66px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font: 600 31px/1 var(--serif);
    letter-spacing: -.045em;
    text-decoration: none;
    direction: ltr;
    flex-shrink: 0;
}

.brand-domain { color: #6d6e5d; }

.brand-wordmark {
    position: relative;
    white-space: nowrap;
}

.brand-signal { display: none; }

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    @media (prefers-reduced-motion: no-preference) {
        .brand-signal, .brand-wordmark::after {
            position: absolute;
            pointer-events: none;
            background-image: linear-gradient(102deg, transparent 43%, #cc9b54 48%, #986b2e 50%, #dfb86e 52%, transparent 56%);
            background-size: 265% 100%;
            background-repeat: no-repeat;
            animation: brand-signal-sweep 4.5s linear infinite;
        }

        .brand-signal {
            display: block;
            inset: 0;
            color: transparent;
            -webkit-background-clip: text;
            background-clip: text;
        }

        .brand-wordmark::after {
            content: "";
            inset: auto 0 -2px;
            height: 1px;
            opacity: .7;
        }
    }
}

@keyframes brand-signal-sweep {
    0%, 8% { background-position: 100% 50%; }
    66%, 100% { background-position: 0 50%; }
}

.brand-badge {
    position: relative;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 21%;
    background: var(--forest);
}

.brand-mark { display: block; width: 100%; height: 100%; }
.brand-globe { display: none; }
.brand-badge.globe-ready .brand-mark { visibility: hidden; }

.brand-badge.globe-ready .brand-globe {
    display: block;
    position: absolute;
    top: 16%;
    left: 21%;
    width: 57%;
    height: 57%;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.brand-badge.globe-ready::after {
    content: "";
    position: absolute;
    top: 75%;
    left: 36%;
    width: 28%;
    height: 10%;
    border-bottom: 1.5px solid var(--gold);
    background: linear-gradient(var(--gold) 0 0) center / 1px 100% no-repeat;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin-inline-start: auto;
}

.site-nav a {
    border-block: 1px solid transparent;
    padding-block: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current="page"] {
    border-bottom-color: #988052;
    color: var(--ink);
}

.language-picker {
    position: relative;
    z-index: 2;
    flex: none;
}

.language-picker summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 116px;
    min-height: 36px;
    padding: 6px 9px;
    border: 1px solid #bfb8a8;
    border-radius: 2px;
    background: var(--surface);
    color: var(--ink);
    font: 600 12px/1.4 var(--sans);
    list-style: none;
    cursor: pointer;
}

.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:hover, .language-picker[open] summary { background: #ebe7da; }

.language-picker summary::after {
    content: "";
    width: 6px;
    height: 6px;
    flex: none;
    margin-inline-start: auto;
    border-block-end: 1px solid currentColor;
    border-inline-end: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.language-picker[open] summary::after { transform: translateY(1px) rotate(225deg); }
[dir="rtl"] .language-picker summary::after { transform: translateY(-2px) rotate(-45deg); }
[dir="rtl"] .language-picker[open] summary::after { transform: translateY(1px) rotate(135deg); }

.language-flag {
    flex: none;
    object-fit: contain;
}

.language-options {
    position: absolute;
    inset-block-start: calc(100% + 6px);
    inset-inline-end: 0;
    width: min(230px, calc(100vw - 36px));
    max-height: min(58vh, 410px);
    overflow-y: auto;
    margin: 0;
    padding: 4px;
    border: 1px solid var(--rule);
    border-radius: 2px;
    background: var(--surface);
    box-shadow: 0 8px 22px #182d2526;
    list-style: none;
}

.language-options a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 37px;
    padding: 6px 10px;
    font-size: 13px;
    text-decoration: none;
}

.language-options a:hover, .language-options a[aria-current] { background: #ebe7da; }
.language-options a:focus-visible { outline-offset: -2px; }

.hero {
    background: var(--forest);
    color: #f8f4e8;
    border-bottom: 3px double #937d56;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    align-items: center;
}

.hero-copy { padding-block: 32px 34px; z-index: 1; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--gold);
    font: 650 11px/1.5 var(--sans);
    letter-spacing: .23em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 25px;
    border-top: 1px solid currentColor;
}

.hero h1 {
    margin-top: 10px;
    font-size: clamp(51px, 6vw, 80px);
    line-height: .91;
    letter-spacing: -.046em;
}

.hero h1 em {
    display: block;
    font-weight: inherit;
    color: var(--gold);
}

html:not([lang="en"]) .hero-copy h1 {
    max-width: 15ch;
    font-size: clamp(40px, 4.9vw, 69px);
    line-height: 1.04;
    color: var(--gold);
    text-wrap: balance;
}

.hero-description {
    max-width: 390px;
    margin: 14px 0 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #e4e5d8;
}

.hero-art {
    position: absolute;
    inset-block: 0;
    inset-inline: 45% -18px;
    background: url('archive-globe.webp') center / contain no-repeat;
    mask-image: radial-gradient(ellipse 54% 67%, #000 54%, transparent 99%);
    pointer-events: none;
}

.hero-art.globe-ready {
    display: grid;
    place-items: center;
    background: none;
    mask-image: none;
}

.globe-mount { display: none; }

.globe-ready .globe-mount {
    display: block;
    position: relative;
    height: min(calc(100% - 20px), 310px);
    aspect-ratio: 1;
    pointer-events: auto;
    isolation: isolate;
}

.globe-orbits {
    position: absolute;
    inset: -1% -8% 11%;
    border: 1px dashed #bba57560;
    border-radius: 50%;
    background: radial-gradient(ellipse, #c3a86524, transparent 68%);
}

.globe-orbits::before, .globe-orbits::after {
    content: "";
    position: absolute;
    border: 1px solid #d1b67c70;
    border-radius: 50%;
}

.globe-orbits::before { inset: 29% -11%; transform: rotate(-16deg); }
.globe-orbits::after { inset: -4% 11% 1%; transform: rotate(19deg); }

.globe-sphere {
    position: absolute;
    top: 6%;
    left: 12%;
    width: 76%;
    height: 76%;
    border: 1px solid #d5b875;
    border-radius: 50%;
    box-shadow: 0 0 18px #d8b87537, 0 11px 22px #0d1b16a0;
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.globe-stand {
    position: absolute;
    left: 39%;
    top: 81%;
    width: 22%;
    height: 17%;
    background: linear-gradient(90deg, #796134, #d8b875 52%, #927747) center top / 14% 68% no-repeat;
    filter: drop-shadow(0 4px 7px #112019);
}

.globe-stand::before, .globe-stand::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #d4b77d, #8c7045);
}

.globe-stand::before { inset: auto 8% 10%; height: 35%; }
.globe-stand::after { bottom: 2%; height: 21%; background: linear-gradient(180deg, #af925c, #684f2e); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .globe-mount:hover .globe-sphere {
        transform: scale(1.035);
        box-shadow: 0 0 25px #d8b87575, 0 11px 22px #0d1b16a0;
    }
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 2px;
    text-decoration: none;
    font: 650 13px/1.5 var(--sans);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.button span { font-size: 16px; line-height: 1; }
[dir="rtl"] .direction-arrow { transform: rotate(180deg); }
.button-gold { background: #dec99a; color: var(--forest); }
.button-gold:hover { background: #f0ddad; }
.button-gold:focus-visible { outline-color: #f8f4e8; }
.button-primary { background: var(--forest); color: #fffdf4; }
.button-primary:hover { background: var(--forest-light); }

.home-content {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(34px, 5.5vw, 82px);
    padding-block: 30px 36px;
}

.submission {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-top: 3px solid #9a8256;
    padding: 20px 25px 22px;
    scroll-margin-top: 20px;
}

.home-content h2 {
    font-size: clamp(30px, 3vw, 39px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.section-intro {
    margin: 5px 0 13px;
    color: var(--muted);
    font-size: 14px;
}

.field { min-width: 0; margin-bottom: 12px; }

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field label, legend {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 650;
}

.field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #bfb8a8;
    border-radius: 2px;
    padding: 9px 11px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.field input::placeholder { color: #686b61; }

.field small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

fieldset {
    min-width: 0;
    margin: 0 0 13px;
    border: 0;
    padding: 0;
}

legend { padding: 0; }

.choices { display: flex; gap: 8px; }

.choices label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 71px;
    min-height: 40px;
    padding: 5px 11px;
    border: 1px solid var(--rule);
    border-radius: 2px;
    font-size: 13px;
    cursor: pointer;
}

.choices label:has(:checked) {
    border-color: var(--forest);
    background: #edf0e8;
}

.choices input {
    accent-color: var(--forest);
    margin: 0;
}

form .button { width: 100%; }

.notice {
    margin-bottom: 18px;
    border-inline-start: 3px solid currentColor;
    padding: 9px 12px;
    font-size: 14px;
}

.notice-success { background: #e9efe5; color: #285239; }
.notice-error { background: #f9ece6; color: #7c3026; }

.submission-support { padding-top: 5px; }

.submission-guide h2, .faq h2 {
    font-size: clamp(27px, 2.5vw, 34px);
}

.submission-guide dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 11px 0 21px;
}

.submission-guide dl div {
    border-inline-start: 1px solid #9a8256;
    padding-inline-start: 11px;
}

.submission-guide dt { font-size: 13px; font-weight: 650; }
.submission-guide dd { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.submission-guide code { color: var(--ink); }

.faq-items { margin-top: 10px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }

.faq summary {
    display: grid;
    grid-template-columns: 1fr 18px;
    gap: 14px;
    align-items: center;
    min-height: 43px;
    padding: 9px 0;
    font-size: 14px;
    font-weight: 650;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 1.5px solid #816b43;
    border-bottom: 1.5px solid #816b43;
    justify-self: center;
    transform: translateY(-2px) rotate(45deg);
}

.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq summary:hover { color: #705a35; }
.faq details p { padding-block-end: 16px; padding-inline-end: 20px; color: var(--muted); font-size: 14px; }

.info-hero-inner {
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: center;
    padding-block: 26px;
}

.info-hero-copy { position: relative; z-index: 1; max-width: 65%; }
.info-hero h1 { margin: 0; font-size: clamp(44px, 5.3vw, 73px); line-height: .98; }
.info-hero p { margin-top: 12px; color: #e4e5d8; font-size: 15px; }

.info-hero-art {
    position: absolute;
    inset-block: 0;
    inset-inline: 66% 0;
    background: url('archive-globe.webp') center / auto 135% no-repeat;
    mask-image: radial-gradient(ellipse 50% 71%, #000 36%, transparent 100%);
    opacity: .68;
    pointer-events: none;
}

.info-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: clamp(24px, 5vw, 70px);
    align-items: start;
    padding-block: 30px 40px;
}

.info-document { max-width: 700px; }
.info-document section { border-top: 1px solid var(--rule); padding: 16px 0 18px; }
.info-document section:last-child { border-bottom: 1px solid var(--rule); }
.info-document h2, .info-aside h2 { font-size: clamp(25px, 2.5vw, 31px); line-height: 1.08; letter-spacing: -.025em; }
.info-document p, .info-aside p { margin-top: 8px; color: var(--muted); }

.info-aside {
    padding: 18px 21px 20px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-top: 3px solid #9a8256;
}

.info-aside a { text-underline-offset: 3px; }
.info-aside > a { display: inline-flex; margin-top: 13px; }

.site-footer {
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 13px;
}

.footer-inner { min-height: 58px; }
.site-footer a { text-underline-offset: 3px; }
.site-footer a span { margin-inline-start: 4px; }

@media (max-width: 900px) {
    .wrap { width: calc(100% - 56px); }
    .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2px 12px;
        padding-top: 9px;
    }
    .language-picker { grid-column: 2; grid-row: 1; }
    .site-nav { grid-column: 1 / -1; margin-inline-start: 0; }
    .home-content { gap: 32px; }
    .submission { padding-inline: 22px; }
}

@media (max-width: 720px) {
    .wrap { width: calc(100% - 36px); }
    .site-nav { gap: clamp(12px, 4vw, 26px); }
    .site-nav a { padding-block: 10px; }
    .hero-inner { display: block; }
    .hero-copy { position: relative; padding-block: 25px 27px; }
    .hero h1 { font-size: clamp(46px, 9vw, 63px); }
    .hero-art { inset-inline: 30% -18px; background-position: right center; opacity: .27; }
    [dir="rtl"] .hero-art { background-position: left center; }
    .globe-ready .globe-mount { height: min(calc(100% - 38px), 235px, 55vw); }
    .hero-description { max-width: 315px; }
    .home-content { grid-template-columns: 1fr; gap: 23px; padding-block: 22px 26px; }
    .submission-support { padding-top: 0; }
    .info-hero-inner { min-height: 153px; padding-block: 23px; }
    .info-hero-copy { max-width: min(100%, 390px); }
    .info-hero-art { inset-inline: 45% 0; opacity: .23; }
    .info-layout { grid-template-columns: 1fr; gap: 19px; padding-block: 22px 26px; }
    .info-document section { padding-block: 13px 15px; }
}

@media (max-width: 460px) {
    .brand { font-size: 23px; gap: 7px; }
    .brand-badge { width: 29px; height: 29px; }
    .language-picker summary { min-width: 108px; }
    .site-nav { gap: 0 12px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .footer-inner { flex-wrap: wrap; gap: 5px 18px; padding-block: 11px; }
}

@media (max-width: 375px) {
    .brand { font-size: 20px; gap: 6px; }
    .brand-badge { width: 26px; height: 26px; }
    .language-picker summary { min-width: 100px; padding-inline: 7px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .button { transition: none; }
}
