:root {
  --bg: #1c1815;
  --bg-alt: #231e1a;
  --surface: #2a2420;
  --ink: #f1ebe0;
  --muted: #a89a89;
  --border: rgba(241, 235, 224, 0.13);
  --accent: #dd8452;
  --accent-ink: #1c1815;
  --max: 1040px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Nav ---------- */

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

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav nav {
  display: flex;
  gap: 28px;
}

.nav a:not(.brand) {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:not(.brand):hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 24px 80px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px;
}

.hero-photo-wrap {
  margin: 4px 0 0;
  flex-shrink: 0;
}

.hero-photo {
  width: 200px;
  height: 250px;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: grayscale(0.35) contrast(1.02);
}

@media (max-width: 760px) {
  .hero-grid {
    flex-direction: column-reverse;
    gap: 32px;
  }

  .hero-photo {
    width: 140px;
    height: 175px;
  }
}

.kicker {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0 0 18px;
  font-family: var(--font-body);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 24px;
  max-width: 17ch;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 54ch;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.btn-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Sections ---------- */

.section {
  padding: 76px 24px;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-inner-narrow {
  max-width: 560px;
}

.section-number {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.section h2 {
  font-size: 1.9rem;
  margin: 0 0 28px;
}

.section-subheading {
  margin: 48px 0 20px;
  font-size: 1.2rem;
}

.section-body p {
  color: var(--muted);
  max-width: 66ch;
  margin: 0 0 16px;
}

.stack-line {
  margin-top: 24px !important;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Timeline ---------- */

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.timeline-head h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 500;
}

.timeline-date {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-body);
  white-space: nowrap;
}

.timeline-company {
  color: var(--muted);
  font-weight: 500;
  margin: 4px 0 14px;
}

.timeline-item ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- Projects ---------- */

.project-list {
  display: flex;
  flex-direction: column;
}

.project {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.project:last-child {
  padding-bottom: 0;
}

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-head h3 {
  margin: 0;
  font-size: 1.3rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6a8f5b;
  display: inline-block;
}

.status-muted i {
  background: var(--muted);
}

.project p {
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 68ch;
  font-size: 0.98rem;
}

.project-stack {
  font-weight: 500;
  color: var(--ink) !important;
  font-size: 0.85rem !important;
  margin-top: 14px !important;
}

.project-links {
  display: flex;
  gap: 22px;
  margin-top: 16px;
}

.project-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.project-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Contact ---------- */

.contact-lede {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 28px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.contact-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.contact-links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Footer ---------- */

.footer {
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
