/* ==========================================================================
   Dairy from Scratch — Design System
   Brand: From Scratch Kitchen (watercolor farmhouse, cream/brown/sage)
   ========================================================================== */

:root {
  /* Brand palette, pulled from the FSK logo */
  --cream: #FBF5EA;
  --cream-2: #F3E9D8;
  --cream-3: #ECE0C8;
  --paper: #FFFDF8;
  --brown-900: #3A2A1C;
  --brown-700: #5C4530;
  --brown-500: #8A6F52;
  --sage-700: #556247;
  --sage-500: #7C8B6B;
  --sage-300: #AEB99C;
  --honey-600: #C08A3E;
  --honey-500: #D6A24F;
  --honey-300: #E9C57F;
  --white: #FFFFFF;
  --line: #E3D5B8;
  --shadow-soft: 0 8px 24px rgba(58, 42, 28, 0.08);
  --shadow-lift: 0 14px 34px rgba(58, 42, 28, 0.14);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--brown-900);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brown-900);
  margin: 0 0 0.4em;
  line-height: 1.15;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--brown-700); }

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

button { font-family: inherit; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide { max-width: 1080px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  width: 100%;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--honey-500), var(--honey-600));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(192, 138, 62, 0.35);
}

.btn-primary:hover { box-shadow: 0 14px 30px rgba(192, 138, 62, 0.42); }

.btn-secondary {
  background: var(--white);
  color: var(--brown-900);
  border: 1.5px solid var(--line);
}

.btn-ghost {
  background: transparent;
  color: var(--brown-500);
  font-weight: 600;
  text-decoration: underline;
  width: auto;
  padding: 8px 4px;
}

.btn-sm { padding: 10px 18px; font-size: 14px; width: auto; }

/* ---------- Progress dots ---------- */
.progress-track {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 32px;
}

.progress-seg {
  height: 5px;
  width: 34px;
  border-radius: 4px;
  background: var(--cream-3);
  transition: background 0.25s ease;
}

.progress-seg.is-done { background: var(--honey-500); }

/* ---------- Cards / option list (quiz) ---------- */
.option-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.option-card:hover { border-color: var(--honey-500); box-shadow: var(--shadow-soft); }
.option-card:active { transform: scale(0.99); }
.option-card.is-selected {
  border-color: var(--honey-600);
  background: var(--cream-2);
  box-shadow: var(--shadow-soft);
}

.option-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-700);
}

.option-icon svg { width: 22px; height: 22px; }

.option-text strong {
  display: block;
  font-size: 16px;
  color: var(--brown-900);
  margin-bottom: 2px;
}

.option-text span {
  font-size: 13.5px;
  color: var(--brown-500);
}

/* ---------- Text input ---------- */
.text-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--brown-900);
  margin-bottom: 18px;
}

.text-input:focus {
  outline: none;
  border-color: var(--honey-500);
  box-shadow: 0 0 0 3px rgba(214, 162, 79, 0.18);
}

/* ---------- Badge / pill ---------- */
.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--honey-500);
  color: var(--honey-600);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.stack-sm > * + * { margin-top: 8px; }
.stack-md > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.muted { color: var(--brown-500); }
.visually-hidden { position: absolute; left: -9999px; }

.icon {
  display: inline-flex;
  vertical-align: middle;
}

.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(58, 42, 28, 0.08);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.icon svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
}
