/* ── Palette ─────────────────────────────────────── */
:root {
  --bg:          #FAF7F2;
  --text:        #2C2825;
  --muted:       #8A8480;
  --accent:      #C45D35;
  --accent-hover:#A84D2B;
  --card-bg:     #FFFFFF;
  --border:      #E8E2DB;
  --serif:       'Newsreader', Georgia, serif;
  --sans:        'Outfit', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Page ────────────────────────────────────────── */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 18vh;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  text-align: center;
}

.title {
  font-family: var(--serif);
  font-size: clamp(42px, 8vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.tagline {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ── Subscribe form ──────────────────────────────── */
.subscribe-form {
  max-width: 420px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 8px;
}

.subscribe-form input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--card-bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.subscribe-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 93, 53, 0.12);
}

.subscribe-form input::placeholder {
  color: #b5b0ab;
}

.subscribe-form button {
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.subscribe-form button:hover {
  background: var(--accent-hover);
}

.subscribe-form button:active {
  transform: scale(0.98);
}

.subscribe-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.form-message {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.form-message.success { color: #457B4D; }
.form-message.error   { color: #B84233; }

/* ── Footer ──────────────────────────────────────── */
.footer {
  position: fixed;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  z-index: 2;
}

.footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: rgba(255,255,255,0.8);
}

/* ── Wave canvas ─────────────────────────────────── */
#wave-canvas {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55vh;
  pointer-events: auto;
  z-index: 0;
}

/* ── Entrance animation ──────────────────────────── */
.hero {
  animation: fadeUp 0.6s ease-out both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 520px) {
  .page { padding-top: 12vh; }
  .form-row { flex-direction: column; }
  .subscribe-form input { min-width: unset; }
  .subscribe-form button { width: 100%; }
  #wave-canvas { height: 50vh; }
}
