/* Levain Craft — shared styles for the /breads/ info pages.
   Palette and day/night behavior follow the landing page: light "Cocoa Taupe"
   by day, dark "Pumpernickel" at night, switched via data-theme on <html>
   (see bread-page.js). */

:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --panel: #ffffff;
  --line: rgba(2, 6, 23, .08);
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --ring: rgba(245, 158, 11, .35);
  --warning-bg: #fef3c7;
  --warning-border: #f59e0b;
  --info-bg: #e0f2fe;
  --info-border: #0ea5e9;
}
[data-theme="dark"] {
  --bg: #0b1220;
  --text: #f3f4f6;
  --muted: #94a3b8;
  --panel: rgba(255, 255, 255, .05);
  --line: rgba(148, 163, 184, .25);
  --warning-bg: rgba(245, 158, 11, .15);
  --warning-border: #f59e0b;
  --info-bg: rgba(14, 165, 233, .15);
  --info-border: #0ea5e9;
}

* { box-sizing: border-box; }
html, body {
  min-height: 100%;
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  font-weight: 700;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
}
.brand img { width: 36px; height: 36px; }
.header-order-link {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Main content */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Product header */
.product-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.product-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.product-header .subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 300;
  margin: 0;
}
.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111827;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Fast-facts infographic strip */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.fact {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 0.75rem;
  text-align: center;
}
.fact-icon { font-size: 1.5rem; line-height: 1; display: block; margin-bottom: 0.35rem; }
.fact-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.fact-value { display: block; font-weight: 600; font-size: 0.92rem; }

/* Sections */
section { margin-bottom: 2rem; }
section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
section p { margin: 0 0 1rem; color: var(--text); }
section p:last-child { margin-bottom: 0; }

/* Ingredient list */
.ingredients-list { list-style: none; padding: 0; margin: 0; }
.ingredients-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.ingredients-list li:last-child { border-bottom: none; }
.ingredients-list li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Alert boxes */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin: 1rem 0;
  border-left: 4px solid;
}
.alert-warning { background: var(--warning-bg); border-color: var(--warning-border); }
.alert-info { background: var(--info-bg); border-color: var(--info-border); }
.alert strong { display: block; margin-bottom: 0.25rem; }
.alert p { margin: 0; font-size: 0.95rem; }

/* Handling tips */
.handling-list { list-style: none; padding: 0; margin: 0; }
.handling-list li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.handling-list li:last-child { border-bottom: none; }
.handling-list li::before {
  content: attr(data-icon);
  position: absolute;
  left: 0;
  font-size: 1rem;
}

/* Cottage food notice */
.cottage-notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.cottage-notice p { margin: 0 0 0.75rem; color: var(--muted); }
.cottage-notice p:last-child { margin-bottom: 0; }

/* Contact section */
.contact {
  text-align: center;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.contact h2 { border: none; display: block; padding-bottom: 0; margin-bottom: 0.5rem; }
.contact p { margin: 0.25rem 0; color: var(--muted); }
.contact a { color: var(--accent); font-weight: 600; }

/* Order CTA */
.order-cta {
  display: block;
  text-align: center;
  margin: 2.5rem auto 0;
  max-width: 420px;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111827;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(245, 158, 11, .25);
}
.order-cta:hover { text-decoration: none; filter: brightness(1.05); }

/* Commitment footer */
.commitment {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.commitment p {
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

@media (max-width: 600px) {
  header { padding: 1rem; }
  main { padding: 1.5rem 1rem 2rem; }
  .product-header h1 { font-size: 1.5rem; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
