@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Gloock&family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@500;600&display=swap");

:root {
  --paper: #f4f3ef;
  --paper-deep: #e7e8e1;
  --ink: #202624;
  --muted: #68716d;
  --line: #c8ccc5;
  --accent: #a74435;
  --secondary: #315e64;
  --soft-green: #dbe3dc;
  --max-width: 1180px;
  --rail: 170px;
  --gutter: 64px;
  --font-main: "DM Sans", Arial, sans-serif;
  --font-display: "Gloock", Georgia, serif;
  --font-mono: "IBM Plex Mono", monospace;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  display: none;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

a {
  text-underline-offset: 0.24em;
}

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

.site-header {
  position: relative;
  top: auto;
  z-index: 20;
  min-height: 82px;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.brand::after {
  display: none;
}

.site-nav {
  gap: 30px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 400;
  text-transform: uppercase;
}

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

.site-nav a::after {
  bottom: 3px;
  height: 1px;
  border-radius: 0;
  background: var(--accent);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.72fr);
  gap: 86px;
  align-items: center;
  width: min(1180px, calc(100% - 80px));
  min-height: 600px;
  margin: 0 auto;
  padding: 48px 0 52px;
}

.home-hero::before {
  position: absolute;
  top: 48px;
  right: calc(35% + 18px);
  width: 1px;
  height: calc(100% - 100px);
  border-radius: 0;
  background: var(--line);
  content: "";
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  padding-right: 12px;
}

.home-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
}

.home-hero .eyebrow::before {
  width: 34px;
  height: 1px;
  border-radius: 0;
  background: var(--accent);
}

.home-hero .eyebrow::after {
  margin-left: auto;
  color: var(--muted);
  content: "PERSONAL INDEX / 2026";
  font-weight: 400;
}

.home-hero h1 {
  margin: 0 0 28px;
  color: var(--ink);
  font-family: "Space Grotesk", var(--font-main);
  font-size: 7.25rem;
  font-weight: 600;
  line-height: 0.82;
}

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

.home-hero h1 strong {
  margin-left: 72px;
  color: inherit;
  font-weight: 600;
}

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

.home-intro {
  max-width: 610px;
  margin: 0 0 28px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.48;
}

.home-now {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  max-width: 570px;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.78rem;
}

.home-now span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 500;
  text-transform: uppercase;
}

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

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

.home-portrait::before {
  right: -14px;
  bottom: -14px;
  width: 56%;
  height: 48%;
  border-radius: 0;
  background: var(--soft-green);
}

.home-portrait::after {
  position: absolute;
  z-index: 2;
  top: -1px;
  right: -1px;
  width: 68px;
  height: 26px;
  border-radius: 0;
  background: var(--paper);
  color: var(--accent);
  content: "01 / VP";
  font-family: var(--font-mono);
  font-size: 0.63rem;
  line-height: 26px;
  text-align: right;
}

.home-portrait img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  filter: saturate(0.82) contrast(1.03);
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

.home-portrait figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  text-transform: uppercase;
}

.home-portrait figcaption::after {
  content: "37.77 N / 122.42 W";
}

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

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

.section-heading h2 {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
}

.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-mono);
  font-weight: 500;
}

.about-copy {
  position: relative;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-copy::before {
  display: none;
}

.about-copy .section-intro {
  max-width: 790px;
  margin: 34px 0 30px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2.55rem;
  line-height: 1.28;
}

.about-copy p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
}

.life-section {
  padding: 82px 0 90px;
  background: var(--soft-green);
  color: var(--ink);
}

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

.life-section .section-heading h2,
.life-section .section-number {
  color: var(--ink);
}

.life-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  border: 0;
  border-top: 1px solid var(--ink);
}

.life-links a,
.life-links a:nth-child(odd) {
  position: relative;
  min-height: 150px;
  padding: 26px 54px 26px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transition: color 180ms ease, padding-left 180ms ease;
}

.life-links a:nth-child(odd) {
  padding-right: 54px;
  border-right: 1px solid var(--line);
}

.life-links a:nth-child(even) {
  padding-left: 38px;
}

.life-links a:hover,
.life-links a:focus-visible {
  padding-left: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  transform: none;
}

.life-links a:nth-child(even):hover,
.life-links a:nth-child(even):focus-visible {
  padding-left: 48px;
}

