:root {
  --color-bg: #fdfaf6;
  --color-bg-alt: #f5efe6;
  --color-text: #2b2622;
  --color-text-muted: #6b6259;
  --color-accent: #d9663b;
  --color-accent-dark: #b84f28;
  --color-accent-soft: #f3ded2;
  --color-border: #e6ddd0;
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 880px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(253, 250, 246, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  border: 1.5px solid transparent;
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

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

.btn-outline {
  border-color: var(--color-border);
  color: var(--color-text);
}

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

.site-header .btn {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}

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

/* Hero */
.hero {
  padding: 96px 24px 72px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 20px;
  max-width: 14ch;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 64px 24px;
  border-top: 1px solid var(--color-border);
}

.section-title {
  font-size: 1.9rem;
  margin: 0 0 12px;
}

.section-sub {
  color: var(--color-text-muted);
  margin: 0 0 32px;
  font-size: 1.05rem;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 68ch;
}

.about-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-left: 2px solid var(--color-border);
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 32px;
}

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

.timeline-marker {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
}

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

.timeline-head h3 {
  font-size: 1.2rem;
  margin: 0;
}

.timeline-date {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.timeline-org {
  font-weight: 600;
  color: var(--color-accent-dark);
  margin: 4px 0 12px;
}

.timeline-content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--color-text-muted);
}

.timeline-content li {
  margin-bottom: 6px;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(43, 38, 34, 0.08);
}

.project-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.project-card p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.97rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.project-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.project-link {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 0.92rem;
}

.project-link:hover {
  text-decoration: underline;
}

.projects-empty {
  color: var(--color-text-muted);
  font-style: italic;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.skill-group h3 {
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* Contact */
.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease;
}

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

.contact-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.contact-value {
  font-weight: 600;
  font-size: 1.02rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 64px 20px 48px; }
  .section { padding: 48px 20px; }
}
