:root {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --text: #17221d;
  --muted: #607068;
  --primary: #e5a91b;
  --primary-strong: #b87900;
  --forest: #184c3b;
  --border: #d8d8c9;
  --success: #0f766e;
  --danger: #b91c1c;
  --shadow: 0 18px 45px rgba(23, 34, 29, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(24, 76, 59, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(24, 76, 59, 0.035) 1px, transparent 1px), var(--bg);
  background-size: 42px 42px;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  margin-bottom: 0.9rem;
}

p,
li,
a,
label,
input,
textarea,
button {
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.section-pad {
  padding: 6rem 0;
  animation: fadeUp 0.7s ease both;
}

.surface {
  background: rgba(255, 253, 248, 0.8);
  border-top: 1px solid rgba(216, 216, 201, 0.75);
  border-bottom: 1px solid rgba(216, 216, 201, 0.75);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  border: 2px solid var(--primary);
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  z-index: 999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(246, 243, 236, 0.88);
  border-bottom: 1px solid rgba(216, 216, 201, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: none;
  gap: 1rem;
}

.nav-list a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
}

.eyebrow {
  color: var(--forest);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.hero-copy {
  max-width: 62ch;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta a,
.contact-email {
  color: var(--forest);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero-card-mark {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.card-kicker,
.card-number {
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-grid,
.education-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.8fr 1fr;
}

.about-grid p,
.education-grid p,
.split-heading > p {
  color: var(--muted);
}

.about-grid h2,
.education-grid h2 {
  max-width: 14ch;
}

.section-heading {
  margin-bottom: 2rem;
}

.split-heading {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 0.7fr;
  align-items: end;
}

.split-heading > p {
  margin: 0 0 1rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.card h3 {
  margin: 1.8rem 0 0.5rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.timeline {
  border-top: 1px solid var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item h3,
.timeline-item p {
  margin: 0;
}

.timeline-item p {
  color: var(--muted);
}

.timeline-year {
  color: var(--primary-strong);
  font-weight: 700;
}

.education-list p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.education-list strong {
  color: var(--text);
}

.education-list span {
  white-space: nowrap;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.5rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b8c2b8;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(229, 169, 27, 0.22);
  border-color: var(--primary);
}

.btn {
  text-decoration: none;
  border: none;
  border-radius: 2px;
  padding: 0.68rem 1rem;
  font-weight: 700;
  display: inline-block;
  cursor: pointer;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-strong);
}

.btn-secondary {
  border: 1px solid var(--primary);
  color: var(--forest);
  background: transparent;
}

.alert {
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin: 0.4rem 0 0.5rem;
}

.alert-success {
  background: #d1fae5;
  color: var(--success);
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: #fee2e2;
  color: var(--danger);
  border: 1px solid #fca5a5;
}

.site-footer {
  border-top: 1px solid rgba(216, 216, 201, 0.75);
  background: rgba(24, 76, 59, 0.06);
}

.footer-content {
  padding: 1.2rem 0;
}

@media (min-width: 760px) {
  .nav-list {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrap {
    grid-template-columns: 1fr 1.15fr;
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 759px) {
  .split-heading,
  .about-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .section-pad {
    padding: 4rem 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
