:root {
  --paper: #f0efed;
  --ink: #333;
  --muted: #666;
  --caption: #757575;
  --font: "Figtree", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--paper);
  overflow-x: hidden;
}

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

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

.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62.667px;
  padding: 20px 130.667px;
  background: var(--paper);
  box-shadow: 0 6.667px 6.667px rgba(240, 239, 237, 0.5);
}

.brand,
.home-nav nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 17.333px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.brand img {
  width: 22.667px;
  height: 22.667px;
}

.brand em {
  color: var(--muted);
  font-style: normal;
}

.home-nav nav {
  gap: 38.667px;
  color: #666666;
  font-size: 16px;
  font-weight: 600;
}

.home-nav nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon {
  display: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

main {
  padding-top: 113.778px;
}

.about-hero,
.experience-section,
.offline-section {
  width: min(1066.667px, calc(100% - 40px));
  margin-inline: auto;
}

.about-hero {
  display: grid;
  grid-template-columns: 487.16px 1fr;
  gap: 25.778px;
  align-items: center;
  min-height: 582.879px;
}

.polaroid-cloud {
  position: relative;
  width: 487.16px;
  height: 582.879px;
}

.polaroid {
  --angle: 0deg;
  --active-tilt: 0deg;
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 21.333px;
  width: 277.333px;
  margin: 0;
  padding: 21.333px 21.333px 42.667px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10.667px 26.667px #d9d9d9;
  cursor: pointer;
  outline: none;
  transform: rotate(var(--angle)) scale(1);
  transform-origin: 50% 50%;
  transition:
    opacity 260ms ease,
    filter 260ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  will-change: transform, opacity, filter;
}

.polaroid:hover,
.polaroid:focus-visible {
  transform: rotate(var(--angle)) scale(1.025);
}

.polaroid:focus-visible {
  box-shadow:
    0 0 0 3px rgba(0, 120, 255, 0.28),
    0 10.667px 26.667px #d9d9d9;
}

.polaroid.is-switching {
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.08));
  transform: rotate(calc(var(--angle) + var(--active-tilt))) scale(1.035) translateY(-8px);
}

