/* ─── frjosh.com Public Website Styles ───────────────────────────────────────── */
/* Uses design tokens from tokens.css. Always rendered in dark mode.              */

/* ── Override primary to blue (dark mode uses near-white by default) ─────────── */
:root,
.dark {
  --primary:            oklch(0.623 0.214 259.815);
  --primary-foreground: oklch(0.985 0 0);
}

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

body {
  font-family: var(--font-sans);
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: underline;
}
a:hover { opacity: 0.8; }

/* ── Page wrapper ─────────────────────────────────────────────────────────────── */
.page {
  min-height: 100vh;
  max-width: 72rem;
  margin: 0 auto;
  position: relative;
}

/* ── Site nav ─────────────────────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.site-logo {
  color: var(--foreground);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s;
}
.site-logo:hover { color: var(--primary); opacity: 1; }

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--foreground); opacity: 1; }
.nav-link.active { color: var(--primary); }

/* ── Site footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  max-width: 56rem;
  margin: 3rem auto 0;
  padding: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.site-footer a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--foreground); opacity: 1; }
.site-footer .sep { color: var(--border); }

/* ── Hero section (home page) ─────────────────────────────────────────────────── */
.outer-container {
  border-radius: 0.75rem;
  padding: 2rem;
  padding-top: 4rem;
}

.hero {
  background: linear-gradient(to bottom, var(--accent), var(--background));
  border-radius: 0.75rem;
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .hero-content { flex-direction: row; }
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.title-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-family: var(--font-mono);
  color: var(--muted-foreground);
}

.hero-bio {
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* ── Main content area ────────────────────────────────────────────────────────── */
.site-main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.site-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.site-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ── Project cards grid ───────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}

.project-card {
  display: block;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--card-foreground);
  text-decoration: none;
  transition: border-color 0.2s;
}
.project-card:hover { border-color: var(--primary); opacity: 1; }
.project-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  transition: color 0.2s;
}
.project-card:hover h3 { color: var(--primary); }
.project-card p {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* ── Resources list ───────────────────────────────────────────────────────────── */
.resources-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

/* ── Content pages (privacy, terms) ──────────────────────────────────────────── */
.content-container {
  max-width: 56rem;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.content-container h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.last-updated {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.prose {
  color: var(--muted-foreground);
  line-height: 1.75;
}
.prose h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.prose p { margin-bottom: 1rem; }
.prose ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--foreground); }

.highlight-box {
  background: var(--accent);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.375rem;
}
