@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,800;1,9..144,400&family=DM+Sans:opsz,wght@9..40,400;9..40,500&display=swap');

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

:root {
  --bg:             #1a1f2e;
  --bg-card:        #222940;
  --bg-shelved:     #1d2133;
  --accent:         #f5a623;
  --accent-dim:     rgba(245, 166, 35, 0.12);
  --accent-border:  rgba(245, 166, 35, 0.28);
  --text:           #e8e4d9;
  --text-muted:     #7a7670;
  --border:         rgba(255, 255, 255, 0.07);
  --green:          #5aab6e;
  --radius:         14px;
  --font-display:   'Fraunces', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;
  --max-w:          1020px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }

/* ─── Layout ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── Site Header ─── */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark .hl { color: var(--accent); }

.header-back {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.header-back::before { content: '←'; }
.header-back:hover { color: var(--text); text-decoration: none; }

/* ─── Landing Hero ─── */
.hero {
  padding: 80px 0 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.7;
}

/* ─── Divider ─── */
hr.divider { border: none; border-top: 1px solid var(--border); }

/* ─── Section ─── */
.section { padding: 64px 0; }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.section-title.muted { color: var(--text-muted); }

/* ─── Project Grid ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

/* ─── Project Card ─── */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
  text-decoration: none;
}
.project-card.shelved { background: var(--bg-shelved); opacity: 0.52; }
.project-card.shelved:hover { opacity: 0.78; transform: translateY(-2px); }

.card-visual {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-body { padding: 20px 22px 24px; }

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tag {
  font-size: 0.69rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.tag-platform { background: rgba(255,255,255,0.07); color: var(--text-muted); }
.tag-active   { background: rgba(90,171,110,0.15);  color: var(--green); }
.tag-shelved  { background: rgba(255,255,255,0.05); color: var(--text-muted); }

.card-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}
.card-cta { font-size: 0.82rem; font-weight: 500; color: var(--accent); }
.card-cta::after { content: ' →'; }

/* ─── Site Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 40px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.82rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ─── Project Page Hero ─── */
.project-hero { padding: 72px 0 56px; }
.project-hero .project-meta { display: flex; gap: 8px; margin-bottom: 20px; }
.project-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.project-hero .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 32px;
}
.project-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: #1a1f2e; }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); }

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.1rem;
}
.feature-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }

/* ─── Project page secondary sections ─── */
.project-section { padding: 56px 0; }
.project-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.platform-list { display: flex; gap: 12px; flex-wrap: wrap; }
.platform-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Prose (privacy / support) ─── */
.prose-page { padding: 64px 0 96px; max-width: 660px; }
.prose-page h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.prose-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.prose-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.prose-page p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.prose-page a { color: var(--accent); }
.prose-page a:hover { text-decoration: underline; }
.prose-page ul { padding-left: 20px; margin-bottom: 16px; }
.prose-page ul li { color: var(--text-muted); margin-bottom: 6px; line-height: 1.6; }
.callout {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
}
.callout p { color: var(--text); margin: 0; font-size: 0.93rem; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 40px; gap: 0; }
  .hero-illustration { display: none; }
  .hero .lead { max-width: 100%; }
  .project-hero { padding: 48px 0 40px; }
}
