:root {
  --ink: #0b0b0a;
  --ivory: #eee9dc;
  --gold: #a07b44;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--ivory);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--ink);
}

.site-shell {
  display: grid;
  min-height: 100svh;
  grid-template-rows: 1fr auto;
  padding: clamp(3rem, 7vh, 5.5rem) clamp(1.5rem, 5vw, 4rem) 1.75rem;
}

.home {
  grid-template-rows: auto 1fr auto;
}

.site-header {
  color: #a09c92;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.identity {
  display: grid;
  width: 100%;
  margin: auto;
  place-items: center;
  text-align: center;
}

.seal {
  display: block;
  width: clamp(15rem, 44vh, 24.5rem);
  max-width: 76vw;
  height: auto;
  object-fit: contain;
}

p {
  margin: 0;
}

.error-message {
  margin-top: 2rem;
}

.error-message h1 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.error-message p {
  margin-top: 1rem;
  color: #d5c09b;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status {
  margin-top: clamp(2rem, 4.5vh, 3.25rem);
  color: #d5c09b;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.6;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-underline-offset: 0.3em;
}

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid #d5c09b;
  outline-offset: 5px;
}

footer {
  padding-top: clamp(3.5rem, 8vh, 6rem);
  color: #77746d;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

@media (max-width: 520px) {
  .site-shell {
    padding-top: 2.5rem;
  }

  .status {
    margin-top: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
