:root {
  color-scheme: dark;
  --background: #080f1e;
  --text: #e6f1ff;
  --muted: #a5b5ca;
  --cyan: #00e5ff;
  --gold: #ffc857;
  --line: #26344a;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --header-height: 4.75rem;
  scroll-padding-top: calc(var(--header-height) + 1px);
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font: 1rem / 1.65 system-ui, sans-serif;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--cyan);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.container {
  width: min(100% - var(--gutter) * 2, 70rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 11;
  top: 0.75rem;
  left: var(--gutter);
  padding: 0.55em 0.9em;
  background: var(--background);
  clip-path: inset(50%);
}

.skip-link:focus {
  clip-path: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--background);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 1.5rem;
  min-height: var(--header-height);
  padding-block: 0.5rem;
}

.brand, .nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.brand {
  white-space: nowrap;
  gap: 0.55rem;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.nav-list, .contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem clamp(1rem, 3.5vw, 2.25rem);
}

.nav-list a {
  color: var(--muted);
  font-size: 0.9375rem;
}

.brand:hover, .nav-list a:hover {
  color: var(--cyan);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(3rem, 7vw, 6.5rem);
}

h1 {
  font-size: clamp(4.5rem, 10vw, 9rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.078em;
}

.hero-lead {
  max-width: 28rem;
  margin-top: 1.15rem;
  font-size: clamp(1.5rem, 3.2vw, 2.75rem);
  font-weight: 550;
  line-height: 1.16;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-period {
  color: var(--gold);
}

.hero-summary {
  max-width: 39ch;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.stake-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 1.65rem;
  padding: 0.65em 1.25em;
  border-radius: 0.25rem;
  background: var(--cyan);
  color: var(--background);
  font-weight: 700;
  text-decoration: none;
}

.stake-link:hover {
  background: var(--text);
  color: var(--background);
}

.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(100%, 29rem);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), var(--line) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(transparent calc(50% - 0.5px), var(--line) 50%, transparent calc(50% + 0.5px)),
    radial-gradient(circle, #11243b, var(--background) 70%);
}

.hero-art::before {
  position: absolute;
  inset: 8%;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.hero-emblem {
  position: relative;
  width: 76%;
}

.hero-emblem img {
  display: block;
  width: 100%;
  height: auto;
}

.section-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1rem clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2rem, 5vw, 3.75rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.section-content {
  min-width: 0;
  color: var(--muted);
}

.validator-details {
  display: grid;
  gap: 0.9rem;
}

.validator-details dt {
  color: var(--muted);
  font: 0.875rem / 1.45 var(--mono);
}

.validator-details dd {
  margin-top: 0.2rem;
  color: var(--text);
}

.moniker {
  font-weight: 600;
}

code {
  font: 0.9375em / 1.65 var(--mono);
  overflow-wrap: anywhere;
}

.validator-details code {
  user-select: all;
}

.staking-note {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.project-list li + li {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.project-list h3 {
  margin-bottom: 0.2rem;
  font-size: 1.125rem;
  font-weight: 650;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer {
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 44em) {
  .hero, .section-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    width: min(100%, 22rem);
    justify-self: start;
  }
}

@media (max-width: 24em) {
  h1 {
    font-size: clamp(2.75rem, 19vw, 4.5rem);
  }

}

/* Social icons */
.contact-list a {
  gap: 0.5rem;
  text-decoration: none;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

#validator .section-content > a {
  display: inline-block;
  margin-top: 1rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: #101e32;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.10);
}

@media (max-width: 44em) {
  :root {
    --header-height: 3.75rem;
  }

  .header-inner {
    width: calc(100% - 2rem);
    gap: 0.25rem 0.75rem;
  }

  .brand {
    gap: 0.4rem;
    font-size: 1rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .nav-list {
    column-gap: clamp(0.5rem, 2.5vw, 1.25rem);
  }

  .nav-list a {
    font-size: 0.875rem;
  }
}

@media (max-width: 24em) {
  .header-inner {
    width: calc(100% - 1.5rem);
    column-gap: 0.5rem;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .nav-list {
    column-gap: 0.5rem;
  }

  .nav-list a {
    font-size: 0.8125rem;
  }
}
