:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #fff;
  background: #102c27;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; }

.cover {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: max(3rem, env(safe-area-inset-top)) clamp(1.5rem, 5vw, 5rem) max(2rem, env(safe-area-inset-bottom));
  overflow: hidden;
}

.backdrop, .shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.backdrop { z-index: -3; }
.backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shade {
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(5, 22, 20, 0.38) 0%, rgba(5, 22, 20, 0.27) 25%, rgba(5, 22, 20, 0) 67%),
    linear-gradient(180deg, rgba(5, 23, 21, 0.13) 0%, rgba(5, 23, 21, 0.17) 48%, rgba(5, 23, 21, 0.08) 70%, rgba(4, 18, 16, 0.62) 100%);
}

.identity {
  width: 100%;
  max-width: 45rem;
  margin: auto;
  padding-block: 3rem 5rem;
  text-align: center;
  align-self: center;
}

.brand {
  display: block;
  width: clamp(19rem, 35vw, 30rem);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  overflow: hidden;
  filter: brightness(0) invert(1);
}

h1 {
  margin: 2.2rem 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(1.75rem, 2.3vw, 2.125rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.footer {
  text-align: center;
  padding-top: 2rem;
}

.footer small {
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.025em;
}

@media (max-width: 650px) {
  .cover {
    padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  }
  .identity { padding-block: 2rem 5.75rem; }
  .brand { width: 19.5rem; }
  h1 { margin-top: 1.7rem; font-size: 1.75rem; }
  .shade {
    background:
      radial-gradient(ellipse at 50% 39%, rgba(5, 22, 20, 0.39) 0%, rgba(5, 22, 20, 0.3) 26%, rgba(5, 22, 20, 0) 68%),
      linear-gradient(180deg, rgba(5, 23, 21, 0.12) 0%, rgba(5, 23, 21, 0.16) 50%, rgba(5, 23, 21, 0.04) 72%, rgba(4, 18, 16, 0.65) 100%);
  }
}

@media (max-height: 540px) and (min-width: 651px) {
  .cover { padding-block: 1.4rem; }
  .identity { padding-block: 1rem; }
  .brand { width: 20rem; }
  h1 { margin-top: 1rem; font-size: 1.75rem; }
  .footer { padding-top: 1.2rem; }
}

/* A small fallback for unknown URLs; the main page remains one screen. */
.not-found {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
}
.not-found h1, .not-found p { margin: 0; }
.not-found a { color: inherit; text-underline-offset: 0.3em; }
a:focus-visible { outline: 2px solid #f5f2e9; outline-offset: 0.35rem; }
