:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f7f4ff;
  background: #100d1c;
  --gold: #f2d36e;
  --panel: #211732;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: transparent; }
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #100d1c url("/assets/background.png") center center / cover no-repeat;
  content: "";
}
a { color: var(--gold); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip-link, .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link:focus {
  z-index: 10;
  top: .5rem; left: .5rem;
  width: auto; height: auto;
  padding: .75rem 1rem;
  clip-path: none;
  background: var(--panel);
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  min-height: 56px;
  padding: .35rem clamp(.8rem, 2.1vw, 2rem);
  background: #120e1d;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-right: auto;
  font-size: 1.25rem;
  text-decoration: none;
  color: inherit;
}
.site-brand img { object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; gap: .15rem .4rem; }
.site-nav a {
  display: block;
  padding: .65rem .55rem;
  border-radius: .45rem;
  color: inherit;
  text-decoration: none;
}
.site-nav a:hover { background: #ffffff10; }
.site-nav [aria-current="page"] {
  color: var(--gold);
  background: #f2d36e16;
}
.site-header button, .search-dialog button {
  min-height: 40px;
  padding: .45rem .7rem;
  border: 1px solid #ffffff32;
  border-radius: .5rem;
  background: #ffffff0d;
  color: inherit;
}

.marketing { padding-top: clamp(12px, 4.5vw, 56px); }
.route-home .marketing { overflow: clip; }
.legal {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 30px);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.legal h1, .legal h2, .legal h3 { font-size: 1em; line-height: 1.4; }
.legal h1 { margin-top: 0; }
.legal h2 { margin-top: 2em; }
.legal p, .legal li { margin: 0 0 .65em; }
.legal ul { list-style-type: square; padding-left: 1.35rem; }
.message-page { padding: clamp(28px, 8vw, 100px) 18px; }
.message-card {
  max-width: 700px;
  margin: auto;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid #ffffff22;
  border-radius: 22px;
  background: var(--panel);
  line-height: 1.5;
}
.message-card h1 { margin-top: 0; }

.search-dialog {
  width: min(36rem, calc(100% - 2rem));
  max-height: 85vh;
  overflow: auto;
  border: 1px solid #ffffff35;
  border-radius: 1rem;
  padding: 1.25rem;
  background: var(--panel);
  color: inherit;
}
.search-dialog::backdrop { background: #000a; }
.search-header, .site-search { display: flex; align-items: center; gap: .75rem; }
.search-header { justify-content: space-between; margin-bottom: 1rem; }
.search-header h2 { font-size: 1.25rem; margin: 0; }
.site-search input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: .55rem;
  border: 1px solid #ffffff35;
  border-radius: .5rem;
}
.search-results:empty { display: none; }
.search-results li { margin-block: .5rem; }

@media (max-width: 920px) {
  .site-nav { order: 1; width: 100%; }
  .site-header.has-menu .site-nav { display: none; }
  .site-header.has-menu .menu-toggle[aria-expanded="true"] + .site-nav {
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 420px) {
  .site-header { gap: .4rem; }
  .site-brand { gap: .4rem; font-size: 1.1rem; }
  .site-brand img { width: 32px; height: 32px; }
}
