:root {
  --bg: #f7f2e8;
  --surface: rgba(255, 252, 246, 0.88);
  --surface-strong: #fffdf8;
  --ink: #1f2933;
  --muted: #5c6873;
  --accent: #c35b2e;
  --accent-deep: #83381b;
  --line: rgba(31, 41, 51, 0.12);
  --shadow: 0 20px 60px rgba(78, 56, 38, 0.12);
  --radius: 24px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(195, 91, 46, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(64, 123, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #f4eee3 0%, #fbf8f1 45%, #f2ece0 100%);
  line-height: 1.6;
}

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

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

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(247, 242, 232, 0.72);
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}

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

.brand {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Garamond, serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-main,
.hero-side,
.panel,
.timeline-item,
.skill-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-main {
  padding: 2.6rem;
  position: relative;
  overflow: hidden;
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 91, 46, 0.22), rgba(195, 91, 46, 0));
}

.eyebrow,
.meta-note,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--accent-deep);
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Garamond, serif;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}

.subtitle {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.hero-actions,
.contact-list,
.mini-list,
.tag-list,
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.button,
.pill,
.contact-chip {
  border-radius: 999px;
  padding: 0.78rem 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.button.secondary {
  background: rgba(31, 41, 51, 0.06);
  color: var(--ink);
}

.button:hover,
.contact-chip:hover {
  transform: translateY(-2px);
}

.hero-side {
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-side h2 {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.contact-chip {
  width: 100%;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(31, 41, 51, 0.08);
}

.contact-chip span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 1.5rem 0 0;
}

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

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}

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

.panel {
  padding: 1.5rem;
}

.panel h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

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

.stat-line {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--ink);
}

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

.skill-card {
  padding: 1.35rem;
}

.skill-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.skill-pills li {
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.06);
  color: var(--muted);
  font-size: 0.92rem;
}

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

.timeline-item {
  padding: 1.5rem;
  position: relative;
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.timeline-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.role {
  color: var(--accent-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
}

.timeline-meta {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: right;
  white-space: nowrap;
}

.timeline-item ul {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
}

.timeline-item li + li {
  margin-top: 0.55rem;
}

.tag-list li,
.mini-list li {
  padding: 0.45rem 0.75rem;
  background: rgba(195, 91, 46, 0.09);
  border-radius: 999px;
  color: var(--accent-deep);
  font-size: 0.92rem;
}

.footer {
  padding: 3rem 0 4rem;
}

.footer-card {
  background: linear-gradient(135deg, #261710, #6d2b13);
  color: #fff8f2;
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.footer-card p {
  max-width: 40rem;
  margin: 0.8rem 0 1.2rem;
  color: rgba(255, 248, 242, 0.84);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .timeline-top,
  .section-heading,
  .nav {
    flex-direction: column;
    align-items: start;
  }

  .timeline-meta {
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3.25rem;
  }

  .hero-main,
  .hero-side,
  .panel,
  .timeline-item,
  .skill-card,
  .footer-card {
    padding: 1.25rem;
  }

  .nav-links {
    gap: 0.7rem;
  }
}
