/* stylesheet for GAL web pages; the playground uses gal.css */

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, ul, ol {
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --color-text: #f0f0f0;
  --color-bg: #101010;
  --color-accent: #33ff66;
  --color-alt: #ffb000;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --space: 1rem;
  --max-width: 1120px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4 {
  line-height: 1.2;
}

a {
  color: var(--color-accent);
  text-decoration: underline 1px #999;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

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

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

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

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

h2, h3, h4 {
  color: var(--color-alt);
}

p, h1, h2, h3, h4, ul, table, details, form {
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 1.25rem;
}
li > ul, li > ol {
  margin-bottom: 0;
}

nav {
  font-size: 1.5rem;
  border-top: 1px solid;
  border-bottom: 1px solid;
  margin-bottom: 1rem;
}
nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: .25rem 0 .5rem;
  padding-left: 0;
  flex-wrap: wrap;
}
nav li {
  display: block;
}
nav a {
  text-decoration: none;
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
}
nav a:hover,
nav a:focus-visible {
  color: var(--color-alt);
  border-bottom-color: #999;
}
nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}

summary {
	cursor: pointer;
}

footer {
  border-top: 1px solid;
}
footer p {
  margin-top: .5rem;
}

/* manual table */
.instructions {
	border-spacing: 0;
}
.instructions td {
	padding: 1px 2px;
}

/* contact form */
.hp {
  position: absolute;
  left: -9999px;
}
label {
  display: block;
  margin-bottom: .25rem;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  max-width: 30rem;
  padding: .5rem;
  margin-bottom: .5rem;
  background: #1a1a1a;
  border: 1px solid #999;
}
form button {
  width: 100%;
  max-width: 30rem;
  cursor: pointer;
  color: black;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
