/* Sunblock — sunblocktravel.co.uk
   Palette lifted from the app's Theme tokens. Rule from the app carries
   over: only a temperature chip carries warm colour. Everything else is
   blue, ink or neutral. The chip hue is set per element via --chip and
   --chip-ink, mirroring the temperature-true function in the app. */

:root {
  --sky:        #EAF4FB;   /* gradient top, page ground */
  --sky-mid:    #BEE0F2;
  --azure:      #1E88C8;   /* gradient bottom */
  --blue:       #0B6BA8;   /* primary */
  --blue-deep:  #08557F;   /* pressed, ink on tint, deep bands */
  --tint:       #E3F0F8;   /* secondary fill */
  --night:      #0B2238;   /* footer */

  --card:       #FBF8F3;   /* warm off-white, cards */
  --edge:       #E9E3D8;
  --ink:        #182238;
  --ink-soft:   #5B6580;
  --ink-faint:  #9AA2B6;

  --display: "PingFang HK", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 1.1rem;
}

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

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

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

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

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

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Eyebrow ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 1.4rem;
}

.eyebrow--light { color: rgba(255, 255, 255, 0.78); }

/* ---------- Wordmark ----------
   The one place the display face is set solid, so it anchors a page of
   ultralight headings. The disc is the same disc as the favicon. */

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.wordmark::before {
  content: "";
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}

.wordmark:hover { color: var(--ink); }

/* ---------- Masthead / hero ----------
   Sky to azure, the same scoped gradient the app uses behind the calendar.
   Ink stays dark at the top where the sky is pale; the block card sits
   over the saturated end. */

.masthead {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-mid) 48%, var(--azure) 100%);
  padding-block: clamp(1.5rem, 4vw, 2.25rem) clamp(3.5rem, 9vw, 6rem);
  position: relative;
  overflow: hidden;
}

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  margin-bottom: clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid rgba(11, 107, 168, 0.18);
}

.masthead__nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.masthead__nav a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  text-decoration: none;
}

.masthead__nav a:hover { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.lede {
  font-family: var(--display);
  font-weight: 100;
  font-size: clamp(2.7rem, 7.6vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0 0 1.6rem;
  max-width: 14ch;
}

.lede em {
  font-style: normal;
  color: var(--blue-deep);
}

.standfirst {
  max-width: var(--measure);
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 2.25rem;
}

/* ---------- Call to action ---------- */

.cta-row {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--blue);
  min-height: 44px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cta:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

.cta svg { width: 15px; height: 15px; flex: none; }

.cta--tint {
  color: var(--blue-deep);
  background: var(--tint);
  border-color: var(--tint);
}

.cta--tint:hover { background: #fff; border-color: #fff; color: var(--blue-deep); }

.cta--paper {
  color: var(--blue-deep);
  background: #fff;
  border-color: #fff;
}

.cta--paper:hover { background: var(--tint); border-color: var(--tint); color: var(--blue-deep); }

.cta-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0;
}

/* ---------- The block (signature) ----------
   A single time-off block as the app shows it: the dates you can't move,
   then the warm places ranked by fare. Temperature chips are the only
   warm colour on the page. */

.block {
  background: var(--card);
  border-radius: calc(var(--radius) * 1.4);
  padding: 1.35rem 1.35rem 1.1rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 30px 60px -30px rgba(8, 40, 70, 0.55),
    0 2px 8px rgba(8, 40, 70, 0.08);
  max-width: 24rem;
  margin-inline: auto;
  width: 100%;
}

.block__head {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 1rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--edge);
}

.block__name {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.block__dates { font-size: 0.92rem; color: var(--ink-soft); }

.block__meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-top: 0.35rem;
}

.block__list { list-style: none; margin: 0; padding: 0; }

.block__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "temp dest fare"
    "temp basis fare";
  column-gap: 0.85rem;
  align-items: center;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--edge);
}

.block__list li:last-child { border-bottom: 0; }

.block__dest {
  grid-area: dest;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
}

.block__basis {
  grid-area: basis;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  line-height: 1.5;
}

.block__fare {
  grid-area: fare;
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

.block__fare small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.block__foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.9rem;
  margin-top: 0.2rem;
  border-top: 1px solid var(--edge);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.block__foot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
  box-shadow: 0 0 0 4px var(--tint);
}

/* Temperature chip. --chip / --chip-ink are set inline per element,
   the way the app computes them from degrees C. */

.temp {
  grid-area: temp;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1;
  background: var(--chip, var(--tint));
  color: var(--chip-ink, var(--blue-deep));
  white-space: nowrap;
}

@media (max-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .block { max-width: 26rem; margin-inline: 0; }
}

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

.band { padding-block: clamp(3.5rem, 9vw, 6rem); }

.band--edge { border-top: 1px solid var(--edge); }

