.masthead-actions { display: flex; align-items: center; gap: 6px; }

.entrance {
  --ink: #111d1a;
  --gold: #d7b87b;
  --gold-muted: #a88e60;
  --paper: #f5ecdb;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 73% 46%, #344334, transparent 47%),
    radial-gradient(ellipse at 18% 99%, #242d23, transparent 48%),
    var(--ink);
  overscroll-behavior: contain;
}
.entrance::backdrop { background: transparent; }
body:has(.entrance[open]) { overflow: hidden; }
.entrance-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  max-width: 1610px;
  margin-inline: auto;
  padding: 0 clamp(26px, 5.2vw, 88px);
}
.entrance-masthead, .entrance-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
}
.entrance-masthead { border-bottom: 1px solid #c6a76d38; }
.entrance-brand { display: flex; align-items: center; gap: 13px; }
.entrance-brand > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid #bfa66d85;
  color: var(--gold);
}
.entrance-brand strong { display: block; font-size: 14px; letter-spacing: .14em; }
.entrance-brand small, .entrance-index, .entrance-kicker, .entrance-art figcaption, .entrance-footer {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .17em;
}
.entrance-brand small { display: block; margin-top: 5px; color: #bebaa4; font-size: 8px; }
.entrance-index { display: flex; align-items: center; gap: 10px; color: #dcd2b8; white-space: nowrap; }
.entrance-index span { color: var(--gold); font-family: Georgia, serif; font-size: 16px; }

.entrance-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(26px, 7vw, 120px);
  align-items: center;
  padding: clamp(24px, 5vh, 70px) clamp(0px, 3vw, 48px);
}
.entrance-kicker { display: flex; gap: 12px; align-items: center; color: var(--gold); margin: 0 0 25px; }
.entrance-kicker span { width: 27px; height: 1px; background: var(--gold-muted); }
.entrance-invite h2 {
  margin: 0;
  font-size: clamp(36px, 4.1vw, 64px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: .055em;
}
.entrance-invite h2 span {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: clamp(56px, 6.2vw, 101px);
  font-weight: 740;
  letter-spacing: .025em;
}
.entrance-copy { margin: 25px 0 31px; color: #d0ceba; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.7; }
.entrance-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  min-height: 55px;
  padding: 6px 10px 6px 22px;
  border: 1px solid #e6ca92;
  border-radius: 4px;
  background: #ddc089;
  color: #1f2b22;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .12em;
  transition: background .2s ease, box-shadow .2s ease;
}
.entrance-button svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid #39453865;
  border-radius: 50%;
}
.entrance-button:hover { background: #f2d59b; box-shadow: 0 5px 24px #e3bd6c30; }
.entrance-button:focus-visible { outline-color: #f9d68c; }
.entrance-button:disabled { opacity: 1; }
.entrance-access { margin: 13px 0 0; color: #b6b8a4; font-size: 11px; letter-spacing: .08em; }
.entrance-footer { min-height: 57px; border-top: 1px solid #c6a76d38; color: #bebaa4; }
.entrance-footer b { margin-left: 6px; color: var(--gold); }

.entrance-art { width: min(100%, 51vh, 510px); margin: 0; justify-self: center; }
.entrance-frame {
  position: relative;
  aspect-ratio: 10 / 11;
  perspective: 780px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #aa8f5a;
  box-shadow: 0 0 0 7px #1b271d, 0 0 0 8px #b3986257, 0 26px 74px #0a120e88;
  background: #bdb992;
}
.entrance-door {
  position: absolute;
  z-index: 1;
  inset-block: 0;
  width: 50%;
  background: #26372b url("./entrance-gate.svg") no-repeat left center / 200% 100%;
  transition: transform 1s cubic-bezier(.28, .7, .18, 1);
  backface-visibility: hidden;
}
.entrance-door-left { left: 0; transform-origin: left; border-right: 1px solid #e0c38499; }
.entrance-door-right { right: 0; transform-origin: right; background-position: right center; }
.entering .entrance-door-left { transform: rotateY(-86deg); }
.entering .entrance-door-right { transform: rotateY(86deg); }
.entrance-dawn {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle at 52% 40%, #fff2c5 2%, #e5be7e 16%, transparent 46%),
    linear-gradient(#233d39, #d2a771 51%, #677154 68%, #283930);
}
.entrance-dawn::before, .entrance-dawn::after, .entrance-dawn i {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: #708064;
  clip-path: polygon(0 27%, 13% 19%, 28% 23%, 43% 36%, 55% 31%, 71% 16%, 90% 3%, 100% 0, 100% 100%, 0 100%);
}
.entrance-dawn::after {
  inset-block-start: 53%;
  background: #415a48;
  clip-path: polygon(0 0, 19% 10%, 36% 27%, 50% 36%, 65% 28%, 86% 15%, 100% 20%, 100% 100%, 0 100%);
}
.entrance-dawn i {
  z-index: 1;
  inset-block-start: 67%;
  background: linear-gradient(#e5c48e, #a48360);
  clip-path: polygon(50% 4%, 56% 2%, 55% 16%, 53% 34%, 56% 57%, 76% 100%, 31% 100%, 43% 61%, 48% 38%, 51% 19%);
}
.entrance-art figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; color: var(--gold); }
.entrance-art figcaption span:last-child { color: #b8b6a3; }

@media (max-width: 720px) {
  .masthead-actions { gap: 0; }
  .masthead-actions .source-button { font-size: 11px; padding-inline: 6px; }
  .entrance-shell { padding-inline: 24px; }
  .entrance-masthead { min-height: 61px; }
  .entrance-brand small { display: none; }
  .entrance-main {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    row-gap: 0;
    padding: 24px 0 22px;
    text-align: center;
  }
  .entrance-invite { display: contents; }
  .entrance-kicker { margin-bottom: 12px; }
  .entrance-invite h2 { font-size: 27px; }
  .entrance-invite h2 span { margin-top: 3px; font-size: clamp(44px, 13vw, 57px); }
  .entrance-copy { margin: 10px 0 23px; font-size: 13px; }
  .entrance-art { grid-row: 4; width: min(70vw, 30svh, 260px); }
  .entrance-art figcaption { margin-top: 17px; font-size: 8px; }
  .entrance-button { margin-top: 21px; min-height: 51px; }
  .entrance-access { margin-top: 9px; }
  .entrance-footer { min-height: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  .entrance-button, .entrance-door { transition: none; }
}
