:root {
  color-scheme: light;
  --ink: #1b1c21;
  --muted: #5a6170;
  --quiet: #7a8190;
  --line: rgba(27, 28, 33, 0.13);
  --line-strong: rgba(27, 28, 33, 0.24);
  --paper: #fbfaf6;
  --panel: rgba(255, 255, 255, 0.68);
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: rgba(15, 118, 110, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.95), transparent 30rem),
    linear-gradient(155deg, #f5f0de 0%, #e8f1f3 55%, #d8ecff 100%);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

.page-shell {
  width: min(70rem, calc(100vw - 2rem));
  margin-inline: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

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

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.wordmark {
  font-weight: 750;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font: 700 0.76rem/1.25 ui-monospace, "SFMono-Regular", "SF Mono", Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-main {
  padding-block: 4.5rem 5rem;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.profile-hero h1 {
  max-width: 9ch;
  margin: 0.45rem 0 1.2rem;
  font-size: clamp(4rem, 9vw, 7.6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.hero-lede {
  max-width: 43rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.identity-note {
  padding: 1.4rem 0 0 1.5rem;
  border-left: 1px solid var(--line-strong);
}

.identity-note p:last-child {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.identity-note strong {
  color: var(--ink);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1rem;
  border: 1px solid rgba(15, 118, 110, 0.23);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 12px 30px rgba(36, 50, 66, 0.1);
  text-decoration: none;
}

.button-primary {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button-small {
  min-height: 2.4rem;
  margin-top: 0.5rem;
  padding-inline: 0.9rem;
  font-size: 0.8rem;
}

.text-link {
  margin-left: 0.4rem;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.section-block {
  margin-top: 6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 12rem minmax(0, 40rem);
  gap: 2rem;
  align-items: start;
}

.section-heading h2,
.closing-note h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.principle-card {
  min-height: 19rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(36, 50, 66, 0.06);
}

.card-number {
  margin: 0 0 4rem;
  color: var(--accent-strong);
  font: 700 0.8rem/1 ui-monospace, "SFMono-Regular", "SF Mono", Menlo, monospace;
}

.principle-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.principle-card p:last-child {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.timeline {
  margin-top: 3rem;
  margin-left: 14rem;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  margin: 0.2rem 0 0;
  color: var(--quiet);
  font: 650 0.78rem/1.4 ui-monospace, "SFMono-Regular", "SF Mono", Menlo, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0;
  font-size: 1.4rem;
}

.timeline-role {
  margin: 0.2rem 0 0;
  color: var(--accent-strong);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.timeline-item div > p:last-child {
  max-width: 45rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.closing-note {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(20rem, 1.1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-top: 6rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--accent-soft);
}

.closing-note h2 {
  margin-top: 0.5rem;
  font-size: 2rem;
}

.closing-note > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
}

.profile-footer p {
  margin: 0;
}

/* Resume */

.resume-body {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.95), transparent 30rem),
    linear-gradient(155deg, #f5f0de 0%, #eef5f4 55%, #e2effa 100%);
}

.resume-main {
  margin-block: 2.5rem 5rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 25px 70px rgba(36, 50, 66, 0.09);
}

.resume-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid var(--ink);
}

.resume-header h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.resume-tagline {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.45;
}

.resume-contact {
  align-self: end;
  text-align: right;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
}

.resume-contact p {
  margin: 0.35rem 0;
}

.resume-contact span {
  margin-inline: 0.35rem;
  color: var(--quiet);
}

.resume-section {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 2rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

.resume-section > h2 {
  margin: 0;
  color: var(--accent-strong);
  font: 750 0.78rem/1.35 ui-monospace, "SFMono-Regular", "SF Mono", Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resume-section > p,
.resume-section > ul,
.resume-section > article,
.resume-section > div {
  grid-column: 2;
}

.resume-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.resume-summary p + p {
  margin-top: 0.8rem;
}

.strength-list {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.8;
}

.strength-list span {
  margin-inline: 0.35rem;
  color: var(--accent);
}

.resume-section ul {
  margin: 0;
  padding-left: 1.15rem;
}

.resume-section li {
  padding-left: 0.25rem;
  color: var(--muted);
  line-height: 1.55;
}

.resume-section li + li {
  margin-top: 0.4rem;
}

.experience-company + .experience-company {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.company-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.company-header h3 {
  margin: 0;
  font-size: 1.65rem;
}

.company-header p {
  margin: 0.2rem 0 0;
  color: var(--quiet);
  font: 650 0.78rem/1.4 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.experience-role + .experience-role {
  margin-top: 1.7rem;
}

.experience-role header {
  margin-bottom: 0.7rem;
}

.experience-role h4 {
  margin: 0;
  font-size: 1.08rem;
}

.experience-role header p {
  margin: 0.2rem 0 0;
  color: var(--accent-strong);
  font: 700 0.78rem/1.4 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.earlier-grid article:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.earlier-grid h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.earlier-grid p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.resume-footer {
  margin-bottom: 1rem;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 1.25rem, 70rem);
  }

  .site-nav {
    min-height: 4.2rem;
  }

  .site-nav nav {
    gap: 0.75rem;
  }

  .site-nav nav a:first-child:not(:last-child) {
    display: none;
  }

  .profile-main {
    padding-top: 3rem;
  }

  .profile-hero,
  .section-heading,
  .closing-note,
  .resume-header,
  .resume-section {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    gap: 2.5rem;
  }

  .profile-hero h1 {
    font-size: clamp(3.8rem, 18vw, 6.5rem);
  }

  .identity-note {
    max-width: 35rem;
  }

  .profile-actions {
    align-items: stretch;
  }

  .profile-actions .button {
    flex: 1 1 10rem;
  }

  .profile-actions .text-link {
    flex-basis: 100%;
    margin: 0.35rem 0 0;
  }

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

  .principle-card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 2rem;
  }

  .timeline {
    margin-left: 0;
  }

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

  .closing-note {
    align-items: start;
  }

  .closing-note .button {
    justify-self: start;
  }

  .resume-main {
    margin-block: 1rem 3rem;
    padding: 1.25rem;
    border-radius: 0.9rem;
  }

  .resume-contact {
    text-align: left;
  }

  .resume-section {
    gap: 1rem;
  }

  .resume-section > p,
  .resume-section > ul,
  .resume-section > article,
  .resume-section > div {
    grid-column: 1;
  }

  .company-header {
    display: block;
  }

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

  .earlier-grid article:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media print {
  @page {
    margin: 0.55in;
  }

  body,
  .resume-body {
    background: white;
  }

  .site-nav,
  .profile-footer,
  .resume-contact .button {
    display: none;
  }

  .resume-main {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .resume-header h1 {
    font-size: 32pt;
  }

  .resume-section {
    break-inside: auto;
  }

  .experience-role,
  .earlier-grid article {
    break-inside: avoid;
  }

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