/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ───────────────────────────────────────── */
:root {
  --bg: #0f0f11;
  --text: #f0ede8;
  --muted: #a09a92;
  --muted-2: #c8c3bc;
  --dim: #6b6560;
  --accent: #e8503a;
  --accent-hover: #d4402b;
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --card-border-hover: rgba(232,80,58,0.5);
}

/* ── Base ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle radial glow used on inner pages via body class */
body.has-glow::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(220,80,60,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Nav ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15,15,17,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-logo .frank { color: var(--accent); }
.nav-logo .replies { color: var(--text); }

.back-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 3rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--muted-2);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.35);
  color: var(--text);
  transform: translateY(-1px);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.8rem 1.4rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-3px);
}
.card-icon { font-size: 2rem; margin-bottom: 0.85rem; }
.card-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Section shared ──────────────────────────────────────── */
section { padding: 6rem 2rem; }

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}
.section-inner.narrow { max-width: 720px; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-heading {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 3rem;
}

/* ── Inner-page layout ───────────────────────────────────── */
.page-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.page-heading {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.page-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 3.5rem;
}
.page-date {
  font-size: 0.82rem;
  color: var(--dim);
  margin-bottom: 1rem;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.footer-logo {
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}
.footer-logo .frank { color: var(--accent); }
.footer-logo .replies { color: var(--text); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--muted); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--dim);
  width: 100%;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Responsive base ─────────────────────────────────────── */
@media (max-width: 480px) {
  .page-heading  { font-size: 1.8rem; }
  .section-heading { font-size: 1.7rem; }
}
