/* ============================================================
   Memoir — shared design tokens & components
   Warm, premium, literary. Serif display + soft humanist sans.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Mulish:wght@400;500;600;700&display=swap');

:root {
  /* warm cream surfaces */
  --bg:        #faf5ee;
  --bg-alt:    #f2ebdf;
  --surface:   #fffdf9;
  --surface-2: #f7f0e6;

  /* warm inks */
  --ink:       #2f2a25;
  --ink-soft:  #6c6358;
  --ink-faint: #9c9286;

  /* terracotta accent */
  --accent:      #b96a4a;
  --accent-deep: #9d5236;
  --accent-tint: #f0ddd2;

  --line:  #e8ddce;
  --line-2:#ded2c0;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Mulish', system-ui, -apple-system, sans-serif;

  --maxw: 1140px;
  --radius: 14px;
  --shadow-soft: 0 1px 2px rgba(60,45,30,.05), 0 18px 40px -24px rgba(80,55,30,.28);
  --shadow-card: 0 1px 2px rgba(60,45,30,.05), 0 30px 60px -40px rgba(80,55,30,.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---- typography ---- */
.serif { font-family: var(--serif); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -0.012em; line-height: 1.08; text-wrap: balance; }

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1.1rem;
}

.lead { font-size: 1.22rem; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { position: relative; }

/* ---- buttons ---- */
.btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  padding: 16px 28px; border-radius: 999px;
  background: var(--accent); color: #fff;
  letter-spacing: .005em;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 10px 24px -12px rgba(157,82,54,.7);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-2); box-shadow: none;
  font-weight: 600;
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-faint); transform: none; }

/* ---- email capture form ---- */
.capture { display: flex; gap: 10px; max-width: 480px; }
.capture input {
  flex: 1; min-width: 0;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 16px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.capture input::placeholder { color: var(--ink-faint); }
.capture input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.capture.invalid input { border-color: #c2543f; box-shadow: 0 0 0 4px rgba(194,84,63,.14); }
.form-note { font-size: .85rem; color: var(--ink-faint); margin: 12px 2px 0; }
.form-success {
  display: none; align-items: center; gap: 10px;
  font-weight: 600; color: var(--accent-deep);
}
.form-success svg { flex: none; }

/* ---- image placeholder ---- */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #ece1d1 0 14px, #e5d9c6 14px 28px);
  border: 1px solid var(--line-2);
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .72rem; letter-spacing: .04em; color: #8a7c66;
  background: rgba(255,253,249,.82); padding: 7px 12px; border-radius: 7px;
  border: 1px solid rgba(138,124,102,.28); text-align: center;
  white-space: pre-line; line-height: 1.4; max-width: 80%;
}

/* ---- divider dot ---- */
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }
