:root {
  --ink: #0f1412;
  --ivory: #ece7db;
  --ivory-dim: #a8a396;
  --brass: #b3a06d;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink) radial-gradient(ellipse 90% 70% at 50% 35%, rgb(236 231 219 / 5%), transparent 70%);
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* Navigation ------------------------------------------------------------ */

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.6rem 1rem 1.2rem;
  border-bottom: 1px solid rgb(236 231 219 / 8%);
}

nav a {
  padding: 0.4rem 0.1rem;
  border-bottom: 1px solid transparent;
  color: var(--ivory-dim);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease, border-color 0.3s ease;
}

nav a:hover {
  color: var(--ivory);
}

nav a:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 4px;
}

nav a[aria-current="page"] {
  border-bottom-color: var(--brass);
  color: var(--ivory);
}

/* Content --------------------------------------------------------------- */

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

section {
  animation: settle 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo img {
  display: block;
  width: auto;
  height: clamp(160px, 30vh, 240px);
  margin: 0 auto;
}

h1 {
  margin-top: 2.2rem;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

.subtitle {
  display: block;
  margin-top: 1.1rem;
  color: var(--brass);
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
}

.page {
  max-width: 34rem;
}

.page h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}

.page .rule {
  width: 1px;
  height: 3.2rem;
  margin: 1.6rem auto;
  background: linear-gradient(to bottom, var(--brass), transparent);
}

.page p {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  font-weight: 300;
  line-height: 1.75;
}

.page a {
  color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.page a:hover,
.page a:focus-visible {
  color: var(--ivory);
}

/* Footer ---------------------------------------------------------------- */

footer {
  padding: 1.6rem 1rem 1.4rem;
  color: var(--ivory-dim);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-align: center;
  text-indent: 0.28em;
  text-transform: uppercase;
}

/* Motion ---------------------------------------------------------------- */

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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