@font-face {
  font-family: Newsreader;
  src: url('/assets/newsreader.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
:root {
  --blue: #1732bc;
  --white: #f0f3ff;
  --silver: #c3cfee;
  --line: #7087d7;
  --serif: Newsreader, Georgia, 'Times New Roman', serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  background: var(--blue);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--white); color: var(--blue); }
button, input { font: inherit; }
button, input, a, label { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 5px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.landing {
  width: min(1280px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(52px, 7.4vh, 92px) 28px 18px;
  text-align: center;
  overflow: hidden;
}
.book-title {
  font-family: var(--serif);
  font-size: clamp(68px, 8.6vw, 124px);
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -.052em;
  line-height: .86;
  margin: 0;
}
.book-title span { display: block; }
.book-title span + span { margin-top: 7px; }
.authors {
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 25px);
  letter-spacing: -.015em;
  line-height: 1.3;
  margin: 25px 0 0;
}
.ascent {
  position: relative;
  width: min(1050px, 100%);
  margin: 1px auto 0;
}
.ascent-image { display: block; width: 100%; height: auto; }
.access-form {
  position: absolute;
  left: 42%;
  top: 63%;
  transform: translate(-50%, -50%);
  width: 22%;
  margin: 0;
  padding: 0;
  background: transparent;
}
.password-control {
  display: flex;
  align-items: stretch;
  height: 44px;
  border: 0;
  border-bottom: 1px solid var(--blue);
  background: transparent;
}
.password-control:focus-within { border-bottom-width: 2px; }
.password-control input {
  width: 100%;
  min-width: 0;
  padding: 8px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  caret-color: var(--blue);
  font-size: 18px;
  letter-spacing: .07em;
}
.password-control input:focus { outline: 0; }
.password-control:has(input:focus-visible) { border-bottom-width: 2px; }
.password-control button {
  display: grid;
  place-items: center;
  width: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
}
.password-control button:hover { opacity: .65; }
.password-control button:focus-visible { outline-color: var(--blue); }
.password-control svg { display: block; width: 18px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.button-label { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.is-loading .button-label:after {
  content: '';
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.password-control .is-loading svg { display: none; }
.field-error { font-size: 12px; line-height: 1.5; color: var(--white); margin: 12px 0 0; }
.field-error:empty { display: none; }
.access-form .field-error { text-align: left; padding: 0 2px 3px; color: var(--blue); }
.noscript-note { font-size: 12px; }
.download {
  width: min(460px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(50px, 9vh, 100px) 0 60px;
}
.home-link { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 62px; }
.home-link img { display: block; width: 23px; height: 23px; }
.home-link:hover { opacity: .75; }
.reader-flow { width: 100%; }
.stage h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 51px;
  line-height: 1.03;
  letter-spacing: -.04em;
  text-align: center;
  margin: 0 0 42px;
}
.stage h1:focus { outline: 0; }
.reader-form label { display: block; font-size: 12px; color: var(--silver); margin-bottom: 12px; }
.reader-form input {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-size: 17px;
}
.reader-form input:focus { border-color: var(--white); outline: 2px solid var(--white); outline-offset: 3px; }
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 17px;
  padding: 13px 20px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
}
.primary-button:hover { background: var(--silver); border-color: var(--silver); }
.primary-button:disabled { opacity: .65; }
.process-status { margin: 0; min-height: 36px; color: var(--silver); font-size: 14px; line-height: 1.5; text-align: center; }
.progress-track { height: 1px; background: var(--line); overflow: hidden; margin-top: 27px; }
.progress-bar { width: 100%; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .5s ease-out; }
.portrait-frame { position: relative; width: 100%; aspect-ratio: 4/3; border: 1px solid var(--line); overflow: hidden; }
.portrait-frame video, .portrait-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.portrait-frame video { transform: scaleX(-1); }
.camera-placeholder { display: grid; place-items: center; height: 100%; padding: 30px; text-align: center; }
.camera-placeholder span { color: var(--silver); font-size: 12px; line-height: 1.6; max-width: 250px; }
.camera-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; }
.text-button, .upload-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--silver);
  font-size: 12px;
  cursor: pointer;
}
.text-button:hover, .upload-label:hover { color: var(--white); }
.text-button:disabled { opacity: .5; }
.upload-label { margin-left: auto; }
.upload-label input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.upload-label:focus-within { outline: 2px solid var(--white); outline-offset: 4px; }
.countdown { font-family: var(--serif); font-size: 100px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.035em; text-align: center; margin: 20px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1500px) {
  .landing { padding-top: 65px; }
  .ascent { width: 1060px; }
}
@media (min-width: 701px) and (max-height: 800px) {
  .landing { padding-top: 32px; padding-bottom: 12px; }
  .book-title { font-size: min(8.6vw, 98px); }
  .authors { font-size: 22px; margin-top: 18px; }
  .ascent { width: min(1050px, 100%, calc((100svh - 276px) * 1.875)); }
}
@media (max-width: 700px) {
  .landing { padding: clamp(56px, 10vh, 94px) 18px 25px; }
  .book-title { font-size: clamp(39px, 9.8vw, 68px); line-height: .92; letter-spacing: -.047em; }
  .book-title span + span { margin-top: 4px; }
  .authors { font-size: 19px; margin-top: 21px; }
  .ascent { width: 155%; max-width: none; margin: 34px -27.5% 0; }
  .access-form { width: 28%; left: 40%; top: 61%; }
  .password-control input { font-size: 16px; }
  .download { padding-top: 33px; width: min(440px, calc(100% - 42px)); }
  .home-link { margin-bottom: 57px; }
  .stage h1 { font-size: 43px; margin-bottom: 34px; }
  .countdown { font-size: 92px; }
}
@media (max-width: 370px) {
  .landing { padding-left: 13px; padding-right: 13px; }
  .authors { font-size: 17px; }
  .ascent { margin-top: 38px; }
  .stage h1 { font-size: 39px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .is-loading .button-label:after { border-right-color: currentColor; }
}
