:root {
  color-scheme: dark;
  --bg: #050506;
  --paper: #f3eee6;
  --muted: #9d978f;
  --line: rgba(243, 238, 230, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% -15%, rgba(255,255,255,.035), transparent 34rem),
    linear-gradient(180deg, #070708 0%, var(--bg) 48%, #030304 100%);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

a, button { -webkit-tap-highlight-color: transparent; }

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

button { color: inherit; font: inherit; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 clamp(24px, 4vw, 68px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.wordmark {
  font-size: .78rem;
  letter-spacing: .42em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.quiet-link, .soozhee-link, .footer-about, footer > a {
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-size: .64rem;
  letter-spacing: .22em;
  cursor: pointer;
  transition: color 180ms ease;
}

.quiet-link:hover, .soozhee-link:hover, .footer-about:hover, footer > a:hover { color: #fff; }

.soozhee-arrow {
  color: #c9a55c;
  -webkit-text-fill-color: #c9a55c;
  letter-spacing: 0;
  font-weight: 300;
  margin-left: .28em;
  display: inline-block;
  transform: translateY(.02em);
  transition: transform 180ms ease;
}

.site-header .soozhee-link {
  display: inline-flex;
  align-items: center;
  color: var(--paper);
  white-space: nowrap;
}

.soozhee-link:hover .soozhee-arrow,
.soozhee-link:focus-visible .soozhee-arrow {
  transform: translate(.12rem, .02em);
}


.intro {
  padding: clamp(70px, 10vh, 120px) 24px clamp(72px, 9vh, 108px);
  text-align: center;
}

.intro .eyebrow {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(.74rem, 1vw, .92rem);
  letter-spacing: .48em;
}

.intro h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.25rem, 6.4vw, 6.35rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .16em;
}

.intro-rule {
  width: 1px;
  height: 25px;
  margin: 30px auto 19px;
  background: rgba(255,255,255,.58);
}

.intro > p:last-child {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.12rem, 1.65vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: .075em;
}

.formula-field {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  column-gap: clamp(36px, 5vw, 84px);
  row-gap: clamp(92px, 11vw, 150px);
  width: min(1360px, calc(100% - 80px));
  margin: 0 auto;
  padding-bottom: clamp(110px, 12vw, 170px);
}

.formula {
  min-width: 0;
  text-align: center;
}

.problem {
  min-height: 1.2em;
  margin: 0 0 26px;
  color: var(--accent-soft);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(.9rem, 1.15vw, 1.08rem);
  font-weight: 500;
  letter-spacing: .105em;
}

.enter {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(122px, 11.6vw, 174px);
  aspect-ratio: 1;
  margin: 0 auto 23px;
  border: 1px solid rgba(var(--accent-rgb), .58);
  border-radius: 50%;
  outline: none;
  background:
    radial-gradient(circle at 39% 31%, rgba(255,255,255,.055), transparent 26%),
    radial-gradient(circle at 53% 58%, rgba(var(--accent-rgb), .065), transparent 54%),
    linear-gradient(145deg, #151517 0%, #080809 43%, #111113 100%);
  box-shadow:
    inset 4px 4px 12px rgba(255,255,255,.035),
    inset -9px -10px 18px rgba(0,0,0,.8),
    0 0 0 2px rgba(255,255,255,.025),
    0 0 14px rgba(var(--accent-rgb), .32),
    0 20px 24px rgba(0,0,0,.68);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.enter::before {
  position: absolute;
  inset: 6px;
  content: "";
  border: 1px solid rgba(var(--accent-rgb), .2);
  border-radius: inherit;
  box-shadow: inset 0 0 22px rgba(var(--accent-rgb), .06);
}

.enter::after {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -15px;
  height: 17px;
  content: "";
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .23);
  filter: blur(10px);
  opacity: .78;
}

.play {
  position: relative;
  z-index: 1;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 27px solid var(--accent-soft);
  filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), .8));
}

@media (hover:hover) {
  .enter:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-rgb), .9);
    box-shadow:
      inset 4px 4px 12px rgba(255,255,255,.045),
      inset -9px -10px 18px rgba(0,0,0,.76),
      0 0 0 2px rgba(255,255,255,.03),
      0 0 20px rgba(var(--accent-rgb), .4),
      0 24px 28px rgba(0,0,0,.7);
  }
}

.enter:active { transform: translateY(2px) scale(.985); }

.enter:focus-visible { outline: 1px solid var(--accent-soft); outline-offset: 8px; }

