/* NarutoMUD forum static archive — minimal "this is historical" styling.
 *
 * No nav bar, no posting affordances, no avatars. Typography-first,
 * single-column, signals "read-only archive."
 */

:root {
  --bg: #1a1612;
  --bg-card: #221c17;
  --bg-banner: #2a1f17;
  --text: #e5dccd;       /* primary body — 11.5:1 on --bg, WCAG AAA */
  --text-dim: #b0a594;   /* meta/dates — 6.5:1 on --bg, WCAG AA */
  --text-faint: #8a8070; /* footer/breadcrumb sep — 4.6:1 on --bg, WCAG AA */
  --accent: #d4a45a;
  --accent-dim: #a07840;
  --border: #3a3128;
  --quote-bg: #1f1a14;
  --quote-border: #5a4a38;
  --link: #e6b88a;       /* link color — 7.8:1 on --bg, WCAG AAA */
  --link-hover: #f0c590;
  --code-bg: #0e0c0a;
  --code-text: #c8b89e;
}

* { box-sizing: border-box; }

html { font-size: 16px; }
body {
  margin: 0;
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* ---- banner ---- */
.archive-banner {
  background: var(--bg-banner);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  font-family: 'Helvetica Neue', system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.archive-banner__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.archive-banner__label {
  text-transform: uppercase;
  color: var(--accent);
  font-weight: bold;
}
.archive-banner__years { color: var(--text-dim); }
.archive-banner__home {
  margin-left: auto;
  color: var(--link);
  text-decoration: none;
}
.archive-banner__home:hover { color: var(--link-hover); text-decoration: underline; }

/* ---- breadcrumbs ---- */
.crumbs {
  max-width: 760px;
  margin: 1rem auto 0;
  padding: 0 1.2rem;
  font-family: 'Helvetica Neue', system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs__sep { margin: 0 0.4rem; color: var(--text-faint); }

/* ---- content wrapper ---- */
.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.2rem 3rem;
}

/* ---- headings ---- */
h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-top: 0;
  color: var(--accent);
}
h2 {
  font-size: 1.05rem;
  font-family: 'Helvetica Neue', system-ui, sans-serif;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1.5rem; }
h3 { font-size: 1.1rem; color: var(--text); }

/* ---- topic meta ---- */
.topic__meta {
  font-family: 'Helvetica Neue', system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0.3rem 0 2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.dot { margin: 0 0.5rem; color: var(--text-faint); }

/* ---- post body ---- */
.topic__body p { margin: 0.6rem 0; }
.topic__body a { color: var(--link); }
.topic__body a:hover { color: var(--link-hover); }

/* ---- blockquote (phpBB quotes) ---- */
blockquote {
  margin: 1rem 0;
  padding: 0.6rem 1rem;
  background: var(--quote-bg);
  border-left: 3px solid var(--quote-border);
  color: var(--text-dim);
  font-style: italic;
}
blockquote strong { color: var(--accent-dim); font-style: normal; }
blockquote p { margin: 0.3rem 0; }

/* ---- code ---- */
code {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  font-size: 0.9em;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.8rem 1rem;
  overflow-x: auto;
  border-radius: 3px;
  border-left: 3px solid var(--border);
}
pre code { background: none; padding: 0; }

/* ---- forum index tables ---- */
.forums-list, .topics-list {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: 'Helvetica Neue', system-ui, sans-serif;
  font-size: 0.92rem;
}
.forums-list th, .topics-list th {
  text-align: left;
  border-bottom: 2px solid var(--border);
  padding: 0.5rem 0.6rem;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.forums-list td, .topics-list td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.forums-list a, .topics-list a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}
.forums-list a:hover, .topics-list a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
.col-topics, .col-posts { text-align: right; color: var(--text-dim); width: 5rem; }
.col-author { color: var(--text-dim); width: 11rem; }
.col-dates { color: var(--text-faint); font-size: 0.85rem; width: 12rem; }
.forum-desc {
  color: var(--text-faint);
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* ---- search ---- */
.archive-search {
  margin: 1.5rem 0;
}
.archive-search input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
}
.archive-search input:focus {
  outline: none;
  border-color: var(--accent);
}
#search-results .search-hit {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.search-hit__excerpt {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}
.search-hit mark {
  background: var(--accent-dim);
  color: var(--bg);
  padding: 0 2px;
}

/* ---- archive index lede ---- */
.archive-index__lede {
  color: var(--text-dim);
  font-size: 1rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent-dim);
  border-radius: 0 3px 3px 0;
}

/* ---- footer ---- */
.archive-foot {
  max-width: 760px;
  margin: 3rem auto 1.5rem;
  padding: 1.5rem 1.2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: italic;
}
.archive-foot a { color: var(--link); text-decoration: none; }
.archive-foot a:hover { text-decoration: underline; }

/* ---- images embedded in posts: cap so they don't blow out the column ---- */
.topic__body img { max-width: 100%; height: auto; }
