@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=DM+Serif+Display&display=swap");

:root {
  --paper: #f4f0e8;
  --paper-deep: #e9e3d7;
  --ink: #161816;
  --muted: #66675f;
  --line: #cfc8bb;
  --accent: #d55a2a;
  --accent-dark: #a83f19;
  --sage: #6f7f66;
  --card: #f9f6f0;
  --white: #fffdf8;
  --shadow: 0 20px 50px rgba(35, 30, 24, 0.09);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100vw - 48px));
}

html[data-theme="dark"] {
  --paper: #171916;
  --paper-deep: #20231f;
  --ink: #f2eee5;
  --muted: #aaa99f;
  --line: #3b3e38;
  --accent: #ed7747;
  --accent-dark: #ff986e;
  --sage: #96aa8b;
  --card: #1d201c;
  --white: #242720;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  transition: background-color 180ms ease, color 180ms ease;
}

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

button {
  color: inherit;
  font: inherit;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
}

.wordmark-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}

.site-nav a,
.footer-nav a,
.text-link {
  position: relative;
}

.site-nav a::after,
.footer-nav a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.footer-nav a:hover::after,
.footer-nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  right: 0;
}

.theme-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 12px;
}

.theme-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--ink) 50%, var(--paper) 50%);
  border: 1px solid var(--ink);
}

.home-page {
  overflow: hidden;
}

.home-page main {
  height: calc(100svh - 77px);
  display: grid;
  grid-template-rows: minmax(270px, 46%) minmax(0, 54%);
  overflow: hidden;
}

.home-page .site-footer {
  display: none;
}

.profile-intro {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  padding-block: 22px;
}

.profile-copy {
  max-width: 650px;
}

.profile-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.profile-rule {
  display: block;
  width: 58px;
  height: 3px;
  margin: 17px 0 13px;
  background: var(--accent);
}

.profile-role {
  margin: 0;
  font-size: clamp(17px, 1.7vw, 21px);
}