.formula-copy { font-family: "Cormorant Garamond", serif; }

.number {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: .08em;
}

.stem {
  display: block;
  width: 1px;
  height: 12px;
  margin: 6px auto 8px;
  background: rgba(255,255,255,.5);
}

.formula h2 {
  min-height: 2.3em;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: .055em;
}

.formula-copy p {
  margin: 10px 0 0;
  color: #c0b9af;
  font-size: .72rem;
  letter-spacing: .18em;
}

.about {
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto 110px;
  padding: 58px 0 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about:not([hidden]) { display: flex; }

.about > div { max-width: 720px; }

.about .eyebrow {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: .67rem;
  letter-spacing: .3em;
}

.about h2 {
  margin: 0 0 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: .12em;
}

.about p:not(.eyebrow) {
  margin: 0;
  color: #c9c3ba;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.22rem;
  line-height: 1.55;
}

.about .principle {
  padding-top: 28px;
  color: var(--paper) !important;
  font-family: "Inter", sans-serif !important;
  font-size: .68rem !important;
  letter-spacing: .25em;
}

.principle span { padding: 0 .75em; color: var(--muted); }

.curious-link {
  display: inline-block;
  margin-top: 25px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(243, 238, 230, .2);
  color: var(--muted);
  font-size: .63rem;
  letter-spacing: .22em;
  transition: color 180ms ease, border-color 180ms ease;
}

.curious-link:hover,
.curious-link:focus-visible {
  color: var(--paper);
  border-color: rgba(243, 238, 230, .55);
}

.about-close {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .63rem;
  letter-spacing: .2em;
  cursor: pointer;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 102px;
  padding: 0 clamp(24px, 4vw, 68px);
  border-top: 1px solid rgba(255,255,255,.08);
  color: #928c84;
}

footer p {
  margin: 0;
  font-size: .62rem;
  letter-spacing: .31em;
  text-align: center;
}

footer > a { justify-self: end; }

@media (max-width: 980px) and (min-width: 681px) {
  .formula-field { grid-template-columns: repeat(2, minmax(220px, 1fr)); width: min(720px, calc(100% - 64px)); }
  .enter { width: 156px; }
}

@media (max-width: 680px) {
  .site-header { min-height: 68px; padding: 0 20px; }
  .wordmark { font-size: .68rem; letter-spacing: .31em; }
  .site-header .quiet-link { display: none; }
  .site-header .soozhee-link { display: inline-flex; font-size: .58rem; letter-spacing: .15em; }
  .soozhee-link { font-size: .58rem; letter-spacing: .15em; }

  .intro { padding: 56px 22px 68px; }
  .intro .eyebrow { margin-bottom: 14px; font-size: .66rem; letter-spacing: .34em; }
  .intro h1 { font-size: clamp(2.55rem, 12vw, 3.7rem); letter-spacing: .105em; }
  .intro-rule { height: 20px; margin: 21px auto 14px; }
  .intro > p:last-child { font-size: 1.05rem; line-height: 1.38; }

  .formula-field {
    display: block;
    width: min(100%, 460px);
    padding: 0 22px 80px;
  }

  .formula {
    display: grid;
    grid-template-columns: 124px 1fr;
    grid-template-rows: auto auto;
    column-gap: 24px;
    align-items: center;
    min-height: 216px;
    padding: 32px 4px;
    border-top: 1px solid rgba(255,255,255,.16);
    text-align: left;
  }

  .formula:first-child { border-top: 0; }
  .problem { grid-column: 1 / -1; margin: 0 0 20px; padding-left: 2px; font-size: .94rem; letter-spacing: .09em; }
  .enter { grid-column: 1; grid-row: 2; width: 112px; margin: 0; }
  .play { border-top-width: 13px; border-bottom-width: 13px; border-left-width: 21px; }
  .formula-copy { grid-column: 2; grid-row: 2; }
  .number { font-size: 1.2rem; }
  .stem { margin: 6px 0 8px 5px; }
  .formula h2 { min-height: auto; font-size: 1rem; line-height: 1.25; }
  .formula-copy p { font-size: .66rem; }

  .about { gap: 28px; margin-bottom: 72px; padding: 40px 0; }
  .about:not([hidden]) { display: block; }
  .about-close { margin-top: 30px; }

  footer { display: flex; flex-direction: column; min-height: 178px; justify-content: center; gap: 18px; text-align: center; }
  footer > a { justify-self: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
