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

html {
  background: var(--noite);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--areia);
  font-family: var(--font-text);
  font-size: var(--fs-15);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--areia);
  outline-offset: 3px;
  border-radius: 10px;
}

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

/* Focus moved by the router lands on the heading or <main>: a ring there is noise. */
#content:focus,
#content h1:focus {
  outline: none;
}

/* ---- Backdrop: neutral night with one line-art emblem (rhombus, disc, band, Southern Cross). ---- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 70% at 50% -10%, var(--noite-top), var(--noite) 62%);
}

.backdrop__field,
.backdrop__disc,
.backdrop__waves {
  display: none;
}

.backdrop__rhombus {
  position: absolute;
  top: -40px;
  right: -230px;
  width: 980px;
  height: 700px;
  background: url('/assets/emblem.svg') no-repeat center / contain;
  opacity: 0.9;
}

/* ---- Page frame ---- */
.frame {
  width: min(var(--page-width), 100% - 2 * var(--space-5));
  margin: 0 auto;
  padding-bottom: var(--space-7);
}

.view {
  display: grid;
  gap: var(--space-5);
  padding-top: var(--space-6);
}

.view[hidden] {
  display: none;
}

.page-title {
  font-family: var(--font-display);
  font-size: var(--fs-30);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.page-lede {
  color: var(--nevoa);
  font-size: var(--fs-17);
  max-width: 62ch;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--bruma);
}

.numeric {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 720px) {
  .frame {
    width: min(var(--page-width), 100% - 2 * var(--space-4));
  }

  .page-title {
    font-size: 1.5rem;
  }
}
