/* ─────────────────────────────────────────────────────────────
   Carduelis — shared visual system.
   Palette: deep coffee bg + goldfinch gold + cream. No external
   fonts (system stack loads instantly on any device).
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #12100e;
  --bg-alt: #1e1a15;
  --card: #201b16;
  --border: #2f2820;
  --accent: #e6bc5c;
  --accent-soft: rgba(230, 188, 92, 0.15);
  --text: #f0e7d6;
  --muted: #8b7b65;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top nav ─────────────────────────────────────────────── */
.nav {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--text);
  text-transform: uppercase;
}
.brand span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--text); }

/* ── Landing hero ────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(230, 188, 92, 0.08), transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(230, 188, 92, 0.04), transparent 60%);
  pointer-events: none;
}
.hero-name {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(56px, 12vw, 128px);
  font-weight: 400;
  letter-spacing: clamp(4px, 1.2vw, 12px);
  line-height: 1;
  color: var(--text);
  margin: 0;
  animation: fadeUp 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-name .dot { color: var(--accent); }
.hero-sub {
  position: relative;
  font-size: clamp(14px, 2.4vw, 18px);
  color: var(--muted);
  letter-spacing: 1px;
  margin: 24px 0 0;
  max-width: 460px;
  animation: fadeUp 900ms 150ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-badge {
  position: relative;
  display: inline-block;
  margin-top: 40px;
  padding: 8px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  animation: fadeUp 900ms 300ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-mail {
  position: relative;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.5px;
  animation: fadeUp 900ms 450ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Content pages ───────────────────────────────────────── */
main.content {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h1.page-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
.page-sub {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 40px;
}

/* ── Project card ────────────────────────────────────────── */
.projects {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .projects { grid-template-columns: 1fr 1fr; }
}
.project {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 200ms, transform 200ms;
}
.project:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.project-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.project-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.project-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-title {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 4px;
  color: var(--text);
}
.project-tag {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.project-desc {
  color: var(--text);
  opacity: 0.85;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.3px;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.pill.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 700;
}
.pill.primary:hover { color: var(--bg); opacity: 0.9; }
.pill.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Legal / long-form pages ─────────────────────────────── */
.longform h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 40px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  letter-spacing: 0.5px;
}
.longform h3 {
  font-size: 15px;
  margin: 24px 0 6px;
  letter-spacing: 0.5px;
}
.longform p { margin: 8px 0 12px; }
.longform ul { padding-left: 20px; }
.longform li { margin: 4px 0; }
.longform code {
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 24px 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.footer a { color: var(--muted); margin: 0 8px; }
.footer a:hover { color: var(--accent); }
