/* AVL Cinema Club — typewritten page */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #dcdcd8;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 6vw;
  color: #262626;
  font-family: 'Special Elite', 'Courier Prime', 'Courier New', Courier, monospace;
  font-size: clamp(14px, 3.4vw, 22px);
  line-height: 1.35;
  /* paper: soft cool-grey sheet, lighter in the middle like the photo */
  background:
    radial-gradient(ellipse 90% 70% at 45% 40%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    linear-gradient(170deg, #e6e7e4 0%, #dcddd9 55%, #d2d3cf 100%);
  -webkit-font-smoothing: antialiased;
}

/* faint paper grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
  width: 100%;
  max-width: 44ch;
}

p,
h1 {
  margin: 0;
  font: inherit;
  font-weight: normal;
}

/* line placement, in typewriter columns (matches the sheet) */
.l {
  margin-bottom: 1.5em;
}
.l.tight {
  margin-bottom: 0.4em;
}
.i0 { margin-left: 0; }
.i1 { margin-left: 1ch; }
.i2 { margin-left: 2ch; }
.i3 { margin-left: 3ch; }
.i4 { margin-left: 4ch; }
.i5 { margin-left: 5ch; }
.i6 { margin-left: 6ch; }
.i7 { margin-left: 7ch; }

a {
  color: inherit;
  text-decoration: none;
}
a.typed-link {
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
a.typed-link:hover,
a.typed-link:focus-visible {
  border-bottom-color: currentColor;
  outline: none;
}

/* per-character ink, set by club.js */
.ch {
  display: inline-block;
  white-space: pre;
}
.ch.strike {
  text-shadow: 0.06em 0 0 currentColor;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- forms ---------- */
form {
  margin: 0;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  padding: 0;
  margin-bottom: 0.4em;
}
label {
  display: block;
}

.field {
  margin-bottom: 1.5em;
}

input[type='text'],
input[type='email'] {
  display: block;
  width: 100%;
  margin-top: 0.25em;
  padding: 0.15em 0;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed rgba(38, 38, 38, 0.55);
  border-radius: 0;
  outline: none;
}
input[type='text']:focus,
input[type='email']:focus {
  border-bottom-style: solid;
  border-bottom-color: #262626;
}

/* typewriter-style checkboxes: ( ) / (x) */
.choice {
  display: flex;
  gap: 1ch;
  cursor: pointer;
  padding: 0.1em 0;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice .box {
  flex: 0 0 3ch;
}
.choice .box::before {
  content: '[\00a0\00a0]';
  white-space: pre;
}
.choice input:checked + .box::before {
  content: '[x]';
}
.choice input:focus-visible + .box {
  outline: 1px dashed currentColor;
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  letter-spacing: 0.02em;
}
button:hover span.lbl,
button:focus-visible span.lbl {
  border-bottom: 1px solid currentColor;
}
button:focus-visible {
  outline: none;
}
button[disabled] {
  opacity: 0.5;
  cursor: progress;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  min-height: 1.35em;
  margin-top: 1.2em;
}
.status.err {
  color: #7a2a1d;
}

.back {
  opacity: 0.6;
}
.back:hover {
  opacity: 1;
}

[hidden] {
  display: none !important;
}
