/*
  The landing page a visitor without an account arrives at, served at the bare address. One framed hero at dawn over the water: a search that opens the real map, and a
  wheel of fish turning under it. Below, everything is drawn from the live spots and forecast.
  Only the tokens, the buttons and the hidden-text helper come from styles.css.
*/

html:has(body.lp5) {
  height: auto;
  scroll-behavior: smooth;
  scroll-padding-top: calc(5.5rem + var(--wip-height));
}

body.lp5 {
  --lac-a: #34d1bf;
  --lac-b: #1769aa;
  --accent: #1769aa;
  --card: #fff;
  --great: #1fb5a6;
  --good: #1b7ea6;
  --fair: #f2c230;
  --poor: #d64545;
  --page: clamp(1.125rem, 4vw, 4rem);
  --wide: 76rem;
  --frame: 0.75rem;
  height: auto;
  overflow: visible;
  background: var(--bg);
}

:root[data-theme='dark'] body.lp5 {
  --accent: #5fd6c9;
  --card: #1d1629;
}

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

.lp5 .button {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.lp5 .button--primary {
  color: var(--on-primary);
}

.lp5 [hidden] {
  display: none !important;
}

.f-big {
  height: 3.25rem;
  padding: 0 1.625rem;
  font-size: 1rem;
}

.f-h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.f-sub {
  max-width: 46ch;
  margin: 0.875rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

/* The bar floats over the hero and turns to glass once the page moves under it */

.f-bar {
  position: fixed;
  top: calc(var(--wip-height) + var(--frame) + 0.75rem);
  right: calc(var(--frame) + 0.75rem);
  left: calc(var(--frame) + 0.75rem);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: calc(var(--wide) + 3rem);
  height: 3.5rem;
  margin: 0 auto;
  padding: 0 0.5rem 0 1.125rem;
  border-radius: 999px;
  transition:
    background-color 240ms ease-out,
    box-shadow 240ms ease-out;
}

.f-bar.is-stuck {
  background: var(--glass);
  box-shadow:
    var(--shadow-soft),
    inset 0 0 0 1px var(--hair);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
}

.f-brand {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  color: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.f-nav {
  display: flex;
  gap: 0.25rem;
  margin: 0 auto;
}

.f-nav a,
.f-bar__link {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease-out;
}

.f-nav a:hover,
.f-bar__link:hover {
  background: var(--tint-strong);
}

.f-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.f-nav + .f-bar__actions {
  margin-left: 0;
}

.f-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.f-icon:hover {
  background: var(--tint-strong);
}

.f-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.f-menu,
.f-nav__extra {
  display: none;
}

.f-menu path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.f-sun,
:root[data-theme='dark'] .f-moon {
  display: none;
}

:root[data-theme='dark'] .f-sun {
  display: block;
}

/* The hero: a frame of sky and water */

.f-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(46rem, calc(100svh - var(--wip-height) - var(--frame) * 2));
  margin: calc(var(--wip-height) + var(--frame)) var(--frame) 0;
  overflow: hidden;
  border-radius: 2rem;
  isolation: isolate;
}

.f-hero__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 52% at 96% -4%, rgb(255 142 66 / 0.78), transparent 72%),
    radial-gradient(62% 60% at 78% 0%, rgb(255 205 120 / 0.7), transparent 70%),
    radial-gradient(70% 62% at 0% 100%, rgb(52 209 191 / 0.5), transparent 70%),
    radial-gradient(80% 70% at 78% 108%, rgb(23 105 170 / 0.46), transparent 70%),
    linear-gradient(#eef3f5, #d9e6ec);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.55);
  border-radius: inherit;
}

:root[data-theme='dark'] .f-hero__sky {
  background:
    radial-gradient(46% 52% at 96% -4%, rgb(255 142 66 / 0.34), transparent 72%),
    radial-gradient(62% 60% at 78% 0%, rgb(242 169 0 / 0.16), transparent 70%),
    radial-gradient(70% 62% at 0% 100%, rgb(52 209 191 / 0.2), transparent 70%),
    radial-gradient(80% 70% at 78% 108%, rgb(23 105 170 / 0.5), transparent 70%),
    linear-gradient(#141126, #0d1422);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.f-hero__copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(6.5rem, 15svh, 9.5rem) var(--page) 0;
  text-align: center;
}

.f-teaser {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2rem;
  margin-bottom: 1.25rem;
  padding: 0 0.875rem 0 0.75rem;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.f-band {
  display: block;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--faint);
}

.f-band--great {
  background: var(--great);
}
.f-band--good {
  background: var(--good);
}
.f-band--fair {
  background: var(--fair);
}
.f-band--poor {
  background: var(--poor);
}

.f-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.625rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 0.97;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.f-lede {
  max-width: 44ch;
  margin: 1.375rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  text-wrap: pretty;
}

/* The search */

.f-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 39rem);
  height: 4rem;
  margin-top: 2rem;
  padding: 0 0.5rem 0 1.25rem;
  border-radius: 999px;
  background: var(--glass-solid);
  box-shadow:
    0 1px 2px rgb(11 26 36 / 0.08),
    0 18px 50px rgb(15 79 134 / 0.22),
    inset 0 0 0 1px var(--hair);
  text-align: left;
  transition: box-shadow 200ms ease-out;
}

