/* Bob Kintner · Music That Heals — warm, calm, large-type design */

:root {
  --bg: #fbf6ec;
  --panel: #fffdf7;
  --ink: #3a2e23;
  --muted: #7a6a58;
  --line: #e7dcc8;
  --accent: #8c5b2f;
  --gold: #a97c1d;
  --green: #2f7d4a;
  --green-dark: #276b3f;
  --red: #a93b2a;
  --red-dark: #8f2f21;
  --violet: #6d4a86;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.65;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

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

img, video, audio, iframe { max-width: 100%; }

/* ---------- header ---------- */

.site-header {
  background: var(--panel);
  border-bottom: 3px double var(--line);
  padding: 34px 0 20px;
  text-align: center;
}
.site-title {
  font-size: 2.1rem;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.site-title:hover { color: var(--accent); }
.site-tagline {
  margin: 8px 0 18px;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
}
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.site-nav a {
  text-decoration: none;
  color: var(--accent);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
}
.site-nav a:hover { background: var(--bg); border-color: var(--line); color: var(--ink); }
.site-nav .nav-admin {
  background: var(--green);
  color: #fff;
  font-weight: bold;
}
.site-nav .nav-admin:hover { background: var(--green-dark); color: #fff; border-color: transparent; }

main { padding: 36px 20px 60px; min-height: 55vh; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 3px double var(--line);
  background: var(--panel);
  padding: 26px 0 34px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { margin: 6px 0; }

/* ---------- home ---------- */

.hero { text-align: center; padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.hero h1 { font-size: 2.2rem; margin: 0 0 8px; }
.hero-tagline { color: var(--muted); font-style: italic; margin: 0 0 20px; }
.hero-story { max-width: 640px; margin: 0 auto 10px; text-align: left; }

.section-title {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.page-title { font-size: 2rem; margin-bottom: 6px; }
.page-intro { color: var(--muted); font-style: italic; margin-top: 0; margin-bottom: 30px; }
.empty { color: var(--muted); font-style: italic; }

/* ---------- post cards ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 30px;
  margin-bottom: 28px;
  box-shadow: 0 2px 6px rgba(90, 70, 40, 0.06);
}
.card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.card-date { color: var(--muted); font-size: 0.9rem; }
.card-title { margin: 4px 0 14px; font-size: 1.45rem; line-height: 1.3; }
h1.card-title { font-size: 1.9rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); text-decoration: underline; }
.card-image { border-radius: 10px; margin: 6px 0 12px; }
.card-body p, .card-excerpt { margin: 0 0 1em; }
.read-more { font-weight: bold; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-family: Verdana, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  color: #fff;
}
.badge-article { background: var(--accent); }
.badge-idea { background: var(--gold); }
.badge-music { background: var(--green); }
.badge-video { background: var(--violet); }

audio { width: 100%; margin: 8px 0 14px; }
video { width: 100%; border-radius: 10px; background: #000; margin: 6px 0 12px; }
.video-frame { aspect-ratio: 16 / 9; margin: 6px 0 12px; }
.video-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; background: #000; }

.story-body { max-width: 680px; }
.story-signature { font-style: italic; color: var(--muted); margin-top: 30px; }

.owner-tools {
  margin-top: 34px;
  padding: 18px 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.owner-tools p { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--panel);
  border: 2px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn.small { padding: 8px 16px; font-size: 0.95rem; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn.quiet { border-color: var(--line); color: var(--muted); font-weight: normal; }
.btn.quiet:hover { background: var(--bg); color: var(--ink); }
.btn.big-choice { font-size: 1.2rem; padding: 16px 28px; }

/* ---------- admin: general ---------- */

.admin-crumb { margin-bottom: 24px; }
.admin-crumb a { text-decoration: none; font-size: 1rem; }
.admin-crumb a:hover { text-decoration: underline; }

.admin-title { font-size: 1.9rem; margin: 0 0 10px; }
.admin-sub { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-top: 0; }

.error-box {
  background: #fbe9e4;
  border: 2px solid var(--red);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 1.1rem;
}
.error-note { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

.saved-box {
  background: #e8f4ea;
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 16px 22px;
  margin: 22px 0;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--green-dark);
}

/* ---------- admin: dashboard ---------- */

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.dash-card {
  display: block;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(90, 70, 40, 0.06);
}
.dash-card:hover { border-color: var(--green); box-shadow: 0 4px 12px rgba(47, 125, 74, 0.18); color: var(--ink); }
.dash-emoji { display: block; font-size: 2.4rem; margin-bottom: 8px; }
.dash-label { display: block; font-size: 1.4rem; font-weight: bold; margin-bottom: 6px; }
.dash-hint { display: block; color: var(--muted); font-size: 0.98rem; }

.dash-list { display: flex; flex-direction: column; gap: 12px; margin: 30px 0; }
.dash-list a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 22px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.15rem;
}
.dash-list a:hover { border-color: var(--accent); color: var(--accent); }
.dash-list .dash-hint { display: inline; }

.logout-form { margin-top: 34px; }

/* ---------- admin: forms ---------- */

.big-form .field { margin: 34px 0; }
.big-form label {
  display: block;
  font-size: 1.35rem;
  font-weight: bold;
  margin-bottom: 6px;
}
.big-form .optional { font-weight: normal; color: var(--muted); font-size: 1.05rem; }
.big-form .hint { color: var(--muted); font-size: 1rem; margin: 4px 0 12px; }
.big-form input[type="text"],
.big-form input[type="password"],
.big-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.2rem;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
}
.big-form input:focus, .big-form textarea:focus {
  outline: 3px solid rgba(47, 125, 74, 0.35);
  border-color: var(--green);
}
.big-form textarea { line-height: 1.6; resize: vertical; }
.big-form input[type="file"] {
  font-size: 1.05rem;
  padding: 12px;
  background: var(--panel);
  border: 2px dashed var(--accent);
  border-radius: 10px;
  width: 100%;
}

.already {
  background: #e8f4ea;
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 1rem;
}

.choice { margin: 14px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.choice-title { font-weight: bold; margin: 0 0 4px; font-size: 1.1rem; }
.or { text-align: center; color: var(--muted); font-style: italic; margin: 10px 0; }

.publish-area { margin: 44px 0 10px; text-align: center; }
.btn-publish {
  display: block;
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1.45rem;
  font-weight: bold;
  padding: 20px 30px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(47, 125, 74, 0.3);
}
.btn-publish:hover { background: var(--green-dark); }
.center { text-align: center; }
.cancel { color: var(--muted); font-size: 1rem; }

.show-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 1.05rem;
  cursor: pointer;
}
.show-typing input { width: 22px; height: 22px; }

/* ---------- admin: login ---------- */

.login-box { max-width: 560px; margin: 0 auto; }
.login-box h1 { font-size: 1.8rem; }

/* ---------- admin: done / confirm ---------- */

.done-box { max-width: 640px; margin: 30px auto; text-align: center; }
.done-check {
  width: 84px; height: 84px;
  line-height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
}
.done-box h1 { font-size: 1.9rem; margin: 0 0 10px; }
.done-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}
.done-actions form { margin: 0; }

/* ---------- admin: manage ---------- */

.manage-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 14px;
}
.manage-info { display: flex; flex-direction: column; gap: 4px; }
.manage-title { font-size: 1.2rem; }
.manage-date { color: var(--muted); font-size: 0.9rem; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- admin: help ---------- */

.help-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 30px 18px;
  margin: 24px 0;
}
.help-section h2 { font-size: 1.35rem; }
.help-steps li { margin-bottom: 12px; }

/* ---------- small screens ---------- */

@media (max-width: 600px) {
  body { font-size: 18px; }
  .site-title { font-size: 1.6rem; }
  .card { padding: 20px; }
  .manage-actions { width: 100%; }
}
