:root {
  color-scheme: dark;
  --obsidian: #0b0b0e;
  --bone: #e6e0d8;
  --copper: #c98757;
  --body-text: #ccc2b8;
  --muted: #a99a8d;
  --gutter: clamp(1.25rem, 4.4vw, 4.5rem);
  --mono: ui-monospace, Menlo, Consolas, monospace;
  background: var(--obsidian);
  color: var(--bone);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    url("/terrain.svg") center center / cover no-repeat,
    radial-gradient(ellipse 57% 65% at 50% 44%, #45291f, #211719 55%, var(--obsidian) 100%);
}

.frame {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(1.5rem, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.masthead { display: flex; align-items: center; min-height: 2rem; }

.monogram {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.08em;
}

.monogram b { color: var(--copper); }

.hero {
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: clamp(2.625rem, 8vh, 6rem) 0;
}

.identity { display: grid; justify-items: center; }

.emblem {
  width: clamp(4.125rem, 9.5vw, 7.125rem);
  height: auto;
  margin-bottom: clamp(1.25rem, 4vh, 2.125rem);
  filter: drop-shadow(0 0 24px #c9875750);
}

h1 {
  margin: 0;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(2.9rem, 12vw, 8rem);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.086em;
  padding-right: .086em;
}

h1 span {
  display: block;
  margin-top: 1.3rem;
  padding-left: .8em;
  color: #dec3a9;
  font-family: var(--mono);
  font-size: clamp(.65rem, 1.4vw, .875rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .8em;
  text-transform: uppercase;
}

.description {
  margin: 0;
  max-width: 40ch;
  text-wrap: balance;
  color: var(--body-text);
  font-size: clamp(.875rem, 2.8vw, 1rem);
  line-height: 1.55;
}

.description::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin: clamp(1.4rem, 4.5vh, 2.25rem) auto 1.25rem;
  background: var(--copper);
}

.location, footer {
  font-family: var(--mono);
  font-size: .625rem;
  line-height: 1.5;
  color: var(--muted);
  text-transform: uppercase;
}

.location { margin: .75rem 0 0; letter-spacing: .24em; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .375rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid #c9875738;
  letter-spacing: .115em;
}

footer small { font-size: inherit; }
footer span { color: #c3a58a; }

@media (max-width: 36rem) {
  .atmosphere { background-size: auto 100%, cover; }
  h1 span { margin-top: 1rem; }
}

@media (max-height: 32rem) and (orientation: landscape) {
  .frame {
    padding-block: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-bottom));
  }

  .hero { padding-block: .75rem; }
  .emblem { width: 3.125rem; margin-bottom: 1rem; }
  footer { padding-top: .5rem; }
  h1 { font-size: clamp(2.75rem, 8vw, 5rem); }
  h1 span { margin-top: .75rem; }
  .description::before { margin-block: .9rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .emblem { animation: settle 2.6s cubic-bezier(.18, .62, .31, 1) both; }
  .atmosphere { animation: fade-in 2.4s ease-out both; }
}

@keyframes settle {
  from { opacity: .5; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: .48; }
  to { opacity: 1; }
}