.f-search:focus-within {
  box-shadow:
    0 1px 2px rgb(11 26 36 / 0.08),
    0 18px 50px rgb(15 79 134 / 0.3),
    inset 0 0 0 1.5px var(--accent);
}

.f-search__glass {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.f-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 0.25rem;
  border: 0;
  outline: 0;
  background: none;
  font-size: 1.0625rem;
  text-overflow: ellipsis;
}

.f-search input::placeholder {
  color: var(--muted);
}

.f-token {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
  height: 2rem;
  padding: 0 0.625rem 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lac-a) 22%, transparent);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.f-token svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.f-search__key {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 0.4375rem;
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--muted);
  font: 500 0.8125rem var(--sans);
}

.f-search:focus-within .f-search__key {
  display: none;
}

.f-search__go {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 1.125rem 0 1.375rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    opacity 160ms ease-out,
    transform 160ms var(--ease);
}

.f-search__go:hover {
  opacity: 0.86;
}

.f-search__go:active {
  transform: scale(0.97);
}

.f-search__go svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.f-list {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: 0;
  z-index: 5;
  max-height: min(24rem, 52svh);
  padding: 0.5rem;
  overflow-y: auto;
  border-radius: 1.5rem;
  background: var(--glass-solid);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px var(--hair);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
}

.f-list__group {
  padding: 0.625rem 0.875rem 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.f-opt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5625rem 0.875rem;
  border-radius: 0.875rem;
  cursor: pointer;
}

.f-opt:hover,
.f-opt[aria-selected='true'] {
  background: var(--tint-strong);
}

.f-opt span {
  font-weight: 500;
}

.f-opt small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* The wheel of fish, the float and the water */

.f-arc {
  position: relative;
  flex: 1;
  min-height: 24rem;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.f-arc.is-dragging {
  cursor: grabbing;
}

.f-wheel {
  --r: clamp(19rem, 42vw, 37rem);
  --w: clamp(6.5rem, 10vw, 8.75rem);
  --turn: 0deg;
  position: absolute;
  bottom: 19rem;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
}

.f-pick {
  position: absolute;
  top: 0;
  left: calc(var(--w) / -2);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--w);
  padding: 1.125rem 0.5rem 1rem;
  border: 0;
  border-radius: 1.75rem;
  background: var(--glass-solid);
  box-shadow:
    0 1px 2px rgb(11 26 36 / 0.08),
    0 16px 40px rgb(15 79 134 / 0.2),
    inset 0 0 0 1px var(--hair);
  transform: rotate(calc(var(--at) + var(--turn)));
  transform-origin: 50% var(--r);
  cursor: pointer;
  will-change: transform;
}

.f-pick .f-fish {
  width: 3.25rem;
  height: auto;
  transition: transform 260ms var(--glide);
}

.f-pick:hover .f-fish {
  transform: translateY(-3px) scale(1.06);
}

