/* FlowRush website. Palette and mood come from the key art (docs: assets/img/key-art.webp):
   warm golden-hour facades, glossy taxi yellow, navy shadows and the mint glow trail.
   One typeface: Fredoka (self-hosted, SIL OFL). */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fredoka-latin.woff2?v=3") format("woff2");
}

:root {
  --cream: #fff4de;
  --sand: #f5dcb4;
  --peach: #f0c08a;
  --brick: #c9704b;
  --brick-deep: #9b4a33;
  --navy: #2a3158;
  --navy-deep: #1b2133;
  --ink: #1f2440;
  --ink-soft: #565c80;
  --yellow: #ffc531;
  --yellow-hi: #ffdf7a;
  --yellow-deep: #d98f00;
  --mint: #45e0bc;
  --sky: #c9d9e6;
  --link: #2f5aa8;
  --radius: 28px;
  --block: 0 10px 0 rgba(42, 49, 88, 0.16), 0 24px 40px -18px rgba(42, 49, 88, 0.35);
  --measure: 62ch;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Fredoka", ui-rounded, "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
}

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

a {
  color: var(--link);
  font-weight: 500;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brick-deep);
}

:focus-visible {
  outline: 4px solid var(--navy);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -70px;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  z-index: 30;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

/* ---- Navigation ---- */

.nav-pill {
  display: flex;
  gap: 0.3rem;
  padding: 0.35rem;
  background: rgba(255, 244, 222, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(42, 49, 88, 0.14);
}

.nav-pill a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
}

.nav-pill a:hover,
.nav-pill a[aria-current="page"] {
  background: var(--yellow);
  color: var(--ink);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}

.mark img {
  height: 50px;
  width: auto;
}

/* ---- Hero: the key art is the stage, the panel is the street in front of it ---- */

.stage {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
}

.stage-art {
  width: 100%;
  height: clamp(420px, 78svh, 820px);
  object-fit: cover;
  object-position: 50% 58%;
}

.stage .bar {
  position: absolute;
  inset: 0 0 auto 0;
  justify-content: flex-end;
  padding-inline: max(1.5rem, calc((100% - 1160px) / 2));
  z-index: 2;
}

.panel {
  position: relative;
  z-index: 3;
  margin-top: -96px;
  background: var(--cream);
  border-radius: 44px 44px 0 0;
  box-shadow: 0 -18px 40px -18px rgba(27, 33, 51, 0.5);
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(2.4rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}

h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(3rem, 7.6vw, 6.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--navy);
}

.lede {
  max-width: 34ch;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 1.8rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.store {
  display: inline-flex;
  flex-direction: column;
  padding: 0.7rem 1.5rem 0.8rem;
  border-radius: 20px;
  line-height: 1.1;
  background: linear-gradient(var(--yellow-hi), var(--yellow));
  border-bottom: 6px solid var(--yellow-deep);
  box-shadow: 0 10px 18px -10px rgba(217, 143, 0, 0.8);
  min-width: 11.5rem;
  color: var(--ink);
}

.store b {
  font-size: 1.25rem;
}

.store small {
  font-size: 0.9rem;
  opacity: 0.8;
}

.phone {
  justify-self: center;
  width: min(100%, 340px);
  margin-top: -170px;
  padding: 11px;
  background: var(--navy-deep);
  border-radius: 46px;
  box-shadow: var(--block);
  transform: rotate(3deg);
}

.phone img {
  border-radius: 36px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .stage-art {
    animation: settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  @keyframes settle {
    from {
      transform: scale(1.08);
    }
    to {
      transform: scale(1);
    }
  }
}

/* ---- Sections ---- */

section {
  padding-block: clamp(3.2rem, 7vw, 6rem);
}

.trail {
  position: relative;
}

.trail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 110px;
  transform: translateY(-55px);
  background: url("../img/trail.svg") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 4;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
  font-weight: 700;
  max-width: 18ch;
  text-wrap: balance;
  color: var(--navy);
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  line-height: 1.15;
  font-weight: 600;
  color: var(--navy);
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.intro {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2.6rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps figure {
  margin: 0 0 1.2rem;
  position: relative;
}

.steps img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--block);
}

.steps figure::after {
  content: counter(step);
  position: absolute;
  left: -0.6rem;
  top: -0.8rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: linear-gradient(var(--yellow-hi), var(--yellow));
  border-bottom: 4px solid var(--yellow-deep);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
}

.steps p {
  color: var(--ink-soft);
  max-width: 32ch;
}

.districts {
  background: var(--sand);
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.6rem);
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
}

.district {
  border-radius: var(--radius);
  padding: 0.8rem 0.8rem 1.3rem;
  color: var(--ink);
  box-shadow: var(--block);
}

.district img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.district h3,
.district p {
  padding-inline: 0.35rem;
}

.district p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.d-downtown {
  background: #fff0d0;
}
.d-old {
  background: #f7c995;
}
.d-modern {
  background: #d6e5ee;
}
.d-night {
  background: var(--navy);
  color: #eef1fb;
}
.d-night h3 {
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.facts li {
  background: #fff;
  border-radius: 22px;
  padding: 1rem 1.3rem 1.1rem;
  box-shadow: 0 8px 0 rgba(42, 49, 88, 0.1);
  border-left: 8px solid var(--yellow);
}

.facts b {
  display: block;
  font-size: 1.25rem;
  color: var(--navy);
}

.facts span {
  color: var(--ink-soft);
}

/* ---- Footer ---- */

.site-foot {
  background: var(--navy-deep);
  color: #d5dbf0;
  padding-block: 3rem;
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: center;
}

.site-foot a {
  color: var(--yellow-hi);
}

.site-foot a:hover {
  color: var(--mint);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
}

.site-foot p {
  margin: 0;
  font-size: 0.98rem;
}

/* ---- Document pages ---- */

.doc {
  background: linear-gradient(var(--sand), var(--cream) 380px);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.doc h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 0.6rem;
  max-width: 14ch;
}

.doc .meta {
  color: var(--ink-soft);
  margin-bottom: 2.4rem;
  font-size: 1.15rem;
}

.doc article {
  max-width: 70ch;
}

.doc h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 2.6rem 0 0.7rem;
  max-width: none;
}

.doc ul,
.doc ol {
  max-width: var(--measure);
  padding-left: 1.3rem;
  margin: 0 0 1rem;
}

.doc li {
  margin-bottom: 0.45rem;
}

.doc dl {
  max-width: var(--measure);
  margin: 0 0 1rem;
}

.doc dt {
  font-weight: 600;
  margin-top: 0.9rem;
  color: var(--navy);
}

.doc dd {
  margin: 0.1rem 0 0;
  color: var(--ink-soft);
}

.callout {
  background: linear-gradient(var(--yellow-hi), var(--yellow));
  border-bottom: 6px solid var(--yellow-deep);
  border-radius: 24px;
  padding: 1.1rem 1.4rem;
  margin: 1.6rem 0;
  max-width: var(--measure);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout b {
  display: block;
  margin-bottom: 0.3rem;
}

/* ---- Small screens ---- */

@media (max-width: 980px) {
  .district-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(1160px, 100% - 2rem);
  }

  .stage-art {
    height: clamp(300px, 52svh, 460px);
    object-position: 14% 50%;
  }

  .stage .bar {
    inset: auto 0 72px 0;
    justify-content: center;
    padding-inline: 1rem;
  }

  .panel {
    margin-top: -56px;
    border-radius: 32px 32px 0 0;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    width: min(70%, 290px);
    margin-top: 0.5rem;
    transform: rotate(2deg);
  }

  .steps,
  .split {
    grid-template-columns: 1fr;
  }

  .steps figure {
    max-width: 420px;
  }

  .bar {
    flex-wrap: wrap;
  }

  .nav-pill a {
    padding: 0.4rem 0.8rem;
  }

  .trail::before {
    height: 80px;
    transform: translateY(-40px);
  }
}
