/* Aethelium — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --cream: #f5efe4;
  --cream-soft: #ede5d6;
  --cream-deep: #e6dcc8;
  --paper: #fbf7ef;
  --ink: #1f1a16;
  --ink-soft: #4a3f37;
  --muted: #8a7a6d;
  --line: #d9cdb8;
  --line-soft: #e6dcc8;
  --coral: #d97757;
  --coral-deep: #c66341;
  --coral-soft: #f3d6c4;
  --coral-tint: #fbe8db;
  --green: #4f8a5d;
  --blue: #5d7fa8;
  --plum: #8a5d7f;
  --nav-bg: rgba(245, 239, 228, 0.85);
}

[data-theme="dark"] {
  --cream: #1a1612;
  --cream-soft: #221c17;
  --cream-deep: #2a221c;
  --paper: #221c17;
  --ink: #f5efe4;
  --ink-soft: #c8b8a5;
  --muted: #8a7a6d;
  --line: #3a2f26;
  --line-soft: #2e251f;
  --coral: #ea8866;
  --coral-deep: #d97757;
  --coral-soft: #4a2e22;
  --coral-tint: #2e1f18;
  --green: #7ab088;
  --blue: #8aa6c9;
  --plum: #b08aa6;
  --nav-bg: rgba(26, 22, 18, 0.85);
}

html { transition: background-color .2s; }
body { transition: background-color .2s, color .2s; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.display {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- NAV --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

/* --- THEME TOGGLE --- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px;
  position: relative;
  cursor: pointer;
  margin-right: 4px;
}
.theme-toggle button {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--muted);
  display: grid; place-items: center;
  cursor: pointer;
  transition: color .15s;
  position: relative;
  z-index: 1;
}
.theme-toggle button svg { width: 14px; height: 14px; }
.theme-toggle button.active { color: var(--ink); }
.theme-toggle .slider {
  position: absolute;
  top: 3px; bottom: 3px;
  width: 30px;
  border-radius: 999px;
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.theme-toggle.dark .slider { transform: translateX(30px); }
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px; height: 28px;
  display: grid; place-items: center;
}
.brand-mark img,
.brand-mark svg {
  width: 100%; height: 100%;
  display: block;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--cream-soft); color: var(--ink); }
.nav-link.active {
  background: var(--ink);
  color: var(--paper);
}
.nav-spacer { flex: 1; }
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 14px;
  width: 260px;
  color: var(--muted);
  font-size: 13px;
}
.nav-search input {
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  color: var(--ink);
  flex: 1;
  width: 100%;
}
.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--coral-deep);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 1px 2px rgba(0,0,0,0.04);
  transition: background .15s;
}
.discord-btn:hover { background: var(--coral-deep); }
.discord-btn svg { width: 16px; height: 16px; }

/* --- LAYOUT --- */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line-soft);
}
.section:first-of-type { border-top: 0; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s, background .15s, border-color .15s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral-deep);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 6px 16px -8px rgba(217,119,87,0.6);
}
.btn-primary:hover { background: var(--coral-deep); }
.btn-secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--cream-soft); }
.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-ink:hover { background: #2d2620; }
.btn svg { width: 16px; height: 16px; }

/* --- CARD --- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}

/* --- BADGE / PILL --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--coral-tint);
  border: 1px solid var(--coral-soft);
  color: var(--coral-deep);
  font-size: 12.5px;
  font-weight: 600;
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(79,138,93,0.18);
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 36px;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-brand { flex: 1; min-width: 240px; }
.footer-brand p { margin: 10px 0 0; max-width: 360px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

/* --- TWEAKS HOOK PANEL placeholder (none for now) --- */