.f-pick strong {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.f-pick span {
  color: var(--muted);
  font-size: 0.75rem;
}

.f-pick.is-on {
  box-shadow:
    0 16px 40px rgb(15 79 134 / 0.28),
    inset 0 0 0 2px var(--accent);
}

.f-float {
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  z-index: 1;
  width: 2.75rem;
  margin-left: -1.375rem;
  animation: f-bob 4.6s ease-in-out infinite;
  pointer-events: none;
}

.f-float svg {
  display: block;
  width: 100%;
}

.f-float.is-biting svg {
  animation: f-bite 900ms var(--ease);
}

@keyframes f-bob {
  50% {
    transform: translateY(7px) rotate(2.5deg);
  }
}

@keyframes f-bite {
  30% {
    transform: translateY(34px);
  }
  62% {
    transform: translateY(-6px);
  }
}

.f-water {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 200%;
  height: 4.75rem;
  fill: color-mix(in srgb, var(--lac-b) 62%, var(--lac-a));
  opacity: 0.82;
  animation: f-drift 16s linear infinite;
  pointer-events: none;
}

.f-water--back {
  z-index: 0;
  height: 5.5rem;
  fill: var(--lac-a);
  opacity: 0.5;
  animation-duration: 24s;
  animation-direction: reverse;
}

@keyframes f-drift {
  to {
    transform: translateX(-25%);
  }
}

/* Sections */

.f-section {
  max-width: calc(var(--wide) + var(--page) * 2);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) var(--page) 0;
}

.f-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.f-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.f-pills button {
  height: 2.5rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out;
}

.f-pills button[aria-pressed='true'] {
  background: var(--primary);
  box-shadow: none;
  color: var(--on-primary);
}

.f-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.f-note a {
  color: var(--accent);
}

/* Choices that sit together share one track, and the chosen one is lifted out of it */

.f-pills {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.125rem;
  max-width: 100%;
  padding: 0.25rem;
  overflow-x: auto;
  border-radius: 999px;
  background: var(--tint-strong);
  scrollbar-width: none;
}

.f-pills button {
  flex: none;
  height: 2.25rem;
  background: none;
  box-shadow: none;
  color: var(--muted);
  white-space: nowrap;
}

.f-pills button:hover {
  color: var(--ink);
}

.f-pills button[aria-pressed='true'] {
  background: var(--card);
  box-shadow:
    0 1px 2px rgb(11 26 36 / 0.14),
    0 3px 10px rgb(11 26 36 / 0.08);
  color: var(--ink);
}

.f-wx {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The day you go: the chosen day in the colour of its chances, beside ten days as tall as theirs */

.g-when {
  display: grid;
  grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0.5rem;
  border-radius: 2rem;
  background: var(--card);
  box-shadow:
    0 30px 60px -36px rgb(15 79 134 / 0.45),
    inset 0 0 0 1px var(--hair);
}

.g-now {
  --on: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 15.5rem;
  padding: 1.25rem 1.375rem 1.25rem;
  border-radius: 1.5rem;
  background: var(--good);
  color: var(--on);
  transition: background-color 360ms ease-out;
}

.g-now--great {
  background: var(--great);
}
.g-now--fair {
  --on: #2b2203;
  background: var(--fair);
}
.g-now--poor {
  background: var(--poor);
}
.g-now--none {
  --on: var(--ink);
  background: var(--tint-strong);
}

.g-now p {
  margin: 0;
}

.g-now__date {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.g-now__date span {
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.78;
}

.g-now__sky {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem !important;
}

.g-now__sky strong {
  font-size: 4.25rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.g-now__sky span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
}

.g-now__band {
  margin-top: auto !important;
  padding-top: 1.25rem;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.g-now__count {
  max-width: 20ch;
  margin-top: 0.25rem !important;
  font-size: 0.875rem;
  line-height: 1.35;
  opacity: 0.82;
}

.g-now__step {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.g-now__step button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--on) 16%, transparent);
  color: var(--on);
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.g-now__step button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--on) 28%, transparent);
}

.g-now__step button:disabled {
  cursor: default;
  opacity: 0.4;
}

.g-now__step button:focus-visible {
  outline-color: var(--on);
}

.g-now__step svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.g-when__pick {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.5rem 0.5rem 0.625rem;
}

.g-days {
  position: relative;
  display: grid;
  flex: 1;
  grid-auto-columns: minmax(3.75rem, 1fr);
  grid-auto-flow: column;
  overflow-x: auto;
  scrollbar-width: none;
}

.g-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 1.25rem;
  background: var(--tint);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition:
    transform 460ms var(--glide),
    width 200ms ease-out;
  pointer-events: none;
}

.g-thumb.is-still {
  transition: none;
}

.g-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.875rem 0 0.75rem;
  border: 0;
  border-radius: 1.25rem;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.g-day .f-wx {
  opacity: 0.8;
}