.band__title {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(1.85rem, 4.3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  margin: 0 0 1rem;
  max-width: 24ch;
}

.band__title em { font-style: normal; color: var(--blue-deep); }

.band__intro {
  max-width: var(--measure);
  color: var(--ink-soft);
  margin: 0 0 2.75rem;
}

/* ---------- Steps ----------
   Three real steps in the order the app asks them. The number is the
   order you do them in, so it earns its place. */

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

.steps li {
  counter-increment: step;
  min-width: 0;
  padding-top: 1.1rem;
  border-top: 2px solid var(--blue);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.steps h3 {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.32rem;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}

.steps p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.steps__in { font-family: var(--mono); font-size: 0.8rem; color: var(--blue-deep); display: block; margin-top: 0.8rem; }

@media (max-width: 48rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Temperature scale ----------
   The signature, explained. Same chips, one per two degrees. */

.scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.scale .temp { min-width: 3.4rem; padding-block: 0.55rem; font-size: 0.95rem; }

.scale__note {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 2.5rem;
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

@media (max-width: 48rem) {
  .pair { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Feature notes ---------- */

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  margin: 0;
  padding: 0;
}

.notes > div { min-width: 0; }

.notes h3 {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.26rem;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--blue);
}

.notes p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* The AD label as it appears on a booking button in the app */
.ad {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 0.1rem 0.35rem;
  border: 1px solid currentColor;
  border-radius: 0.25rem;
  vertical-align: 0.15em;
  margin-right: 0.35rem;
}

/* ---------- Deep band (waitlist) ---------- */

.band--deep {
  background: var(--blue-deep);
  color: #fff;
  border-top: 0;
}

.band--deep .band__title { color: #fff; }
.band--deep .band__title em { color: var(--sky-mid); }
.band--deep .band__intro { color: rgba(255, 255, 255, 0.78); margin-bottom: 2rem; }
.band--deep .cta-note { color: rgba(255, 255, 255, 0.68); }
.band--deep a:not(.cta) { color: #fff; }

/* ---------- Prose (legal, about, support) ---------- */

.doc { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(3rem, 8vw, 5rem); }

.doc__wrap {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.doc h1 {
  font-family: var(--display);
  font-weight: 100;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
}

.doc__date {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 2.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--edge);
}

.doc h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.42rem;
  letter-spacing: -0.025em;
  margin: 2.75rem 0 0.75rem;
}

.doc h2 .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--blue);
  display: block;
  margin-bottom: 0.35rem;
}

.doc h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

.doc p, .doc li, .doc dd, .doc td { color: var(--ink-soft); }
.doc p { margin: 0 0 1.1rem; }
.doc ul, .doc ol { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.doc li { margin-bottom: 0.5rem; }
.doc strong { color: var(--ink); font-weight: 600; }

.doc dl { margin: 0 0 1.1rem; }
.doc dt { font-weight: 600; color: var(--ink); margin-top: 1rem; }
.doc dd { margin: 0.2rem 0 0; }

.doc table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}
.doc caption { text-align: left; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.doc th, .doc td { text-align: left; padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid var(--edge); vertical-align: top; }
.doc th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); }

.callout {
  border-left: 2px solid var(--blue);
  padding: 0.1rem 0 0.1rem 1.25rem;
  margin: 0 0 1.5rem;
}

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

/* ---------- Slim header for inner pages ---------- */

.topbar {
  background: var(--sky);
  border-bottom: 1px solid rgba(11, 107, 168, 0.18);
  padding-block: 1.1rem;
}

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

.topbar__back {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  text-decoration: none;
}

.topbar__back:hover { color: var(--ink); }

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

.footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.62);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  font-size: 0.86rem;
}

.footer .wordmark { color: #fff; }
.footer .wordmark::before { background: var(--sky-mid); }

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--sky-mid); text-decoration: underline; }

.footer__legal {
  max-width: 46rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal p { margin: 0 0 0.6rem; }
.footer__legal p:last-child { margin-bottom: 0; }
.footer__legal a { color: rgba(255, 255, 255, 0.72); text-decoration: underline; }

/* ---------- Motion ----------
   One orchestrated moment: the hero text rises, then the block's rows
   land one after another as if the ranking has just come back. */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: rise 0.7s cubic-bezier(0.22, 0.7, 0.3, 1) forwards;
  }
  .reveal:nth-child(2) { animation-delay: 0.08s; }
  .reveal:nth-child(3) { animation-delay: 0.16s; }
  .reveal:nth-child(4) { animation-delay: 0.24s; }

  .block { opacity: 0; animation: rise 0.7s 0.2s cubic-bezier(0.22, 0.7, 0.3, 1) forwards; }
  .block__list li { opacity: 0; animation: rise 0.55s cubic-bezier(0.22, 0.7, 0.3, 1) forwards; }
  .block__list li:nth-child(1) { animation-delay: 0.55s; }
  .block__list li:nth-child(2) { animation-delay: 0.68s; }
  .block__list li:nth-child(3) { animation-delay: 0.81s; }
  .block__list li:nth-child(4) { animation-delay: 0.94s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}
