/* Wanderful marketing site — plain CSS, no build step.
   Palette taken from the app icon: deep teal, compass gold, paper cream. */

:root {
  --teal: #12313A;
  --teal-2: #1A3F4A;
  --teal-line: rgba(245, 240, 232, 0.14);
  --gold: #E5AB45;
  --gold-deep: #B8801F;       /* gold dark enough for text on cream */
  --cream: #F5F0E8;
  --paper: #FBF8F3;
  --ink: #1C2A2F;
  --ink-soft: #4E5C61;
  --rule: #DDD5C8;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1080px;
  --gutter: clamp(16px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 { font-size: clamp(28px, 4vw, 40px); max-width: 20ch; }
h3 { font-size: 22px; margin-bottom: 8px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 16px;
}

.section { padding: clamp(64px, 10vw, 112px) 0; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  color: var(--cream);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 20px;
}
.brand img { border-radius: 8px; }
.header-nav { display: flex; gap: 24px; font-size: 14px; }
.header-nav a { text-decoration: none; opacity: 0.8; }
.header-nav a:hover { opacity: 1; }
@media (max-width: 560px) { .header-nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--teal);
  color: var(--cream);
  padding: clamp(140px, 20vw, 200px) 0 clamp(80px, 12vw, 140px);
}
.hero-rings {
  position: absolute;
  width: min(900px, 140vw);
  right: -18%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-rings circle {
  fill: none;
  stroke: var(--cream);
  stroke-opacity: 0.08;
  stroke-width: 1.5;
}
.hero-rings circle:first-child { stroke: var(--gold); stroke-opacity: 0.35; }
/* Nyhavn photo on the right, dissolving into the teal on the left */
.hero-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 62%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%);
          mask-image: linear-gradient(to right, transparent 0%, #000 55%);
}
.hero-photo picture, .hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-photo img {
  object-fit: cover;
  object-position: 60% 55%;
  filter: saturate(0.75) brightness(0.8);
}
.hero-photo::after {                     /* teal wash so the photo sits in the palette */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(18, 49, 58, 0.55) 0%, rgba(18, 49, 58, 0) 28%),
    linear-gradient(to right, rgba(18, 49, 58, 0.7) 0%, rgba(18, 49, 58, 0.25) 60%, rgba(18, 49, 58, 0.15) 100%);
}
.hero-rings { z-index: 1; opacity: 0.6; }
.hero-inner { position: relative; z-index: 2; }

@media (max-width: 820px) {
  /* On narrow screens the photo sits behind the lower half, fading up into the text */
  .hero { padding-bottom: clamp(260px, 75vw, 360px); }
  .hero-rings { display: none; }
  .hero-photo {
    width: 100%;
    top: auto;
    height: 52%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
  }
  .hero-photo img { object-position: 62% 60%; }
  .hero-photo::after { background: linear-gradient(to bottom, rgba(18, 49, 58, 0.6) 0%, rgba(18, 49, 58, 0.2) 100%); }
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  max-width: 18ch;
  margin-bottom: 28px;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 36em;
  color: rgba(245, 240, 232, 0.82);
  margin: 0 0 40px;
}

.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.cta-note { margin: 0; font-size: 14px; color: rgba(245, 240, 232, 0.6); }

/* App Store button (placeholder styling — swap for Apple's official badge SVG before launch; see README) */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 8px 22px 9px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  line-height: 1.1;
  transition: transform 0.15s ease;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge-small { font-size: 11px; letter-spacing: 0.02em; }
.store-badge-large { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge img { height: 52px; width: auto; }
.store-badge--image { padding: 0; background: none; border: 0; }

/* ---------- How it works ---------- */
.how h2 { margin-bottom: clamp(40px, 6vw, 64px); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.steps li { border-top: 1px solid var(--rule); padding-top: 24px; }
.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Screenshots ---------- */
.screens { background: var(--teal); padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.screen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3.5vw, 40px);
}
.screen { margin: 0; container-type: inline-size; }   /* cqw below = % of this figure's width */

/* Generic phone frame, drawn in CSS. Sizes use cqw (percent of the figure's width, i.e. the phone's width) so it scales with the grid. */
.phone {
  position: relative;
  aspect-ratio: 1179 / 2556;          /* modern iPhone screen proportions */
  padding: 3.6cqw;
  border-radius: 15cqw;
  background: linear-gradient(145deg, #2a2d30, #0d0f10 55%, #1c1f21);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),   /* outer metal rim */
    inset 0 0 0 2.2cqw #0a0b0c,                  /* black bezel */
    0 30px 60px -24px rgba(0, 0, 0, 0.6);
}
/* Dynamic-island style pill */
.phone::after {
  content: "";
  position: absolute;
  top: 6.4cqw;
  left: 50%;
  width: 30cqw;
  height: 8.6cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #050606;
  z-index: 2;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 11.6cqw;
  overflow: hidden;
  background: var(--cream);         /* same cream as the guide cards, so letterboxing is invisible */
}
.phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--cream);          /* covers the placeholder once the image is present */
}
.phone img.is-missing { display: none; }
.phone-screen:has(img.is-missing) { background: var(--teal-2); }
.placeholder {
  position: absolute;
  inset: 8cqw 6cqw;
  border: 1.5px dashed rgba(229, 171, 69, 0.6);
  border-radius: 8cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding: 12px;
  line-height: 1.6;
}
.placeholder small {
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(245, 240, 232, 0.6);
  font-size: 11px;
  word-break: break-all;
}
.screen figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}
@media (max-width: 820px) {
  .screen-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}

/* ---------- Artists ---------- */
.artists-inner,
.contact-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.artists-copy p { margin: 0 0 20px; font-size: 18px; }
.artists-copy p:last-child { margin-bottom: 0; }
.artists-copy .aside {
  font-size: 15px;
  color: var(--ink-soft);
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin-top: 32px;
}
.artists-copy .aside a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
@media (max-width: 820px) {
  .artists-inner, .contact-inner { grid-template-columns: 1fr; }
}

/* ---------- Closing CTA ---------- */
.closing { background: var(--teal); color: var(--cream); text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.closing h2 { max-width: 18ch; }

/* ---------- Contact ---------- */
.contact p { margin: 0 0 16px; color: var(--ink-soft); }
.contact-email { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); }
.contact-email a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-soft); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.footer-inner p { margin: 0; }
.footer-inner a { text-decoration-color: var(--rule); text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.placeholder span { text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Screenshot enlarge (see script.js) ---------- */
.screen .phone {
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .screen .phone:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.22),
      inset 0 0 0 2.2cqw #0a0b0c,
      0 40px 70px -24px rgba(0, 0, 0, 0.75);
  }
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 22, 27, 0);
  cursor: zoom-out;
  transition: background 0.3s ease;
}
.lightbox.is-open { background: rgba(8, 22, 27, 0.82); }
.lightbox-phone {
  position: fixed;
  container-type: inline-size;
  transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease;
}
.lightbox-phone .phone { width: 100%; height: 100%; transform: none; }
.lightbox:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  .screen .phone, .lightbox, .lightbox-phone { transition: none; }
}