.g-day__track {
  display: flex;
  flex: 1;
  align-items: flex-end;
  width: 1.75rem;
  min-height: 6.5rem;
  margin: 0.625rem 0 0.75rem;
  overflow: hidden;
  border-radius: 0.875rem;
  background: var(--tint);
  transition: transform 260ms var(--glide);
}

.g-day__track i {
  display: block;
  width: 100%;
  border-radius: 0.875rem;
  background: var(--faint);
  transition: height 520ms var(--ease);
}

.g-day:hover .g-day__track,
.g-day[aria-checked='true'] .g-day__track {
  transform: scaleX(1.14);
}

.g-day .f-band--great {
  background: var(--great);
}
.g-day .f-band--good {
  background: var(--good);
}
.g-day .f-band--fair {
  background: var(--fair);
}
.g-day .f-band--poor {
  background: var(--poor);
}

.g-day.is-best .g-day__track i::before,
.g-when__best::before {
  content: '';
  display: block;
  width: 0.375rem;
  height: 0.375rem;
  margin: 0.5rem auto 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.3);
}

.g-day__name {
  font-size: 0.75rem;
}

.g-day.is-weekend .g-day__name {
  color: var(--accent);
  font-weight: 500;
}

.g-day strong {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.g-day[aria-checked='true'] strong {
  font-weight: 600;
}

.g-when__key {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin: 0.625rem 0.5rem 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.g-when__best {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.g-when__best::before {
  margin: 0;
  background: var(--great);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--great) 30%, transparent);
}

/* The places: the day at that spot on top, in the colour of its chances, then what it costs and holds */

.f-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.375rem;
  border-radius: 1.875rem;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: inherit;
  text-decoration: none;
  transition:
    box-shadow 260ms ease-out,
    transform 260ms var(--ease);
}

.g-card:hover {
  box-shadow:
    0 28px 50px -28px rgb(15 79 134 / 0.5),
    inset 0 0 0 1px var(--hair);
  transform: translateY(-4px);
}

.g-card__scene {
  --on: #fff;
  --tone: var(--tint-strong);
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 0.5rem;
  min-height: 10.5rem;
  padding: 1rem 1rem 0;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--tone);
  color: var(--on);
}

.g-card__scene:not([class*='--']) {
  --on: var(--ink);
  align-content: space-between;
  padding-bottom: 1rem;
}

.g-card__scene--great {
  --tone: var(--great);
}
.g-card__scene--good {
  --tone: var(--good);
}
.g-card__scene--fair {
  --on: #2b2203;
  --tone: var(--fair);
}
.g-card__scene--poor {
  --tone: var(--poor);
}

/* A spot's own photo shows through its colour */
.g-card__scene[style*='--photo'] {
  background:
    linear-gradient(color-mix(in srgb, var(--tone) 78%, transparent), color-mix(in srgb, var(--tone) 92%, transparent)),
    var(--photo) center / cover;
}

.g-card__scene p {
  margin: 0;
}

.g-card__sky {
  display: inline-flex;
  align-items: center;
  align-self: start;
  justify-self: start;
  gap: 0.375rem;
  height: 1.875rem;
  padding: 0 0.75rem 0 0.5625rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--on) 16%, transparent);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.g-card__gauge {
  position: relative;
  display: grid;
  grid-row: span 2;
  align-self: start;
  place-items: center;
  width: 4rem;
  height: 4rem;
}

.g-card__gauge > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: color-mix(in srgb, var(--on) 26%, transparent);
  stroke-width: 3;
  transform: rotate(-90deg);
}

.g-card__gauge > svg circle + circle {
  stroke: var(--on);
  stroke-linecap: round;
  transition: stroke-dashoffset 600ms var(--ease);
}

.g-card__fish {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--on) 14%, transparent);
}

.g-card__fish .f-fish {
  width: 1.75rem;
  transition: transform 300ms var(--glide);
}

.g-card:hover .g-card__fish .f-fish {
  transform: translateX(-2px) rotate(-6deg);
}

