/* obot.roadmap site — shared stylesheet (homepage, generated pages, diary)
   Look & feel matches jwildfire.github.io's keynote theme:
   espresso #271810 · paper #faf6f1 · orange #f97316 accent
   Instrument Serif (headings) · Instrument Sans (body) · IBM Plex Mono (meta) */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Instrument+Serif:ital@0;1&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --side-bg: #271810;
  --side-ink: #f5ede4;
  --side-soft: #c4a995;
  --paper: #faf6f1;
  --ink: #2a211b;
  --muted: #6b5d52;
  --faint: #a3958a;
  --accent: #c2410c;         /* links */
  --accent-bright: #f97316;  /* borders, hover */
  --rule: #ece2d7;
  --panel: #f5efe7;          /* warm inset (code, table heads, baseline) */
  --card: #ffffff;
  --good: #166534;
  --warn: #92400e;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* author display rules (e.g. .news-item grid) otherwise beat the UA hidden style */
html { overflow-x: clip; } /* on html only — on body it would clip the full-bleed header/footer bands */
body {
  margin: 0 auto;
  max-width: 54rem;
  padding: 2.5rem 1.5rem 5rem;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 .75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-bright); text-decoration: underline; text-underline-offset: .2em; }

/* Espresso full-bleed bands (header/footer) inside the centered column.
   Header structure adopts the obot-claw hub bar: 🍊😺 brand left, nav right. */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: -2.5rem calc(50% - 50vw) 2rem;
  padding: .9rem max(calc(50vw - 25.5rem), 1.5rem) 1rem;
  background: var(--side-bg);
  border-top: 4px solid var(--accent-bright);
  border-bottom: none;
}
.brand, .brand:hover { font-family: var(--serif); font-size: 1.35rem; color: var(--side-ink); text-decoration: none; }
.tagline { color: var(--muted); margin: 0 0 1rem; }
nav.site { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 0; }
nav.site a { text-decoration: none; font-family: var(--mono); font-size: .84rem; color: var(--side-soft); }
nav.site a:hover { color: var(--accent-bright); text-decoration: none; }
nav.site a.current { color: var(--accent-bright); border-bottom: 2px solid var(--accent-bright); padding-bottom: .1rem; }
footer.site {
  margin: 3rem calc(50% - 50vw) -5rem;
  padding: 1.4rem max(calc(50vw - 25.5rem), 1.5rem) 2rem;
  background: var(--side-bg);
  border-top: none;
  color: var(--side-soft);
  font-family: var(--mono);
  font-size: .8rem;
}
footer.site a { color: var(--side-ink); text-decoration: none; }
footer.site a:hover { color: var(--accent-bright); }

code { font-family: var(--mono); font-size: .86em; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: .1em .35em; }
pre { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem; overflow-x: auto; }
pre code { background: none; border: none; padding: 0; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .92rem; background: var(--card); }
th, td { border: 1px solid var(--rule); padding: .45rem .6rem; text-align: left; vertical-align: top; }
th {
  background: var(--panel);
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
blockquote { border-left: 4px solid var(--accent-bright); margin: 1rem 0; padding: .25rem 1rem; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--rule); }

/* Cards (homepage sections) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.card {
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: var(--card);
  transition: box-shadow 140ms ease, transform 140ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(39, 24, 16, .12); }
.card h3 { margin: 0 0 .35rem; }
.card h3 a { text-decoration: none; }
.card p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Dashboard */
.queue li { margin: .4rem 0; }
.metric-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.metric { border: 1px solid var(--rule); border-radius: 14px; padding: .75rem 1.1rem; min-width: 9rem; background: var(--card); }
.metric strong { display: block; font-size: 1.5rem; font-weight: 600; }
.metric span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.metric.baseline { background: var(--panel); }
.stamp { color: var(--muted); font-size: .85rem; }

/* Roadmap + diary */
.status-pill { display: inline-block; border-radius: 999px; padding: .05rem .6rem; font-size: .74rem;
               font-family: var(--mono); font-weight: 600; letter-spacing: .04em;
               background: var(--panel); border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }
