/* Qwit Block - warm, readable, plain. */

:root {
  --bg: #f7f1e6;
  --bg-soft: #efe7d6;
  --ink: #2a221a;
  --ink-soft: #5b4f40;
  --muted: #8a7c6a;
  --rule: #d9cdb9;
  --accent: #b8552c;
  --accent-deep: #8c3e1d;
  --maxw: 36rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  padding: 1.25rem 0;
  margin-bottom: 2.5rem;
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand::first-letter { color: var(--accent); }
.nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

/* Typography */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 2.4rem 0 0.8rem;
}
h1 {
  font-size: 2.1rem;
  margin-top: 0.5rem;
  letter-spacing: -0.01em;
}
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1rem; }

a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); }

strong { font-weight: 700; }
em { font-style: italic; }

ul, ol { padding-left: 1.4rem; margin: 0 0 1.1rem; }
li { margin-bottom: 0.35rem; }

blockquote {
  margin: 1.4rem 0;
  padding: 0.4rem 0 0.4rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}

code, pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}
code {
  background: var(--bg-soft);
  padding: 0.08em 0.35em;
  border-radius: 3px;
}
pre {
  background: var(--bg-soft);
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  border: 1px solid var(--rule);
}
pre code { background: none; padding: 0; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* Lead paragraph (under h1) */
.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

/* Cards / index lists */
.card-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1rem;
}
.card-list a.card {
  display: block;
  padding: 1.1rem 1.2rem;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card-list a.card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.card .title {
  font-weight: 700;
  font-size: 1.08rem;
  display: block;
  margin-bottom: 0.25rem;
}
.card .meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Post list */
.post-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.post-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.post-list li:last-child { border-bottom: none; }
.post-list .date {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.15rem;
}
.post-list .title {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.post-list .title:hover { color: var(--accent-deep); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.55rem 1.05rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn.secondary {
  background: transparent;
  color: var(--accent-deep);
  border: 1px solid var(--accent);
}
.btn.secondary:hover { background: var(--accent); color: #fff; }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; }

/* Callout / note box */
.note {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem;
  border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--ink-soft); }
.site-footer .disclaimer { flex-basis: 100%; font-size: 0.78rem; color: var(--muted); }

/* Mobile */
@media (max-width: 540px) {
  body { font-size: 18px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.3rem; }
  .site-header { margin-bottom: 1.75rem; }
  .nav { gap: 0.9rem; }
}

/* Print: be friendly */
@media print {
  .nav, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