.g-card__chance {
  align-self: end;
  padding-bottom: 2.5rem;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.g-card__chance span {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.85;
}

.g-card__scene:not([class*='--']) .g-card__chance {
  padding-bottom: 0;
}

/* Its chances over the ten days rise from the bottom edge like water, the chosen day standing out */
.g-card__trend {
  position: absolute;
  right: 1rem;
  bottom: 0;
  left: 1rem;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  align-items: end;
  gap: 3px;
  height: 1.875rem;
}

.g-card__trend i {
  border-radius: 3px 3px 0 0;
  background: var(--on);
  opacity: 0.26;
  transition: opacity 200ms ease-out;
}

.g-card__trend i.is-day {
  opacity: 1;
}

.g-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 0.875rem 0.625rem;
}

.g-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.g-card__name {
  min-width: 0;
}

.g-card h3 {
  margin: 0;
  overflow: hidden;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.g-card__name p {
  margin: 0.125rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.g-card__price {
  flex: none;
  margin: 0;
  text-align: right;
}

.g-card__price strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.g-card__price span {
  color: var(--muted);
  font-size: 0.75rem;
}

.g-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3125rem;
  margin: 0.875rem 0 0;
}

.g-tags span {
  padding: 0.1875rem 0.5625rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 0.75rem;
}

.g-tags .is-best {
  background: var(--ink);
  box-shadow: none;
  color: var(--bg);
  font-weight: 500;
}

.g-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.125rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.g-has {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.g-has svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.g-has small {
  font-size: 0.75rem;
}

.g-card__go {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
  height: 2.25rem;
  padding: 0 0.875rem 0 1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--ink);
  font-weight: 500;
  transition:
    background-color 200ms ease-out,
    color 200ms ease-out;
}

.g-card:hover .g-card__go {
  background: var(--primary);
  box-shadow: none;
  color: var(--on-primary);
}

.g-card__go svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms var(--ease);
}

.g-card:hover .g-card__go svg {
  transform: translateX(3px);
}

.f-more {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

/* What you find: a band of deep water, the same in both themes, with four panes of glass in it */

.g-deep {
  margin: clamp(4.5rem, 10vw, 8rem) var(--frame) 0;
  border-radius: 2rem;
  background:
    radial-gradient(50% 60% at 8% 0%, rgb(52 209 191 / 0.3), transparent 70%),
    radial-gradient(55% 70% at 100% 100%, rgb(23 105 170 / 0.55), transparent 70%),
    #07141f;
  color: #f1f6f8;
}

.g-deep__inner {
  max-width: calc(var(--wide) + var(--page) * 2);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) calc(var(--page) - var(--frame));
}

.g-deep__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: 2.25rem;
}

.g-deep .f-sub {
  max-width: 38ch;
  margin: 0;
  color: rgb(241 246 248 / 0.66);
}

.g-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}

.g-tile {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 22rem;
  padding: 1.75rem;
  overflow: hidden;
  border-radius: 1.75rem;
  background: rgb(255 255 255 / 0.055);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.g-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem circle at var(--mx) var(--my), rgb(95 214 201 / 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 300ms ease-out;
  pointer-events: none;
}

.g-tile:hover::before {
  opacity: 1;
}

.g-tile > * {
  position: relative;
}

.g-tile--forecast,
.g-tile--reviews {
  grid-column: span 7;
}

.g-tile--prices,
.g-tile--open {
  grid-column: span 5;
}

.g-tile h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.g-tile__copy p {
  max-width: 44ch;
  margin: 0.5rem 0 0;
  color: rgb(241 246 248 / 0.66);
  text-wrap: pretty;
}

.g-demo {
  margin-top: auto;
}

.g-demo__missing {
  margin: 0;
  color: rgb(241 246 248 / 0.66);
  font-size: 0.875rem;
}

.g-fishes,
.g-receipt {
  display: block;
  padding: 1.125rem 1.25rem;
  border-radius: 1.25rem;
  background: rgb(4 14 22 / 0.5);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  color: inherit;
  text-decoration: none;
}

.g-fishes__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.75rem;
}

.g-fishes__head strong,
.g-receipt strong {
  font-weight: 500;
}

.g-fishes__head span {
  color: rgb(241 246 248 / 0.6);
  font-size: 0.8125rem;
}

.g-fishes ul,
.g-receipt ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-fishes li {
  display: grid;
  grid-template-columns: 1.625rem 5.5rem 1fr 5.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4375rem 0;
}

.g-fishes .f-fish {
  width: 1.625rem;
}

.g-fishes__name {
  overflow: hidden;
  font-size: 0.9375rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.g-fishes__track {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
}

.g-fishes__track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 520ms var(--ease);
}

