@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;1,400&family=Syne:wght@600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg:      #282828;
  --bg1:     #3c3836;
  --bg2:     #504945;
  --bg3:     #665c54;
  --fg:      #ebdbb2;
  --fg1:     #d5c4a1;
  --fg3:     #a89984;
  --yellow:  #fabd2f;
  --yellow-d:#d79921;
  --yellow-s:#b57614;
  --green:   #b8bb26;
  --green-d: #98971a;
  --aqua:    #8ec07c;
  --red:     #fb4934;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Body ────────────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--yellow); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--fg); }

/* ── Header ──────────────────────────────────────────────────────────────── */
header {
  background: var(--bg1);
  border-bottom: 2px solid var(--yellow-d);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

#title a {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--yellow);
}

nav ul { list-style: none; display: flex; gap: 28px; }
nav ul li a { font-size: 14px; color: var(--fg3); }
nav ul li a:hover { color: var(--yellow); }

/* ── Layout ──────────────────────────────────────────────────────────────── */
main { flex: 1; }

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* ── Page heading ────────────────────────────────────────────────────────── */
.page-heading { text-align: center; margin-bottom: 36px; }
.page-heading h2 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}
.page-heading p { font-size: 13px; color: var(--fg3); }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider { display: flex; align-items: center; gap: 12px; margin: 32px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--bg2); }
.divider span { font-size: 14px; color: var(--yellow-s); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 9px 20px;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary   { background: var(--yellow-d); color: var(--bg); border-color: var(--yellow-s); }
.btn-primary:hover { background: var(--yellow); }
.btn-secondary { background: var(--bg2); color: var(--fg1); border-color: var(--bg3); }
.btn-secondary:hover { background: var(--bg3); color: var(--fg); }
.btn-danger    { background: transparent; color: var(--fg3); border-color: var(--bg2); font-size: 12px; padding: 5px 12px; }
.btn-danger:hover { background: #3c1f1e; color: var(--red); border-color: #7c2828; }
.remove-btn { background: var(--bg); color: var(--fg); }

/* ── Inline text helpers ─────────────────────────────────────────────────── */
.inline-code  { font-family: monospace; font-size: 13px; background: var(--bg2); color: var(--aqua);   padding: 2px 8px; border-radius: 6px; border: 1px solid var(--bg3); }
.inline-label { font-size: 13px;        background: var(--bg2); color: var(--yellow); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--bg3); }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.centered { display: flex; justify-content: center; align-items: center; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  padding: 18px 24px;
  text-align: center;
}
footer p { font-size: 13px; color: var(--fg3); letter-spacing: 0.04em; }

footer .footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
footer .footer-links li p { margin: 0; }
footer .footer-links li a { color: var(--yellow); }
footer .footer-links li a:hover { color: var(--fg); }
footer .footer-links li a:active { color: var(--yellow-d); }

/* ── Ko-fi button ────────────────────────────────────────────────────────── */
.kofi-btn { display: inline-block; margin-top: 6px; border-radius: 8px; transition: opacity 0.15s; }
.kofi-btn:hover { opacity: 0.85; }

/* ── Error page ──────────────────────────────────────────────────────────── */
.error-page  { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 80px 24px; gap: 16px; }
.error-code  { font-family: 'Syne', sans-serif; font-size: 96px; font-weight: 700; color: var(--yellow); }
.error-name  { font-family: 'Syne', sans-serif; font-size: 22px; color: var(--fg1); }
.error-desc  { font-style: italic; font-size: 14px; color: var(--fg3); max-width: 440px; line-height: 1.7; }
