/* Peptide Journey — warm journal palette: deep teal + terracotta + amber on cream.
   Deliberately NOT the Bazooka palette (no black/navy/electric blue/gold hairlines). */
:root {
  --bg: #fbf7ee;
  --bg-deep: #f6eeda;
  --surface: #fffdf8;
  --ink: #2e2620;
  --muted: #6f6255;
  --line: #e3d7c2;
  --teal: #0f766e;
  --teal-deep: #0c3b36;
  --teal-dark: #09302c;
  --teal-soft: #dcebe7;
  --terra: #b4502a;
  --terra-dark: #8f3d20;
  --terra-soft: #fbe9dd;
  --amber: #d9a441;
  --amber-soft: #fbf1da;
  --warn: #b4502a;
  --warn-soft: #fbe9dd;
  --ok: #2f7d4f;
  --ok-soft: #e7f3e9;
  --danger: #a33b2e;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 16px;
}
a { color: var(--teal); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 18px 64px; }
header.site {
  max-width: 880px; margin: 0 auto; padding: 22px 18px 8px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--terra); }
nav a { margin-left: 18px; text-decoration: none; font-weight: 600; color: var(--ink); }
nav a:hover { color: var(--terra); }
.hero { padding: 32px 0 8px; }
.hero-img, .page-banner {
  display: block; width: 100%; border-radius: 16px;
  box-shadow: 0 10px 28px rgba(46, 38, 32, .22);
  margin-bottom: 22px;
}
.hero-img { aspect-ratio: 16 / 9; object-fit: cover; }
.page-banner { aspect-ratio: 16 / 7; object-fit: cover; }
.hero h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 12px; color: var(--teal-deep); }
h1 { color: var(--teal-deep); }
.hero p.lede { font-size: 1.1rem; color: var(--muted); max-width: 620px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--terra);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 18px 0;
  box-shadow: 0 3px 12px rgba(46, 38, 32, .06);
}
.card:nth-of-type(2) { border-top-color: var(--teal); }
.card:nth-of-type(3) { border-top-color: var(--amber); }
h2 { font-size: 1.25rem; margin: 0 0 10px; color: var(--teal-deep); }
h3 { font-size: 1.05rem; margin: 18px 0 8px; color: var(--teal-deep); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.btn {
  display: inline-block; background: var(--terra); color: #fff; border: none;
  padding: 12px 22px; border-radius: 9px; font-size: 1rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 3px 10px rgba(180, 80, 42, .35);
}
.btn:hover { background: var(--terra-dark); }
.btn.ghost { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); box-shadow: none; }
.btn.ghost:hover { background: var(--teal-soft); }
.btn.small-btn { padding: 7px 12px; font-size: .9rem; }
.btn.danger-btn { background: transparent; color: var(--danger); border: 1px solid var(--danger); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type="text"], input[type="number"], input[type="time"], input[type="date"], select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; background: #fff; color: var(--ink);
}
input[type="text"]:focus, input[type="number"]:focus, input[type="time"]:focus, input[type="date"]:focus, select:focus {
  outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal);
}
input[type="checkbox"] { width: auto; accent-color: var(--terra); }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > div { flex: 1; min-width: 140px; }
.checks label { display: inline-block; font-weight: 400; margin: 4px 12px 4px 0; }
.times-list { list-style: none; padding: 0; margin: 8px 0; }
.times-list li { display: inline-block; background: var(--teal-soft); border-radius: 20px; padding: 4px 12px; margin: 0 6px 6px 0; font-weight: 600; }
.times-list button { background: none; border: none; cursor: pointer; color: var(--danger); font-weight: 700; margin-left: 6px; }
.dose {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 8px 0;
  background: #fff; flex-wrap: wrap;
}
.dose .info { min-width: 180px; }
.dose .time { font-weight: 800; font-size: 1.05rem; }
.dose.due { border-left: 5px solid var(--terra); background: var(--warn-soft); }
.dose.upcoming { border-left: 5px solid var(--teal); }
.dose.logged-taken { border-left: 5px solid var(--ok); background: var(--ok-soft); }
.dose.logged-skipped { border-left: 5px solid var(--muted); opacity: .75; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; border-radius: 20px; padding: 2px 10px; }
.pill.due { background: #fbe0cd; color: var(--terra-dark); }
.pill.upcoming { background: var(--teal-soft); color: var(--teal-dark); }
.pill.taken { background: #d6ecd9; color: var(--ok); }
.pill.skipped { background: #ece7df; color: var(--muted); }
.routine { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 10px 0; background: #fff; }
.routine .head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.routine .name { font-weight: 800; }
.day-group { margin: 14px 0; }
.day-group > h3 { border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.log-list { list-style: none; padding: 0; }
.log-list li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
footer.site {
  max-width: 880px; margin: 0 auto; padding: 24px 18px 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem;
}
.notice {
  background: var(--amber-soft); border: 1px solid #ecd9a8; color: #6b4d12;
  border-radius: 9px; padding: 10px 14px; font-size: .9rem; margin: 16px 0;
}
.empty { color: var(--muted); font-style: italic; }
.hidden { display: none; }