.g-fishes .f-band--great {
  background: #35d6c5;
}
.g-fishes .f-band--good {
  background: #4aa8d8;
}
.g-fishes .f-band--fair {
  background: var(--fair);
}
.g-fishes .f-band--poor {
  background: #ef6b6b;
}

.g-fishes__band {
  color: rgb(241 246 248 / 0.7);
  font-size: 0.8125rem;
  text-align: right;
}

.g-receipt {
  padding-bottom: 0.5rem;
}

.g-receipt ul {
  margin-top: 0.5rem;
}

.g-receipt li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5625rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.g-receipt li span {
  color: rgb(241 246 248 / 0.66);
}

.g-receipt small {
  margin-left: 0.5rem;
  font-size: 0.75rem;
}

.g-receipt b {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.g-open {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0;
  list-style: none;
}

.g-open li {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  height: 2.25rem;
  padding: 0 1rem 0 0.6875rem;
  border-radius: 999px;
  background: rgb(53 214 197 / 0.16);
  font-size: 0.875rem;
  font-weight: 500;
}

.g-open svg,
.g-review__seal svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: #35d6c5;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.g-open .is-locked {
  background: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  color: rgb(241 246 248 / 0.6);
  font-weight: 400;
}

.g-open .is-locked svg {
  stroke: currentColor;
  stroke-width: 1.25;
}

.g-review {
  position: relative;
  max-width: 26rem;
  padding-top: 0.75rem;
}

.g-review__card {
  position: relative;
  display: grid;
  gap: 0.5625rem;
  padding: 1.125rem 1.25rem;
  border-radius: 1.25rem;
  background: #0d2230;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}

.g-review__card--back {
  position: absolute;
  inset: 0 1.25rem auto;
  height: 3rem;
  opacity: 0.6;
}

.g-review__who {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.g-review__who i {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lac-a), var(--lac-b));
}

.g-review__who span,
.g-review__line {
  display: block;
  width: 5.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
}

.g-review__who svg {
  width: 5rem;
  margin-left: auto;
  fill: #f2c230;
}

.g-review__line {
  width: 100%;
}

.g-review__line--short {
  width: 58%;
}

.g-review .g-review__seal {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* The budget */

.f-budget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
}

.f-budget .f-pills {
  margin-top: 1.75rem;
}

.f-budget__count {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  margin: 0;
}

.f-budget__count strong {
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.f-budget__count span {
  max-width: 16ch;
  color: var(--muted);
  line-height: 1.3;
}

.f-histogram {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 0.375rem;
  height: 9rem;
  margin: 2rem 0 1.75rem;
}

.f-bin {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.375rem;
  height: 100%;
}

.f-bin i {
  display: block;
  width: 100%;
  min-height: 0.25rem;
  border-radius: 0.5rem;
  background: var(--tint-strong);
  transition: background-color 260ms ease-out;
}

.f-bin.is-in i {
  background: linear-gradient(var(--lac-a), var(--lac-b));
}

.f-bin span {
  height: 1rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}

/* The end */

.f-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(4.5rem, 10vw, 8rem) var(--frame) 0;
  padding: clamp(4rem, 9vw, 7rem) var(--page);
  border-radius: 2rem;
  background:
    radial-gradient(60% 80% at 100% 0%, rgb(255 190 92 / 0.34), transparent 70%),
    linear-gradient(135deg, #1aa79c, #1769aa 62%, #0f4f86);
  color: #fff;
  text-align: center;
}

.f-end h2 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.f-end p {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  opacity: 0.85;
}

.f-end__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 2rem;
}

.lp5 .f-end__main {
  background: #fff;
  color: #0b1a24;
}

.lp5 .f-end__other {
  background: rgb(255 255 255 / 0.16);
  color: #fff;
}

/* Detail in the hero: a low sun, mist over the water, grain, and rings around the float */

