:root {
  --sky: #c5d4e4;
  --sea: #2a4a6e;
  --ink: #152033;
  --ink-soft: #2c3b52;
  --cream: #f6f1e8;
  --cream-dim: rgba(246, 241, 232, 0.72);
  --glass: rgba(18, 22, 28, 0.58);
  --line: rgba(246, 241, 232, 0.16);
  --roof: #c4784a;
  --shadow: 0 18px 50px rgba(12, 16, 22, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  background: #8aa3b8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 20;
  transform: translateY(-150%);
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  border-radius: 0 0 0.5rem 0.5rem;
}

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

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, #d7e3ee 0%, #b9cbe0 18%, #8aa6c0 34%, #3d5a78 46%, #6a716c 62%, #8a6a55 82%, #5c5550 100%);
}

.stage__photo.is-missing {
  display: none;
}

.stage__photo {
  display: block;
  width: 100%;
  height: 100%;
}

.stage__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.04);
  transform-origin: 50% 28%;
  animation: drift 36s var(--ease) infinite alternate;
}

.stage__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(197, 212, 228, 0.22) 0%,
      rgba(197, 212, 228, 0.08) 18%,
      rgba(21, 32, 51, 0.08) 38%,
      rgba(16, 20, 26, 0.42) 62%,
      rgba(12, 15, 20, 0.78) 100%
    );
  pointer-events: none;
}

.stage__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: clamp(1.1rem, 3vw, 2rem) clamp(1.1rem, 4vw, 3.5rem) 1.4rem;
}

.mast {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  animation: rise 0.9s var(--ease) both;
}

.mast p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(1.6rem, 4vh, 2.6rem);
  padding: clamp(2.4rem, 10vh, 7rem) 0 clamp(1.2rem, 4vh, 2.4rem);
}

.intro {
  max-width: 22ch;
  margin: 0;
  animation: rise 1s var(--ease) 0.08s both;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(12, 16, 22, 0.35);
}

.intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4.4rem, 12vw, 8.4rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--cream);
  text-shadow: 0 2px 28px rgba(12, 16, 22, 0.28);
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 28ch;
  color: var(--cream-dim);
  font-size: 1.08rem;
  text-shadow: 0 1px 10px rgba(12, 16, 22, 0.3);
}

.lede em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
}

.note {
  position: relative;
  max-width: 26rem;
  padding: 1.2rem 1.3rem 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--glass);
  color: var(--cream);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  overflow: hidden;
  isolation: isolate;
  animation: rise 1s var(--ease) 0.18s both;
}

.note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--roof);
}

.note__kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.note__lead {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.note__copy {
  margin: 0.7rem 0 0;
  max-width: 32ch;
  color: var(--cream-dim);
}

.colophon {
  margin-top: 0.35rem;
  animation: rise 1s var(--ease) 0.28s both;
}

.colophon p {
  margin: 0;
  color: rgba(246, 241, 232, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(0, -1.6%, 0);
  }
}

@media (min-width: 820px) {
  .stage__photo img {
    object-position: center 18%;
  }

  .intro {
    max-width: 16ch;
  }

  main {
    max-width: 42rem;
  }
}

@media (min-width: 1100px) {
  .frame {
    padding: 1.6rem 2.4rem 1.5rem;
  }

  main {
    display: grid;
    grid-template-columns: minmax(18rem, 0.95fr) minmax(16rem, 20rem);
    max-width: 58rem;
    align-items: end;
    column-gap: clamp(2.4rem, 5vw, 5rem);
    padding-bottom: clamp(1.6rem, 5vh, 3.2rem);
  }

  .intro {
    margin-bottom: 0.2rem;
  }

  .note {
    padding: 1.4rem 1.45rem 1.4rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .stage__photo img {
    object-position: 58% 16%;
  }

  .intro h1 {
    font-size: clamp(3.8rem, 18vw, 5.4rem);
  }
}

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

  .stage__photo img,
  .mast,
  .intro,
  .note,
  .colophon {
    animation: none !important;
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .note {
    background: #1b222b;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
