:root {
  --color-bg: #f9f8f6;
  --color-surface: #ffffff;
  --color-text: #1a1a18;
  --color-muted: #66655e;
  --color-border: #e2e0d8;
  --color-accent: #2e5d40;
  --color-accent-hover: #1e3f2b;
  --color-accent-light: #f0f4f1;
  --font-display: "Spectral", Georgia, serif;
  --font-sans: "Outfit", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(249, 248, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

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

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-btn span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
}

/* ── Typography & Global Elements ── */
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
}

.display-xl {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 1.5rem;
}

.display-lg {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.italic {
  font-style: italic;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-muted);
  max-width: 36rem;
  line-height: 1.6;
}

.prose p + p {
  margin-top: 1rem;
}

.prose-lead {
  margin-bottom: 2rem;
}

.text-muted {
  color: var(--color-muted);
}

.sub-text {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.period-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* ── Buttons ── */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

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

/* ── Layout & Sections ── */
.section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hero {
  padding-top: 12rem;
  padding-bottom: 8rem;
}

.grid-split {
  display: grid;
  gap: 3.5rem;
}

/* ── Frames & Images ── */
.image-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-border);
  box-shadow: var(--shadow-md);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.image-frame:hover img {
  transform: scale(1.02);
}

.aspect-portrait {
  aspect-ratio: 4/5;
}

.aspect-landscape {
  aspect-ratio: 16/7;
}

/* ── Components (Cards, Badges, Lists) ── */
.badge-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.badge-icon {
  padding: 0.5rem;
  background: var(--color-accent-light);
  border-radius: 4px;
  color: var(--color-accent);
  display: flex;
}

.badge-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.badge-sub {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}

.skill-tag {
  padding: 0.625rem 0.875rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 4px 4px 0;
}

.pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 100px;
}

.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-muted);
}

.card-value {
  font-weight: 500;
}

/* ── Footer ── */
.footer {
  background: var(--color-accent);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.footer-tag,
.footer-copy {
  font-size: 0.8125rem;
}

/* ── Utility Classes ── */
.mb-1 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 2rem; }

/* ── Responsive Queries ── */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .grid-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .grid-split-sidebar {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}