:root {
  --ink: #17110f;
  --black: #050505;
  --paper: #f7f0df;
  --paper-muted: #bdb4a9;
  --grass: #72f052;
  --yellow: #ffe348;
  --red: #ff4f32;
  --blue: #3155ff;
  --purple: #8f4be8;
  --line: rgba(247, 240, 223, 0.3);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 280px;
  scroll-behavior: smooth;
  background: var(--ink);
}

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

a, button { color: inherit; font: inherit; }

button { border: 0; cursor: pointer; }

a:focus-visible,
button:focus-visible,
.skip-link:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--yellow);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.travel-header,
.travel-footer,
.hero-foot {
  width: min(1400px, calc(100% - 68px));
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.travel-header,
.travel-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.travel-header {
  position: relative;
  z-index: 20;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}

.travel-header a,
.travel-footer a { text-decoration: none; }

.travel-header a:hover,
.travel-header a:focus-visible,
.travel-footer a:hover,
.travel-footer a:focus-visible { color: var(--yellow); }

.travel-header time { justify-self: end; color: var(--yellow); }

.travel-hero {
  position: relative;
  min-height: calc(100svh - 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 92px 24px 110px;
  overflow: hidden;
  text-align: center;
}

.travel-kicker,
.hero-foot,
.locate-button,
.privacy-note,
.panel-topline,
.place-label,
.place-detail,
.sun-track,
.plan-note,
.recenter-button,
.travel-footer {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.travel-kicker { margin: 0; color: var(--grass); }

.travel-hero .travel-kicker { position: relative; z-index: 3; margin-bottom: 25px; }

.travel-hero h1 {
  position: relative;
  z-index: 3;
  margin: 0;
  font-size: clamp(58px, 10.5vw, 154px);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.06em;
}

.travel-hero h1 span,
.travel-hero h1 em { display: block; }

.travel-hero h1 span { margin-left: -9vw; }

.travel-hero h1 em {
  margin: 10px 0 0 11vw;
  color: var(--yellow);
  font-style: italic;
  white-space: nowrap;
}

.hero-deck {
  position: relative;
  z-index: 3;
  margin: 39px 0 0;
  color: var(--paper-muted);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.2;
}

.locate-button {
  position: relative;
  z-index: 4;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 15px 16px;
  color: var(--ink);
  background: var(--grass);
  transition: transform 180ms ease, background-color 180ms ease;
}

.locate-button:hover,
.locate-button:focus-visible {
  background: var(--yellow);
  transform: translateY(-3px) rotate(-2deg);
}

.locate-button[aria-busy="true"] { cursor: wait; opacity: 0.7; }

.locate-button b { color: var(--red); font-size: 22px; font-weight: 400; line-height: 0.5; }

.privacy-note { position: relative; z-index: 3; margin: 13px 0 0; color: #7f766c; }

.hero-foot {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: #7f766c;
}

.hero-orbit {
  position: absolute;
  top: 10%;
  right: 10%;
  width: clamp(160px, 23vw, 340px);
  aspect-ratio: 1;
  border: 1px solid rgba(247, 240, 223, 0.25);
  border-radius: 50%;
  transform: rotate(-24deg);
  animation: orbit-float 5s ease-in-out infinite;
}

.hero-orbit::before,
.hero-orbit::after,
.hero-orbit span {
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(247, 240, 223, 0.22);
  border-radius: 50%;
  content: "";
}

.hero-orbit::after { inset: 36%; border-color: var(--red); }

.hero-orbit span { inset: 48%; background: var(--yellow); border: 0; }

.hero-orbit i,
.hero-orbit b {
  position: absolute;
  display: block;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.hero-orbit i { top: 1%; left: 50%; background: var(--grass); }
.hero-orbit b { right: 12%; bottom: 23%; background: var(--blue); }

.day-plan {
  min-height: 170svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.place-panel {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 580px;
  padding: 28px clamp(24px, 4vw, 62px) 30px;
  overflow: hidden;
  color: var(--paper);
  background: var(--blue);
}

.panel-topline {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.panel-topline strong { color: var(--yellow); font-family: var(--serif); font-size: 54px; font-weight: 400; line-height: 0.75; }

.globe {
  position: absolute;
  top: 48%;
  left: 50%;
  width: min(34vw, 480px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(247, 240, 223, 0.6);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(114, 240, 82, 0.95) 0 2%, transparent 2.5%),
    radial-gradient(circle at 68% 65%, rgba(255, 227, 72, 0.85) 0 2%, transparent 2.5%),
    radial-gradient(circle at 54% 45%, rgba(247, 240, 223, 0.22), transparent 55%);
  box-shadow: inset -28px -18px 0 rgba(5, 5, 5, 0.13), 0 0 0 18px rgba(247, 240, 223, 0.06);
  transform: translate(-50%, -50%);
}

.globe::before,
.globe::after {
  position: absolute;
  inset: 9% 28%;
  border: 1px solid rgba(247, 240, 223, 0.4);
  border-radius: 50%;
  content: "";
}

.globe::after { inset: 28% 9%; }

.globe-line {
  position: absolute;
  z-index: 2;
  display: block;
  border-top: 1px solid rgba(247, 240, 223, 0.35);
}

.globe-line-one { top: 29%; right: 0; left: 0; }
.globe-line-two { top: 50%; right: 0; left: 0; }
.globe-line-three { top: 71%; right: 0; left: 0; }

.location-dot {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 13px;
  aspect-ratio: 1;
  display: block;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(255, 79, 50, 0.25);
  opacity: 0.35;
  transform: translate(-50%, -50%);
  transition: top 500ms ease, left 500ms ease, opacity 300ms ease;
}

body[data-location-state="located"] .location-dot { opacity: 1; }

.place-readout {
  position: absolute;
  right: clamp(24px, 4vw, 62px);
  bottom: 106px;
  left: clamp(24px, 4vw, 62px);
  z-index: 5;
}

.place-label,
.place-detail { margin: 0; }

.place-label { color: var(--yellow); }

.place-readout h2 {
  max-width: 470px;
  margin: 8px 0 6px;
  font-size: clamp(43px, 5vw, 76px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.05em;
}

.place-detail { color: rgba(247, 240, 223, 0.68); }

.sun-track {
  position: absolute;
  right: clamp(24px, 4vw, 62px);
  bottom: 38px;
  left: clamp(24px, 4vw, 62px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: rgba(247, 240, 223, 0.68);
}

.sun-track i { position: relative; height: 1px; background: currentColor; }

.sun-track b {
  position: absolute;
  top: -4px;
  left: var(--local-position, 50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateX(-50%);
}

.plan-panel {
  min-height: 170svh;
  padding: 130px clamp(28px, 7vw, 120px) 130px clamp(28px, 5vw, 80px);
}

.plan-heading { max-width: 540px; }

.plan-heading h2 {
  margin: 24px 0 0;
  font-size: clamp(50px, 6.2vw, 94px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.plan-heading h2 em { color: var(--blue); font-style: italic; }

.plan-heading > p:last-child {
  max-width: 420px;
  margin: 30px 0 0;
  color: #776f64;
  font-size: 18px;
  line-height: 1.35;
}

.itinerary {
  max-width: 620px;
  margin-top: 60px;
  border-top: 1px solid var(--ink);
}

.itinerary-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 24px 0 28px;
  border-bottom: 1px solid rgba(23, 17, 15, 0.25);
}

.itinerary-card.is-now { background: linear-gradient(90deg, transparent, rgba(255, 227, 72, 0.45)); }

.card-time,
.card-type,
.card-note,
.plan-note,
.recenter-button { font-family: var(--sans); font-size: 10px; font-weight: 700; text-transform: uppercase; }

.card-time { color: var(--blue); }

.card-type { margin: 0; color: var(--red); }

.itinerary-card h3 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.card-note { margin: 0; color: #776f64; font-weight: 400; line-height: 1.35; text-transform: none; }

.plan-note { max-width: 340px; margin: 35px 0 0; color: #776f64; line-height: 1.35; }

.recenter-button {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 12px 14px;
  color: var(--paper);
  background: var(--ink);
}

.recenter-button span { color: var(--yellow); font-size: 18px; }

.travel-ending {
  min-height: 80svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 40px;
  align-content: center;
  padding: 120px max(34px, calc((100% - 1400px) / 2));
  color: var(--ink);
  background: var(--yellow);
}

.travel-ending .travel-kicker { color: var(--red); }

.travel-ending h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(58px, 8vw, 122px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.travel-ending h2 em { color: var(--blue); font-style: italic; }

.travel-ending > p:not(.travel-kicker) { margin: 0; font-size: 20px; line-height: 1.2; }

.travel-ending > a { justify-self: end; align-self: end; font-family: var(--sans); font-size: 10px; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.travel-ending > a span { margin-left: 18px; font-size: 18px; }
.travel-ending > a:hover { color: var(--red); }

.travel-footer {
  min-height: 74px;
  color: var(--paper-muted);
  background: var(--black);
}

.travel-footer span:nth-child(2) { justify-self: center; color: var(--yellow); }
.travel-footer span:last-child { justify-self: end; }

@keyframes orbit-float {
  50% { transform: rotate(-17deg) translateY(9px); }
}

@media (max-width: 900px) {
  .travel-header, .travel-footer, .hero-foot { width: min(100% - 32px, 760px); }
  .day-plan { grid-template-columns: minmax(0, 0.85fr) minmax(290px, 1.15fr); }
  .globe { width: min(43vw, 420px); }
  .plan-heading h2 { font-size: clamp(45px, 7vw, 70px); }
  .itinerary-card { grid-template-columns: 74px 1fr; gap: 14px; }
}

@media (max-width: 680px) {
  .travel-header, .travel-footer { width: calc(100% - 28px); min-height: 56px; }
  .travel-header span { justify-self: center; }
  .travel-hero { min-height: calc(100svh - 56px); padding-top: 100px; }
  .travel-hero h1 { font-size: clamp(49px, 14vw, 92px); }
  .travel-hero h1 span { margin-left: -4vw; }
  .travel-hero h1 em { margin-left: 4vw; white-space: normal; }
  .hero-deck { margin-top: 30px; font-size: 17px; }
  .hero-orbit { top: 10%; right: -7%; width: 160px; }
  .hero-foot { bottom: 24px; }
  .day-plan { min-height: 0; display: block; }
  .place-panel { position: sticky; height: 82svh; min-height: 540px; padding: 22px 16px; }
  .globe { top: 44%; width: min(82vw, 420px); }
  .place-readout { right: 16px; bottom: 92px; left: 16px; }
  .place-readout h2 { font-size: clamp(43px, 13vw, 78px); }
  .sun-track { right: 16px; bottom: 24px; left: 16px; }
  .plan-panel { min-height: 0; padding: 90px 28px 100px; }
  .plan-heading h2 { font-size: clamp(50px, 13vw, 82px); }
  .itinerary { margin-top: 48px; }
  .itinerary-card { grid-template-columns: 66px 1fr; gap: 12px; }
  .travel-ending { min-height: 78svh; display: block; padding: 96px 28px 80px; }
  .travel-ending h2 { margin-top: 24px; font-size: clamp(58px, 15vw, 90px); }
  .travel-ending > p:not(.travel-kicker) { margin-top: 42px; }
  .travel-ending > a { display: inline-block; margin-top: 50px; }
  .travel-footer { grid-template-columns: 1fr auto; }
  .travel-footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orbit, .locate-button { animation: none; transition: none; }
}
