/* Corkly.bible waitlist — midnight brand */
:root {
  --charcoal: #1C1C1E;
  --charcoal-deep: #121214;
  --cream: #F7F1E6;
  --cream-muted: rgba(247, 241, 230, 0.72);
  --gold: #D4AF37;
  --gold-soft: rgba(212, 175, 55, 0.35);
  --silver: #B8B8BC;
  --rose: #B76E79;
  --cork: #E8D6B9;
  --focus: #D4AF37;
  --radius: 999px;
  --font-serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
  --max: 36rem;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cream);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 175, 55, 0.08), transparent 55%),
    var(--charcoal);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cream);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 600;
  border-radius: 0.25rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.75rem 1.25rem 2rem;
}

.site-header {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.wordmark {
  width: min(280px, 78vw);
  height: auto;
  border-radius: 0.5rem;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  gap: 2rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 6.5vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.pitch {
  margin: 0;
  max-width: 30rem;
  color: var(--cream-muted);
  font-size: 1.05rem;
}

.soft-cta {
  margin: 0.25rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gold);
}

.waitlist {
  width: 100%;
  max-width: 26rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

input[type="email"] {
  width: 100%;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(247, 241, 230, 0.18);
  border-radius: var(--radius);
  background: rgba(18, 18, 20, 0.65);
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

input[type="email"]::placeholder {
  color: rgba(247, 241, 230, 0.4);
}

input[type="email"]:hover {
  border-color: rgba(212, 175, 55, 0.45);
}

button[type="submit"] {
  width: 100%;
  padding: 0.9rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--charcoal-deep);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

button[type="submit"]:hover {
  filter: brightness(1.06);
}

button[type="submit"]:active {
  transform: scale(0.98);
}

.form-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--cream-muted);
  line-height: 1.5;
}

.texture-panel {
  margin: 0.5rem 0 0;
  width: 100%;
  max-width: 18rem;
  padding: 0;
}

.cork-grid {
  height: 4.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background-color: #3a2f24;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.12) 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.1) 1px, transparent 1.5px),
    linear-gradient(rgba(232, 214, 185, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 214, 185, 0.07) 1px, transparent 1px),
    linear-gradient(145deg, #4a3b2e, #2e241c);
  background-size:
    100% 100%,
    100% 100%,
    14px 14px,
    14px 14px,
    100% 100%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.pin-row {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: -0.85rem;
  position: relative;
  z-index: 1;
}

.pin {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.pin-gold { background: var(--gold); }
.pin-silver { background: var(--silver); }
.pin-rose { background: var(--rose); }

.site-footer {
  text-align: center;
  padding-top: 1.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--cream-muted);
  letter-spacing: 0.04em;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

@media (min-width: 480px) {
  .form-row {
    flex-direction: row;
    align-items: stretch;
  }

  input[type="email"] {
    flex: 1;
  }

  button[type="submit"] {
    width: auto;
    white-space: nowrap;
    padding-inline: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  button[type="submit"] {
    transition: none;
  }
}

.form-row-single {
  justify-content: center;
}
a.notify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: #D4AF37;
  color: #1C1C1E;
  font-weight: 600;
  text-decoration: none;
  border: none;
}
a.notify-btn:hover {
  filter: brightness(1.05);
}