.polaroid img {
  width: 234.667px;
  height: 312.889px;
  border-radius: 10.667px;
  object-fit: cover;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.polaroid figcaption {
  color: var(--muted);
  font-size: 17.067px;
  font-weight: 500;
  line-height: 1.18;
}

.polaroid.is-back {
  z-index: 2;
}

.polaroid.is-mid {
  z-index: 3;
}

.polaroid.is-front {
  z-index: 4;
}

.polaroid.amc {
  left: 118px;
  top: 0;
  --angle: 0deg;
  --active-tilt: -1.2deg;
}

.polaroid.travel {
  left: 149.91px;
  top: 127.608px;
  --angle: 8.68deg;
  --active-tilt: 1.1deg;
}

.polaroid.marathon {
  left: 0;
  top: 58.01px;
  --angle: -6.59deg;
  --active-tilt: -1deg;
}

.polaroid.marathon img {
  object-position: 50% 50%;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.about-copy h1,
.experience-section h2,
.offline-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 34.133px;
  font-weight: 900;
  line-height: 1.2;
}

.about-copy h2 {
  width: 100%;
  height: 57.6px;
  margin: 10.667px 0 0;
  color: var(--ink);
  font-size: 25.6px;
  font-weight: 600;
  line-height: 1.125;
  overflow-wrap: anywhere;
}

.about-copy p {
  margin: 0;
  color: var(--caption);
  font-size: 21.333px;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.experience-section {
  margin-top: 106.667px;
}

.experience-section h2 {
  margin-bottom: 42.667px;
  font-weight: 700;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 21.333px;
}

.experience-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62.667px;
  padding: 21.333px;
  border-radius: 21.333px;
  background: #fff;
  font-size: 17.067px;
  font-weight: 500;
  line-height: 1.18;
}

.experience-list time {
  color: var(--muted);
  white-space: nowrap;
}

.offline-section {
  margin-top: 106.667px;
}

.offline-section h2 {
  font-weight: 700;
}

.offline-section > p {
  margin: 27.556px 0 27.556px;
  color: var(--muted);
  font-size: 21.333px;
  font-weight: 400;
  line-height: 1.2;
}

.offline-collage {
  position: relative;
  width: 100%;
  aspect-ratio: 1066.667 / 635.556;
  height: auto;
}

.tile {
  position: absolute;
  overflow: hidden;
  border-radius: 21.333px;
  background: #111;
}

.tile img {
  position: absolute;
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.run-medal {
  left: 0;
  top: 0;
  width: 37.547%;
  height: 62.433%;
  background: #000;
}

.run-medal img {
  left: 7.057%;
  top: -37%;
  width: 85.747%;
  height: 188.34%;
  object-position: center;
}

.studio {
  left: 40.283%;
  top: 0.028%;
  width: 28.916%;
  height: 32.028%;
}

.studio img {
  left: -0.114%;
  top: -48.997%;
  width: 100.288%;
  height: 202.622%;
  object-position: center;
}

.bread {
  left: 72.083%;
  top: 0;
  width: 27.881%;
  height: 62.433%;
}

.bread img {
  left: -8.09%;
  top: -49.8%;
  width: 162.53%;
  height: 264.85%;
  object-position: center;
}

.buffet {
  left: 40.283%;
  top: 35.972%;
  width: 28.916%;
  height: 26.434%;
}

.buffet img {
  left: -0.114%;
  top: -82.117%;
  width: 100.288%;
  height: 245.502%;
  object-position: center;
}

.ticket {
  left: 0;
  top: 67.973%;
  width: 37.583%;
  height: 32.028%;
}

.ticket img {
  left: 0;
  top: 0;
  object-position: 50% 44%;
}

.patches {
  left: 40.25%;
  top: 67.973%;
  width: 59.75%;
  height: 32.028%;
}

.patches img {
  left: 0;
  top: -58.515%;
  width: 100%;
  height: 234.926%;
  object-position: center;
}

footer {
  margin: 106.667px 0 18px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.18;
  text-align: center;
}

@media (max-width: 1120px) {
  .home-nav {
    padding-inline: 40px;
  }

  .about-hero {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .about-copy {
    max-width: 720px;
  }

}

@media (max-width: 760px) {
  .home-nav {
    height: auto;
    padding: 12px 24px;
  }

  .brand {
    gap: 0;
  }

  .brand span {
    display: none;
  }

  .home-nav nav {
    display: flex;
    gap: 8px;
  }

  .home-nav nav a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #666666;
    transition: background-color 180ms ease, color 180ms ease;
  }

  .home-nav nav a:hover,
  .home-nav nav a:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    color: var(--ink);
  }

  .nav-label {
    display: none;
  }

  .nav-icon {
    display: block;
  }

  main {
    padding-top: 72px;
  }

  .about-hero,
  .experience-section,
  .offline-section {
    width: calc(100% - 48px);
    max-width: calc(100vw - 48px);
  }

  .about-hero {
    justify-items: start;
    min-height: auto;
  }

  .polaroid-cloud {
    width: 100%;
    height: auto;
    aspect-ratio: 620 / 590;
    margin-bottom: 0;
    transform: none;
    transform-origin: center top;
  }

  .polaroid {
    gap: 3.441%;
    width: 44.731%;
    padding: 3.441% 3.441% 6.882%;
    border-radius: 12px;
  }

  .polaroid img {
    width: 100%;
    height: auto;
    aspect-ratio: 234.667 / 312.889;
    border-radius: 8px;
  }

  .polaroid figcaption {
    font-size: clamp(11px, 2.95vw, 17.067px);
  }

  .polaroid.amc {
    left: 28%;
    top: 0;
  }

  .polaroid.travel {
    left: 33%;
    top: 21.628%;
  }

  .polaroid.marathon {
    left: 9%;
    top: 9.832%;
  }

  .about-copy {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    justify-self: start;
  }

  .about-copy h2,
  .about-copy p,
  .offline-section > p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .about-copy h1,
  .experience-section h2,
  .offline-section h2 {
    font-size: 30px;
  }

  .about-copy h2 {
    height: auto;
    font-size: 22px;
  }

  .about-copy p,
  .offline-section > p {
    font-size: 18px;
  }

  .experience-list article {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    white-space: normal;
  }

  .offline-section > p,
  .offline-collage,
  footer {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  footer {
    margin-right: auto;
    margin-left: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  .polaroid,
  .polaroid img {
    transition: none;
  }
}
