:root {
  color-scheme: dark;
  --ink: #0b0b0d;
  --panel: #111114;
  --ivory: #f5f3ee;
  --muted: rgba(245, 243, 238, 0.66);
  --faint: rgba(245, 243, 238, 0.1);
  --gold: #c7a45b;
  --red: #d72638;
  --crimson: #8b1025;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 3%, rgba(199, 164, 91, 0.1), transparent 34rem),
    repeating-linear-gradient(135deg, rgba(245, 243, 238, 0.014) 0 1px, transparent 1px 18px),
    var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.shell {
  width: min(100% - 2.5rem, 74rem);
  margin: 0 auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 6.5rem;
  border-bottom: 1px solid var(--faint);
}

.wordmark {
  width: 10.75rem;
  height: auto;
}

.masthead nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem;
  color: rgba(245, 243, 238, 0.6);
  font-size: 0.82rem;
}

.masthead a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.app-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(199, 164, 91, 0.48);
  border-radius: 999px;
  padding: 0 1.1rem;
  color: var(--gold) !important;
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 6.5rem);
  align-items: center;
  padding: 5rem 0 6rem;
}

.hero-art {
  position: absolute;
  top: clamp(-8rem, -8vw, -3rem);
  right: clamp(-20rem, -16vw, -7rem);
  width: min(52rem, 74vw);
  opacity: 0.27;
  pointer-events: none;
  filter: drop-shadow(0 3rem 5rem rgba(0, 0, 0, 0.72));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4rem;
  align-items: end;
}

.hero-copy {
  max-width: 52rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--red);
  content: "";
  box-shadow: 0 0 1.25rem rgba(215, 38, 56, 0.72);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  max-width: 49rem;
  margin-bottom: 1.5rem;
  font-size: clamp(4.6rem, 13vw, 9.5rem);
  line-height: 0.78;
  letter-spacing: -0.055em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 40rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 243, 238, 0.16);
  border-radius: 0.55rem;
  padding: 0 1.4rem;
  font-size: 0.9rem;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 243, 238, 0.36);
}

.button-primary {
  border-color: var(--red);
  background: var(--red);
}

.button-primary:hover {
  border-color: #ef3d4d;
  background: #b81e2f;
}

.button-secondary {
  border-color: rgba(199, 164, 91, 0.46);
  color: var(--gold);
}

.ritual {
  width: min(100%, 22rem);
  justify-self: end;
  border: 1px solid var(--faint);
  border-radius: 0.7rem;
  background: rgba(17, 17, 20, 0.86);
  padding: 1.5rem;
  box-shadow: 0 3rem 8rem -4rem #000;
  backdrop-filter: blur(12px);
}

.ritual-label {
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ritual ol {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ritual li {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 0.85rem;
  align-items: center;
  border-top: 1px solid var(--faint);
  padding: 1rem 0;
  color: rgba(245, 243, 238, 0.78);
  font-size: 0.88rem;
}

.ritual li:first-child {
  border-top: 0;
}

.ritual span {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid rgba(215, 38, 56, 0.55);
  border-radius: 50%;
  color: var(--red);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.pillars {
  display: grid;
  gap: 1rem;
  padding: 0 0 7rem;
}

.pillar {
  border: 1px solid var(--faint);
  border-radius: 0.7rem;
  background: var(--panel);
  padding: 1.5rem;
}

.pillar h2 {
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
}

.pillar p {
  margin-bottom: 0;
  color: rgba(245, 243, 238, 0.58);
  font-size: 0.9rem;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--faint);
  padding: 2rem 0 3rem;
  color: rgba(245, 243, 238, 0.48);
  font-size: 0.82rem;
}

.legal-page {
  color-scheme: light;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(199, 164, 91, 0.14), transparent 28rem),
    repeating-linear-gradient(135deg, rgba(11, 11, 13, 0.025) 0 1px, transparent 1px 18px),
    #f5f3ee;
  color: #0b0b0d;
}

.legal-page .masthead {
  border-color: rgba(11, 11, 13, 0.1);
}

.legal-page .masthead nav,
.legal-page .footer-links {
  color: rgba(11, 11, 13, 0.58);
}

.legal-page .app-link {
  border-color: rgba(139, 16, 37, 0.3);
  color: var(--crimson) !important;
}

.legal {
  width: min(100% - 2.5rem, 48rem);
  margin: 0 auto;
  padding: 5rem 0 7rem;
}

.legal .eyebrow {
  color: #8f6e2a;
}

.legal h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3.6rem, 9vw, 6.4rem);
  line-height: 0.9;
}

.lede {
  max-width: 42rem;
  color: rgba(11, 11, 13, 0.62);
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal section {
  border-top: 1px solid rgba(11, 11, 13, 0.1);
  padding: 2.2rem 0 0;
  margin-top: 2.2rem;
}

.legal h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.legal p,
.legal li {
  color: rgba(11, 11, 13, 0.72);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal li + li {
  margin-top: 0.65rem;
}

.legal a:not(.button) {
  color: var(--crimson);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-page .site-footer {
  border-color: rgba(11, 11, 13, 0.1);
  color: rgba(11, 11, 13, 0.5);
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 22rem;
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 680px) {
  .masthead {
    align-items: flex-start;
    padding: 1.4rem 0;
  }

  .masthead nav a:not(.app-link) {
    display: none;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-art {
    right: -19rem;
    width: 37rem;
    opacity: 0.18;
  }

  .ritual {
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
