:root {
  --bg: #f4efe5;
  --paper: rgba(255, 252, 247, 0.82);
  --surface: #fffaf2;
  --surface-strong: #f8efe2;
  --text: #1f1b16;
  --muted: #62584b;
  --line: rgba(31, 27, 22, 0.1);
  --accent: #c9612d;
  --accent-dark: #94421b;
  --shadow: 0 24px 70px rgba(61, 44, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 97, 45, 0.18), transparent 25%),
    radial-gradient(circle at 85% 10%, rgba(78, 121, 167, 0.16), transparent 22%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin-bottom: 28px;
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.wordmark {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hero,
.section {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.95fr);
  gap: 32px;
  padding: 48px;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 11ch;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-text,
.about-grid p,
.timeline-item p,
.project-card p,
.contact-copy,
.hero-stats dd,
.skill-group li {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  margin: 24px 0 0;
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff9f5;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(201, 97, 45, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.5);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portrait-wrap {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #d46431 0%, #f1c47e 100%);
  min-height: 340px;
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stats {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 24px;
}

.hero-stats dt {
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero-stats dd {
  margin: 0;
}

.section {
  margin-top: 24px;
  padding: 40px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  max-width: 14ch;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.about-grid p,
.project-card p {
  margin: 0;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item,
.project-card,
.skill-group {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
}

.timeline-meta,
.project-type {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item h3,
.project-card h3,
.skill-group h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.project-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.project-card a:hover,
.project-card a:focus-visible {
  text-decoration: underline;
}

.project-tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.skill-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-group li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.94rem;
}

.contact-section {
  margin-bottom: 24px;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero,
  .about-grid,
  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .section-heading h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 12px;
  }

  .site-header {
    position: static;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero,
  .section {
    padding: 24px;
    border-radius: 24px;
  }

  .hero {
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 14vw, 3.6rem);
  }

  .timeline-meta,
  .project-type {
    flex-direction: column;
    align-items: flex-start;
  }
}
