*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep:   #050810;
  --bg-mid:    #0b1220;
  --bg-top:    #10192e;
  --text:      #ddd8cc;
  --text-dim:  #b8ccde;
  --text-faint:#8aaabf;
  --cobalt:    #2b4f8c;
  --cobalt-mid:#3d6db5;
  --cobalt-lit:#6b9ed4;
  --accent:    #8faec9;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  position: relative;
  overflow-x: hidden;
}

/* --- Cover image background --- */
.sky {
  position: fixed;
  inset: 0;
  background-image: url('cover-bg.png');
  background-size: cover;
  background-position: center center;
  z-index: 0;
  pointer-events: none;
}

/* --- Dark overlay so text reads cleanly over the image --- */
.sky::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 16, 0.72) 0%,
    rgba(5, 8, 16, 0.56) 40%,
    rgba(5, 8, 16, 0.65) 68%,
    rgba(5, 8, 16, 0.92) 100%
  );
}

/* --- Main content --- */
main {
  position: relative;
  z-index: 1;
  max-width: 540px;
  width: 100%;
  text-align: center;
}

footer {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  text-align: center;
}

/* --- Diamond mark --- */
.mark {
  display: block;
  color: var(--cobalt-lit);
  font-size: 0.75rem;
  margin-bottom: 2.75rem;
  opacity: 0.5;
  letter-spacing: 0.1em;
}

.mark-sm {
  color: var(--text-faint);
  font-size: 0.6rem;
  opacity: 0.4;
}

/* --- Title --- */
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 3.25rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,0.9);
}

/* --- Subtitle --- */
.subtitle {
  font-family: 'IM Fell English', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.125rem, 2.8vw, 1.375rem);
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  text-shadow: 0 0 20px rgba(0,0,0,1), 0 1px 3px rgba(0,0,0,0.8);
}

/* --- Horizontal rule --- */
.rule {
  width: 1px;
  height: 64px;
  margin: 0 auto 3rem;
  background: linear-gradient(to bottom, transparent, var(--cobalt-mid) 40%, var(--cobalt-mid) 60%, transparent);
  opacity: 0.35;
}

/* --- Opening lede --- */
.lede {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.8;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 24px rgba(0,0,0,1), 0 1px 3px rgba(0,0,0,0.9);
}

/* --- Genre line --- */
.genre {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3.5rem;
  text-shadow: 0 0 16px rgba(0,0,0,1), 0 1px 2px rgba(0,0,0,0.9);
}

/* --- Notify label --- */
.notify-label {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  text-shadow: 0 0 16px rgba(0,0,0,1), 0 1px 2px rgba(0,0,0,0.9);
}

/* --- Form --- */
.hidden {
  display: none;
}

.form-row {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto 0.875rem;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-right: none;
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  padding: 0.75rem 1.125rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  border-radius: 0;
  -webkit-appearance: none;
}

input[type="email"]::placeholder {
  color: var(--text-faint);
}

input[type="email"]:focus {
  background: rgba(43, 79, 140, 0.08);
  border-color: rgba(107, 158, 212, 0.35);
}

button[type="submit"] {
  background: var(--cobalt);
  border: 1px solid var(--cobalt);
  color: #c4d4e8;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
  border-radius: 0;
  -webkit-appearance: none;
}

button[type="submit"]:hover {
  background: var(--cobalt-mid);
  border-color: var(--cobalt-mid);
  color: #dce9f5;
}

button[type="submit"]:active {
  background: var(--cobalt-lit);
  border-color: var(--cobalt-lit);
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-faint);
  font-style: italic;
  text-shadow: 0 0 16px rgba(0,0,0,1), 0 1px 2px rgba(0,0,0,0.9);
}

.confirm-msg {
  font-family: 'IM Fell English', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.8;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0,0,0,1), 0 1px 3px rgba(0,0,0,0.8);
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
  }

  input[type="email"] {
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: none;
  }

  input[type="email"]:focus {
    border-color: rgba(107, 158, 212, 0.35);
  }

  button[type="submit"] {
    padding: 0.875rem 1.5rem;
  }
}