.f-hero__sun {
  position: absolute;
  top: 17%;
  right: 9%;
  width: clamp(4.5rem, 8vw, 7.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #fff8e3, #ffdc9a 58%, #ffbd6b);
  box-shadow:
    0 0 0 1.25rem rgb(255 222 160 / 0.2),
    0 0 0 3.5rem rgb(255 205 130 / 0.1),
    0 0 7rem 2.5rem rgb(255 176 92 / 0.4);
  opacity: 0.92;
}

:root[data-theme='dark'] .f-hero__sun {
  box-shadow: 0 0 6rem 1.5rem rgb(255 176 92 / 0.3);
  opacity: 0.6;
}

.f-hero__glint {
  position: absolute;
  right: 0;
  bottom: 3.5rem;
  left: 0;
  height: 9rem;
  background: linear-gradient(transparent, rgb(255 255 255 / 0.55));
}

:root[data-theme='dark'] .f-hero__glint {
  background: linear-gradient(transparent, rgb(120 190 215 / 0.14));
}

.f-hero__grain {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.55;
}

.f-ripple {
  position: absolute;
  bottom: 3.25rem;
  left: 50%;
  z-index: 3;
  width: 2.5rem;
  height: 0.625rem;
  margin-left: -1.25rem;
  border: 1.5px solid rgb(255 255 255 / 0.75);
  border-radius: 50%;
  opacity: 0;
  animation: f-ripple 4.6s ease-out infinite;
  pointer-events: none;
}

.f-ripple--late {
  animation-delay: 2.3s;
}

@keyframes f-ripple {
  from {
    opacity: 0.9;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: scale(5);
  }
}

.f-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 1.125rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.f-quick > span {
  margin-right: 0.25rem;
}

.f-quick a {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  height: 1.875rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--glass-opaque) 55%, transparent);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease-out;
}

.f-quick a:hover {
  background: var(--glass-solid);
}

.f-quick small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* The site in figures */

.f-stats {
  max-width: calc(var(--wide) + var(--page) * 2);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--page) 0;
}

.f-stats__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem 0;
  margin: 0;
}

.f-stats__row div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 0.25rem 1.25rem;
  border-left: 1px solid var(--hair);
}

