@font-face {
  font-family: "Instrument";
  src: url("assets/instrument-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("assets/instrument-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #f6f0e4;
  background: #101923;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { min-width: 240px; }
body { margin: 0; }
p, h1 { margin: 0; }
::selection { background: #f4c49b; color: #14242b; }

.atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 106% 72%, #bd6c3e 0, #8c462e88 20%, transparent 54%),
    radial-gradient(ellipse at 8% 5%, #174d58 0, transparent 61%),
    radial-gradient(ellipse at 22% 115%, #27396a 0, transparent 50%),
    #11151f;
}
.light-fields { position: absolute; inset: -6%; will-change: transform; }
.field { position: absolute; inset: -10%; will-change: transform; }
.field--cool {
  background:
    radial-gradient(ellipse 57% 62% at 13% 16%, #175a65 0, #123d49 37%, transparent 74%),
    radial-gradient(ellipse 64% 42% at 18% 106%, #263d78 0, #1c2c51 47%, transparent 80%),
    radial-gradient(ellipse 42% 45% at 84% 0%, #463848 0, transparent 78%);
}
.field--warm {
  inset: -12%;
  background:
    radial-gradient(ellipse 17% 35% at 94% 71%, #eab980e6 0, #c27949a6 42%, transparent 77%),
    radial-gradient(ellipse 34% 55% at 99% 78%, #bd5c32 0, #84452dcc 36%, #5a332733 66%, transparent 85%);
  filter: blur(32px);
}
.field--ember {
  background: radial-gradient(ellipse 30% 25% at 79% 106%, #9c291d99 0, #5b202c66 43%, transparent 80%);
  filter: blur(24px);
}
.quiet-field {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 38% at 43% 46%, #0b162a88 0, #0b162a33 55%, transparent 100%);
}
.grain {
  position: absolute;
  inset: 0;
  background-image: url("assets/grain.png");
  background-size: 160px 160px;
  opacity: .055;
  mix-blend-mode: soft-light;
}
.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #07101822, transparent 22%, transparent 75%, #090e1a55);
}
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 5.4vh, 72px) 5.4vw clamp(27px, 5.2vh, 64px);
}
.quiet-copy {
  font-size: clamp(.8125rem, .92vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .005em;
  color: #eee8dd;
}
.masthead { align-self: start; }
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding-block: max(72px, 10vh) max(64px, 8vh);
}
.name {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  font-family: "Instrument", "Times New Roman", serif;
  font-size: 22.6vw;
  font-weight: 400;
  line-height: .91;
  letter-spacing: -.025em;
  cursor: text;
  -webkit-tap-highlight-color: transparent;
  padding-block: .06em;
}
.word { display: inline-block; white-space: nowrap; }
.word-space { width: .15em; flex: 0 0 .15em; }
.word--luck { font-style: italic; letter-spacing: -.032em; }
.letter {
  display: inline-block;
  transform-origin: 50% 80%;
  will-change: transform;
  position: relative;
}
.glyph {
  display: inline-block;
  transform-origin: 50% 80%;
  animation: arrive .86s cubic-bezier(.18,.75,.23,1) both;
}
.letter:nth-child(2) .glyph { animation-delay: 35ms; }
.letter:nth-child(3) .glyph { animation-delay: 65ms; }
.letter:nth-child(4) .glyph { animation-delay: 85ms; }
.letter:nth-child(5) .glyph { animation-delay: 100ms; }
.letter:nth-child(6) .glyph { animation-delay: 115ms; }
.word--luck .letter:nth-child(1) .glyph { animation-delay: 145ms; }
.word--luck .letter:nth-child(2) .glyph { animation-delay: 165ms; }
.word--luck .letter:nth-child(3) .glyph { animation-delay: 185ms; }
.word--luck .letter:nth-child(4) .glyph { animation-delay: 205ms; }
.word--luck .letter:nth-child(5) .glyph { animation-delay: 225ms; }
.quiet-copy { animation: appear .85s .3s cubic-bezier(.2,.7,.2,1) both; }
.welcome { animation-delay: .47s; }
.footer .quiet-copy { animation-delay: .55s; }
@keyframes arrive {
  from { opacity: 0; transform: translate3d(0, .22em, 0) rotate(2deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
}
@keyframes appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.word--daniel .letter:first-child { margin-right: -.018em; }
.word--daniel .letter:nth-child(4) { margin-right: -.005em; }
.word--luck .letter:first-child { margin-right: -.012em; }
.word--luck .letter:last-child { margin-left: -.025em; }
.welcome {
  margin-top: clamp(28px, 5.8vh, 70px);
  margin-left: 57.8%;
}
.footer { display: flex; justify-content: flex-end; }
.footer .quiet-copy { font-size: clamp(.75rem, .83vw, .875rem); color: #d7d7cd; }

@media (max-width: 700px), (max-width: 1100px) and (orientation: portrait) {
  .page { padding: max(28px, env(safe-area-inset-top)) 7.2vw max(28px, env(safe-area-inset-bottom)); }
  .quiet-copy { font-size: .8125rem; }
  .hero { padding-block: 70px 64px; }
  .name {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    font-size: 38.4vw;
    line-height: .9;
    padding-block: .04em;
  }
  .word--luck { align-self: flex-end; margin-top: -.015em; margin-right: .045em; }
  .word-space { position: absolute; width: 0; flex-basis: 0; overflow: hidden; }
  .welcome { margin-left: 0; margin-top: 44px; }
  .footer { justify-content: flex-end; }
  .footer .quiet-copy { font-size: .75rem; }
}
@media (max-width: 360px) {
  .page { padding-inline: 6.5vw; }
  .hero { padding-block: 58px 54px; }
}
@media (min-width: 701px) and (max-height: 520px) {
  .hero { padding-block: 60px 50px; }
  .welcome { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .letter { transform: none !important; will-change: auto; }
  .light-fields, .field { will-change: auto; }
}
