/* EverJar dev portal — same family as the public site (../style.css supplies
   the .brand/.mark jar icon), lifted from the "Product Showcase & Roadmap"
   artifact for the hero/pills/timeline/grid/stack/roadmap components. */
:root {
  --ember: #e0632f;
  --ember-dim: #b8501f;
  --gold: #f2c94c;
  --cream: #f6efe2;
  --ink: #201812;
  --ink-soft: #6b5a48;
  --page-bg: var(--cream);
  --card-bg: #ffffff;
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --line: rgba(32, 24, 18, 0.12);
  --shadow: 0 1px 2px rgba(32, 24, 18, 0.05), 0 10px 28px rgba(32, 24, 18, 0.07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #1a130e;
    --card-bg: #2a2018;
    --text: #f6efe2;
    --text-soft: #cbb6a0;
    --line: rgba(246, 239, 226, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 1.5rem 6rem; }

/* ---- top nav ---- */
.dev-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0 0;
  font-size: 0.85rem;
}
.dev-nav a { color: var(--text-soft); text-decoration: none; }
.dev-nav a:hover { color: var(--ember); }
.dev-nav .home { font-weight: 600; }

/* ---- hero ---- */
.hero { padding: 2.5rem 0 3rem; text-align: center; }
.hero .brand { margin: 0 auto 1.25rem; }
.hero .brand .mark { width: 46px; height: 54px; }
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 700;
  margin: 0 0 0.9rem;
}
h1.title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.tagline {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 46ch;
  margin: 0 auto;
  text-wrap: balance;
}
.status-row {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  color: var(--text-soft);
  text-decoration: none;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.pill.live .dot { background: #5fb47a; }

/* ---- sections (collapsible via native <details>) ---- */
details.section { margin-top: 4rem; }
summary.section-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.3rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}
summary.section-title::-webkit-details-marker { display: none; }
summary.section-title::before {
  content: "";
  flex: none;
  width: 0.6em;
  height: 0.6em;
  border-right: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin-bottom: 0.15em;
}
details[open] > summary.section-title::before { transform: rotate(45deg); margin-bottom: 0; }
summary.section-title:hover { color: var(--ember); }
summary.section-title:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
/* everything after the summary fades/slides in on open */
/* opacity-only: animating transform on a grid container (.roadmap, .grid,
   .stack-panel are all direct children in some sections) hits a WebKit bug
   where grid items paint at a stale box size while their content reflows —
   dropping the transform avoids it entirely. */
details.section > summary.section-title ~ * { animation: section-reveal 0.18s ease; }
@keyframes section-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
p.lede { font-size: 1.02rem; color: var(--text-soft); max-width: 68ch; margin: 0 0 1.5rem; }

/* ---- timeline ---- */
.timeline { position: relative; padding-left: 1.7rem; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px;
  background: var(--line);
}
.tl-item { position: relative; padding-bottom: 1.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -1.7rem; top: 0.3rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ember); border: 2px solid var(--page-bg);
}
.tl-item.pending::before { background: var(--gold); }
.tl-item h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.tl-item p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }

/* ---- feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.feature { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; box-shadow: var(--shadow); }
.feature .mono {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
  background: var(--ember); color: #fff;
  margin-bottom: 0.9rem;
}
.feature h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.feature p { margin: 0; font-size: 0.9rem; color: var(--text-soft); }

/* ---- stack / key-id panel ---- */
.stack-panel { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 1.6rem 1.8rem; }
.stack-row {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 0.3rem 1rem; padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.stack-row:last-child { border-bottom: none; }
.stack-row dt { font-weight: 700; color: var(--text); }
.stack-row dd { margin: 0; color: var(--text-soft); }

/* ---- roadmap ---- */
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; align-items: start; }
.rm-col h3 {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ember); margin: 0 0 0.9rem; font-weight: 700;
}
.rm-item {
  display: block;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.85rem 1rem; margin-bottom: 0.7rem; box-shadow: var(--shadow);
  font-size: 0.88rem; text-decoration: none; color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.rm-item:hover { border-color: var(--ember); transform: translateY(-1px); }
.rm-item .rm-title { font-weight: 600; display: block; margin-bottom: 0.2rem; color: var(--text); }
.rm-item .rm-note { color: var(--text-soft); font-size: 0.82rem; }

/* ---- docs list & prose ---- */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.doc-list a {
  display: block; background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.2rem; box-shadow: var(--shadow); color: var(--text); text-decoration: none; font-weight: 600;
}
.doc-list a:hover { color: var(--ember); }
.doc-list span { display: block; font-weight: 400; color: var(--text-soft); font-size: 0.85rem; margin-top: 0.15rem; }

.prose { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 2rem 2.2rem; }
.prose h1 { font-family: var(--serif); font-size: 1.9rem; margin-top: 0; }
.prose h2 { font-family: var(--serif); font-size: 1.4rem; margin-top: 2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose p, .prose li { color: var(--text); }
.prose a { color: var(--ember); }
.prose code { background: var(--line); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.88em; }
.prose pre { background: var(--ink); color: var(--cream); padding: 1rem 1.2rem; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: 0.9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.7rem; text-align: left; }
.prose blockquote { border-left: 3px solid var(--ember); margin: 1rem 0; padding: 0.2rem 1.2rem; color: var(--text-soft); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---- login ---- */
.login-card {
  max-width: 380px; margin: 5rem auto 0; background: var(--card-bg); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); padding: 2.2rem 2rem; text-align: center;
}
.login-card .brand { margin: 0 auto 1.2rem; }
.login-card .brand .mark { width: 40px; height: 47px; }
.login-card h1 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 0.4rem; }
.login-card p { color: var(--text-soft); font-size: 0.92rem; margin: 0 0 1.6rem; }
.login-card input[type="password"] {
  width: 100%; font-size: 1rem; padding: 0.7rem 0.9rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--page-bg); color: var(--text);
  margin-bottom: 0.9rem;
}
.login-card button {
  width: 100%; font-size: 0.95rem; font-weight: 600; padding: 0.7rem 0.9rem; border-radius: 10px;
  border: none; background: linear-gradient(135deg, var(--gold), var(--ember)); color: #fffbf2; cursor: pointer;
}
.login-card button:hover { filter: brightness(1.05); }
.login-error {
  display: none; background: rgba(224, 99, 47, 0.12); color: var(--ember-dim);
  border-radius: 8px; padding: 0.6rem 0.8rem; font-size: 0.85rem; margin-bottom: 1rem;
}
.login-error.show { display: block; }

footer.dev-foot {
  margin-top: 5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--text-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
footer.dev-foot a { color: var(--text-soft); }
footer.dev-foot a:hover { color: var(--ember); }

@media (max-width: 600px) {
  .stack-row { grid-template-columns: 1fr; }
  .prose { padding: 1.5rem 1.3rem; }
}
