@import url("https://fonts.googleapis.com/css2?family=Epilogue:wght@400;500;600&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap");

:root {
  --surface: #e8dcc7;
  --surface-alt: #d4b895;
  --ink: #2f3428;
  --muted: #606c58;
  --line: #b7aa8f;
  --accent: #c66b3d;
  --moss: #606c38;
  --sage: #8b9d83;
  --clay: #b08b6e;
  --max-width: 1180px;
  --rail: 170px;
  --gutter: 72px;
  --font-main: "Epilogue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

body {
  position: relative;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

::selection {
  background: var(--moss);
  color: var(--surface);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

.site-header,
.site-footer,
.section-grid {
  width: min(var(--max-width), calc(100% - 80px));
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: 92px;
  border-color: color-mix(in srgb, var(--line) 78%, transparent);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.brand::after {
  color: var(--accent);
}

.site-nav {
  gap: 30px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 70px;
  align-items: center;
  width: min(1240px, calc(100% - 80px));
  min-height: 590px;
  margin: 0 auto;
  padding: 28px 0 38px;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
}

.home-hero .eyebrow {
  margin: 0 0 24px;
  color: var(--moss);
  font-size: 0.77rem;
  font-weight: 600;
}

.home-hero h1 {
  margin: 0 0 38px;
  color: var(--ink);
  font-size: 9rem;
  font-weight: 400;
  line-height: 0.76;
}

.home-hero h1 span,
.home-hero h1 strong {
  display: block;
}

.home-hero h1 strong {
  margin-left: 84px;
  color: var(--moss);
  font-weight: 500;
}

.home-hero h1 strong::after {
  color: var(--accent);
}

.home-intro {
  max-width: 610px;
  margin: 0 0 34px;
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.5;
}

.home-now {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  max-width: 540px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.55;
}

.home-now span {
  color: var(--accent);
  font-weight: 600;
}

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

.home-portrait {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  aspect-ratio: 4 / 5;
  margin: 0;
  justify-self: end;
}

.home-portrait::before {
  position: absolute;
  z-index: -1;
  right: -24px;
  bottom: -24px;
  width: 72%;
  height: 74%;
  border-radius: 28px;
  background: var(--moss);
  content: "";
}

.home-portrait img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 28px;
  filter: saturate(0.86) contrast(0.98);
}

.home-portrait figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.72rem;
}

.content-section {
  padding: 100px 0;
  border-color: var(--line);
}

.section-heading {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
}

.section-heading h2 {
  font-size: 1.5rem;
  line-height: 1.1;
}

.section-number,
.timeline-date,
.education-list span,
.award-year,
.music-status,
.track-number,
.trip-meta,
.trip-flight-label {
  color: var(--accent);
  font-family: var(--font-main);
  font-weight: 600;
}

.about-copy,
.timeline,
.education-list,
.awards-list,
.resume-feature,
.interests-list,
.listening-panel,
.now-playing,
.travel-map-shell,
.travel-journal,
.recipe-box {
  border-top-color: var(--ink);
}

.about-copy {
  padding-top: 34px;
}

.about-copy .section-intro {
  max-width: 760px;
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.32;
}

.about-copy p {
  max-width: 720px;
  color: var(--muted);
}

.life-section {
  padding: 92px 0 104px;
  background: var(--moss);
  color: var(--surface);
}

.life-section > .section-heading,
.life-section > .life-links {
  width: min(var(--max-width), calc(100% - 80px));
  margin-right: auto;
  margin-left: auto;
}

.life-section > .section-heading {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gutter);
  margin-bottom: 42px;
}

.life-section .section-number {
  color: var(--surface-alt);
}

.life-section .section-heading h2 {
  color: var(--surface);
  font-size: 2rem;
}

.life-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid color-mix(in srgb, var(--surface) 55%, transparent);
}

.life-links a {
  display: flex;
  min-height: 178px;
  padding: 28px 30px;
  border-bottom: 1px solid color-mix(in srgb, var(--surface) 55%, transparent);
  color: var(--surface);
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: background 350ms ease, color 350ms ease;
}

.life-links a:nth-child(odd) {
  border-right: 1px solid color-mix(in srgb, var(--surface) 55%, transparent);
}

.life-links a:hover,
.life-links a:focus-visible {
  background: var(--clay);
  color: var(--ink);
}

.life-links span {
  font-size: 0.75rem;
  font-weight: 600;
}

.life-links strong {
  max-width: 390px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
}

.timeline-item {
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 40px;
  padding: 42px 0 46px;
  border-color: var(--line);
}

.timeline-date {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.25;
}

.timeline-item h3 {
  margin-bottom: 6px;
  font-size: 1.65rem;
}

.timeline-item p {
  color: var(--moss);
}

.timeline-item li {
  max-width: 720px;
  color: var(--muted);
}

.timeline-item li::marker {
  color: var(--accent);
}

.award-item {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  padding: 44px 0;
  border-color: var(--line);
}

.award-image {
  width: 240px;
}

.award-copy h3 {
  font-size: 2rem;
}

