@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: Archivo;
  src: url("../assets/fonts/archivo-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: block;
}

@font-face {
  font-family: Archivo;
  src: url("../assets/fonts/archivo-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: block;
}

:root {
  color-scheme: dark;
  --ink: #121622;
  --footer: #080a0f;
  --accent: #ffe100;
  --white: #fff;
  --muted: rgb(255 255 255 / 75%);
  --quiet: rgb(255 255 255 / 65%);
  --border: rgb(255 255 255 / 25%);
  --error: #ff617b;
  --field-background: linear-gradient(rgb(255 255 255 / 10%), rgb(255 255 255 / 5%));
  --heading-font: "Barlow Condensed", sans-serif;
  --body-font: Archivo, sans-serif;
  --content-width: 1224px;
  --field-width: 392px;
  --radius: 4px;
  --motion: 120ms ease-out;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #555966 var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 500 16px/1.5 var(--body-font);
}

/* W3.CSS's w3-btn supplies the base button behavior. Hydroman uses flat buttons. */
.w3-btn, .w3-btn:hover {
  box-shadow: none;
}

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

button, input, select {
  font: inherit;
}

button, a, input, select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

img {
  display: block;
}

button {
  touch-action: manipulation;
}

input {
  min-width: 0;
  caret-color: var(--accent);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.heading {
  font-family: var(--heading-font);
  font-weight: 700;
  text-transform: uppercase;
}

.text-link {
  /* Oblique hover glyphs extend beyond the button's box. */
  overflow: visible;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: 700 16px/25.6px var(--heading-font);
  text-transform: uppercase;
}

@media (max-width: 1287.98px) {
  html {
    scrollbar-width: none;
  }
  html::-webkit-scrollbar {
    display: none;
  }
}

@media (hover: hover) {
  .text-link:hover {
    color: var(--accent);
    font-style: oblique;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Fonts and language restoration use independent guards; both must finish. */
html[data-fonts="pending"] { background: var(--ink); }
html[data-fonts="pending"] body { visibility: hidden; }
