/* AddonForge website. Same palette as the app's Forge theme: charcoal, brass,
   one ember accent. System fonts only; nothing loaded from other sites. */
:root {
  color-scheme: dark;
  --bg: #191919; --bg-2: #20201f; --bg-3: #292927;
  --line: #363632; --line-2: #505049;
  --text: #eeeae2; --muted: #b1b0a9; --dim: #8f908a;
  --accent: #d5ae61; --accent-2: #e8c987; --accent-ink: #211a0e;
  --warn: #d9a852;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent-2); text-underline-offset: 3px; }
a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { font: .9em Consolas, "SF Mono", monospace; color: var(--accent-2); overflow-wrap: anywhere; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px max(16px, calc((100% - 960px) / 2));
  background: linear-gradient(110deg, #25231f, #191919 65%); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { display: block; }
.name {
  font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 600;
  font-variant: small-caps; letter-spacing: 1px; color: #e0bf82; text-shadow: 0 2px 1px #000;
}
.top nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--text); }
.top nav a[aria-current="page"] { color: var(--accent-2); border-bottom-color: var(--accent); }

main { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 30px; line-height: 1.25; margin: 16px 0 12px; font-weight: 600; }
h2 { font-size: 20px; margin: 36px 0 8px; font-weight: 600; }
section > h2:first-child { padding-top: 20px; border-top: 1px solid var(--line); }
.intro h1 { font-size: 36px; margin-top: 24px; }
.intro p { max-width: 640px; }
p { margin: 0 0 12px; }
.lede { font-size: 18px; color: var(--muted); }
.meta { color: var(--dim); font-size: 14px; }
.crumb { margin: 8px 0 0; font-size: 14px; }

.btn {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 4px;
  background: var(--bg-3); color: var(--text); text-decoration: none; font-size: 15px;
}
.btn:hover { border-color: var(--accent); color: var(--accent-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 17px; padding: 11px 24px; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.links .btn { margin: 0 6px 8px 0; }

ul.plain { padding-left: 20px; margin: 0 0 12px; }
ul.plain li { margin: 4px 0; }
.notice { border-left: 3px solid var(--warn); padding: 6px 12px; background: var(--bg-2); color: var(--text); }
.tag { font-size: 12px; color: var(--dim); margin-left: 6px; white-space: nowrap; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 20px 0 12px; }
.toolbar input, .toolbar select {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 7px 10px;
}
.toolbar input { flex: 1 1 240px; min-width: 0; }

table { border-collapse: collapse; width: 100%; }
.list th { text-align: left; font-weight: 500; font-size: 13px; color: var(--dim); padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.list td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list td a { font-weight: 600; text-decoration: none; }
.list td a:hover { text-decoration: underline; }
.list .desc { color: var(--muted); font-size: 14px; }
.c-cat, .c-src { width: 130px; color: var(--muted); font-size: 14px; }
.c-num { width: 90px; text-align: right; color: var(--muted); font-size: 14px; }
.list tr[hidden] { display: none; }

.facts { margin: 16px 0; width: auto; }
.facts th { text-align: left; font-weight: 400; color: var(--dim); padding: 4px 24px 4px 0; vertical-align: top; white-space: nowrap; }
.facts td { padding: 4px 0; }

.qa h2 { font-size: 18px; }

footer {
  border-top: 1px solid var(--line); color: var(--dim); font-size: 13px;
  padding: 20px max(16px, calc((100% - 960px) / 2)) 32px;
}
footer p { margin: 0 0 6px; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  .intro h1 { font-size: 28px; }
  h1 { font-size: 26px; }
  .c-cat, .c-src { display: none; }
  .c-num { width: 64px; }
}
