/* Dark always: the logo's browns and oranges are drawn for a dark ground. The
   hero sits under a 65% fade of the background colour, so it stays texture. */
:root {
  color-scheme: dark;
  --bg: #1d1a17;
  --fg: #f1e3c8;
  --muted: #c9b99c;
  --accent: #e8913a;
  --field: #2a2521;
  --line: #5c5045;
  --fade: linear-gradient(rgb(29 26 23 / 0.65), rgb(29 26 23 / 0.65));
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  background-color: var(--bg);
  background-image: var(--fade), url("/hero-1600.jpg");
  background-image: var(--fade), image-set(url("/hero-2400.webp") type("image/webp"), url("/hero-1600.jpg") type("image/jpeg"));
  background-position: center;
  background-size: cover;
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 40rem) {
  body {
    background-image: var(--fade), image-set(url("/hero-1200.webp") type("image/webp"), url("/hero-1600.jpg") type("image/jpeg"));
  }
}

main {
  width: min(28rem, 100%);
}

.logo {
  display: block;
  width: min(18rem, 64vw);
  height: auto;
  margin: 0 auto;
}

.logo--small {
  width: min(10rem, 40vw);
}

.soon {
  margin: 1.5rem 0 0;
  color: var(--accent);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
}

a {
  color: var(--accent);
}

.interest {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgb(29 26 23 / 0.8);
  text-align: left;
}

.interest h2 {
  margin: 0 0 0.25rem;
  text-align: center;
}

.interest label,
.interest legend {
  font-weight: 600;
}

.interest input[type="email"],
.interest select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--field);
  color: var(--fg);
  font: inherit;
}

.interest fieldset {
  margin: 0.5rem 0;
  padding: 0;
  border: 0;
}

.interest .check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
  font-weight: 400;
}

.interest input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}

.interest button {
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.4rem;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

/* Shown only when a bad submission is sent back to /#form-invalid. */
.form-invalid {
  display: none;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border-left: 3px solid var(--accent);
  background: var(--field);
}

.form-invalid:target {
  display: block;
}

.fine {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.social {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
