:root {
  --paper: oklch(0.965 0.018 84);
  --ink: oklch(0.18 0.025 80);
  --muted: oklch(0.42 0.028 82);
  --red: oklch(0.58 0.22 28);
  --red-dark: oklch(0.38 0.16 28);
  --blue: oklch(0.48 0.13 238);
  --green: oklch(0.52 0.12 145);
  --gold: oklch(0.77 0.14 82);
  --line: oklch(0.84 0.03 84);
  --white: oklch(0.995 0.006 84);
  --shadow: 0 22px 60px oklch(0.2 0.04 80 / 0.16);
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, sans-serif;
  --clock: "Share Tech Mono", "Courier New", monospace;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-hero {
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  isolation: isolate;
  background: var(--ink);
}

.found-hero {
  min-height: 78svh;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/basil-hero.jpg");
  background-size: cover;
  background-position: 66% center;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, oklch(0.11 0.025 80 / 0.84), oklch(0.11 0.025 80 / 0.44) 52%, transparent),
    linear-gradient(0deg, oklch(0.11 0.025 80 / 0.64), transparent 38%);
}

.hero-content {
  width: min(760px, calc(100% - 32px));
  margin: auto 0 var(--space-3xl);
  padding: clamp(32px, 8vw, 88px) 0 clamp(32px, 8vw, 72px);
  margin-left: clamp(16px, 8vw, 96px);
  color: var(--white);
}

