/* https://www.joshwcomeau.com/css/custom-css-reset/ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

._stacked {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

._packed {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

h1 + p {
  padding-top: 0;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

footer svg {
  margin: 5rem auto 0;
  width: 7rem;
  height: 7rem;
  vertical-align: middle;
}

footer .sep:first-child {
  display: none;
}

* {
  font-family: "Martian Mono", "Victor Mono", sans-serif;
}

svg [data-layer="qr"],
svg [data-layer="qrbg"] {
  display: none;
}

figcaption,
em,
.victor,
input[type="checkbox"] + label,
input::placeholder {
  font-family: "Victor Mono", "Material Symbols Outlined", sans-serif;
}

.smol {
  font-size: 0.7rem;
}

body {
  height: 100vh;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.centered {
  justify-content: center;
  align-items: center;
}

footer {
  padding: 2rem;
  text-align: center;
  justify-self: end;
}

body.centered h1 {
  text-align: center;
}

a {
  /* color: rgb(30, 228, 235); */
  color: rgb(1, 57, 160);
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.25rem;
  line-height: 2.5;
}

input {
  border: solid black 0.125rem;
  background: transparent;
  padding: 0.25em 0.5em;
  width: 15rem;
}

input:focus-visible {
  background-color: rgb(30, 228, 235);
  font-weight: bold;
}

input:hover {
  font-weight: bold;
}

button {
  color: white;
  background: black;
  border: none;
  padding: 0.5em 1em;
  border-radius: 1000000px;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: rgb(30, 228, 235);
  color: black;
  font-weight: bold;
}

label:not(.for-checkbox) {
  text-transform: uppercase;
  letter-spacing: 0.5ch;
  font-size: 0.75em;
  font-weight: 900;
  margin-bottom: -1rem;
}

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

html[lang="x-ic"] a:not(.noic),
html[lang="x-ic"] button:not(.noic),
html[lang="x-ic"] label:not(.noic),
html[lang="x-ic"] span:not(.noic):not(.sep),
html[lang="x-ic"] input::placeholder, 
html[lang="x-ic"] .icable {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

html[lang="x-ic"] input {
    line-height: 3;
    vertical-align: middle;
}
