:root {
  color-scheme: dark;
  --night: #0c1219;
  --panel: #131d27;
  --panel-hover: #1c2935;
  --line: #34404a;
  --ivory: #f6efe3;
  --muted: #bfc8d0;
  --gold: #e8bf81;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--night); color: var(--ivory); font: 1rem/1.55 var(--sans); }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.shell { width: min(74rem, calc(100% - clamp(2rem, 7vw, 6rem))); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: 0.5rem; left: 1rem; padding: 0.7rem 1rem; background: var(--gold); color: var(--night); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { position: relative; z-index: 2; background: #0b121b; border-bottom: 1px solid #ffffff1f; }
.header-inner { min-height: 4.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.1rem 0.9rem; padding-block: 0.3rem; }
.brand { display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.62rem; font: 1.46rem/1 var(--serif); white-space: nowrap; text-decoration: none; }
.brand-mark { width: 1.22rem; height: 1.56rem; position: relative; display: inline-block; border: 1px solid var(--gold); border-radius: 0.68rem 0.68rem 0 0; }
.brand-mark::after { content: ''; position: absolute; inset: 0.28rem 0.3rem 0 0.3rem; border: 1px solid var(--gold); border-bottom: 0; border-radius: 0.55rem 0.55rem 0 0; opacity: 0.7; }
.header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(0.8rem, 2.8vw, 2.25rem); }
.header-nav a { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--muted); font-size: 0.875rem; text-decoration: none; }
.header-nav a:hover, .footer-top:hover { color: var(--gold); }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 33rem; background: #142330; overflow: hidden; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: 69% 54%; }
.hero::after { content: ''; z-index: -1; background: linear-gradient(90deg, #0a1118ed 0%, #0a1118b0 55%, #0a11183b 100%), linear-gradient(0deg, var(--night), transparent 44%); }
.hero-inner { padding-block: 4.5rem 7.5rem; }
.eyebrow { color: var(--gold); font-size: 0.875rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; }
h1 { margin-block: 0.65rem 1.15rem; font-size: clamp(2.95rem, 9.5vw, 6.7rem); line-height: 0.97; letter-spacing: -0.053em; }
h1 em { color: var(--gold); font-weight: 400; }
.hero-copy { max-width: 34ch; font-size: clamp(1.02rem, 1.55vw, 1.2rem); color: #e3e8ec; }
.hero-link { display: inline-flex; justify-content: center; align-items: center; min-height: 3.15rem; margin-top: 1.65rem; padding: 0.7rem 1.2rem; border: 1px solid var(--gold); border-radius: 0.28rem; background: var(--gold); color: #17120d; text-decoration: none; font-weight: 700; }
.hero-link:hover { background: #ffdaa2; border-color: #ffdaa2; }

.chooser { position: relative; margin-top: -3.4rem; padding: clamp(1rem, 2.5vw, 1.9rem); border: 1px solid var(--line); border-radius: 0.6rem; background: #121b25; box-shadow: 0 1.2rem 3.5rem #0005; }
.chooser h2 { margin-bottom: 0.85rem; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.1; }
.country-links { display: grid; gap: 0.55rem; list-style: none; padding: 0; }
.country-links a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.18rem 0.75rem; height: 100%; min-height: 3.35rem; padding: 0.62rem 0.9rem; background: #1a2632; border: 1px solid #425060; border-radius: 0.35rem; text-decoration: none; }
.country-links a:hover { background: #263543; border-color: var(--gold); }
.country-links strong { font: 1.23rem/1.2 var(--serif); }
.country-links span { color: var(--gold); font-size: 0.875rem; }
.country-links .pending { background: #131d27; }
.country-links .pending span { color: var(--muted); }

.country-section { padding-block: clamp(3.25rem, 7.4vw, 6rem); }
.country-section + .country-section { border-top: 1px solid var(--line); }
.section-heading { display: grid; align-items: end; gap: 0.55rem 2rem; margin-bottom: 1.65rem; }
.section-heading h2, .closing h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.045em; }
.section-heading p { max-width: 45ch; color: var(--muted); }
.country-grid { display: grid; align-items: start; gap: 1.25rem; }
.resource-group { padding: clamp(0.95rem, 2.5vw, 1.65rem); border: 1px solid var(--line); border-radius: 0.55rem; background: var(--panel); }
.resource-group h3 { color: var(--gold); font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.1; margin-bottom: 1rem; }
.resources { display: grid; gap: 0.5rem; margin-bottom: 1.2rem; list-style: none; padding: 0; }
.resource-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem 0.65rem; align-items: baseline; height: 100%; padding: 0.63rem 0.8rem; border: 1px solid #364452; border-radius: 0.32rem; background: #192530; text-decoration: none; }
.resource-card:hover { background: var(--panel-hover); border-color: var(--gold); }
.resource-card:hover strong { color: var(--gold); }
.resource-card strong { font-size: 1rem; }
.resource-card span { color: var(--muted); font-size: 0.92rem; }
.resource-card .domain { color: var(--gold); font-size: 0.85rem; overflow-wrap: anywhere; }
.advice { border-top: 1px solid var(--line); }
.advice:last-child { border-bottom: 1px solid var(--line); }
.advice summary { position: relative; min-height: 2.75rem; display: flex; align-items: center; padding: 0.65rem 1.65rem 0.65rem 0.12rem; list-style: none; cursor: pointer; font-weight: 620; }
.advice summary::-webkit-details-marker { display: none; }
.advice summary::before, .advice summary::after { content: ''; position: absolute; right: 0.25rem; top: 50%; width: 0.75rem; height: 1px; background: var(--gold); }
.advice summary::after { transform: rotate(90deg); }
.advice[open] summary::after { transform: none; }
.advice summary:hover { color: var(--gold); }
.advice p { padding: 0 0.12rem 0.85rem; color: var(--muted); }
.advice p + p { margin-top: -0.35rem; }
.advice p a { color: var(--gold); text-underline-offset: 0.19em; }

.closings { display: grid; gap: 0.9rem; padding-bottom: clamp(3.25rem, 7.4vw, 6rem); }
.closing { min-width: 0; padding: clamp(1.15rem, 4vw, 2.6rem); border: 1px solid var(--line); border-radius: 0.55rem; }
.closing h2 { margin-bottom: 0.55rem; font-size: clamp(1.95rem, 4vw, 3rem); }
.closing p { color: var(--muted); }
.closing-europe { background: linear-gradient(115deg, #252422, #151d26 75%); border-color: #5b4c38; }
.closing-europe p { color: var(--gold); }
.closing-updates { background: var(--panel); }
.updates-content > * + * { margin-top: 0.65rem; }
.updates-content a { color: var(--gold); }

.family { background: #101923; border-block: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4.4rem); }
.family h2 { margin-bottom: 1.25rem; font-size: clamp(1.95rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.035em; }
.family-list { display: grid; gap: 0.75rem; list-style: none; padding: 0; }
.family-card { display: grid; align-content: start; gap: 0.38rem; height: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: 0.35rem; text-decoration: none; }
.family-card:hover { border-color: var(--gold); background: #192530; }
.family-card strong { font: 1.35rem/1.18 var(--serif); }
.family-card span { color: var(--muted); }
.family-card .family-domain { color: var(--gold); font-size: 0.875rem; overflow-wrap: anywhere; }
.site-footer { padding-block: 1.25rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.35rem 1.5rem; }
.site-footer p { color: var(--muted); font-size: 0.875rem; }
.footer-top { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.875rem; text-underline-offset: 0.2em; white-space: nowrap; }

@media (max-width: 34rem) {
  .header-nav .nav-family { display: none; }
}
@media (min-width: 34rem) {
  .country-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .country-links a { display: grid; align-content: center; min-height: 4rem; }
  .resource-card { grid-template-columns: minmax(0, 1fr) auto; }
  .resource-card .domain { text-align: right; }
  .resource-card span:last-child { grid-column: 1 / -1; }
  .closings { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 51rem) {
  .hero { min-height: clamp(35.5rem, 47vw, 44rem); }
  .hero::after { background: linear-gradient(90deg, #0a1118ee 0%, #0a1118aa 39%, #0a11182b 75%, #0a11180a 100%), linear-gradient(0deg, var(--night), transparent 40%); }
  .hero-inner { padding-block: 5.5rem 8.5rem; }
  .section-heading { grid-template-columns: 1fr minmax(15rem, 26rem); }
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 61rem) {
  .chooser { display: grid; grid-template-columns: minmax(13rem, 0.92fr) 2.65fr; align-items: center; gap: 1.4rem; }
  .chooser h2 { margin: 0; }
}
@media (min-width: 51rem) and (max-height: 48rem) {
  .hero { min-height: 33rem; }
  .hero-inner { padding-block: 3.5rem 5.65rem; }
}
