:root {
  --access-ink: #f4f0e8;
  --access-dark: #080908;
  --access-forest: #101a16;
  --access-gold: #b99a62;
  --access-muted: #a7a096;
}

.edition-access-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(8,9,8,.92), rgba(8,9,8,.72)),
    url("assets/web-luxury/yacht_ocean.jpg") center / cover;
}

.edition-access-overlay.is-open {
  display: flex;
}

.edition-access-dialog {
  width: min(100%, 520px);
  padding: 42px;
  color: var(--access-ink);
  background: rgba(8,9,8,.88);
  border: 1px solid rgba(185,154,98,.42);
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}

.edition-access-dialog::before {
  content: "AURELIA";
  display: block;
  margin-bottom: 46px;
  color: var(--access-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 44px;
  letter-spacing: .06em;
}

.edition-access-dialog .eyebrow,
.edition-access-eyebrow {
  margin: 0 0 14px;
  color: var(--access-gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.edition-access-dialog h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 400;
  line-height: .88;
}

.edition-access-copy {
  margin: 20px 0 0;
  color: rgba(244,240,232,.72);
  font-size: 13px;
  line-height: 1.8;
}

.edition-access-form {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.edition-access-form label {
  color: var(--access-muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.edition-access-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid rgba(185,154,98,.52);
}

.edition-access-row input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--access-ink);
  padding: 14px 0;
  outline: 0;
  font: inherit;
}

.edition-access-row button {
  border: 0;
  background: transparent;
  color: var(--access-gold);
  padding: 0 0 0 18px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.edition-access-row button:hover {
  color: #d7ba83;
}

.edition-access-error {
  min-height: 18px;
  margin: 0;
  color: #d7ba83;
  font-size: 11px;
  line-height: 1.5;
}

.edition-access-close {
  margin-top: 24px;
  border: 0;
  background: transparent;
  color: rgba(244,240,232,.62);
  padding: 0;
  cursor: pointer;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.edition-access-close:hover {
  color: var(--access-gold);
}

body.edition-access-locked .reader-header,
body.edition-access-locked .reader-shell,
body.edition-access-locked .reader-controls {
  pointer-events: none;
  filter: blur(12px) brightness(.55);
}

@media (max-width: 560px) {
  .edition-access-dialog {
    padding: 30px 24px;
  }

  .edition-access-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 12px;
  }

  .edition-access-row button {
    justify-self: start;
    padding-left: 0;
  }
}
