:root {
  color-scheme: light;
  --ink: #17231d;
  --muted: #5c685f;
  --paper: #f8f5ee;
  --paper-deep: #eee8db;
  --line: rgba(23, 35, 29, 0.14);
  --green: #1f6f55;
  --green-dark: #123f34;
  --coral: #c9583f;
  --gold: #c9972b;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(22, 35, 28, 0.13);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: Avenir, "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 35, 29, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 35, 29, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 46px 46px;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 238, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-menu a {
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: var(--paper-deep);
  color: var(--ink);
  outline: none;
}

.nav-menu .nav-resume {
  color: var(--white);
  background: var(--green-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 5rem);
}

.hero-content {
  position: relative;
}

.hero-content::before {
  content: "";
  position: absolute;
  width: 112px;
  height: 8px;
  left: 0;
  top: -26px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--coral));
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 14vw, 9.5rem);
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.84rem 1.1rem;
  border: 1px solid var(--ink);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 var(--gold);
  outline: none;
}

.button.primary {
  background: var(--green-dark);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
}

.profile-panel {
  position: relative;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile-panel::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 45%;
  height: 42%;
  border-right: 18px solid var(--green);
  border-bottom: 18px solid var(--green);
  z-index: -1;
}

.profile-panel div {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.profile-panel .profile-name {
  min-height: 260px;
  align-content: end;
  padding: clamp(1.25rem, 4vw, 2rem);
  background:
    linear-gradient(135deg, rgba(31, 111, 85, 0.18), transparent 48%),
    linear-gradient(315deg, rgba(201, 88, 63, 0.16), transparent 44%),
    var(--paper-deep);
  border-bottom-color: var(--ink);
}

.profile-panel div:last-child {
  border-bottom: 0;
}

.profile-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 800;
}

.profile-panel strong {
  font-size: 1rem;
}

.profile-panel .profile-name strong {
  max-width: 10ch;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(1.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
}

.intro h2,
.section-heading h2,
.split h2,
.contact-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.timeline-date {
  color: var(--green-dark);
  font-weight: 900;
  padding-top: 1.1rem;
}

.timeline-card,
.skill-grid article {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  padding: clamp(1.1rem, 2.4vw, 1.55rem);
}

.timeline-card h3,
.skill-grid h3 {
  font-size: 1.25rem;
}

.meta {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.5rem;
}

.split {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skill-grid p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.contact-band {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 2rem;
  border: 1px solid var(--ink);
  background: var(--green-dark);
  color: var(--white);
}

.contact-band .section-kicker {
  color: #f1bd4f;
}

.contact-links {
  display: grid;
  align-content: center;
  gap: 0.75rem;
}

.contact-links a {
  border-bottom: 1px solid rgba(255, 253, 248, 0.42);
  padding-bottom: 0.35rem;
  font-weight: 800;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    border-radius: 0;
    padding: 0.85rem 1rem;
  }

  .hero,
  .intro,
  .split,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3.8rem, 21vw, 6rem);
  }

  .profile-panel {
    max-width: 420px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .timeline-date {
    padding-top: 0;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: start;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
