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

/* Base — optimised for e-ink */
html {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.5;
  background: #fff;
  color: #000;
}

body {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

/* Typography */
h1 { font-size: 1.8rem; margin-bottom: 1rem; }
h2 { font-size: 1.4rem; margin: 1.2rem 0 0.6rem; }
p  { margin-bottom: 0.8rem; }

/* Buttons — minimum 64px touch target */
button, .btn {
  display: block;
  width: 100%;
  min-height: 64px;
  margin: 12px 0;
  padding: 12px 16px;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: bold;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

button:disabled, .btn:disabled {
  background: #888;
  cursor: not-allowed;
}

button.secondary, .btn.secondary, .btn-secondary {
  background: #fff;
  color: #000;
  border: 2px solid #000;
}

/* Big action button */
.btn-big {
  font-size: 1.4rem;
  min-height: 80px;
  margin: 32px 0;
}

/* Recipe checkbox rows */
.recipe-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #000;
  padding: 12px 0;
  gap: 12px;
}

.recipe-row input[type="checkbox"] {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  cursor: pointer;
}

.recipe-row label {
  font-size: 1.1rem;
  flex: 1;
  cursor: pointer;
}

.recipe-row .info-link {
  font-size: 0.9rem;
  border: 1px solid #000;
  padding: 4px 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #000;
}

/* Shopping list */
.category-section { margin-bottom: 1.5rem; }
.category-title { font-weight: bold; font-size: 1.1rem; border-bottom: 2px solid #000; padding-bottom: 4px; margin-bottom: 8px; }
.item-row { padding: 6px 0; border-bottom: 1px solid #000; }

/* Export buttons area */
.export-buttons { margin: 24px 0; }

/* QR section */
.qr-section { text-align: center; margin: 24px 0; }
.qr-section img { max-width: 280px; width: 100%; border: 1px solid #000; }

/* Copy textarea */
.copy-area {
  width: 100%;
  height: 160px;
  font-family: monospace;
  font-size: 0.85rem;
  border: 1px solid #000;
  padding: 8px;
  resize: none;
}

/* Recipe detail */
.recipe-meta { color: #000; margin-bottom: 1rem; }
.ingredients-list { list-style: none; }
.ingredients-list li { padding: 6px 0; border-bottom: 1px solid #000; }
.steps-list { padding-left: 1.2rem; }
.steps-list li { margin-bottom: 0.8rem; }

/* Source link — shown under ingredient list */
.source-link { font-size: 0.85rem; margin-top: 0.6rem; color: #000; }
.source-link a { color: #000; }

/* Navigation link */
.back-link { display: inline-block; margin-bottom: 16px; color: #000; }

/* No shadows, no gradients, no transitions — e-ink safe */
