
/**************/
/* base.css */
/**************/

* {
  border: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-wrap: break-word;
}

html, body {
  background-color: var(--color-default-dark);
  color: var(--color-default-light);
  font-family: var(--font-body);
  font-size: 100%;
  height: 100%;
  letter-spacing: 0.01em;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1.1rem; }

p {
  line-height: 1.55;
  margin-bottom: 1rem;
}

ol { margin: 0 0 1rem 2rem; }
ol li { margin-bottom: 0.5rem; }
ol ol { margin-left: 1.5rem; }
ol ul { margin-left: 1.25rem; }

ul { margin: 0 0 1rem 1.5rem; }
ul li { margin-bottom: 0.5rem; }
ul ul { margin-left: 1.25rem; }

hr {
  border: thin solid var(--color-default-dark);
}

label {
  cursor: pointer;
  font-size: 1.25rem;
  padding-bottom: 0.25rem;
}

button,
input,
select {
  border: 2px solid #ccc;
  border-radius: 0.5rem;
  font-family: inherit;
  padding: 0.5rem;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

option:checked {
  background: var(--color-accent);
}

input[type='checkbox'] {
  height: 1.25rem;
  width: 1.25rem;
}

input[type='radio'] {
  height: 1.25rem;
  width: 1.25rem;
}

button,
.button,
input[type='button'],
input[type='submit'] {
  border: thin solid transparent;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

button:disabled {
  background-color: #ddd;
  border-color: #bbb;
  color: #bbb;
}

button:enabled {
  background-color: var(--color-accent);
  border-color: transparent;
  color: var(--color-default-dark);
}

button.alpha-jump:enabled {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-default-dark);
}

button.alpha-jump:hover:enabled {
  filter: brightness(1.05);
}

button:hover:enabled {
  filter: brightness(1.05);
}

a, .link {
  color: var(--color-default-dark);
  cursor: pointer;
  text-decoration: underline;
}

a:hover, .link:hover {
  color: #8a4b00;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.hide {
  display: none;
}

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

.alpha-jump {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}
