:root {
    color-scheme: light;
    --paper: #f7f4ed;
    --ink: #191a16;
    --muted: #53544a;
    --rule: #c9c5b9;
    --accent: #f64d20;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #1548a0; outline-offset: 4px; }
.wrap { width: min(100% - 6rem, 76rem); margin-inline: auto; }
.skip { position: absolute; inset-block-start: 0; inset-inline-start: 1rem; transform: translateY(-125%); padding: .5rem 1rem; background: #fff; z-index: 2; }
.skip:focus { transform: none; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.masthead { min-height: 5.75rem; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 850; letter-spacing: -.045em; line-height: .93; }
.brand-mark {
    flex: 0 0 auto; width: 2.3rem; aspect-ratio: 1; background: var(--accent);
    display: grid; place-items: center; overflow: hidden;
}
.brand-mark::before {
    content: ""; width: 62%; height: 62%; background: var(--ink);
    clip-path: polygon(0 0, 17% 0, 54% 65%, 54% 0, 75% 0, 75% 100%, 58% 100%, 21% 35%, 21% 100%, 0 100%, 0 0, 100% 0, 100% 19%, 85% 19%, 85% 0);
}
nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.6rem); font-size: .875rem; font-weight: 700; }
nav a { text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.languages { position: relative; }
.languages summary { cursor: pointer; padding: .35rem .55rem; border: 1px solid var(--rule); }
.languages ul { z-index: 1; position: absolute; inset-inline-end: 0; min-width: 10rem; max-width: min(20rem, 80vw); margin: .45rem 0 0; padding: .4rem; list-style: none; background: var(--paper); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.languages a { display: block; padding: .25rem .5rem; }
.languages a[aria-current] { background: #ffdfd2; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; gap: clamp(2rem, 6vw, 5.5rem); padding-block: clamp(2rem, 6vw, 5rem); border-bottom: 1px solid var(--ink); }
.hero-copy { align-self: center; min-width: 0; }
.kicker { margin: 0 0 1rem; font-weight: 750; font-size: .8rem; text-transform: uppercase; letter-spacing: .085em; }
.kicker::before { display: inline-block; content: ""; width: .55rem; height: .55rem; background: var(--accent); margin-inline-end: .55rem; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.02; }
h1 { max-width: 100%; margin: 0; font-size: clamp(3.1rem, 6.35vw, 6.55rem); letter-spacing: -.065em; hyphens: auto; overflow-wrap: anywhere; }
[lang="ar"] h1, [lang="zh"] h1 { letter-spacing: normal; max-width: none; }
.intro { max-width: 35rem; margin-block: 1.35rem 1.7rem; font-size: clamp(1.02rem, 1.6vw, 1.28rem); color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 100%; min-height: 3rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: .65rem 1rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent); color: var(--ink); }
.arrow { font-size: 1.15em; line-height: 1; }
.hero-art {
    align-self: stretch; isolation: isolate; position: relative; display: flex; flex-direction: column;
    justify-content: space-between; gap: 1.6rem; overflow: hidden; min-height: 24rem;
    padding: clamp(1.3rem, 3vw, 2.7rem); background: var(--accent); color: var(--ink);
    border: 1px solid var(--ink);
}
.hero-art::before {
    position: absolute; z-index: -1; inset: 0; content: "";
    background: repeating-linear-gradient(0deg, transparent, transparent 27px, #191a1628 28px, transparent 29px);
}
.art-sign { width: fit-content; font-size: clamp(3.4rem, 6.6vw, 7.4rem); font-weight: 950; line-height: .8; letter-spacing: -.105em; text-transform: uppercase; }
.art-sign span { display: block; }
.art-slash { position: absolute; z-index: -1; height: 150%; width: 12%; background: var(--paper); transform: rotate(32deg); inset-inline-end: 15%; inset-block-start: -24%; }
.art-domain { font: 700 .8rem/1.4 ui-monospace, monospace; letter-spacing: .19em; border-top: 1px solid var(--ink); padding-top: .6rem; }
.process { padding-block: 2.25rem 3rem; border-bottom: 1px solid var(--ink); }
h2 { margin: 0 0 1.35rem; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.055em; }
h3 { margin: 0 0 .4rem; font-size: 1rem; line-height: 1.3; }
.process ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.process li { counter-increment: step; padding: 1rem 1.25rem 0; border-inline-start: 1px solid var(--rule); }
.process li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.process li::before { content: "0" counter(step); display: block; width: fit-content; margin-bottom: .6rem; border-bottom: 2px solid var(--accent); font: 750 .9rem/1.2 ui-monospace, monospace; }
.process li p, .application-intro p { max-width: 34ch; margin: 0; color: var(--muted); }
.application { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.application-intro { min-width: 0; }
.application-intro h2 { overflow-wrap: anywhere; }
.application-body { min-width: 0; }
fieldset { margin: 0 0 1.4rem; min-width: 0; padding: 0; border: 0; }
legend { width: 100%; border-top: 1px solid var(--ink); padding: .8rem 0; font-weight: 850; font-size: 1.13rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label, .address-field > label { display: block; font-weight: 700; font-size: .92rem; }
.wide { grid-column: 1 / -1; }
input:not([type="checkbox"]), textarea { display: block; width: 100%; margin-top: .28rem; border: 1px solid #777970; border-radius: 0; background: #fffdf8; color: var(--ink); padding: .55rem .7rem; font-size: 1rem; }
textarea { resize: vertical; min-height: 4rem; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid #a21d17; }
.address { display: flex; align-items: stretch; width: 100%; margin-top: .28rem; }
.address input { margin: 0; min-width: 3.1rem; }
.address span { display: grid; place-items: center; padding-inline: .42rem; border: 1px solid #777970; border-left: none; font-size: .82rem; background: #eae6d9; white-space: nowrap; }
.hint { margin: .3rem 0 0; font-size: .79rem; color: var(--muted); }
.address-status { margin: .2rem 0 0; font-size: .84rem; font-weight: 650; }
.address-status[data-state="available"] { color: #285d37; }
.address-status[data-state="unavailable"], .address-status[data-state="invalid-address"] { color: #a21d17; }
.law { display: flex; align-items: flex-start; gap: .65rem; font-weight: 500; margin: 0 0 1.25rem; }
.law input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: .15em 0 0; accent-color: var(--ink); }
.message { padding: 1rem; margin: 0 0 1rem; border-inline-start: 4px solid #a21d17; background: #ffdfd2; }
.message p { margin: 0; }
.success { border-color: #285d37; background: #e4efe4; }
.footer { min-height: 5rem; border-top: 1px solid var(--ink); font-size: .9rem; }
.footer .brand-mark { width: 1.55rem; }
@media (max-width: 56rem) {
    .wrap { width: min(100% - 3rem, 76rem); }
    .hero { gap: 2rem; }
    .hero-art { min-height: 21rem; }
    .art-sign { font-size: clamp(3.15rem, 7.3vw, 5rem); }
    .application { grid-template-columns: 1fr 2.2fr; gap: 1.5rem; }
}
@media (max-width: 41rem) {
    .wrap { width: calc(100% - 2rem); }
    .masthead { min-height: 4.3rem; }
    .hero, .application { grid-template-columns: minmax(0, 1fr); }
    .hero-art { min-height: 12rem; width: 100%; }
    .art-sign { font-size: clamp(2.9rem, 10.8vw, 5rem); }
    .nav-how { display: none; }
    .process ol, .fields { grid-template-columns: minmax(0, 1fr); }
    .process li, .process li:first-child { border-inline-start: 0; border-top: 1px solid var(--rule); padding: .8rem 0; }
    .process li:last-child { padding-bottom: 0; }
    .application-intro p, .process li p { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

[lang="en"] h1 {
    font-size: clamp(2.65rem, 5.8vw, 5.8rem);
    hyphens: none;
    text-wrap: balance;
}
