:root {
  color-scheme: dark;
  --navy-950: #030a15;
  --navy-900: #07172c;
  --navy-800: #0a2442;
  --gold-300: #f1d487;
  --gold-400: #d9ad4d;
  --gold-500: #b98226;
  --ivory: #fff9ec;
  --muted: #d7d1c5;
  --frame-radius: 0.75rem;
  --shadow: 0 2rem 5rem rgb(0 0 0 / 0.38), 0 0 0 1px rgb(241 212 135 / 0.2);
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 0%, rgb(20 63 103 / 0.78), transparent 35rem),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 45%, #02070f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(110deg, transparent 0 49.8%, rgb(241 212 135 / 0.05) 50%, transparent 50.2%),
    radial-gradient(circle, rgb(241 212 135 / 0.2) 1px, transparent 1.5px);
  background-size: 22rem 22rem, 4rem 4rem;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--navy-950);
  background: var(--gold-300);
  border-radius: 0.4rem;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-glow {
  position: absolute;
  z-index: 0;
  width: 22rem;
  height: 22rem;
  pointer-events: none;
  filter: blur(2px);
  border: 1px solid rgb(217 173 77 / 0.15);
  border-radius: 50%;
}

.page-glow--one {
  inset-block-start: 9rem;
  inset-inline-start: -13rem;
}

.page-glow--two {
  inset-block-start: 46rem;
  inset-inline-end: -15rem;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(48rem, 90svh);
  padding: clamp(5rem, 12vh, 9rem) 1.25rem 5rem;
  place-items: center;
  align-content: center;
  text-align: center;
}

.hero__ornament {
  display: grid;
  width: min(22rem, 85vw);
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  color: var(--gold-300);
}

.hero__ornament > span:not(.hero__gem) {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}

.hero__ornament > span:last-child {
  background: linear-gradient(90deg, var(--gold-400), transparent);
}

.hero__gem {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  border: 1px solid rgb(241 212 135 / 0.6);
  border-radius: 50%;
  place-items: center;
  box-shadow: inset 0 0 1.5rem rgb(217 173 77 / 0.14), 0 0 2rem rgb(217 173 77 / 0.08);
}

.hero h1 {
  max-width: 14ch;
  margin: 2.25rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  font-weight: 400;
  line-height: 0.95;
  text-wrap: balance;
  text-shadow: 0 0.2rem 2rem rgb(0 0 0 / 0.45);
}

.hero h1 span {
  display: block;
  margin-block-start: 0.25em;
  color: var(--gold-300);
  font-size: 0.55em;
}

.hero__rule {
  display: grid;
  width: min(10rem, 50vw);
  margin: 2rem 0;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.hero__rule::before,
.hero__rule::after {
  height: 1px;
  content: "";
  background: var(--gold-500);
}

.hero__rule i {
  width: 0.55rem;
  height: 0.55rem;
  margin: 0 0.6rem;
  background: var(--gold-300);
  transform: rotate(45deg);
}

.hero__start,
.closing a {
  margin-block-start: 2rem;
  padding: 0.8rem 1.45rem;
  color: var(--gold-300);
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgb(241 212 135 / 0.48);
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero__start:hover,
.hero__start:focus-visible,
.closing a:hover,
.closing a:focus-visible {
  color: var(--navy-950);
  background: var(--gold-300);
  border-color: var(--gold-300);
}

.story-nav {
  position: fixed;
  z-index: 20;
  inset-block-start: 50%;
  inset-inline-start: clamp(0.65rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transform: translateY(-50%);
}

.story-nav a {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  text-decoration: none;
  border-radius: 50%;
}

.story-nav a::before {
  width: 0.48rem;
  height: 0.48rem;
  content: "";
  background: rgb(255 249 236 / 0.38);
  border: 1px solid transparent;
  border-radius: 50%;
  transition: width 180ms ease, height 180ms ease, background 180ms ease, border-color 180ms ease;
}

.story-nav a:hover::before,
.story-nav a:focus-visible::before,
.story-nav a[aria-current="true"]::before {
  width: 0.76rem;
  height: 0.76rem;
  background: var(--gold-300);
  border-color: rgb(255 249 236 / 0.4);
}

.story-nav a:focus-visible,
.hero__start:focus-visible,
.closing a:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 3px;
}

.story {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(7rem, 16vw, 13rem);
  width: min(100%, 82rem);
  margin-inline: auto;
  padding: 2rem clamp(1rem, 5vw, 4rem) 8rem;
}

.tribute {
  position: relative;
  display: grid;
  min-height: 80svh;
  scroll-margin-block-start: 2rem;
  place-items: center;
}

.tribute::before {
  position: absolute;
  z-index: -1;
  width: min(46rem, 85vw);
  height: min(46rem, 85vw);
  content: "";
  opacity: 0.24;
  background: radial-gradient(circle, rgb(34 101 152 / 0.72), transparent 67%);
  border-radius: 50%;
}

.tribute__frame {
  position: relative;
  width: min(100%, 48rem);
  margin: 0;
  padding: clamp(0.35rem, 1vw, 0.65rem);
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-300), #805317 30%, #f9e5a6 50%, #875717 70%, var(--gold-300));
  border-radius: var(--frame-radius);
  box-shadow: var(--shadow);
}

.tribute__frame::after {
  position: absolute;
  inset: clamp(0.35rem, 1vw, 0.65rem);
  pointer-events: none;
  content: "";
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: calc(var(--frame-radius) - 0.25rem);
}

.tribute picture,
.tribute img {
  display: block;
  width: 100%;
}

.tribute img {
  height: auto;
  border-radius: calc(var(--frame-radius) - 0.25rem);
  background: #f6eddb;
}

.js .reveal {
  opacity: 0;
  transform: translateY(2rem) scale(0.985);
  transition: opacity 750ms ease, transform 900ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.closing {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 70svh;
  padding: 7rem 1.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.closing__mark {
  display: grid;
  width: 7rem;
  height: 7rem;
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.75rem;
  border: 1px solid rgb(241 212 135 / 0.55);
  border-radius: 50%;
  place-items: center;
  box-shadow: 0 0 4rem rgb(217 173 77 / 0.12);
}

.closing p {
  margin: 2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1.15;
  text-wrap: balance;
}

@media (max-width: 46rem) {
  .hero {
    min-height: 88svh;
  }

  .story {
    gap: 7rem;
    padding-block-end: 7rem;
  }

  .tribute {
    min-height: auto;
  }

  .story-nav {
    inset-block: auto 0.75rem;
    inset-inline: 50% auto;
    flex-direction: row;
    gap: 0.1rem;
    padding: 0.2rem 0.4rem;
    background: rgb(3 10 21 / 0.78);
    border: 1px solid rgb(241 212 135 / 0.16);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
  }

  .story-nav a {
    width: 2.35rem;
    height: 2.35rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
