:root {
  --teal: #205855;
  --teal-deep: #163e3c;
  --teal-ink: #102e2c;
  --gold: #c0912b;
  --gold-soft: #d4b05a;
  --gold-bright: #e0c56a;
  --ivory: #f3e6c0;
  --ivory-muted: rgba(243, 230, 192, 0.72);
  --line: rgba(192, 145, 43, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--teal);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--ivory);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 38%,
      rgba(192, 145, 43, 0.1),
      transparent 62%
    ),
    radial-gradient(
      ellipse 120% 90% at 50% 100%,
      rgba(16, 46, 44, 0.55),
      transparent 58%
    ),
    var(--teal);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: rgba(192, 145, 43, 0.35);
  color: var(--ivory);
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.045;
  mix-blend-mode: overlay;
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: min(28vh, 220px);
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.1;
  opacity: 0.14;
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding:
    clamp(2rem, 8vh, 5rem)
    max(1.25rem, env(safe-area-inset-right))
    2rem
    max(1.25rem, env(safe-area-inset-left));
}

.brand {
  margin: 0;
}

.brand a {
  display: block;
  line-height: 0;
  color: inherit;
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(26rem, calc(100vw - 2.5rem), 56vh);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(10, 28, 26, 0.28));
}

.rule {
  width: 4.5rem;
  height: 1px;
  margin: 2.15rem 0 1.55rem;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold) 18%,
    var(--gold-bright) 50%,
    var(--gold) 82%,
    transparent
  );
}

.lede {
  margin: 0 0 2rem;
  max-width: min(22rem, 100%);
  padding-inline: 0.15rem;
  color: var(--ivory-muted);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.45;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.reach {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem 3.25rem;
}

.reach-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 8rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.5rem;
  color: inherit;
  text-decoration: none;
}

.reach-label {
  font-family: Cinzel, Palatino, serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.reach-value {
  font-size: clamp(1rem, 3.8vw, 1.12rem);
  letter-spacing: 0.04em;
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  overflow-wrap: anywhere;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.reach-link:hover .reach-value,
.reach-link:focus-visible .reach-value {
  color: var(--gold-bright);
  border-bottom-color: var(--line);
}

.reach-link:focus-visible {
  outline: 1px solid var(--gold-soft);
  outline-offset: 8px;
}

footer {
  position: relative;
  z-index: 1;
  padding:
    0
    max(1.25rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  text-align: center;
}

footer p {
  margin: 0;
  font-family: Cinzel, Palatino, serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 230, 192, 0.42);
  overflow-wrap: anywhere;
}

.brand,
.rule,
.lede,
.reach,
footer {
  animation: rise 1.15s var(--ease) both;
}

.rule {
  animation-delay: 0.22s;
}

.lede {
  animation-delay: 0.38s;
}

.reach {
  animation-delay: 0.52s;
}

footer {
  animation-delay: 0.7s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .brand img {
    width: min(16.5rem, calc(100vw - 2.5rem), 42vh);
  }

  .reach {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }

  .lede {
    margin-bottom: 1.5rem;
  }

  footer p {
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    line-height: 1.7;
  }
}

@media (max-width: 360px) {
  .brand img {
    width: min(13.5rem, calc(100vw - 2.25rem));
  }

  .lede {
    font-size: 1rem;
  }

  .reach-label {
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }

  .reach-value {
    font-size: 0.98rem;
  }
}

@media (max-height: 700px) and (orientation: landscape) {
  main {
    padding-block: 1rem;
  }

  .brand img {
    width: min(12.5rem, 32vw, 48vh);
  }

  .rule {
    margin: 0.75rem 0 0.7rem;
  }

  .lede {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
  }

  .reach {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    width: auto;
  }

  .horizon {
    height: 16vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .rule,
  .lede,
  .reach,
  footer {
    animation: none;
  }
}
