:root {
  --ink: #172c3a;
  --body: #3d474c;
  --muted: #68747a;
  --accent: #0f7478;
  --warm: #c75a3b;
  --warm-soft: #f4ded5;
  --cool-soft: #dfeceb;
  --line: #d8dfdc;
  --paper: #fffefa;
  --surround: #eeece6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surround);
  color: var(--body);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 0.22em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 4px;
  border-radius: 2px;
}

.resume {
  position: relative;
  width: min(920px, calc(100% - 40px));
  margin: 40px auto;
  padding: clamp(44px, 8vw, 84px);
  background: var(--paper);
  box-shadow: 0 14px 50px rgb(23 44 58 / 8%);
  overflow: hidden;
}

.resume::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), #70a6a1 58%, var(--warm));
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(58px, 8vw, 86px);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav div {
  display: flex;
  gap: 24px;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--warm);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.site-nav .wordmark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.hero {
  max-width: 720px;
  margin: 0 auto clamp(64px, 9vw, 96px);
  text-align: center;
}

.portrait {
  display: block;
  width: clamp(176px, 25vw, 232px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 7px var(--warm-soft), 0 18px 42px rgb(23 44 58 / 14%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 7px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.headline {
  margin: 20px auto 18px;
  color: var(--ink);
  font-size: clamp(0.76rem, 2vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.8;
  text-transform: uppercase;
}

.headline span {
  margin-inline: 0.3em;
  color: var(--line);
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  margin-bottom: 31px;
  font-size: 0.92rem;
}

.contact span {
  color: #9da7a9;
}

.summary {
  max-width: 650px;
  margin: 0 auto;
  color: #4b565a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2.5vw, 1.28rem);
  line-height: 1.65;
}

.section {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: clamp(26px, 5vw, 60px);
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section > h2 {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-content {
  min-width: 0;
}

.experience-item {
  position: relative;
  padding-bottom: 31px;
}

.experience-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 1px;
  background: color-mix(in srgb, var(--line) 65%, transparent);
}

.experience-item:last-child {
  padding-bottom: 0;
}

.item-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

h3 {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.organization {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.date {
  flex: 0 0 auto;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.experience-item ul {
  margin: 13px 0 0;
  padding-left: 1.05rem;
}

.experience-item li {
  padding-left: 0.3rem;
}

.experience-item li + li {
  margin-top: 7px;
}

.experience-item > p:last-child,
.skill-group p,
.selected-work p {
  margin-bottom: 0;
}

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

.skill-group h3 {
  margin-bottom: 8px;
}

.skill-group p,
.selected-work p {
  color: #536066;
  font-size: 0.94rem;
}

.selected-work {
  display: grid;
  gap: 27px;
}

.selected-work article {
  padding-left: 19px;
  border-left: 2px solid var(--line);
}

.selected-work h3 {
  margin-bottom: 6px;
}

.education .organization {
  margin-bottom: 0;
}

.story-link {
  margin: 44px 0;
  padding: clamp(30px, 6vw, 48px);
  border-left: 4px solid var(--warm);
  background: linear-gradient(135deg, var(--cool-soft), #f7f4ed 76%);
}

.story-link h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.story-link > p:not(.eyebrow) {
  max-width: 580px;
  margin-bottom: 20px;
  color: #4e5b60;
}

.arrow-link {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.arrow-link span {
  display: inline-block;
  margin-left: 6px;
  color: var(--warm);
  transition: transform 150ms ease;
}

.arrow-link:hover span {
  transform: translateX(4px);
}

.story-page {
  padding-bottom: clamp(55px, 8vw, 84px);
}

.story-hero {
  max-width: 760px;
  margin-bottom: clamp(72px, 11vw, 120px);
}

.story-hero .eyebrow {
  color: var(--warm);
}

.story-hero h1 {
  max-width: 750px;
  margin-bottom: 34px;
  font-size: clamp(3.3rem, 9vw, 6.6rem);
}

.story-intro {
  max-width: 670px;
  margin-bottom: 0;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
  color: #4c585d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 2.6vw, 1.4rem);
  line-height: 1.7;
}

.story-copy {
  max-width: 760px;
  margin-left: auto;
}

.story-chapter {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 34px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.chapter-number {
  margin: 6px 0 0;
  color: var(--warm);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.story-chapter h2 {
  margin-bottom: 20px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.story-chapter div > p {
  color: #4c585d;
  font-size: 1.01rem;
}

.story-chapter div > p:last-child {
  margin-bottom: 0;
}

.triumph {
  position: relative;
  margin: 62px 0 0;
  padding: clamp(42px, 8vw, 72px);
  border: 0;
  background: var(--ink);
  color: var(--paper);
}

.triumph::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--warm);
}

.triumph > p {
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.triumph footer {
  padding: 0;
  border: 0;
  color: #bfc9ca;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  line-height: 1.6;
  text-align: left;
  text-transform: uppercase;
}

.story-return {
  margin-top: 54px;
}

.story-return .arrow-link span {
  margin-right: 6px;
  margin-left: 0;
}

.story-return .arrow-link:hover span {
  transform: translateX(-4px);
}

footer {
  padding-top: 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 680px) {
  body {
    background: var(--paper);
  }

  .resume {
    width: 100%;
    margin: 0;
    padding: 44px 24px 52px;
    box-shadow: none;
  }

  .hero {
    margin-bottom: 62px;
  }

  .site-nav {
    margin-bottom: 58px;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 0;
  }

  .section > h2 {
    margin-top: 0;
  }

  .item-heading {
    display: block;
  }

  .date {
    margin-bottom: 12px;
  }

  .skill-groups {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .story-chapter {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 38px 0;
  }

  .story-intro {
    padding-left: 18px;
  }

  .triumph {
    margin-right: -24px;
    margin-left: -24px;
  }
}

@media print {
  :root {
    --paper: #fff;
    --surround: #fff;
  }

  body {
    font-size: 10pt;
  }

  .resume {
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .portrait {
    width: 150px;
    box-shadow: none;
  }

  .hero {
    margin-bottom: 42px;
  }

  .site-nav {
    margin-bottom: 42px;
  }

  h1 {
    font-size: 38pt;
  }

  .section {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 28px;
    padding: 24px 0;
    break-inside: avoid;
  }

  .experience-item,
  .skill-group,
  .selected-work article,
  .story-chapter,
  .triumph {
    break-inside: avoid;
  }

  a {
    color: var(--accent);
    text-decoration: none;
  }
}
