:root {
  --vacuum:      #0A0B0F;
  --regolith:    #5A5C60;
  --cloud:       #C8D6E3;
  --earth-blue:  #3A6FB5;
  --copper:      #7A4A2C;
  --breach-red:  #9A2A1F;

  --type-display: "Space Grotesk", system-ui, sans-serif;
  --type-body:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--vacuum);
  color: var(--cloud);
  font-family: var(--type-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

main {
  width: 100%;
  max-width: 640px;
}

/* Wordmark
   -------------------------------------------------------------- */
.wordmark {
  margin-bottom: 3rem;
}

.wordmark h1 {
  font-family: var(--type-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: 0.18em;
  margin: 0;
  color: var(--cloud);
}

.wordmark hr {
  border: 0;
  border-top: 1px solid var(--copper);
  width: 4rem;
  margin: 1rem 0 0;
}

/* Body copy
   -------------------------------------------------------------- */
.copy p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--cloud);
  margin: 0 0 1.5rem;
}

.copy p:last-child {
  margin-bottom: 2.5rem;
}

.copy p.lead {
  font-size: 1.0625rem;
  color: var(--cloud);
}

.copy em {
  font-style: italic;
  color: var(--cloud);
}

.copy a,
footer a {
  color: var(--cloud);
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
  transition: color 120ms ease, border-color 120ms ease;
}

.copy a:hover,
footer a:hover {
  color: var(--earth-blue);
  border-color: var(--earth-blue);
}

.copy strong {
  color: var(--cloud);
  font-weight: 500;
}

/* Wordmark on prose pages (privacy, 404): link to home */
.wordmark h1 a {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

/* Gallery
   -------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0 0 3rem;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--regolith) 50%, transparent);
  filter: brightness(0.92) saturate(0.95);
  transition: filter 200ms ease, border-color 200ms ease;
  cursor: zoom-in;
}

.gallery img:hover {
  filter: brightness(1.05) saturate(1.0);
  border-color: var(--earth-blue);
}

/* Lightbox
   -------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  overflow: visible;
  cursor: zoom-out;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lightbox-fade 180ms ease;
}

.lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--regolith) 50%, transparent);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .gallery img {
    aspect-ratio: 16 / 9;
  }
}

/* Timeline (vertical, two-column dl)
   -------------------------------------------------------------- */
.timeline {
  margin: 0 0 3rem;
}

.timeline dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.5rem;
  row-gap: 0.625rem;
  margin: 0;
  padding: 1.25rem 0;
  border-top: 1px solid color-mix(in srgb, var(--regolith) 35%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--regolith) 35%, transparent);
  font-size: 0.875rem;
  line-height: 1.5;
}

.timeline dt {
  color: var(--regolith);
  font-weight: 500;
  white-space: nowrap;
}

.timeline dd {
  margin: 0;
  color: var(--cloud);
}

@media (max-width: 560px) {
  .timeline dl {
    column-gap: 1rem;
    font-size: 0.8125rem;
  }
}

/* Signup
   -------------------------------------------------------------- */
.signup {
  margin-bottom: 3rem;
}

.cta-line {
  font-size: 0.875rem;
  color: var(--regolith);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--regolith);
  color: var(--cloud);
  font-family: var(--type-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0;
  outline: none;
  transition: border-color 120ms ease;
}

input[type="email"]::placeholder {
  color: var(--regolith);
  opacity: 0.7;
}

input[type="email"]:focus {
  border-color: var(--earth-blue);
}

input[type="email"]:invalid:not(:placeholder-shown) {
  border-color: var(--breach-red);
}

button[type="submit"] {
  background: transparent;
  border: 1px solid var(--earth-blue);
  color: var(--cloud);
  font-family: var(--type-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 120ms ease, color 120ms ease;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background: var(--earth-blue);
  color: var(--vacuum);
  outline: none;
}

button[type="submit"]:disabled,
button[type="submit"][disabled] {
  background: transparent;
  border-color: var(--regolith);
  color: var(--regolith);
  cursor: not-allowed;
  pointer-events: none;
}

input[type="email"]:disabled {
  color: var(--regolith);
  border-color: color-mix(in srgb, var(--regolith) 60%, transparent);
  cursor: not-allowed;
}

.signup-success {
  font-size: 0.9375rem;
  color: var(--cloud);
  margin: 0;
  padding: 0.75rem 0;
  letter-spacing: 0.02em;
}

.signup-success[hidden] { display: none; }

.steam-soon {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--regolith);
  letter-spacing: 0.04em;
}

/* Footer
   -------------------------------------------------------------- */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--regolith) 40%, transparent);
  font-size: 0.8125rem;
  color: var(--regolith);
}

footer p { margin: 0.25rem 0; }

.muted { color: color-mix(in srgb, var(--regolith) 80%, transparent); }

footer a {
  color: var(--cloud);
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
}

footer a:hover { color: var(--earth-blue); border-bottom-color: var(--earth-blue); }

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

/* Mobile
   -------------------------------------------------------------- */
@media (max-width: 480px) {
  body { padding: 1.5rem 1.25rem; }
  .wordmark { margin-bottom: 2rem; }
  .copy p { margin-bottom: 2rem; }
  .signup { margin-bottom: 2.5rem; }
  footer { margin-top: 3rem; }
}
