:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #151515;
  --ink: #fff;
  --ink-soft: #e0e0df;
  --ink-faint: #acaca9;
  --line: #383838;
  --input-border: #81817e;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --surface: #f8f8f7;
  --ink: #000;
  --ink-soft: #202020;
  --ink-faint: #535351;
  --line: #dededb;
  --input-border: #787875;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.55; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { opacity: .55; }
[hidden] { display: none !important; }
a { color: inherit; }
.access-home { text-decoration: none; }
.access-primary { border-radius: 100px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.access-shell {
  width: min(100% - clamp(2.25rem, 9vw, 8rem), 76rem);
  margin-inline: auto;
}

.access-header {
  color: var(--ink);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.access-header-inner, .access-brand, .access-header-actions, .access-home,
.access-language, .access-theme, .access-theme > span {
  display: flex;
  align-items: center;
}
.access-header-inner { min-height: 5rem; justify-content: space-between; gap: 1rem; }
.access-brand {
  gap: .55rem;
  color: var(--ink);
  font: 600 clamp(.9rem, 1.25vw, 1.1rem)/1.15 var(--font-head);
  letter-spacing: -.035em;
  text-decoration: none;
}
.access-brand img { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.access-brand .access-mark-light, .access-theme .access-theme-dark { display: none; }
html[data-theme="light"] .access-mark-dark,
html[data-theme="light"] .access-theme-light { display: none; }
html[data-theme="light"] .access-mark-light { display: block; }
html[data-theme="light"] .access-theme-dark { display: flex; }
.access-header-actions { gap: clamp(.45rem, 2vw, 1.5rem); }
.access-home {
  min-height: 44px;
  gap: .45rem;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .84rem;
}
.access-home:hover { text-decoration: underline; text-underline-offset: .2em; }
.access-language {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 3rem;
  padding: 2px;
}
.access-header button {
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.access-language [data-language-choice] {
  display: grid; place-items: center; text-decoration: none;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border: 0;
  border-radius: 3rem;
  font-weight: 600;
  font-size: .75rem;
}
html:lang(es) .access-language [lang="es"],
html:lang(en) .access-language [lang="en"] {
  background: var(--action-bg);
  color: var(--action-ink);
}
.access-theme {
  width: 2.5rem;
  height: 2.5rem;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.access-theme:hover { border-color: var(--ink-soft); }
.access-theme svg { width: 1.05rem; height: 1.05rem; }

.access-gate {
  background: var(--bg);
  color: var(--ink);
}
.access-gate[hidden], .access-gate [data-step][hidden],
html:lang(es) :is(.access-header, .access-gate) span[lang="en"],
html:lang(en) :is(.access-header, .access-gate) span[lang="es"] { display: none; }
.access-grid {
  min-height: calc(100svh - 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(2.25rem, 6.5vw, 6.5rem);
  padding-block: clamp(3rem, 7vw, 6.5rem);
}
.access-copy { min-width: 0; max-width: 34rem; }
.access-copy h1 {
  color: var(--ink);
  margin: 0;
  max-width: 13ch;
  font: 700 clamp(2.8rem, 5.5vw, 5.3rem)/1.04 var(--font-head);
  letter-spacing: -.062em;
  text-wrap: balance;
}
.access-copy h1:focus { outline: 0; }
.access-intro {
  margin: 1.3rem 0 0;
  max-width: 46ch;
  color: var(--ink-soft);
  font: 400 clamp(.98rem, 1.2vw, 1.08rem)/1.65 var(--font-body);
}
.access-intro strong { font-weight: 600; overflow-wrap: anywhere; }
.access-form { max-width: 26rem; margin-top: 2rem; }
.access-form label {
  display: block;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: .48rem;
}
.access-form input {
  display: block;
  width: 100%;
  min-height: 3.2rem;
  border: 1px solid var(--input-border);
  border-radius: .6rem;
  padding: .7rem .95rem;
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font-body);
}
.access-form input + label { margin-top: .9rem; }
.access-form :is(#access-code, #redeem-code) {
  max-width: 17rem;
  letter-spacing: .33em;
  font-variant-numeric: tabular-nums;
}
.access-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-radius: .6rem;
  min-height: 3.12rem;
  margin-top: 1.75rem;
  padding: .75rem 1.22rem;
  background: var(--action-bg);
  color: var(--action-ink);
  cursor: pointer;
  font: 600 .94rem/1.4 var(--font-head);
}
.access-primary:hover { background: var(--action-hover); }
.access-primary [aria-hidden] { font-size: 1.25rem; line-height: 1; }
.access-form .access-primary { margin-top: 1rem; }
.access-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem 1.25rem;
  margin-top: .65rem;
}
.access-links button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 .83rem/1.4 var(--font-body);
  text-decoration: underline;
  text-underline-offset: .23em;
  cursor: pointer;
}
.access-feedback { color: var(--ink); font-size: .88rem; line-height: 1.45; }
.access-feedback:not(:empty) { margin-top: .9rem; }
.access-note { margin-top: 1.55rem; color: var(--ink-faint); font-size: .76rem; line-height: 1.55; }
.access-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:is(.access-header, .access-gate) :is(a, button, input):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* A folder and two anonymous sheets of paper form the cover illustration. */
.access-art {
  --art-surface: #1c1d1f;
  --art-speck: rgb(255 255 255 / .11);
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background-color: var(--art-surface);
  background-image: radial-gradient(var(--art-speck) .75px, transparent .9px);
  background-size: 14px 14px;
}
html[data-theme="light"] .access-art {
  --art-surface: #ededea;
  --art-speck: rgb(30 32 35 / .14);
}
.access-folder {
  position: relative;
  width: 70%;
  aspect-ratio: 1.23;
  transform: translate(1%, 4%) rotate(-8deg);
  filter: drop-shadow(-6px 18px 12px rgb(0 0 0 / .24));
}
.access-folder-back {
  position: absolute;
  inset: 16% 3% 2% 0;
  border-radius: .7rem;
  background: #ab7907;
  clip-path: polygon(0 0, 32% 0, 39% 9%, 100% 9%, 100% 100%, 0 100%);
}
.access-paper {
  position: absolute;
  width: 72%;
  height: 83%;
  border-radius: 2% 2% 1% 1%;
}
.access-paper-back {
  top: 3%;
  left: 12%;
  transform: rotate(-8deg);
  background: #cccac0;
}
.access-paper-front {
  top: 1%;
  left: 21%;
  transform: rotate(10deg);
  background: #fbfaf4;
  box-shadow: -2px 1px 4px rgb(0 0 0 / .1);
}
.access-paper-front::before {
  content: "";
  position: absolute;
  top: 11%;
  left: 9%;
  width: 29%;
  height: 5%;
  background: #474845;
}
.access-paper-front b, .access-paper-front i {
  position: absolute;
  top: 24%;
  left: 9%;
  width: 56%;
  height: 2%;
  background: #b7b7ae;
}
.access-paper-front i { top: 30%; width: 38%; }
.access-folder-cover {
  position: absolute;
  inset: 37% 0 0 2%;
  overflow: hidden;
  display: grid;
  align-items: end;
  justify-items: start;
  padding: 0 0 5% 6%;
  border-radius: .45rem .45rem .9rem .9rem;
  background: linear-gradient(115deg, #f6ca49 0%, var(--yellow) 58%, #dca900 100%);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .36);
  transform: skewX(-5deg);
}
.access-folder-cover img { width: 22%; height: auto; object-fit: contain; filter: grayscale(1) brightness(.19); }

@media (max-width: 720px) {
  .access-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; min-height: auto; }
  .access-copy, .access-art { width: min(100%, 34rem); margin-inline: auto; }
  .access-art { aspect-ratio: 1.85; }
  .access-folder { width: 47%; }
}
@media (max-width: 520px) {
  .access-header-inner { min-height: 4.25rem; }
  .access-brand > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .access-header-actions { gap: .55rem; }
  .access-home { font-size: .79rem; }
  .access-grid { padding-block: 2.9rem; }
  .access-art { display: none; }
}
@media (max-width: 350px) {
  .access-header-actions { gap: .35rem; }
  .access-brand img { width: 2rem; height: 2rem; }
}

.access-expired-actions, .access-session-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.15rem; }
.access-expired-actions { margin-top: 1.6rem; }
.access-expired-actions .access-primary { margin-top: 0; }
.access-expired-actions > a { text-decoration: underline; text-underline-offset: .2em; }

#access-challenge { margin-top: 1rem; }
#review-email { overflow-wrap: anywhere; }
#approve { margin-top: 1.4rem; }
.access-primary:disabled { opacity: .55; cursor: wait; }
