/* Layout: full-width bands, the top bar, hero, jump bar and the responsive grids. Mobile first. */

/* Aso-oke stripe across the very top of the page. */
.weave {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--blue-deep) 0 22px,
    var(--gold) 22px 27px,
    var(--blue) 27px 47px,
    var(--coral-mark) 47px 50px,
    var(--blue-soft) 50px 62px,
    var(--gold) 62px 64px
  );
}

/* A band spans the full viewport. --card is the colour cards take inside it. */
.band {
  --card: var(--surface);

  padding-block: var(--sp-7);
  padding-inline: var(--gutter);
}

.band.alt {
  --card: var(--bg);

  background: var(--surface);
}

.inner {
  max-width: var(--content-max);
  margin-inline: auto;
  display: grid;
  gap: var(--sp-5);
}

/* ---------- top bar and hero ---------- */

/* Adire eleko backdrop: undyed dots and rings, drawn with gradients so it costs no download. */
.hero-band {
  padding-block: var(--sp-4) var(--sp-7);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at center, var(--dot) 0 1.6px, transparent 2px),
    radial-gradient(circle at center, transparent 0 9px, var(--dot) 9.5px 11px, transparent 11.5px);
  background-size:
    22px 22px,
    44px 44px;
  background-position:
    0 0,
    11px 11px;
  border-bottom: 1px solid var(--line);
  overflow-x: clip; /* the map and its glow may bleed into the margin, never past the screen */
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
}

/* Phones: logo and toggle on one row, the family chip under them. */
.topbar .theme-toggle {
  margin-left: auto;
}

.topbar .family-chip {
  order: 3;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}

a.brand {
  color: inherit;
  text-decoration: none;
}

.brand svg {
  width: 58px;
  height: 40px;
  flex: none;
}

.brand .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1.1;
}

.brand .name small {
  display: block;
  margin-top: 2px;
  font: 600 var(--fs-xs) / 1.2 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero {
  padding-top: var(--sp-6);
  align-items: center;
}

.hero-text {
  display: grid;
  gap: var(--sp-4);
  justify-items: start;
  min-width: 0;
}

.hero .where {
  font-weight: 600;
  color: var(--blue-deep);
}

.hero .lede {
  font-size: var(--fs-md);
  color: var(--text-soft);
}

/* ---------- jump bar: one scrolling row on phones, never several lines ---------- */

.jump {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-inline: var(--gutter);
}

.jump .inner {
  display: flex;
  gap: var(--sp-1);
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.jump .inner::-webkit-scrollbar {
  display: none;
}

.jump a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: var(--sp-3);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
  border-radius: var(--r-md);
}

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

section {
  scroll-margin-top: 56px;
}

.section-head {
  display: grid;
  gap: var(--sp-1);
}

/* ---------- grids: columns are added as the screen widens ---------- */

.items,
.quote-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: minmax(0, 1fr);
}

/* --bp-sm */
@media (min-width: 600px) {
  .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar .family-chip {
    order: 0;
  }
}

/* --bp-md */
@media (min-width: 900px) {
  .band {
    padding-block: var(--sp-8);
  }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--sp-7);
  }
}

/* --bp-lg */
@media (min-width: 1100px) {
  .items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
    align-items: start;
    gap: var(--sp-6);
  }
}
