/* rec.games.trading-cards.jyhad archive — one stylesheet, no dependencies. */

:root {
  --paper: #fbfaf8;
  --ink: #1c1b19;
  --muted: #6f6a62;
  --faint: #e6e2db;
  --accent: #8b2635;
  --target: #f3e7e4;
  --quote: #7d786f;
  --quote2: #9a958c;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16161a;
    --ink: #d9d5cd;
    --muted: #8d8880;
    --faint: #2b2b31;
    --accent: #e08c95;
    --target: #2a2024;
    --quote: #857f76;
    --quote2: #6a655e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

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

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

/* ---- chrome ---- */

header.site {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.wordmark {
  font-family: var(--mono);
  color: var(--muted);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--accent); }

header.site nav a { margin-left: 1rem; color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--accent); text-decoration: underline; }

footer.site {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--faint);
  color: var(--muted);
  font-size: 0.8125rem;
}
footer.site p { margin: 0; }
footer.site code { font-size: 0.95em; }

.crumbs { font-size: 0.8125rem; color: var(--muted); margin: 0 0 1.5rem; }
.crumbs a { color: var(--muted); }

/* ---- text ---- */

h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

h2 { font-size: 1.0625rem; font-weight: 600; margin: 2.5rem 0 0.5rem; }

.lede { font-size: 1.0625rem; }

.meta, .note { color: var(--muted); font-size: 0.875rem; }
.meta { margin: 0 0 2.5rem; }

.source { color: var(--muted); }

code, pre { font-family: var(--mono); }
code { font-size: 0.9em; }

pre.rewrite {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  background: var(--faint);
  padding: 0.9rem 1rem;
  border-radius: 3px;
  overflow-x: auto;
}
pre.rewrite b { color: var(--ink); }

/* ---- listings ---- */

ul.years { list-style: none; padding: 0; margin: 2rem 0; }
ul.years li { padding: 0.3rem 0; border-bottom: 1px solid var(--faint); }
ul.years a { font-family: var(--mono); }
ul.years .n { color: var(--muted); font-size: 0.8125rem; float: right; }

table.listing { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
table.listing td { padding: 0.4rem 0.5rem 0.4rem 0; border-bottom: 1px solid var(--faint); vertical-align: baseline; }
table.listing td.d {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  width: 4.5rem;
}
table.listing td.n { font-size: 0.75rem; color: var(--muted); text-align: right; width: 2.5rem; }
table.listing a { text-decoration: none; }
table.listing a:hover { text-decoration: underline; }

/* ---- search ---- */

#f { margin: 0 0 1rem; }
#q {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--faint);
  border-radius: 3px;
}
#q:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* ---- messages ---- */

article.msg {
  border-top: 1px solid var(--faint);
  padding: 1.5rem 0 0.5rem;
  scroll-margin-top: 1rem;
}
article.msg:target { background: var(--target); box-shadow: 0 0 0 0.75rem var(--target); }

.who { font-size: 0.9375rem; font-weight: 600; margin: 0; }
.when { font-size: 0.75rem; color: var(--muted); margin: 0 0 0.9rem; font-family: var(--mono); }

.permalink {
  margin-left: 0.5rem;
  font-weight: 400;
  color: var(--faint);
  text-decoration: none;
}
article.msg:hover .permalink { color: var(--muted); }
.permalink:hover { color: var(--accent); }

.body {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.body .q { color: var(--quote); }
.body .q2, .body .q + .q2 { color: var(--quote2); }

.elided {
  color: var(--muted);
  font-style: italic;
  font-family: var(--sans);
  font-size: 0.75rem;
}

@media (max-width: 34rem) {
  main { padding: 1.5rem 1rem 3rem; }
  h1 { font-size: 1.3125rem; }
  .body { font-size: 0.78125rem; }
}
