:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-2: #f4ede2;
  --text: #2b241d;
  --muted: #7a6f63;
  --border: #e4d8c8;
  --primary: #8a4f2c;
  --primary-ink: #ffffff;
  --accent: #b64e3a;
  --accent-2: #2f6b4f;
  --shadow: 0 1px 2px rgba(43, 36, 29, 0.04), 0 8px 24px rgba(43, 36, 29, 0.06);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}
.brand svg { color: var(--primary); }
.nav { display: flex; gap: 18px; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--primary); text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  padding: 44px 0 24px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.card-row:last-child { border-bottom: none; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-1 { background: #c97b5a; }
.dot-2 { background: #2f6b4f; }
.dot-3 { background: #8a4f2c; }
.dot-4 { background: #b64e3a; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: #74421f; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.tiny { padding: 6px 10px; font-size: 0.85rem; }

.builder { padding: 32px 0 8px; }
.builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel h2 { margin-top: 0; font-size: 1.25rem; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 60px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.muted { color: var(--muted); font-size: 0.9rem; margin: 8px 0 0; }

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.preview-head h2 { margin: 0; }
.preview-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.preview-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  min-height: 340px;
}
.preview-empty {
  color: var(--muted);
  font-style: italic;
  padding: 30px 10px;
  text-align: center;
}
.preview-profile h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}
.preview-profile .occasion {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 0.95rem;
}
.preview-profile .block { margin: 12px 0; }
.preview-profile .block h4 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.preview-profile .block p { margin: 0; white-space: pre-wrap; }
.preview-profile .budget {
  margin-top: 14px;
  padding: 10px 12px;
  background: #eef5ef;
  border-left: 3px solid var(--accent-2);
  border-radius: 6px;
}

.examples, .notes { padding: 32px 0; }
.examples h2, .notes h2 { margin-top: 0; }
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.example {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.example h3 { margin: 0 0 6px; font-size: 1.05rem; }
.example p { margin: 0; color: var(--muted); }

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.note h3 { margin: 0 0 6px; font-size: 1.05rem; }
.note p { margin: 0; color: var(--muted); }

.mistakes, .culture {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 16px;
}
.mistakes h3, .culture h3 { margin-top: 0; }
.mistakes ul { margin: 8px 0 0; padding-left: 20px; }
.mistakes li { margin: 6px 0; }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 32px;
  color: var(--muted);
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--primary); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .builder-grid { grid-template-columns: 1fr; }
  .example-grid, .notes-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@media print {
  .site-header, .site-footer, .form-panel, .preview-actions, .hero, .examples, .notes, .hero-card { display: none !important; }
  .builder-grid { grid-template-columns: 1fr; }
  .preview-card { border: none; box-shadow: none; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