.profile-statement {
  max-width: 610px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.profile-square {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.profile-socials {
  margin-top: 16px;
}

.profile-socials a {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.resume-band {
  height: 100%;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding-block: 18px;
}

.resume-grid {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: clamp(46px, 7vw, 92px);
}

.resume-grid h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(27px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1;
}

.experience-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.experience-list article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

.experience-list time,
.education time {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.experience-list h3,
.education h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
}

.experience-list p,
.education p {
  margin: 2px 0 0;
  color: var(--accent);
  font-size: 10px;
}

.education {
  border-left: 1px solid var(--line);
  padding-left: clamp(28px, 4vw, 50px);
}

.education article {
  border-top: 1px solid var(--line);
  padding-block: 13px 15px;
}

.education h3 {
  margin-top: 5px;
}

.intro {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.intro-copy {
  position: relative;
  z-index: 2;
  width: 55%;
  max-width: 620px;
}

.intro-portrait {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  width: 58%;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 78% 92% at 62% 46%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 92% at 62% 46%, #000 50%, transparent 100%);
}

.intro-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.intro-name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.intro-rule {
  display: block;
  width: 52px;
  height: 3px;
  margin: 16px 0 13px;
  background: var(--accent);
}

.intro-kicker {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.intro-statement {
  max-width: 560px;
  margin: 13px 0 0;
  font-size: clamp(16px, 1.55vw, 19px);
  letter-spacing: -0.01em;
  line-height: 1.42;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 18%, transparent);
}

.page-hero h1,
.post-header h1,
.error-page h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 7.1vw, 102px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-quiet {
  border-color: var(--line);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: var(--ink);
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.profile-socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.profile-socials a:hover,
.profile-socials a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.experience-section {
  height: 100%;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding-block: 18px 16px;
}

.experience-heading {
  margin: 0 auto 12px;
  text-align: center;
}

.experience-heading h2,
.destination-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.timeline {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--ink);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  min-height: 48px;
  padding-bottom: 0;
}

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

.timeline-item::after {
  content: "";
  position: absolute;
  top: 19px;
  width: 27px;
  height: 1px;
  background: var(--ink);
}

.timeline-item:nth-child(odd)::after {
  left: calc(50% - 27px);
}

.timeline-item:nth-child(even)::after {
  left: 50%;
}

.timeline-card {
  position: relative;
  align-self: start;
  padding: 2px 16px;
}

.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 1;
}

.timeline-item:nth-child(even) .timeline-card {
  grid-column: 3;
}

.timeline-marker {
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 11px;
  height: 11px;
  margin-top: 14px;
  border: 2px solid var(--paper-deep);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--ink);
}

.timeline-period {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.timeline-role {
  margin: 1px 0 0;
  font-family: var(--serif);
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 400;
  line-height: 1.1;
}

.timeline-company {
  margin: 1px 0 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.destinations {
  padding-block: clamp(92px, 11vw, 142px);
}

.destination-heading {
  margin-bottom: 48px;
}

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

.destination-card {
  min-height: 300px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  gap: 40px;
  border: 1px solid var(--line);
  padding: clamp(26px, 4vw, 44px);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.destination-card:hover,
.destination-card:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  transform: translateY(-4px);
}

.destination-number {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.destination-card > div {
  align-self: end;
}

.destination-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.destination-card p {
  max-width: 460px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.destination-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--accent);
  font-size: 22px;
}

.section {
  padding-block: 132px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.section-heading > p:last-child {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.text-link {
  font-size: 14px;
  font-weight: 500;
}

.section-ink {
  background: var(--ink);
  color: var(--paper);
}

.section-heading-light > p:last-child {
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}

.section-heading-light .eyebrow {
  color: var(--accent);
}

.research-list {
  border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
}

.research-item {
  display: grid;
  grid-template-columns: 100px 1fr 30px;
  gap: 28px;
  align-items: start;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  padding-block: 32px;
  transition: color 180ms ease, padding-left 180ms ease;
}

a.research-item:hover,
a.research-item:focus-visible {
  color: var(--accent);
  padding-left: 12px;
}

.research-year {
  color: color-mix(in srgb, var(--paper) 52%, transparent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.research-item h2,
.research-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.12;
}

.research-item p {
  max-width: 720px;
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--paper) 62%, transparent);
}

.research-arrow {
  justify-self: end;
}

.section-cta-dark {
  color: var(--paper);
}

.heading-row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.post-list {
  border-top: 1px solid var(--line);
}

.post-row {
  display: grid;
  grid-template-columns: 140px 1fr 30px;
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-block: 28px;
  transition: padding-left 180ms ease, color 180ms ease;
}

.post-row:hover,
.post-row:focus-visible {
  padding-left: 12px;
  color: var(--accent);
}

.post-row time,
.archive-item time {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-row h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
}

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

.mobile-link {
  display: none;
  margin-top: 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 64px 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.footer-grid p {
  margin: 5px 0 0;
  color: var(--muted);
}

.footer-grid .footer-mark {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 32px;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  font-size: 14px;
}

.footer-nav a {
  width: fit-content;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 66px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero {
  max-width: 1040px;
  padding-block: 130px 90px;
}

.page-hero h1,
.post-header h1,
.error-page h1 {
  font-size: clamp(58px, 8vw, 108px);
}

.page-hero > p:last-child {
  max-width: 690px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.blog-index {
  max-width: 860px;
  margin-top: 64px;
  padding-bottom: 110px;
  border-top: 1px solid var(--line);
}

.blog-link {
  display: grid;
  grid-template-columns: 125px 1fr 20px;
  gap: 24px;
  align-items: baseline;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease, padding-left 180ms ease;
}

.blog-link:hover,
.blog-link:focus-visible {
  padding-left: 8px;
  color: var(--accent);
}

.blog-link time {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-link h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 400;
  line-height: 1.15;
}

.blog-link > span {
  justify-self: end;
}

.writing-archive {
  padding-bottom: 130px;
  border-top: 1px solid var(--line);
}

.archive-item {
  display: grid;
  grid-template-columns: 1fr 30px;
  gap: 40px;
  border-bottom: 1px solid var(--line);
  padding-block: 42px;
  transition: padding-left 180ms ease, color 180ms ease;
}

.archive-item:hover,
.archive-item:focus-visible {
  padding-left: 14px;
  color: var(--accent);
}

.archive-item h2 {
  max-width: 760px;
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
}

.archive-item p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  color: var(--muted);
  font-size: 11px;
}

.archive-meta span {
  position: relative;
}

.archive-meta span::before {
  content: "·";
  position: absolute;
  left: -11px;
}

.archive-arrow {
  align-self: center;
  justify-self: end;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 11px;
}

.post {
  max-width: 1040px;
  padding-block: 112px 130px;
}

.post-header {
  max-width: 900px;
  margin-bottom: 74px;
}

.back-link {
  display: inline-block;
  color: var(--accent);
}

.post-dek {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 21px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prose {
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.85;
}

.prose h2,
.prose h3 {
  margin: 2.2em 0 0.6em;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
}

.prose h2 {
  font-size: 38px;
}

.prose h3 {
  font-size: 28px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose code {
  border-radius: 4px;
  background: var(--paper-deep);
  padding: 2px 5px;
  font-size: 0.87em;
}

.prose pre {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 22px;
  font-size: 14px;
  line-height: 1.6;
}

.prose blockquote {
  margin: 2em 0;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.45;
}

.prose img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 2.2em auto;
}

.prose figure {
  margin: 2.2em 0;
}

.prose figure img {
  margin: 0;
}

.prose figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
}

.post-footer {
  max-width: 720px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.post-footer p {
  margin: 0 0 8px;
  color: var(--muted);
}

.error-page {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.error-page p:not(.eyebrow) {
  margin: 24px 0;
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 36px, 720px);
  }

  .home-page {
    overflow: auto;
  }

  .home-page main {
    height: auto;
    display: block;
    overflow: visible;
  }

  .profile-intro {
    min-height: 430px;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 48px;
    padding-block: 60px;
  }

  .resume-band {
    height: auto;
    padding-block: 54px;
  }

  .resume-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .education {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 42px;
    padding-left: 0;
  }

  .home-stage {
    min-height: 880px;
  }

  .home-stage-image {
    object-position: 66% center;
    opacity: 0.5;
  }

  .home-identity {
    position: relative;
    z-index: 2;
    width: auto;
    height: auto;
    display: block;
    overflow: visible;
    margin: 0 auto;
    padding-top: 74px;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .home-identity,
  .career-tree,
  .home-socials {
    width: var(--shell);
    margin-inline: auto;
  }

  .home-identity h1 {
    max-width: 620px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(44px, 9vw, 68px);
    font-weight: 400;
    line-height: 1;
  }

  .home-identity > span {
    display: block;
    width: 64px;
    height: 3px;
    margin: 22px 0 18px;
    background: #d55a2a;
  }

  .home-identity p {
    margin: 0;
    font-size: 20px;
  }

  .career-tree {
    right: 0;
    bottom: 76px;
    left: 0;
  }

  .home-socials {
    right: 0;
    bottom: 28px;
    left: 0;
  }

  .experience-section {
    height: auto;
  }

  .nav-wrap {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .intro {
    min-height: 360px;
    padding-block: 44px;
  }

  .intro-portrait {
    width: 70%;
    opacity: 0.48;
  }

  .intro-copy {
    width: 82%;
  }

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

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

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .profile-intro {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 48px;
  }

  .profile-square {
    width: min(280px, 82vw);
  }

  .experience-list article {
    grid-template-columns: 90px 1fr;
    gap: 14px;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .theme-label {
    display: none;
  }

  .theme-toggle {
    padding: 8px;
  }

  .intro {
    min-height: 390px;
    padding-block: 38px;
  }

  .intro-name {
    font-size: clamp(35px, 10vw, 46px);
  }

  .intro-statement {
    font-size: 16px;
  }

  .experience-heading {
    margin-bottom: 18px;
  }

  .timeline {
    margin-left: 2px;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-item {
    display: block;
    min-height: auto;
    padding: 0 0 22px 38px;
  }

  .timeline-item::after,
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    top: 16px;
    left: 7px;
    width: 31px;
  }

  .timeline-card {
    padding: 0 12px;
  }

  .timeline-marker {
    position: absolute;
    top: 10px;
    left: 0;
    width: 11px;
    height: 11px;
    margin: 0;
  }

  .timeline-role {
    margin-top: 0;
  }

  .destination-card {
    min-height: 250px;
  }

  .section {
    padding-block: 92px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .research-item {
    grid-template-columns: 1fr 24px;
    gap: 12px 16px;
  }

  .research-year {
    grid-column: 1 / -1;
  }

  .desktop-link {
    display: none;
  }

  .mobile-link {
    display: inline-block;
  }

  .post-row {
    grid-template-columns: 1fr 24px;
  }

  .post-row time {
    grid-column: 1 / -1;
  }

  .blog-index {
    margin-top: 40px;
    padding-bottom: 80px;
  }

  .blog-link {
    grid-template-columns: 1fr 20px;
    gap: 8px 16px;
    padding-block: 22px;
  }

  .blog-link time {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .page-hero {
    padding-block: 90px 70px;
  }

  .page-hero h1,
  .post-header h1,
  .error-page h1 {
    font-size: clamp(50px, 16vw, 72px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
