:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --surface-muted: #f1ece1;
  --surface-hover: #efe8dc;
  --text-primary: #1d1a16;
  --text-secondary: #4a443b;
  --text-tertiary: #6b6358;
  --text-muted: #8a8175;
  --text-faint: #b3aa9c;
  --accent: #a8502c;
  --accent-hover: #8e4123;
  --accent-hover-2: #7d3a1e;
  --border-strong: #d8cfbe;
  --border: #e3dbcd;
  --border-light: #e8e1d4;
  --border-dashed: #ddd3c2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover-2); }

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  padding: 28px 20px 72px;
}

.container { max-width: 880px; margin: 0 auto; }

.breadcrumb {
  font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

header {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px;
}
.eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
h1 {
  margin: 0; font-family: 'Instrument Serif', Georgia, serif;
  font-size: 44px; line-height: 1.05; font-weight: 400; letter-spacing: -0.01em;
}
header p {
  margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-tertiary);
  max-width: 46ch; text-wrap: pretty;
}

.quick-answer {
  margin: 0 0 24px; padding: 14px 16px; background: var(--surface-muted); border-radius: 12px;
  font-size: 14px; line-height: 1.55; color: var(--text-secondary); text-wrap: pretty;
}

.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; align-items: end; box-shadow: 0 1px 2px rgba(29,26,22,0.04);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span:first-child { font-size: 13px; font-weight: 500; color: var(--text-secondary); }

.select-wrap { position: relative; display: block; }
select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 48px;
  font-family: 'DM Sans', Helvetica, sans-serif; font-size: 16px; color: var(--text-primary);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 0 40px 0 14px; cursor: pointer;
}
.select-chevron {
  position: absolute; right: 15px; top: 50%; width: 8px; height: 8px;
  border-right: 1.6px solid var(--text-tertiary); border-bottom: 1.6px solid var(--text-tertiary);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.stepper { display: flex; align-items: stretch; gap: 8px; }
.stepper button {
  flex: 0 0 48px; height: 48px; font-size: 20px; color: var(--text-secondary);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px;
  cursor: pointer; font-family: 'DM Sans', Helvetica, sans-serif;
}
.stepper button:hover { background: var(--surface-hover); }
.stepper input {
  flex: 1 1 auto; min-width: 0; height: 48px; text-align: center;
  font-family: 'DM Sans', Helvetica, sans-serif; font-size: 17px; font-weight: 500;
  color: var(--text-primary); background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 0 8px;
}

.btn-primary {
  height: 48px; padding: 0 22px; font-family: 'DM Sans', Helvetica, sans-serif;
  font-size: 16px; font-weight: 500; color: var(--surface); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 10px; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }

.results { margin-top: 28px; display: none; }
.results.visible { display: block; }
.results-heading {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.results-heading h2 {
  margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-size: 30px; font-weight: 400;
}
.results-heading span { font-size: 14px; color: var(--text-tertiary); }

.ing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px; margin-top: 16px;
}
.ing-card {
  display: flex; align-items: baseline; gap: 12px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: 12px; padding: 14px 16px;
}
.ing-qty {
  flex: 0 0 auto; font-family: 'Instrument Serif', Georgia, serif; font-size: 22px;
  line-height: 1.1; color: var(--accent); white-space: nowrap;
}
.ing-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ing-name { font-size: 15px; font-weight: 500; color: var(--text-primary); }
.ing-note { font-size: 13px; color: var(--text-muted); }
.ing-alt { font-size: 12.5px; color: var(--accent); font-variant-numeric: tabular-nums; }

.tip {
  margin: 18px 0 0; padding: 14px 16px; background: var(--surface-muted); border-radius: 12px;
  font-size: 14px; line-height: 1.55; color: var(--text-secondary); text-wrap: pretty;
}

.steps { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps-label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
}
.step-row { display: flex; gap: 12px; align-items: baseline; }
.step-n { flex: 0 0 22px; font-family: 'Instrument Serif', Georgia, serif; font-size: 18px; color: var(--accent); }
.step-text { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }

.guide { margin-top: 40px; }
.guide-label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500; margin-bottom: 12px; display: block;
}
.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.guide-card {
  background: var(--surface); border: 1px solid var(--border-light); border-radius: 12px;
  padding: 14px 16px; text-decoration: none; display: block;
}
.guide-card:hover { border-color: var(--accent); }
.guide-card strong { display: block; font-size: 15px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.guide-card span { display: block; font-size: 13px; line-height: 1.4; color: var(--text-tertiary); }

.related { margin-top: 34px; font-size: 13.5px; color: var(--text-tertiary); line-height: 1.8; text-wrap: pretty; }
.related strong { color: var(--text-secondary); font-weight: 500; }
.related a { margin-right: 2px; }

.donation {
  margin-top: 24px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px;
}
.donation-text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.donation-text strong {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 17px;
  line-height: 1.2; color: var(--text-primary);
}
.donation-text p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--text-tertiary); max-width: 38ch; text-wrap: pretty; }
.donation-buttons { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.donation-buttons a { display: inline-flex; align-items: center; opacity: 0.9; transition: opacity 0.15s; }
.donation-buttons a:hover { opacity: 1; }
.donation-buttons a:active { transform: translateY(1px); }
.donation-buttons img { display: block; height: 44px; width: auto; border-radius: 8px; }
.donation-buttons .mp-chip {
  height: 44px; padding: 0 14px; background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 8px;
}
.donation-buttons .mp-chip img { height: 20px; border-radius: 0; }

.prose { max-width: 62ch; }
.prose h2 {
  margin: 30px 0 8px; font-family: 'Instrument Serif', Georgia, serif;
  font-size: 24px; font-weight: 400; letter-spacing: -0.01em; color: var(--text-primary);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li {
  font-size: 15px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty;
}
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); }
.prose .updated { font-size: 13px; color: var(--text-muted); }

footer {
  margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 6px 16px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
}
footer .contact { text-transform: none; letter-spacing: 0.02em; }
footer .contact a { color: var(--accent); text-decoration: none; }
footer .contact a:hover { color: var(--accent-hover-2); text-decoration: underline; }
footer .footer-nav { text-transform: none; letter-spacing: 0.02em; }
footer .footer-nav a { color: var(--text-muted); text-decoration: none; }
footer .footer-nav a:hover { color: var(--accent); text-decoration: underline; }