.status-pill.design, .status-pill.development, .status-pill.review { background: #fef3c7; border-color: #fde68a; color: var(--warn); }
.status-pill.released { background: #dcfce7; border-color: #bbf7d0; color: var(--good); }
details.closed-reqs summary { cursor: pointer; color: var(--muted); font-family: var(--mono); font-size: .85rem; }
details.closed-reqs summary:hover { color: var(--accent); }
nav.entry-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0;
                padding: .5rem 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
nav.entry-nav a { font-family: var(--mono); font-size: .85rem; text-decoration: none; }
.meta { color: var(--muted); }

/* News feed */
.news-layout { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 1.5rem; }
@media (max-width: 44rem) { .news-layout { grid-template-columns: 1fr; } .news-sidebar { position: static; } }
.news-sidebar {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
  padding: .9rem 1rem 1.1rem;
}
.news-sidebar h3 {
  margin: .9rem 0 .4rem;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.news-sidebar .filter-group:first-child h3 { margin-top: 0; }
.news-sidebar label { display: block; margin: .25rem 0; font-size: .9rem; cursor: pointer; }
.news-sidebar label .count { color: var(--faint); font-family: var(--mono); font-size: .76rem; }
.news-sidebar input { accent-color: var(--accent-bright); margin-right: .3rem; }
#month-filters a { display: block; margin: .2rem 0; font-size: .9rem; text-decoration: none; color: var(--accent); }
#month-filters a:hover { color: var(--accent-bright); }
#month-filters a.current { color: var(--ink); font-weight: 600; }
#month-filters a.current::before { content: "› "; color: var(--accent-bright); }
.news-month > h2 { border-bottom: 1px solid var(--rule); padding-bottom: .3rem; margin-top: 1.2rem; }
.news-month:first-child > h2 { margin-top: 0; }
.news-item { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .9rem; padding: .55rem 0; }
.news-item + .news-item { border-top: 1px solid var(--rule); }
.news-date { font-family: var(--mono); font-size: .78rem; color: var(--faint); padding-top: .2rem; white-space: nowrap; }
.news-body a { font-weight: 600; }
.news-summary { margin: .15rem 0 0; font-size: .9rem; color: var(--muted); }
.news-pill {
  display: inline-block;
  margin-right: .45rem;
  border-radius: 999px;
  padding: .05rem .55rem;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: var(--muted);
}
.news-pill.blog { background: #ffedd5; border-color: #fed7aa; color: #c2410c; }
.news-pill.diary { background: #f3e8dd; border-color: #e4d2bf; color: #6b4423; }
.news-pill.artifact { background: #ede9fe; border-color: #ddd6fe; color: #5b21b6; }
.news-pill.release { background: #dcfce7; border-color: #bbf7d0; color: #166534; }

/* Roadmap version badge + audit-log modal */
.version-badge {
  font: 500 .78rem/1.5 var(--mono);
  color: var(--side-soft);
  background: none;
  border: 1px solid rgba(196, 169, 149, .4);
  border-radius: 999px;
  padding: .1rem .65rem;
  cursor: pointer;
}
.version-badge:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
dialog.audit-log {
  max-width: 32rem;
  width: calc(100% - 3rem);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent-bright);
  border-radius: 12px;
  padding: 1.4rem 1.6rem 1.6rem;
}
dialog.audit-log::backdrop { background: rgba(39, 24, 16, .55); }
dialog.audit-log h2 { margin: 0 0 .3rem; }
dialog.audit-log form { float: right; margin: -.4rem -.6rem 0 0; }
.audit-close { font: 1.2rem/1 var(--mono); color: var(--muted); background: none; border: none; cursor: pointer; padding: .2rem .5rem; }
.audit-close:hover { color: var(--accent-bright); }
.audit-entry h3 { margin: 1.1rem 0 .3rem; }
.audit-entry ul { margin: 0; padding-left: 1.2rem; font-size: .92rem; }
.audit-entry li { margin: .15rem 0; }
.audit-date { font-family: var(--mono); font-size: .74rem; color: var(--faint); margin-left: .35rem; }
