/* ============================================================
   Anthony Campbell for US — Thank You Site
   ============================================================ */

:root {
  --navy: #0A1F3D;
  --red: #9B2C2C;
  --cream: #FAF7F2;
  --charcoal: #1A1A1A;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
}

/* ============================================================
   Page Layout — Desktop (>=900 px): two 50/50 columns, no scroll
   ============================================================ */
.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   Hero Photo (left column)
   ============================================================ */
.hero-photo {
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Content Column
   ============================================================ */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 3rem 1rem;
  background: var(--cream);
  overflow-y: auto;
  scroll-behavior: smooth;
}

.content-inner {
  max-width: 560px;
  width: 100%;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

h1 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 700;
  font-size: 3.75rem;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.body-copy {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--charcoal);
}

.body-copy p + p {
  margin-top: 1rem;
}

.signature {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #666;
  margin-top: 1.5rem;
}

/* ============================================================
   Email Signup
   ============================================================ */
.signup-section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid #ddd8d0;
}

.signup-heading {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.signup-copy {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

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

.signup-input {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  background: #fff;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.signup-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 31, 61, 0.12);
}

.signup-input::placeholder {
  color: #999;
}

/* --- Consent checkbox --- */
.consent-label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #555;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.consent-label a {
  color: var(--navy);
  font-weight: 500;
}

/* --- Submit button --- */
.signup-button {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.75rem;
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.signup-button:hover:not(:disabled) {
  background: var(--navy);
  color: #fff;
}

.signup-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.signup-status {
  min-height: 1.4em;
  font-size: 0.875rem;
  margin-top: 0.6rem;
}

.signup-status.success {
  color: #276749;
}

.signup-status.error {
  color: var(--red);
}

/* ============================================================
   FEC Disclaimer — anchored to bottom of right column
   ============================================================ */
.fec-disclaimer {
  margin-top: auto;
  padding-top: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: rgba(26, 26, 26, 0.6);
  text-align: center;
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Mobile / Tablet (<900 px)
   ============================================================ */
@media (max-width: 899px) {
  .page {
    display: block;
    height: auto;
    overflow: visible;
  }

  .hero-photo {
    height: 40vh;
    min-height: 220px;
  }

  .content {
    padding: 2.5rem 1.5rem 2rem;
    align-items: flex-start;
  }

  h1 {
    font-size: 2.75rem;
  }

  .fec-disclaimer {
    margin-top: 2rem;
    padding-top: 0;
  }
}

/* Small screens */
@media (max-width: 599px) {
  .content {
    padding: 2rem 1.25rem 1.5rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .signup-button {
    width: 100%;
  }
}

/* ============================================================
   Accessibility: reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .signup-input,
  .signup-button {
    transition: none;
  }
}
