:root {
  --ink: #0f0a07;
  --ink-2: #1b130d;
  --amber: #e8912d;
  --amber-dim: #9c6128;
  --paper: #efe4d2;
  --muted: #a3917c;
  --line: #3a2a1c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: "Courier Prime", "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  background:
    radial-gradient(70vw 60vh at 85% -10%, rgba(232, 145, 45, .24), transparent 70%),
    var(--ink);
}

a { color: inherit; }

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px clamp(16px, 5vw, 64px);
}

.wordmark {
  font-size: 24px;
  font-style: italic;
  text-decoration: none;
}

.wordmark span {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
}

.signin {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .08em;
  text-underline-offset: 5px;
  text-decoration-color: var(--amber);
}

.kicker {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}

.intro {
  max-width: 900px;
  padding: clamp(36px, 8vh, 96px) clamp(16px, 5vw, 64px) 56px;
  animation: develop 1.2s ease-out both;
}

h1 {
  margin: 0;
  font-size: clamp(50px, 10vw, 124px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.02em;
}

h1 em { color: var(--amber); }

.lede {
  max-width: 34em;
  margin: 30px 0 0;
  color: var(--muted);
}

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 30px 16px;
  background:
    radial-gradient(circle at 9px 11px, var(--ink) 4px, transparent 4.5px) 0 0 / 28px 22px repeat-x,
    radial-gradient(circle at 9px 11px, var(--ink) 4px, transparent 4.5px) 0 100% / 28px 22px repeat-x,
    #2a1a0d;
  scrollbar-color: var(--amber-dim) transparent;
}

.frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #000;
  animation: develop 1.4s ease-out both;
}

.frame::before {
  content: "";
  position: absolute;
  inset: -20px;
  filter: blur(14px) saturate(.8);
  transition: filter .5s ease, transform .5s ease;
}

.frame:hover::before { filter: blur(7px) saturate(1.1); transform: scale(1.04); }

.frame span {
  position: absolute;
  right: 8px;
  bottom: 5px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
}

.frame:nth-child(2) { animation-delay: .08s; }
.frame:nth-child(3) { animation-delay: .16s; }
.frame:nth-child(4) { animation-delay: .24s; }
.frame:nth-child(5) { animation-delay: .32s; }
.frame:nth-child(6) { animation-delay: .4s; }
.frame:nth-child(7) { animation-delay: .48s; }
.frame:nth-child(8) { animation-delay: .56s; }

.f1::before { background: linear-gradient(170deg, #d97f35 0 42%, #33414a 43%, #15191c); }
.f2::before { background: radial-gradient(circle at 62% 38%, #f0c16f 0 13%, #7a3e2b 34%, #1a1416 74%); }
.f3::before { background: linear-gradient(95deg, #1d3134, #6f8a7e 48%, #d7bf93 49%, #5b4835); }
.f4::before { background: radial-gradient(ellipse at 25% 72%, #c8c0ae, #526161 42%, #101416 78%); }
.f5::before { background: linear-gradient(200deg, #29384f 0 34%, #b5664c 35% 62%, #24160f 63%); }
.f6::before { background: radial-gradient(circle at 42% 50%, #e8d7b3 0 18%, #a56a35 30%, #171009 70%); }
.f7::before { background: linear-gradient(145deg, #5f7779, #d39a62 52%, #3a2019); }
.f8::before { background: radial-gradient(ellipse at 72% 22%, #8ea6ac, #38454c 45%, #0d1012 82%); }

.index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.index a {
  padding: 34px clamp(16px, 5vw, 64px);
  text-decoration: none;
  transition: background .25s ease;
}

.index a + a { border-left: 1px solid var(--line); }
.index a:hover { background: var(--ink-2); }

.index span {
  display: block;
  font-size: 28px;
  font-style: italic;
}

.index b {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding: 26px clamp(16px, 5vw, 64px);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.panel {
  width: min(440px, calc(100% - 32px));
  margin: clamp(32px, 10vh, 110px) auto;
  animation: develop .9s ease-out both;
}

.panel h1 { font-size: clamp(50px, 12vw, 72px); }

form { margin-top: 34px; }

label {
  display: block;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--muted);
}

input {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  color: var(--paper);
  background: var(--ink-2);
  font: 18px var(--serif);
}

input:focus { border-color: var(--amber); }

button {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--amber);
  font: 700 14px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease;
}

button:hover { background: #f2a64e; }
button:disabled { opacity: .55; cursor: wait; }

.error {
  margin: 0 0 18px;
  color: #f08a6b;
  font-size: 16px;
}

.note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 16px;
}

@keyframes develop {
  from { opacity: 0; filter: brightness(2.2) sepia(1); }
  to { opacity: 1; filter: none; }
}

@media (max-width: 720px) {
  .index { grid-template-columns: 1fr; }
  .index a + a { border-left: 0; border-top: 1px solid var(--line); }
  .colophon { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