.education-list article {
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 6px 40px;
  padding: 40px 0 44px;
  border-color: var(--line);
}

.education-list h3 {
  font-size: 1.55rem;
}

.resume-feature {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 62px;
  padding-top: 40px;
}

.resume-preview {
  width: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  box-shadow: 18px 18px 0 color-mix(in srgb, var(--clay) 58%, transparent);
}

.resume-copy h3 {
  font-size: 2rem;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  transition: background 300ms ease, color 300ms ease;
}

.button:hover,
.button:focus-visible,
.button-primary {
  background: var(--accent);
  color: var(--surface);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--moss);
  border-color: var(--moss);
}

.site-footer {
  min-height: 112px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links a,
.site-footer > a {
  color: var(--moss);
}

.travel-hero,
.recipes-hero,
.listening-hero,
.diy-hero {
  padding-top: 110px;
  padding-bottom: 100px;
  border-color: var(--line);
}

.travel-title,
.recipes-title,
.listening-title,
.diy-title {
  color: var(--moss);
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 400;
  line-height: 0.9;
}

.travel-title::after,
.recipes-title::after,
.listening-title::after,
.diy-title::after {
  color: var(--accent);
}

.travel-total strong {
  color: var(--moss);
  font-family: var(--font-display);
  font-size: 2rem;
}

#travel-map,
.trip-photo img,
.leaflet-popup-content-wrapper {
  border-color: var(--line);
  border-radius: 8px;
}

.track-art,
.track-row .track-art {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

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

.range-button:hover,
.range-button:focus-visible,
.range-button.is-active {
  border-color: var(--moss);
  background: var(--moss);
  color: var(--surface);
}

.track-row,
.track-list,
.rank-list,
.trip-entry,
.travel-totals,
.trip-flight-path,
.recipe-empty {
  border-color: var(--line);
}

.track-row:hover .track-copy strong,
.track-row:focus-visible .track-copy strong {
  color: var(--accent);
}

.diy-wordmark::after {
  background: var(--accent);
}

@media (max-width: 1100px) {
  :root {
    --rail: 145px;
    --gutter: 48px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
    gap: 52px;
  }

  .home-hero h1 {
    font-size: 7.5rem;
  }

  .home-hero h1 strong {
    margin-left: 54px;
  }

  .site-nav {
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .section-grid,
  .life-section > .section-heading,
  .life-section > .life-links {
    width: calc(100% - 44px);
  }

  .site-header {
    min-height: 78px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
    width: calc(100% - 44px);
    min-height: 560px;
    padding: 36px 0 48px;
  }

  .home-hero h1 {
    font-size: 5.5rem;
  }

  .home-hero h1 strong {
    margin-left: 34px;
  }

  .home-intro {
    font-size: 1.2rem;
  }

  .home-portrait::before {
    right: -12px;
    bottom: -12px;
  }

  .content-section {
    padding: 76px 0;
  }

  .life-section {
    padding: 74px 0 82px;
  }

  .life-section > .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .life-links strong {
    font-size: 1.55rem;
  }

  .travel-title,
  .recipes-title,
  .listening-title,
  .diy-title {
    font-size: 5.5rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    gap: 18px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 20px 16px;
    min-height: 0;
    padding: 32px 0 46px;
  }

  .home-hero-copy {
    display: contents;
  }

  .home-hero .eyebrow {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin: 0;
  }

  .home-hero h1 {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 0;
    font-size: 4.75rem;
  }

  .home-hero h1 strong {
    margin-left: 24px;
  }

  .home-portrait {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 132px;
    align-self: center;
    justify-self: end;
  }

  .home-portrait figcaption {
    display: none;
  }

  .home-intro {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 4px 0 0;
  }

  .home-now {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .about-copy .section-intro {
    font-size: 1.65rem;
  }

  .life-links {
    grid-template-columns: 1fr;
  }

  .life-links a:nth-child(odd) {
    border-right: 0;
  }

  .life-links a {
    min-height: 142px;
    padding: 24px 0;
  }

  .timeline-item,
  .education-list article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .award-item {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 28px;
  }

  .award-image {
    width: 150px;
  }

  .resume-feature {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 32px;
  }

  .resume-preview {
    width: 150px;
    box-shadow: 10px 10px 0 color-mix(in srgb, var(--clay) 58%, transparent);
  }

  .travel-title,
  .recipes-title,
  .listening-title,
  .diy-title {
    font-size: 4.4rem;
  }

  .site-footer {
    min-height: 0;
    padding: 28px 0;
  }
}

@media (max-width: 430px) {
  .site-header,
  .site-footer,
  .section-grid,
  .life-section > .section-heading,
  .life-section > .life-links,
  .home-hero {
    width: calc(100% - 32px);
  }

  .home-hero h1 {
    font-size: 3.5rem;
  }

  .home-now {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .award-item,
  .resume-feature {
    grid-template-columns: 1fr;
  }

  .travel-title,
  .recipes-title,
  .listening-title,
  .diy-title {
    font-size: 3.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a::after,
  .life-links a,
  .button {
    transition: none;
  }
}
