/* The entry page. It is the only part of the site served without the passcode, so everything it needs lives in
   this folder: this sheet, three font files, the icon and the script. The look is the edition's own cover:
   its night ground, its cream and gold, its display face. Nothing here is loaded from another place. */

@font-face{font-family:"Cormorant Garamond";src:url("fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url("fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");font-weight:300 700;font-style:italic;font-display:swap}
@font-face{font-family:"Inter";src:url("fonts/inter-latin-wght-normal.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

:root{
  --night:#07131a; --night-2:#0c1f29; --sea:#0d3a47;
  --cream:#fffaf0; --parchment:#f1e7d2; --kicker:#e6d6ae; --quiet:#b9b09a;
  --gold:#d7ad55; --gold-deep:#b5852a;
  --display:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after{box-sizing:border-box}
::selection{background:#f0d9a0;color:#000}
html{font-size:17px;-webkit-text-size-adjust:100%;background:var(--night)}
@media (min-width:900px){html{font-size:18.5px}}
body{margin:0;min-height:100vh;min-height:100dvh;display:grid;place-items:center;background:var(--night);color:var(--parchment);
  font-family:var(--sans);line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden}
/* a low light behind the title, and the paper's grain, very faint */
body::before{content:"";position:fixed;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 70% 55% at 50% 34%,rgba(21,88,106,.34),rgba(12,31,41,.2) 55%,transparent 80%),
    radial-gradient(rgba(230,214,174,.05) 1px,transparent 1.2px);
  background-size:auto,9px 9px}

.gate{position:relative;width:100%;max-width:33rem;padding:3rem clamp(1.4rem,6vw,2.4rem) 4rem;text-align:center}
.gate__mark{display:block;width:3.1rem;height:3.1rem;margin:0 auto;color:var(--gold)}
h1{font-family:var(--display);font-weight:500;font-size:clamp(2.5rem,9.5vw,3.9rem);line-height:.98;letter-spacing:-.005em;color:var(--cream);margin:1.5rem 0 0;text-wrap:balance}
/* the comma of the title is there for a screen reader and for copying; the line break stands for it on the page */
.gate__hid{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gate__years{display:block;margin-top:.5rem;font-size:.62em;font-style:italic;font-weight:500;letter-spacing:.01em;color:var(--kicker)}
/* the double rule that stands over the edition's headings */
.gate__line{position:relative;font-family:var(--display);font-style:italic;font-size:1.3rem;line-height:1.35;color:var(--parchment);margin:1.9rem 0 0;padding-top:1.6rem}
.gate__line::before{content:"";position:absolute;top:0;left:50%;width:3.2rem;height:3px;margin-left:-1.6rem;border-top:1px solid var(--gold);border-bottom:1px solid var(--gold);opacity:.8}

.gate__form{margin:2.6rem auto 0;max-width:25rem;text-align:left}
label{display:block;font:600 .66rem/1.4 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:var(--kicker);margin:0 0 .55rem .1rem}
.gate__row{display:flex;gap:.6rem;align-items:stretch}
input{flex:1 1 auto;min-width:0;width:100%;font:500 1.0625rem/1.3 var(--sans);letter-spacing:.06em;color:var(--cream);
  background:rgba(255,250,240,.06);border:1px solid rgba(230,214,174,.42);border-radius:4px;padding:.72rem .9rem;
  -webkit-appearance:none;appearance:none;transition:border-color .2s,background-color .2s}
input:hover{border-color:rgba(230,214,174,.7)}
input:focus{background:rgba(255,250,240,.1);border-color:var(--gold)}
input[aria-invalid="true"]{border-color:var(--gold)}
button{flex:none;font:600 .7rem/1 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:var(--night);
  background:var(--gold);border:1px solid var(--gold);border-radius:99px;padding:0 1.5rem;min-height:2.9rem;cursor:pointer;
  -webkit-appearance:none;appearance:none;transition:background-color .2s,border-color .2s,opacity .2s}
button:hover{background:var(--cream);border-color:var(--cream)}
button:disabled{opacity:.55;cursor:default}
input:focus-visible,button:focus-visible{outline:2px solid var(--cream);outline-offset:3px}
.gate__msg{min-height:1.6em;margin:1rem 0 0 .1rem;font-family:var(--display);font-style:italic;font-size:1.2rem;line-height:1.35;color:var(--kicker)}
noscript .gate__msg{text-align:center}

/* the not-found page (/404.html) wears the same cover: it can be shown to someone who has not given the passcode,
   so it uses only the files of this folder. One sentence, and one way back. */
.gate--plain h1{font-size:clamp(2.1rem,7.5vw,3.1rem);line-height:1.04}
.gate--plain .gate__line{font-style:normal;padding-top:2.2rem}
.gate__link{display:inline-flex;align-items:center;justify-content:center;min-height:2.9rem;padding:0 1.6rem;font:600 .7rem/1 var(--sans);letter-spacing:.18em;text-transform:uppercase;text-decoration:none;
  color:var(--night);background:var(--gold);border:1px solid var(--gold);border-radius:99px;transition:background-color .2s,border-color .2s}
.gate__link:hover{background:var(--cream);border-color:var(--cream)}
.gate__link:focus-visible{outline:2px solid var(--cream);outline-offset:3px}

@media (max-width:480px){
  .gate{padding-top:2rem;padding-bottom:3rem}
  .gate__row{flex-direction:column;gap:.7rem}
  button{width:100%}
  .gate__msg{text-align:center}
}
@media (max-height:520px){
  .gate{padding-top:1.2rem;padding-bottom:1.5rem}
  .gate__mark{width:2.2rem;height:2.2rem}
  h1{font-size:2.2rem;margin-top:.8rem}
  .gate__line{margin-top:1rem;padding-top:1rem;font-size:1.1rem}
  .gate__form{margin-top:1.4rem}
}
@media (prefers-reduced-motion:reduce){input,button,.gate__link{transition:none}}
@media (forced-colors:active){input,button,.gate__link{border:1px solid ButtonText}.gate__line::before{border-color:CanvasText}}