.missing-timer {
  position: absolute;
  top: clamp(16px, 3vw, 34px);
  right: clamp(16px, 4vw, 56px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: var(--space-xs);
  max-width: min(330px, calc(100% - 32px));
  color: var(--white);
  text-align: right;
  text-shadow: 0 3px 18px oklch(0.08 0.025 80 / 0.8);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 oklch(0.77 0.14 82 / 0.75);
  animation: live-pulse 1.6s ease-out infinite;
  transform: translateY(-1px);
}

.missing-label {
  font-family: var(--display);
  font-size: clamp(1.08rem, 2.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1;
}

.missing-clock {
  color: var(--gold);
  font-family: var(--clock);
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.missing-timer strong {
  flex-basis: 100%;
  font-size: 0.95rem;
  line-height: 1.15;
}

@keyframes live-pulse {
  70% {
    box-shadow: 0 0 0 10px oklch(0.77 0.14 82 / 0);
  }

  100% {
    box-shadow: 0 0 0 0 oklch(0.77 0.14 82 / 0);
  }
}

.eyebrow {
  margin: 0 0 var(--space-sm);
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 0.98;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 10vw, 7.7rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 58ch;
  margin: var(--space-lg) 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-copy strong {
  color: var(--white);
  font-weight: 800;
}

.found-page .hero-copy {
  max-width: 62ch;
}

.found-duration {
  display: inline-grid;
  gap: var(--space-2xs);
  margin: 0 0 var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  border-left: 6px solid var(--gold);
  background: oklch(0.11 0.025 80 / 0.52);
  color: var(--white);
  box-shadow: 0 12px 32px oklch(0.08 0.025 80 / 0.28);
}

.found-duration span {
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
}

.found-duration strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.call-row,
.quick-actions,
.steps,
.map-grid {
  display: grid;
  gap: var(--space-md);
}

.call-row {
  grid-template-columns: repeat(2, minmax(0, 220px));
  margin-top: var(--space-xl);
}

.button,
.action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.button.urgent {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 28px oklch(0.2 0.04 80 / 0.24);
}

.findmy-cta {
  width: min(456px, 100%);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-md);
  padding: 0 var(--space-lg);
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 30px oklch(0.2 0.04 80 / 0.28);
}

.iphone-mark {
  position: relative;
  width: 18px;
  height: 26px;
  flex: 0 0 auto;
  margin-right: var(--space-xs);
  border: 2px solid currentColor;
  border-radius: 5px;
}

.iphone-mark::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.iphone-mark::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50% 50% 45% 55%;
  background: currentColor;
  transform: rotate(-18deg);
}

main > section {
  padding: clamp(36px, 7vw, 88px) clamp(16px, 5vw, 72px);
}

.alert-strip {
  background: var(--red);
  color: var(--white);
}

.found-status {
  background: oklch(0.92 0.06 145);
  color: oklch(0.22 0.06 145);
}

.found-status h1,
.found-status h2,
.thank-you-section h2 {
  max-width: 14ch;
}

.found-status h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}

.found-status p,
.thank-you-section p {
  max-width: 78ch;
  margin: var(--space-md) 0 0;
  font-size: 1.24rem;
  font-weight: 700;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
  background: var(--white);
}

.story-copy {
  max-width: 820px;
}

.story-copy p:not(.eyebrow) {
  margin: var(--space-md) 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.story-copy p:last-child {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
}

.story-section img {
  position: sticky;
  top: var(--space-lg);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lessons-section {
  background: var(--paper);
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.lesson-grid article {
  padding: var(--space-lg);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px oklch(0.2 0.04 80 / 0.08);
}

.lesson-grid p {
  margin: var(--space-sm) 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.thank-you-section {
  background: var(--ink);
  color: var(--white);
}

.thank-you-section p {
  color: oklch(0.9 0.018 84);
}

.share-update {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-lg);
  padding: 0 var(--space-lg);
  border-radius: 6px;
  background: oklch(0.94 0.055 145);
  color: oklch(0.25 0.08 145);
  font-weight: 800;
  text-decoration: none;
}

.tracker-photo-section {
  background: var(--paper);
}

.tracker-photo-section figure {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.tracker-photo-section img {
  width: 100%;
}

.tracker-photo-section figcaption {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.alert-strip h2 {
  max-width: 14ch;
}

.alert-strip p {
  max-width: 70ch;
  margin: var(--space-md) 0 0;
  font-size: 1.24rem;
}

.quick-actions {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  background: var(--ink);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.action {
  min-height: 96px;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  padding: var(--space-lg);
  color: var(--ink);
  border: 1px solid oklch(0.9 0.02 84);
}

.share-action {
  background: oklch(0.94 0.055 145);
  border-color: oklch(0.78 0.12 145);
}

.share-action strong {
  color: oklch(0.3 0.095 145);
}

.action span {
  color: var(--muted);
  font-size: 0.9rem;
}

.action strong {
  margin-top: var(--space-xs);
  font-size: 1.14rem;
}

.instructions,
.map-section {
  background: var(--white);
}

.section-heading {
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  margin: var(--space-md) 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.steps {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  margin-top: var(--space-xl);
}

.step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.step-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
}

.step p {
  margin: var(--space-sm) 0 var(--space-md);
  color: var(--muted);
}

.phone-ui {
  border-radius: 8px;
  background: oklch(0.985 0.008 84);
  border: 1px solid var(--line);
  padding: var(--space-md);
  box-shadow: inset 0 0 0 4px oklch(0.93 0.02 84);
}

.phone-bar {
  width: 72px;
  height: 5px;
  margin: 0 auto var(--space-md);
  border-radius: 999px;
  background: oklch(0.72 0.02 84);
}

.settings-title {
  margin-bottom: var(--space-sm);
  text-align: center;
  font-weight: 700;
}

.settings-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0 var(--space-md);
  border-radius: 7px;
  background: var(--white);
  font-weight: 700;
}

.toggle {
  width: 58px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px;
  background: oklch(0.72 0.03 84);
}

.toggle span {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
}

.toggle.on {
  background: var(--green);
}

.toggle.on span {
  margin-left: auto;
}

.privacy-note {
  max-width: 920px;
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  border-radius: 8px;
  background: oklch(0.93 0.035 145);
  color: oklch(0.25 0.055 145);
  font-weight: 700;
}

.location-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.location-timeline article {
  display: grid;
  align-content: start;
  gap: var(--space-xs);
  min-height: 132px;
  padding: var(--space-lg);
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.location-timeline strong {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
}

.location-timeline span {
  color: var(--muted);
  font-weight: 700;
}

.basil-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  background: var(--paper);
}

.details-copy p {
  max-width: 65ch;
  color: var(--muted);
}

.basil-details img,
.map-grid figure {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dl {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-xl) 0 0;
}

dt {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

dd {
  margin: var(--space-2xs) 0 0;
  font-weight: 700;
}

.map-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin-top: var(--space-xl);
}

.wide-map {
  grid-column: 1 / -1;
}

figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

figure img {
  width: 100%;
}

figcaption {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  color: var(--muted);
  font-size: 0.95rem;
}

.sources {
  background: var(--ink);
  color: var(--white);
}

.sources p {
  max-width: 76ch;
  color: oklch(0.88 0.015 84);
}

.sources a {
  color: var(--gold);
  font-weight: 700;
}

footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) clamp(16px, 5vw, 72px);
  background: var(--red-dark);
  color: var(--white);
  box-shadow: 0 -12px 40px oklch(0.2 0.04 80 / 0.2);
}

footer a {
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  background: oklch(0.98 0.012 84 / 0.15);
  text-decoration: none;
  font-weight: 700;
}

.found-footer {
  position: static;
  justify-content: center;
  padding-block: var(--space-lg);
  background: var(--green);
  color: var(--white);
}

.found-footer span {
  font-weight: 700;
}

@media (max-width: 760px) {
  .site-hero {
    min-height: 86svh;
  }

  .hero-photo {
    background-position: 54% center;
  }

  .hero-photo::after {
    background:
      linear-gradient(0deg, oklch(0.11 0.025 80 / 0.9), oklch(0.11 0.025 80 / 0.46) 58%, transparent),
      linear-gradient(90deg, oklch(0.11 0.025 80 / 0.6), transparent);
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: auto 16px var(--space-xl);
    padding-top: 50svh;
  }

  .missing-timer {
    top: var(--space-md);
    right: var(--space-md);
    left: auto;
    width: min(330px, calc(100% - 32px));
    text-align: right;
  }

  h1 {
    max-width: 9ch;
  }

  .call-row,
  .map-grid,
  .basil-details,
  .story-section,
  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .story-section img {
    position: static;
  }

  .call-row {
    gap: var(--space-sm);
  }
}
