/* =========================
   Theme Tokens
   Global color, sizing, and typography variables.
========================== */
:root {
  --bg: #fafaf8;
  --bg-glow: #f2ece3;
  --text: #22211f;
  --muted: #5f5a54;
  --accent: #b6764e;
  --accent-hover: #9b623f;
  --card: #ffffff;
  --border: #e8e2d8;
  --radius-lg: 16px;
  --radius-md: 12px;
  --max-width: 1080px;
  --shadow-soft: 0 16px 36px rgba(34, 33, 31, 0.08);
}

/* =========================
   Base Reset
   Light reset and readable defaults.
========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(circle at 50% 0%, var(--bg-glow), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(92%, var(--max-width));
  margin-inline: auto;
}

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

/* =========================
   Entry Animations
   Subtle fade-and-lift on first paint.
========================== */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 680ms ease forwards;
}

.fade-in.delay-1 {
  animation-delay: 120ms;
}

.fade-in.delay-2 {
  animation-delay: 240ms;
}

.fade-in.delay-3 {
  animation-delay: 360ms;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Hero
   Primary messaging and signup area.
========================== */
.hero {
  min-height: 74vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4.8rem 0 2.8rem;
}

.hero-content {
  max-width: 920px;
}

.brand {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.subheading {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: clamp(0.98rem, 1.8vw, 1.16rem);
  color: var(--muted);
  margin-bottom: 1.8rem;
}

/* =========================
   Signup
   Unified input and CTA for high visibility.
========================== */
.signup-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: min(100%, 680px);
  margin-inline: auto;
  padding: 1rem;
}

.signup-form {
  width: 100%;
}

.form-row {
  display: flex;
  align-items: center;
  border: 1px solid #d9cfbf;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.form-row input[type="email"] {
  flex: 1 1 auto;
  min-height: 56px;
  border: 0;
  outline: none;
  font-size: 1rem;
  color: var(--text);
  padding: 0 1rem;
  background: transparent;
}

.form-row input[type="email"]::placeholder {
  color: #8c867f;
}

.form-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(182, 118, 78, 0.18);
}

.form-row button {
  border: 0;
  min-height: 56px;
  padding: 0 1.5rem;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 220ms ease, transform 220ms ease;
}

.form-row button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.form-row button:active {
  transform: translateY(0);
}

.privacy-note {
  margin-top: 0.85rem;
  font-size: 0.87rem;
  color: var(--muted);
}

.success-message {
  display: none;
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.98rem;
  color: #2f2a24;
}

.signup-wrap.is-success .signup-form,
.signup-wrap.is-success .privacy-note {
  display: none;
}

.signup-wrap.is-success .success-message {
  display: block;
}

.hidden-frame {
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
  position: absolute;
}

/* =========================
   Values
   Three-card horizontal system, stacked on mobile.
========================== */
.values {
  padding: 1.8rem 0 3.5rem;
}

.values .container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.15rem;
  box-shadow: 0 8px 22px rgba(34, 33, 31, 0.04);
}

.value-card h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* =========================
   Footer
   Social links and legal line.
========================== */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 1.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: #454138;
  display: grid;
  place-items: center;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.copyright {
  font-size: 0.86rem;
  color: var(--muted);
}

/* =========================
   Responsive
   Mobile-first adjustments for readability.
========================== */
@media (max-width: 880px) {
  .values .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 70vh;
    padding-top: 3.6rem;
  }

  .signup-wrap {
    padding: 0.85rem;
  }

  .form-row {
    flex-direction: column;
    border: 0;
    overflow: visible;
    gap: 0.65rem;
    background: transparent;
  }

  .form-row input[type="email"] {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d9cfbf;
    border-radius: 10px;
    background: #fff;
  }

  .form-row:focus-within {
    box-shadow: none;
    border-color: transparent;
  }

  .form-row input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(182, 118, 78, 0.18);
  }

  .form-row button {
    width: 100%;
    min-height: 52px;
    border-radius: 10px;
  }
}
