:root {
  color-scheme: light;
  --bg: #f4efe7;
  --panel: #fffaf2;
  --panel-strong: #172033;
  --text: #172033;
  --muted: #5f6a7a;
  --line: #ded3c3;
  --accent: #dc6b35;
  --accent-dark: #9c3e20;
  --blue: #315f88;
  --shadow: 0 24px 70px rgba(35, 31, 28, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(220, 107, 53, 0.18), transparent 32rem),
    linear-gradient(135deg, #f8f1e7 0%, #f3eadc 48%, #e8edf0 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.skip-link {
  left: 1rem;
  padding: 0.65rem 0.85rem;
  position: absolute;
  top: -4rem;
  z-index: 10;
  background: var(--panel-strong);
  color: white;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.eyebrow,
.section-label,
.project-kicker {
  margin: 0 0 0.7rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.55;
}

.hero-card,
.resume-card,
.projects-card {
  border: 1px solid rgba(23, 32, 51, 0.1);
  background: rgba(255, 250, 242, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: 24px;
  border-radius: 28px;
}

.hero-card p {
  color: var(--muted);
  line-height: 1.55;
}

.button {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

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

.button.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--panel-strong);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.resume-card,
.projects-card {
  border-radius: 34px;
}

.resume-card {
  padding: clamp(28px, 5vw, 56px);
}

.resume-card section + section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.resume-card p,
.projects-card p,
.projects-card li {
  color: var(--muted);
  line-height: 1.65;
}

.check-list,
.impact-list,
.project-feature ul {
  margin: 0;
  padding-left: 1.2rem;
}

.check-list li + li,
.impact-list li + li,
.project-feature li + li {
  margin-top: 0.45rem;
}

.impact-list {
  margin-top: 0.8rem;
}

.impact-list li {
  color: var(--muted);
  line-height: 1.55;
}

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

.timeline div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.timeline span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline strong {
  display: block;
  margin-bottom: 0.4rem;
}

.timeline p {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-list span {
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--panel-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.projects-card {
  position: sticky;
  top: 24px;
  padding: 24px;
}

.sidebar-note {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.project-feature {
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
  background: var(--panel-strong);
  color: white;
}

.project-feature .project-kicker,
.project-feature p,
.project-feature li {
  color: rgba(255, 255, 255, 0.75);
}

.project-feature h3 {
  font-size: 1.6rem;
}

.project-image-link {
  display: block;
  margin: 1rem 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.project-image-link img {
  display: block;
  width: 100%;
  height: auto;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: white;
  font-weight: 800;
}

.project-mini {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 20px;
}

.project-mini p {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 24px, 680px);
    padding: 28px 0;
  }

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

  .projects-card {
    position: static;
  }
}

@media print {
  body {
    background: white;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .hero-card,
  .projects-card,
  .skip-link {
    display: none;
  }

  .hero,
  .layout {
    display: block;
  }

  .resume-card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
