:root {
  --paper: #f1f1f1;
  --ink: #161616;
  --muted: #6d6d72;
  --line: #e4e4e6;
  --field: #f4f4f5;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(28, 24, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-weight: 400;
}

.stage {
  min-height: 100vh;
  padding: 28px;
}

.frame {
  position: relative;
  min-height: calc(100vh - 56px);
  border-radius: 28px;
  overflow: hidden;
  background: #d7e4ee;
}

.hero {
  display: contents;
}

.painting {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 12% center;
}

.nav {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover {
  background: rgba(0, 0, 0, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 0 !important;
  margin-right: 6px;
  font-weight: 560;
}

.mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #161616;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.pill {
  background: #161616 !important;
  color: #fff !important;
  padding: 9px 16px !important;
  margin-left: 4px;
}

.pill:hover {
  background: #2a2a2a !important;
}

.lede {
  position: absolute;
  z-index: 2;
  left: 40px;
  bottom: 48px;
  width: min(11.2em, calc(100% - 500px));
  font-size: clamp(44px, 4.4vw, 64px);
}

h1 {
  margin: 0;
  color: #1a1814;
  font-family: "Fraunces", "Iowan Old Style", serif;
  font-size: 1em;
  font-weight: 520;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.lede p {
  margin: 16px 0 0;
  max-width: 34em;
  color: rgba(26, 24, 20, 0.78);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

h1 em {
  font-style: italic;
  font-weight: 500;
}

.credit {
  position: absolute;
  z-index: 2;
  left: 42px;
  bottom: 16px;
  margin: 0;
  color: rgba(26, 24, 20, 0.62);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.card {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  bottom: 22px;
  width: min(420px, calc(100% - 44px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px 18px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: auto;
}

.card-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.card-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 2px 0 4px 16px;
  display: grid;
  gap: 16px;
  border-left: 1px solid var(--line);
}

.timeline > li {
  position: relative;
  display: grid;
  gap: 8px;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #161616;
  box-shadow: 0 0 0 3px #fff;
}

.timeline time {
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stop,
.note {
  border-radius: 14px;
  background: var(--field);
  overflow: hidden;
}

.stop img {
  width: 100%;
  height: 108px;
  object-fit: cover;
  display: block;
}

.stop:has(img[src*="alexander"]) img {
  object-position: center 42%;
}

.stop:has(img[src*="drakes"]) img {
  object-position: center 34%;
}

.stop:has(img[src*="salt"]) img {
  object-position: center 46%;
}

.stop:has(img[src*="spa"]) img {
  object-position: center 62%;
}

.stop:has(img[src*="drive"]) img {
  object-position: center 70%;
}

.stop:has(img[src*="brighton"]) img {
  object-position: center 42%;
}

.stop:has(img[src*="home"]) img {
  object-position: center 60%;
}

.stop:has(img[src*="coal"]) img {
  object-position: center 36%;
}

.stop:has(img[src*="plane"]) img {
  object-position: center 38%;
}

.stop:has(img[src*="hotaru"]) img {
  object-position: center 58%;
}

.stop div,
.note {
  padding: 10px 12px;
}

.stop strong,
.note strong {
  display: block;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.stop span,
.note span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .stage {
    padding: 14px;
  }

  .frame {
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
  }

  .hero {
    display: block;
    position: relative;
  }

  .painting {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-position: center 30%;
  }

  .nav {
    top: 14px;
    left: 14px;
    right: 14px;
    width: max-content;
    max-width: calc(100% - 28px);
    overflow: auto;
  }

  .lede {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: auto;
    font-size: clamp(36px, 10vw, 52px);
    padding: 78px 22px 0;
  }

  h1 {
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  }

  .lede p {
    max-width: 28em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 22px rgba(0, 0, 0, 0.35);
  }

  .credit {
    position: relative;
    z-index: 2;
    left: auto;
    top: auto;
    bottom: auto;
    margin: 14px 22px 40px;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }

  .card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -22px 12px 12px;
  }
}

@media (max-width: 640px) {
  .nav a:not(.brand):not(.pill) {
    display: none;
  }
}
