:root {
  --bg: #1A1A1A;
  --bg-secondary: #242424;
  --text: #F1EFE8;
  --text-muted: #9C9A93;
  --accent: #1D9E75;
  --accent-deep: #04342C;
  --accent-hover: #0F6E56;
  --border: #3A3A38;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

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

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.brand-sep { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  color: var(--accent) !important;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--accent-deep) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: left;
}

.eyebrow {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  max-width: 16ch;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-deep);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
}
.btn-primary:hover { background: var(--accent-hover); color: var(--text); }

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
}
.btn-secondary:hover { border-color: var(--text-muted); }

/* Proof strip */
.proof-strip {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.proof-stat {
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.proof-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Problems section */
.problems {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
}

.problems-heading {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.problem-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

.problem-card h3 { font-size: 1.1rem; }
.problem-card p { color: var(--text-muted); margin: 0; }

.problem-card-featured {
  grid-column: 1 / -1;
  border: 2px solid var(--accent);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.problem-card-featured h3 { color: var(--accent); margin: 0; white-space: nowrap; }
.problem-card-featured p { margin: 0; }

.link-arrow {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Dashboard strip */
.dashboard-strip {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dash-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.dash-label {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.dash-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.dash-card .btn-primary {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0 0 0.4em; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* Subpage shared layout */
.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); max-width: 22ch; }
.page-hero .hero-sub { max-width: 52ch; }

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.section-heading {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.section-tight { padding-top: 0; }

/* Notes (Currently page + homepage teaser) */
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.note-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.note-date {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.note-body p { margin: 0 0 0.75rem; color: var(--text-muted); }
.note-body p:last-child { margin-bottom: 0; }
.note-body a { text-decoration: underline; }

.notes-empty, .notes-error {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Generic two/three-up card grids (case studies, services) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.case-card, .service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

.case-card h3, .service-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.case-card p, .service-card p { color: var(--text-muted); margin: 0 0 0.6rem; }
.case-card p:last-child, .service-card p:last-child { margin-bottom: 0; }

.case-label {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-photo img {
  width: 100%;
  border-radius: 16px;
  display: block;
}
.photo-fallback {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 500;
  align-items: center;
  justify-content: center;
}
.about-copy p { color: var(--text-muted); }

/* Resume */
.resume-actions { margin-bottom: 2rem; }

.resume-section { margin-bottom: 2.5rem; }
.resume-section h2 {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.job { margin-bottom: 1.75rem; }
.job:last-child { margin-bottom: 0; }
.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.15rem;
}
.job-title { font-weight: 500; margin: 0; }
.job-role { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 0.5rem; }
.job-meta { color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; }
.job ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--text-muted); }
.job ul li { margin-bottom: 0.4rem; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 1.5rem;
  font-size: 0.92rem;
}
.skills-grid dt { color: var(--accent); font-weight: 500; margin-top: 0.6rem; }
.skills-grid dd { color: var(--text-muted); margin: 0.15rem 0 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-info p { color: var(--text-muted); }
.contact-info a { color: var(--text); }
.contact-info a:hover { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form button {
  align-self: flex-start;
  background: var(--accent);
  color: var(--accent-deep);
  font-weight: 500;
  font-family: var(--font);
  font-size: 0.95rem;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
}
.contact-form button:hover { background: var(--accent-hover); color: var(--text); }

/* Responsive */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .proof-strip { grid-template-columns: 1fr; gap: 2rem; }
  .problems-grid { grid-template-columns: 1fr; }
  .dashboard-strip { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .job-meta { white-space: normal; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 160px; }
}
