/* Two luminous doors, composed for a thumb before a pointer. */
@font-face {
  font-family: Garamond;
  src: url('/fonts/eb-garamond-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: Hanken;
  src: url('/fonts/hanken-grotesk-latin.woff2') format('woff2');
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #0b0912;
  --paper: #f4ecdf;
  --muted: #b9afbe;
  --line: #ffffff22;
  --space: 8px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: Hanken, sans-serif;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #f4d7a4;
  outline-offset: 8px;
}
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 65%, #431b292b, transparent 50%),
    radial-gradient(ellipse at 80% 55%, #183b432e, transparent 50%);
}
.sky::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='360'%3E%3Cg fill='%23d3c6b4'%3E%3Ccircle cx='17' cy='31' r='.7'/%3E%3Ccircle cx='212' cy='114' r='.6'/%3E%3Ccircle cx='432' cy='63' r='.8'/%3E%3Ccircle cx='357' cy='293' r='.6'/%3E%3Ccircle cx='73' cy='271' r='.8'/%3E%3C/g%3E%3C/svg%3E");
}
header,
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px clamp(24px, 5vw, 80px);
}
header {
  min-height: 120px;
}
.signature {
  display: flex;
  align-items: center;
}
.signature img {
  object-fit: contain;
  width: 160px;
  height: 64px;
}
.share {
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 8px 0 8px 16px;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.share[hidden] {
  display: none;
}
main {
  width: min(100%, 1120px);
  align-self: center;
  justify-self: center;
  padding: 32px 32px 48px;
  perspective: 1200px;
}
.heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 16px;
}
h1 {
  margin: 0;
  font-family: Garamond, Georgia, serif;
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 400;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
h1:focus {
  outline: none;
}
.back {
  display: grid;
  place-items: center;
  min-height: 48px;
  font-size: 24px;
  color: var(--muted);
}
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.choice {
  --light: #edb08d;
  --glow: #d56c653d;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 16px 16px 24px;
  border-radius: 8px;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s;
}
.choice.cool {
  --light: #a4d6ce;
  --glow: #64c6be2b;
}
.portal {
  width: clamp(152px, 24vw, 300px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}
.halo {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 66%);
  transition:
    transform 0.7s,
    opacity 0.7s;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--light);
  opacity: 0.35;
  box-shadow:
    inset 0 0 32px var(--glow),
    0 0 32px var(--glow);
  transition:
    transform 0.7s,
    opacity 0.7s;
}
.ring::before,
.ring::after {
  content: '';
  position: absolute;
  border: 1px solid var(--light);
  border-radius: 50%;
}
.ring::before {
  inset: 8px;
  opacity: 0.2;
}
.ring::after {
  inset: -16px;
  opacity: 0.12;
}
.glyph {
  width: 49%;
  height: 49%;
  overflow: visible;
  fill: none;
  stroke: var(--light);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px var(--glow));
  transition: transform 0.7s;
}
.glyph .solid {
  fill: var(--light);
  stroke: none;
}
.choice-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font:
    400 clamp(28px, 3vw, 42px) / 1.15 Garamond,
    Georgia,
    serif;
  margin-top: 32px;
}
.arrow {
  font:
    300 20px Hanken,
    sans-serif;
  color: var(--light);
  transition: transform 0.3s;
}
.detail {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 8px;
  min-height: 16px;
}
.choice:hover .ring,
.choice:focus-visible .ring {
  opacity: 0.8;
  transform: scale(1.04);
}
.choice:hover .glyph,
.choice:focus-visible .glyph {
  transform: scale(1.07) rotate(-4deg);
}
.choice:hover .halo {
  transform: scale(1.3);
}
.choice:hover .arrow {
  transform: translate(3px, -3px);
}
.departing .choice {
  opacity: 0;
  transform: translateZ(-120px) scale(0.9);
}
.departing .choice.selected {
  opacity: 0;
  transform: translateZ(480px) scale(1.4);
}
.arriving {
  animation: arrive 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
footer {
  color: var(--muted);
  font:
    12px/1.5 Hanken,
    sans-serif;
  min-height: 80px;
}
.build-stamp {
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0.75 !important;
  font-size: 10px !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (max-width: 600px) {
  header {
    padding: 16px 24px;
    min-height: 88px;
  }
  .signature img {
    width: 128px;
    height: 56px;
  }
  main {
    padding: 24px 16px 32px;
  }
  .heading {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 0;
  }
  h1 {
    font-size: clamp(32px, 8.8vw, 44px);
  }
  .choices {
    gap: 0;
    margin-top: 48px;
  }
  .choice {
    padding: 16px 0;
  }
  .portal {
    width: min(36vw, 200px);
  }
  .choice-label {
    gap: 8px;
    font-size: 28px;
    margin-top: 32px;
  }
  .arrow {
    font-size: 16px;
  }
  .detail {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  footer {
    padding: 16px 24px;
    gap: 16px;
    font-size: 10px;
    flex-wrap: wrap;
  }
}
@media (max-height: 560px) and (min-width: 601px) {
  header {
    min-height: 72px;
    padding-block: 8px;
  }
  main {
    padding-block: 8px;
  }
  h1 {
    font-size: 36px;
  }
  .choices {
    margin-top: 16px;
  }
  .portal {
    width: 136px;
  }
  .choice-label {
    margin-top: 16px;
    font-size: 28px;
  }
  footer {
    min-height: 48px;
    padding-block: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
