/* Khoj — one small stylesheet for the server-rendered surfaces. */
:root {
  --paper: #f7f4ec;
  --ink: #1e2a24;
  --evidence: #1d5c3f;
  --accent: #b25b21;
  --muted: #5c6a62;
  --line: #ddd5c4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}
h1, h2 { font-family: Georgia, "Times New Roman", serif; color: var(--evidence); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--evidence);
  color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem clamp(1rem, 6vw, 4rem); border-bottom: 1px solid var(--line);
}
.brand { font-family: Georgia, serif; font-size: 1.4rem; color: var(--evidence); text-decoration: none; }
.site-nav { display: flex; gap: 1rem; align-items: center; }
.site-nav a { color: var(--ink); }
main { padding: 1.5rem clamp(1rem, 6vw, 4rem); max-width: 60rem; margin: 0 auto; }
.card {
  background: #fffdf8; border: 1px solid var(--line); border-radius: 10px;
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.card.narrow { max-width: 30rem; margin: 2rem auto; }
.calm { color: var(--muted); }
.step-indicator { color: var(--accent); font-size: 0.9rem; letter-spacing: 0.04em; }
.stacked-form label { display: block; margin: 0.9rem 0 0.3rem; font-weight: 600; }
.stacked-form input[type="text"], .stacked-form input[type="email"],
.stacked-form input[type="password"], .stacked-form input[type="time"],
.stacked-form textarea {
  display: block; width: 100%; max-width: 34rem; margin-top: 0.25rem;
  padding: 0.5rem; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-weight: 400; background: #fff;
}
.bucket-block {
  border: 1px solid var(--line); border-radius: 8px; margin: 1rem 0; padding: 0.75rem 1rem;
}
.bucket-toggle { font-weight: 700; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.4rem 0; }
.radio-row label { font-weight: 400; display: inline-flex; gap: 0.35rem; align-items: center; }
button {
  background: var(--evidence); color: #fff; border: 0; border-radius: 6px;
  padding: 0.6rem 1.2rem; font: inherit; cursor: pointer; min-height: 44px;
}
button.danger { background: var(--accent); }
.link-button {
  background: none; color: var(--evidence); text-decoration: underline;
  padding: 0; min-height: 0; cursor: pointer; font: inherit;
}
.inline-form { display: inline; }
.form-actions { display: flex; gap: 1rem; align-items: center; margin-top: 1.2rem; }
.quiet-link { color: var(--muted); }
.form-error { color: #8a2a12; font-weight: 600; }
.notice {
  background: #eaf3ee; border: 1px solid var(--evidence); border-radius: 6px;
  padding: 0.5rem 0.8rem;
}
.fixed-boundary {
  border-left: 3px solid var(--accent); padding: 0.4rem 0.8rem; color: var(--muted);
}
.basket-list { margin: 1rem 0; }
.basket-row {
  display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 0.5rem 1rem;
  padding: 0.45rem 0; border-bottom: 1px solid var(--line);
}
.basket-row dt { font-weight: 700; }
.basket-row dd { margin: 0; }
.history-list li, .episode-list li, .source-list li { margin: 0.5rem 0; }
.history-undone { text-decoration: line-through; color: var(--muted); }
.quiet { color: var(--muted); font-size: 0.9rem; }
.deep-link { font-size: 1.1rem; font-weight: 700; }
.transcript { white-space: pre-wrap; }
.site-footer {
  padding: 1rem clamp(1rem, 6vw, 4rem); color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .basket-row { grid-template-columns: 1fr; }
}