.f-stats__row dd {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.f-stats__row dt {
  max-width: 20ch;
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

.f-histogram__note {
  margin: -0.75rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* For whoever runs a water: what to do, and the three things that happen next */

.f-owner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: 2rem;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.f-owner__copy .f-big {
  margin-top: 1.75rem;
}

.f-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.f-steps li {
  position: relative;
  padding: 1.25rem 0 1.25rem 3.5rem;
  counter-increment: step;
}

.f-steps li + li {
  border-top: 1px solid var(--hair);
}

.f-steps li::before {
  content: counter(step);
  position: absolute;
  top: 1.125rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.f-steps h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.f-steps p {
  max-width: 40ch;
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* The end band's water, and the foot of the page */

.f-end {
  position: relative;
  overflow: hidden;
}

.f-end > :not(.f-end__water) {
  position: relative;
}

.f-end__water {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 4.5rem;
  fill: rgb(255 255 255 / 0.1);
  animation: f-drift 22s linear infinite;
}

.f-foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: calc(var(--wide) + var(--page) * 2);
  margin: 0 auto;
  padding: 3.5rem var(--page) 2.25rem;
}

.f-foot__brand p {
  max-width: 34ch;
  margin: 0.875rem 0 0;
  color: var(--muted);
}

.f-foot__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.f-foot__links h2 {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.f-foot__links a {
  color: var(--ink);
  text-decoration: none;
}

.f-foot__links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.f-foot__credit {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 0.8125rem;
}

.f-foot__credit a {
  color: inherit;
}

/* The page arrives once: the words rise, then the wheel swings in on its own */

@media (prefers-reduced-motion: no-preference) {
  .f-hero__copy > * {
    animation: f-rise 800ms var(--ease) backwards;
  }
  .f-hero__copy > h1 {
    animation-delay: 60ms;
  }
  .f-hero__copy > .f-lede {
    animation-delay: 140ms;
  }
  .f-hero__copy > .f-search {
    animation-delay: 220ms;
  }
  .f-pick {
    animation: f-surface 900ms var(--ease) backwards 200ms;
  }
}

@keyframes f-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes f-surface {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .f-float,
  .f-water {
    animation: none;
  }
}

/* Narrower screens */

@media (max-width: 62rem) {
  /* The page's links fold into a menu that drops from the bar */
  .f-menu {
    display: grid;
  }
  .f-bar.is-open {
    background: var(--glass-solid);
    box-shadow:
      var(--shadow-soft),
      inset 0 0 0 1px var(--hair);
  }
  .f-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    display: grid;
    gap: 0.125rem;
    margin: 0;
    padding: 0.5rem;
    border-radius: 1.5rem;
    background: var(--glass-solid);
    box-shadow:
      var(--shadow),
      inset 0 0 0 1px var(--hair);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    backdrop-filter: blur(24px) saturate(170%);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition:
      opacity 180ms ease-out,
      transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s 240ms;
  }
  .f-bar.is-open .f-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .f-nav a {
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    font-size: 1.0625rem;
  }
  .f-bar.is-open .f-menu__a {
    transform: translateY(3.5px) rotate(45deg);
  }
  .f-bar.is-open .f-menu__b {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .f-nav + .f-bar__actions {
    margin-left: auto;
  }
  .f-tile,
  .f-tile--prices,
  .f-tile--forecast {
    grid-column: span 6;
  }
  .f-tile--prices,
  .f-tile--forecast {
    min-height: 0;
  }
  .f-tile__icon {
    margin-bottom: 1.5rem;
  }
  .f-budget {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  body.lp5 {
    --frame: 0.5rem;
  }
  .f-bar {
    gap: 0.5rem;
    padding-left: 0.875rem;
  }
  .f-bar__link,
  .f-brand span {
    display: none;
  }
  .f-nav .f-nav__extra {
    display: block;
  }
  .f-hero {
    min-height: max(42rem, calc(100svh - var(--wip-height) - var(--frame) * 2));
    border-radius: 1.5rem;
  }
  .f-search {
    height: 3.5rem;
    padding-left: 1rem;
  }
  .f-search__key,
  .f-search__go span {
    display: none;
  }
  .f-search__go {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    justify-content: center;
  }
  .f-search input {
    font-size: 1rem;
  }
  .f-wheel {
    bottom: 17rem;
  }
  .f-pick {
    padding: 0.875rem 0.25rem 0.75rem;
    border-radius: 1.375rem;
  }
  .f-pick .f-fish {
    width: 2.5rem;
  }
  .f-pick strong {
    font-size: 0.8125rem;
  }
  .f-pick span {
    font-size: 0.6875rem;
  }
  .f-pills {
    flex-wrap: nowrap;
    margin: 0 calc(var(--page) * -1);
    padding: 0 var(--page);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .f-pills button {
    flex: none;
  }
  .f-budget .f-pills {
    margin-top: 1.5rem;
  }
  .f-end {
    border-radius: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .f-ripple,
  .f-end__water {
    animation: none;
  }
}

@media (max-width: 62rem) {
  .f-owner {
    grid-template-columns: 1fr;
  }
  .f-vignette {
    min-height: 0;
  }
  .f-foot {
    grid-template-columns: 1fr 1fr;
  }
  .f-foot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 40rem) {
  .f-hero__sun {
    top: 6.25rem;
    right: -1.25rem;
  }
  .f-stats__row {
    grid-template-columns: 1fr 1fr;
  }
  .f-owner {
    border-radius: 1.5rem;
  }
}

/* The redesigned parts on narrower screens */

@media (prefers-reduced-motion: no-preference) {
  .f-cards li {
    animation: g-arrive 420ms var(--ease) backwards;
    animation-delay: calc(var(--i) * 45ms);
  }
}

@keyframes g-arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 62rem) {
  .g-tile--forecast,
  .g-tile--reviews,
  .g-tile--prices,
  .g-tile--open {
    grid-column: span 12;
    min-height: 0;
  }
}

@media (max-width: 52rem) {
  .g-when {
    grid-template-columns: minmax(0, 1fr);
  }
  .g-now {
    min-height: 0;
  }
  .g-now__band {
    padding-top: 1rem;
  }
  .g-days {
    grid-auto-columns: minmax(3.5rem, 1fr);
  }
}

@media (max-width: 40rem) {
  .f-pills {
    margin: 0;
    padding: 0.25rem;
  }
  .g-when {
    border-radius: 1.75rem;
  }
  .g-when__key span:first-child {
    display: none;
  }
  .g-deep {
    border-radius: 1.5rem;
  }
  .g-deep__inner {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
  .g-deep__head {
    padding: 0 0.5rem;
  }
  .g-tile {
    padding: 1.25rem;
  }
  .g-fishes li {
    grid-template-columns: 1.625rem 4.5rem 1fr;
  }
  .g-fishes__band {
    display: none;
  }
}
