:root {
  color-scheme: dark;
  --ink: #f5f2eb;
  --muted: #b9b5b4;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(8, 9, 14, 0.54);
  --accent: #bea4ff;
  --accent-soft: rgba(139, 103, 255, 0.18);
  --display: "Bodoni 72", "Didot", "Baskerville", serif;
  --sans: "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: #090a0f;
  color: var(--ink);
  font-family: var(--sans);
}

a { color: inherit; }

.portal {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  width: 100%;
  padding: clamp(1.25rem, 3vw, 3rem) clamp(1.25rem, 5vw, 6rem) clamp(1rem, 2vw, 2rem);
}

.portal__visual,
.portal__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.portal__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: arrive 1.3s cubic-bezier(.2,.8,.2,1) both;
}

.portal__veil {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, .96) 0%, rgba(5, 6, 10, .87) 29%, rgba(5, 6, 10, .42) 52%, rgba(5, 6, 10, .08) 78%),
    linear-gradient(0deg, rgba(5, 6, 10, .72) 0%, transparent 34%);
}

.brand,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .67rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand__link {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 2.45rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,.48);
  font-family: var(--display);
  font-size: .85rem;
  letter-spacing: .05em;
}

.brand__name { font-weight: 600; }
.brand__edition, .footer { color: rgba(255,255,255,.58); }

.hero {
  align-self: center;
  min-width: 0;
  width: min(41rem, 48vw);
  padding: clamp(2rem, 5vh, 5rem) 0;
}

.hero__eyebrow {
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .23em;
  text-transform: uppercase;
  animation: reveal .7s .1s both;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6.6vw, 7.6rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .84;
  text-wrap: balance;
  animation: reveal .8s .18s both;
}

.hero__lead {
  max-width: 43rem;
  margin: clamp(1.3rem, 3vh, 2.35rem) 0 clamp(1.8rem, 4vh, 3rem);
  color: var(--muted);
  font-size: clamp(.96rem, 1.15vw, 1.17rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
  animation: reveal .8s .27s both;
}

.portals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  animation: reveal .85s .38s both;
  min-width: 0;
}

.portal-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 7rem;
  gap: .7rem;
  padding: 1rem clamp(.65rem, 1.2vw, 1.1rem);
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .25s ease, transform .25s ease;
  min-width: 0;
}

.portal-link:last-child { border-right: 0; }
.portal-link:hover, .portal-link:focus-visible { background: rgba(255,255,255,.08); }
.portal-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.portal-link--featured { background: var(--accent-soft); }
.portal-link__number { align-self: start; color: rgba(255,255,255,.45); font-size: .6rem; letter-spacing: .12em; }
.portal-link__body { display: grid; gap: .32rem; }
.portal-link__body strong { font-family: var(--display); font-size: clamp(1.05rem, 1.45vw, 1.45rem); font-weight: 400; }
.portal-link__body small { color: rgba(255,255,255,.56); font-size: .62rem; line-height: 1.35; }
.portal-link__arrow { color: var(--accent); font-size: 1rem; transition: transform .25s ease; }
.portal-link:hover .portal-link__arrow { transform: translate(2px, -2px); }

.footer { align-self: end; }

@keyframes arrive {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .portal { min-height: 100dvh; }
  .portal__visual img { object-position: 62% center; }
  .portal__veil {
    background:
      linear-gradient(90deg, rgba(5,6,10,.92), rgba(5,6,10,.46) 80%),
      linear-gradient(0deg, rgba(5,6,10,.9) 0%, rgba(5,6,10,.24) 62%);
  }
  .hero { width: min(100%, 42rem); align-self: end; }
  h1 { font-size: clamp(3.5rem, 13vw, 6.5rem); }
}

@media (max-width: 620px) {
  .portal { overflow: auto; padding: 1rem; }
  .brand__edition { display: none; }
  .hero { padding: min(24vh, 10rem) 0 1.5rem; }
  .hero__lead { max-width: 31rem; }
  .portals { grid-template-columns: 1fr; }
  .portal-link { min-height: 4.8rem; border-right: 0; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
  .portal-link:last-child { border-bottom: 0; }
  .portal-link__body small { font-size: .68rem; }
  .portal__visual img { object-position: 66% center; }
  .footer { margin-top: 1rem; }
  .footer span:first-child { display: none; }
}

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