@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --night: #0d0b12;
  --vellum: #e8dcc0;
  --faded: #a8987a;
  --gold: #c9a54a;
  --gold-dim: rgba(201, 165, 74, 0.35);
  --crocus: #b5532a;
}

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--vellum);
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse at 50% 35%, rgba(181, 83, 42, 0.18), transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(201, 165, 74, 0.12), transparent 60%);
}

.tabula {
  max-width: 40rem;
  text-align: center;
}

.emblem {
  width: min(260px, 70vw);
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  animation: turn 240s linear infinite;
}

.emblem .ring,
.emblem .figure {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
}

.emblem .figure {
  stroke: var(--gold-dim);
}

.emblem text {
  fill: var(--gold);
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  text-anchor: middle;
  dominant-baseline: central;
}

.emblem .mars {
  stroke: var(--crocus);
  stroke-width: 3;
  fill: none;
}

h1 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: 0.18em;
  color: var(--gold);
}

.subtitle {
  margin-top: 0.4rem;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  color: var(--faded);
}

.dictum {
  margin: 2rem auto 0;
  max-width: 32rem;
  font-size: 1.2rem;
  line-height: 1.6;
  font-style: italic;
}

.dictum small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--faded);
}

.ianuae {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.ianua {
  display: block;
  padding: 1.5rem 1rem;
  border: 1px solid var(--gold-dim);
  outline: 1px solid var(--gold-dim);
  outline-offset: 4px;
  color: var(--vellum);
  text-decoration: none;
  transition: border-color 0.4s ease, outline-color 0.4s ease, background-color 0.4s ease;
}

.ianua:hover,
.ianua:focus-visible {
  border-color: var(--gold);
  outline-color: var(--gold);
  background-color: rgba(201, 165, 74, 0.06);
}

.ianua .latin {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--faded);
}

.ianua .name {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.35rem;
  color: var(--gold);
}

.colophon {
  margin-top: 3rem;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--faded);
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .emblem {
    animation: none;
  }
}

@media (max-width: 520px) {
  .ianuae {
    grid-template-columns: 1fr;
  }
}