.life-links a::after {
  position: absolute;
  right: 8px;
  bottom: 30px;
  color: var(--accent);
  content: "\2192";
  font-family: var(--font-mono);
  font-size: 1rem;
}

.life-links span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
}

.life-links strong {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.25;
}

#timeline {
  width: min(var(--max-width), calc(100% - 80px));
  padding-right: 0;
  padding-left: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.timeline,
.education-list,
.awards-list,
.resume-feature {
  border-top-color: var(--ink);
}

.timeline-item {
  position: relative;
  grid-template-columns: 170px minmax(0, 1fr);
  border-color: var(--line);
}

.timeline-item::before {
  display: none;
}

.timeline-item h3,
.education-list h3,
.award-copy h3,
.resume-copy h3,
.now-playing h2,
.track-copy strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
}

.timeline-item h3 {
  font-size: 1.55rem;
}

.timeline-item p,
.timeline-item li,
.education-list p,
.award-copy p,
.resume-copy p {
  color: var(--muted);
}

.award-item {
  border-color: var(--line);
}

.award-image {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.education-section {
  background: transparent;
}

.education-list article {
  margin: 0;
  padding: 34px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.resume-section {
  border-bottom: 0;
}

.resume-preview {
  border-radius: 0;
  box-shadow: 12px 12px 0 var(--soft-green);
}

.resume-preview img {
  border-radius: 0;
}

.button {
  min-height: 44px;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: none;
}

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

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

.site-footer {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.social-menu {
  position: relative;
}

.social-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.social-menu summary::-webkit-details-marker {
  display: none;
}

.social-menu summary::after {
  margin-left: 2px;
  color: var(--accent);
  content: "+";
  font-family: var(--font-mono);
}

.social-menu[open] summary,
.social-menu summary:hover,
.social-menu summary:focus-visible {
  color: var(--accent);
}

.social-menu[open] summary::after {
  content: "-";
}

.social-menu-options {
  position: absolute;
  z-index: 40;
  bottom: calc(100% + 14px);
  left: 50%;
  width: 250px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--soft-green);
  transform: translateX(-50%);
}

.footer-links .social-menu-options a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  width: 100%;
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: none;
}

.footer-links .social-menu-options a + a {
  border-top: 1px solid var(--line);
}

.footer-links .social-menu-options a:hover,
.footer-links .social-menu-options a:focus-visible {
  color: var(--accent);
}

.social-menu-options small {
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.66rem;
  font-weight: 400;
}

/* Secondary pages use the same type and indexing language. */
.travel-title,
.recipes-title,
.listening-title,
.diy-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
}

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

.travel-copy,
.recipes-copy,
.listening-copy,
.diy-copy {
  border-color: var(--ink);
}

.travel-stat strong,
.range-button.is-active {
  color: var(--secondary);
}

.travel-map-shell,
.travel-journal,
.listening-panel,
.now-playing,
.recipe-box,
.diy-panel {
  border-color: var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.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);
}

.track-art,
.now-playing-art {
  border-radius: 0;
}

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

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

  .home-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.66fr);
    gap: 54px;
  }

  .home-hero::before {
    right: calc(34% + 6px);
  }

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

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

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

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

  .home-hero::before {
    display: none;
  }

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

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

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

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

  .life-section {
    padding: 72px 0 78px;
  }

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

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

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

  .site-nav a {
    padding: 5px 0;
  }

  .social-menu-options {
    right: 0;
    left: auto;
    transform: none;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 18px 14px;
    min-height: 0;
    padding: 34px 0 46px;
  }

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

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

  .home-hero .eyebrow::after {
    display: none;
  }

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

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

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

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

  .home-portrait::after,
  .home-portrait figcaption {
    display: none;
  }

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

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

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

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

  .life-links a:nth-child(odd),
  .life-links a:nth-child(even) {
    min-height: 130px;
    padding: 24px 44px 24px 0;
    border-right: 0;
  }

  .life-links a:nth-child(odd):hover,
  .life-links a:nth-child(even):hover,
  .life-links a:nth-child(odd):focus-visible,
  .life-links a:nth-child(even):focus-visible {
    padding-left: 8px;
  }

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

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

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

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

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

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

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

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

  .life-links a,
  .button,
  .site-nav a::after {
    transition: none;
  }
}
