/*
 * Ask Your Muslim Neighbour
 * Palette: the fruits named in the Quran (olive, fig, pomegranate, date, grape)
 * plus market greens. Type: Rokkitt (crate-label slab), Source Sans 3
 * (readable for everyone, outdoors, on a phone), Amiri (Arabic).
 */

:root {
  --ink: #1d2a0f;
  --ink-soft: #4a553a;
  --paper: #f3f5ec;
  --paper-2: #e5ead6;
  --line: #cbd3b6;
  --saffron: #f2b33d;
  --hero-text: #dce3c6;
  --hero-soft: #b9c49b;

  /* pamphlet colours */
  --olive: #56661b;
  --night: #283462;
  --leaf: #1d6a47;
  --pomegranate: #a3213a;
  --fig: #56295a;
  --rose: #8e3557;
  --water: #1a6370;
  --date: #6c4322;
  --honey: #e3a21a;

  /* contact tiles */
  --tile-whatsapp: #25d366;
  --tile-text: #f2b33d;
  --tile-call: #f27480;
  --tile-email: #e9eddd;

  --font-display: "Rokkitt", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;

  --gutter: clamp(1rem, 5vw, 2.5rem);
  --measure: 38rem;
  --radius: 6px;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23f2b33d'%3E%3Crect x='5' y='5' width='14' height='14'/%3E%3Crect x='5' y='5' width='14' height='14' transform='rotate(45 12 12)'/%3E%3C/g%3E%3C/svg%3E");
}

/* Each pamphlet colour sets --c (background) and --on-c (text on it). */
.c-olive { --c: var(--olive); --on-c: var(--paper); }
.c-night { --c: var(--night); --on-c: var(--paper); }
.c-leaf { --c: var(--leaf); --on-c: var(--paper); }
.c-pomegranate { --c: var(--pomegranate); --on-c: var(--paper); }
.c-fig { --c: var(--fig); --on-c: var(--paper); }
.c-rose { --c: var(--rose); --on-c: var(--paper); }
.c-water { --c: var(--water); --on-c: var(--paper); }
.c-date { --c: var(--date); --on-c: var(--paper); }
.c-honey { --c: var(--honey); --on-c: var(--ink); }

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font-body);
  overflow-x: hidden;
}

body.has-dock {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

[lang="ar"] {
  font-family: var(--font-arabic);
  font-weight: 400;
}

p {
  margin: 0;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 50;
  padding: 0.5rem 1rem;
  background: var(--saffron);
  color: var(--ink);
  font-weight: 700;
}

.skip:focus {
  left: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

/* the 8-point star; takes the saffron accent, or the text colour on pamphlet pages */
.brand__mark {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  background: var(--saffron);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
}

.topic-head .brand__mark {
  background: currentColor;
}

.brand:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- hero: the contact block ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper);
  padding: 1.1rem 0 2.75rem;
  overflow: hidden;
}

/* khatam pattern: 8-point stars, faint, fading out toward the text */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23f3f5ec' stroke-width='1.2'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 36h16M56 36h16M36 0v16M36 56v16'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
  opacity: 0.07;
  mask-image: linear-gradient(200deg, #000 15%, transparent 65%);
  -webkit-mask-image: linear-gradient(200deg, #000 15%, transparent 65%);
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.hero__jump {
  font-weight: 700;
  text-underline-offset: 0.25em;
}

@media (max-width: 359px) {
  .hero__jump {
    display: none;
  }
}

.hero__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.salam {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  color: var(--hero-soft);
  margin-bottom: 0.75rem;
}

.salam [lang="ar"] {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--saffron);
}

/* Each line is sized so the three lines set flush, like a woodtype poster. */
.hero h1 {
  container-type: inline-size;
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.012em;
  max-width: 34rem;
}

.hero h1 span {
  display: block;
}

/* measured in Rokkitt 800: width / font-size = 3.95, 3.22, 4.51 */
.hero h1 .l1 { font-size: 25.1cqi; }
.hero h1 .l2 { font-size: 30.8cqi; }
.hero h1 .l3 { font-size: 22cqi; }

.hero__intro {
  max-width: 31rem;
  margin-top: 1.25rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--hero-text);
}

.reply-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--hero-soft);
}

@media (min-width: 900px) {
  .hero {
    padding-bottom: 4.5rem;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    align-items: end;
    gap: 4rem;
    margin-top: 4rem;
  }
}

/* contact tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.tile {
  display: flex;
  flex-direction: column;
  min-height: 7.75rem;
  padding: 0.9rem 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--c);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 -5px 0 rgb(0 0 0 / 0.2);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}

.tile:active {
  transform: translateY(3px);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.2);
}

.tile:hover .tile__label {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.12em;
}

.tile__icon svg {
  width: 2.1rem;
  height: 2.1rem;
}

.tile__label {
  margin-top: auto;
  padding-top: 0.75rem;
  font: 800 clamp(1.4rem, 7.4vw, 1.75rem)/1 var(--font-display);
}

.tile__sub {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tile--whatsapp { --c: var(--tile-whatsapp); }
.tile--text { --c: var(--tile-text); }
.tile--call { --c: var(--tile-call); }
.tile--email { --c: var(--tile-email); }

/* if only three methods are set, the last one spans the row */
.tiles .tile:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  min-height: 0;
}

.tiles:empty {
  min-height: 16.2rem;
  border-radius: var(--radius);
  background: rgb(243 245 236 / 0.06);
}

.load-error {
  grid-column: 1 / -1;
  padding: 1rem;
  border: 2px solid var(--saffron);
  border-radius: var(--radius);
}

@media (min-width: 900px) {
  .tile {
    min-height: 10.5rem;
    padding: 1.25rem;
  }

  .tile__sub {
    font-size: 1rem;
  }

  .tile__label {
    font-size: 2.1rem;
  }
}

.extras {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.extras:empty {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.95rem;
  border: 1.5px solid rgb(243 245 236 / 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: 700 0.95rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.pill:hover {
  border-color: var(--paper);
}

.pill svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* ---------- sections ---------- */

.section {
  padding: 3.5rem 0;
}

.section__head {
  max-width: var(--measure);
  margin-bottom: 1.75rem;
}

.section__head h2 {
  font-size: clamp(2rem, 7vw, 2.75rem);
}

.section__head p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .section {
    padding: 5rem 0;
  }
}

/* pamphlet rack */

.rack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.pamphlet {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 12.5rem;
  padding: 0.9rem 0.9rem 1rem;
  border-radius: 3px;
  /* a trifold's front panel: the right third sits a shade darker, like the fold */
  background:
    linear-gradient(90deg, transparent 0 68%, rgb(0 0 0 / 0.1) 68% 100%),
    var(--c);
  color: var(--on-c);
  text-decoration: none;
}

.pamphlet__ar {
  align-self: flex-end;
  font-size: 1.85rem;
  line-height: 1.3;
}

.pamphlet__title {
  margin-top: auto;
  padding-top: 1.25rem;
  font: 800 clamp(1.2rem, 6.4vw, 1.45rem)/1.02 var(--font-display);
}

.pamphlet__blurb {
  display: none;
  margin-top: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* nine pamphlets in two columns: the last one takes the full row */
@media (max-width: 639px) {
  .rack .pamphlet:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 9rem;
  }
}

.pamphlet:hover .pamphlet__title {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.12em;
}

@media (min-width: 640px) {
  .rack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .pamphlet {
    min-height: 16rem;
    padding: 1.15rem 1.25rem 1.3rem;
  }

  .pamphlet__ar {
    font-size: 2.3rem;
  }

  .pamphlet__title {
    font-size: 1.75rem;
  }

  .pamphlet__blurb {
    display: block;
    max-width: 22ch;
  }
}

/* why "neighbour" */

.neighbour {
  background: var(--paper-2);
}

.neighbour__quote {
  margin: 0;
  max-width: 44rem;
}

.neighbour__quote p {
  font: 700 clamp(1.7rem, 6vw, 2.6rem)/1.15 var(--font-display);
  text-wrap: balance;
}

.neighbour__quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--ink-soft);
}

.neighbour__body {
  max-width: var(--measure);
  margin-top: 1.75rem;
}

.neighbour__body p + p {
  margin-top: 1rem;
}

/* questions we hear a lot */

.faq {
  max-width: 46rem;
  border-bottom: 1.5px solid var(--line);
}

.faq details {
  border-top: 1.5px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1.05rem 2.75rem 1.05rem 0;
  font: 700 1.4rem/1.2 var(--font-display);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: -0.55rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2.5px 100% no-repeat;
  transition: transform 160ms ease-out;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  max-width: var(--measure);
  padding-bottom: 1.35rem;
}

.faq__answer p + p {
  margin-top: 0.75rem;
}

.faq__answer a {
  font-weight: 700;
}

/* market */

.market {
  background: var(--olive);
  color: var(--paper);
}

.market .ayah {
  max-width: 40rem;
  margin: 0 0 2.5rem;
}

.market .ayah p {
  font: 500 clamp(1.4rem, 4.6vw, 1.9rem)/1.3 var(--font-display);
}

.market .ayah cite,
.market .ayah cite a {
  color: #dfe6c4;
}

.market h2 {
  font-size: clamp(2rem, 7vw, 2.75rem);
}

.market__facts {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  max-width: 44rem;
}

.market__facts div {
  display: grid;
  gap: 0.1rem;
}

.market__facts dt {
  font-weight: 700;
  color: #dfe6c4;
}

.market__facts dd {
  margin: 0;
  font-size: 1.2rem;
}

@media (min-width: 700px) {
  .market__facts {
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 2rem;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* resources */

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

.resources li {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--line);
}

.resources a {
  font: 700 1.4rem/1.2 var(--font-display);
}

.resources li > span {
  color: var(--ink-soft);
}

.watch {
  margin-top: 3rem;
}

.watch__title {
  margin-bottom: 1.25rem;
  font-size: clamp(1.6rem, 5.5vw, 2rem);
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.video-link svg {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  color: #e00;
}

@media (min-width: 700px) {
  .resources {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }
}

/* ---------- topic pages ---------- */

.topic-head {
  background: var(--c);
  color: var(--on-c);
  padding: 1.1rem 0 2.5rem;
}

.topic-head .brand {
  font-size: 0.95rem;
}

.topic-head__ar {
  margin-top: 2rem;
  font-size: clamp(2.6rem, 11vw, 4rem);
  line-height: 1.25;
}

.topic-head h1 {
  margin-top: 0.5rem;
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  line-height: 0.95;
  max-width: 14ch;
}

.lede {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .topic-head {
    padding-bottom: 4rem;
  }

  .topic-head__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 0 3rem;
  }

  .topic-head__ar {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    font-size: 6.5rem;
  }

  .topic-head h1,
  .lede {
    grid-column: 1;
  }
}

.prose {
  max-width: var(--measure);
  padding: 2.5rem 0 3rem;
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.75rem, 6vw, 2.15rem);
  line-height: 1.1;
}

.prose h2 + * {
  margin-top: 0.75rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose li::marker {
  color: var(--c);
  font-weight: 700;
}

.prose strong {
  font-weight: 700;
}

.prose a {
  font-weight: 700;
  text-decoration-color: var(--c);
}

.note {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 1rem;
}

/* Quran quotes carry the ornate brackets used around verses in print. */
.ayah {
  margin: 2rem 0;
  padding: 0;
}

.ayah p {
  font: 500 1.35rem/1.4 var(--font-display);
}

.ayah p::before,
.ayah p::after {
  font-family: var(--font-arabic);
  font-size: 1.15em;
  line-height: 0;
  color: var(--c, var(--saffron));
}

.ayah p::before {
  content: "\FD3E\00a0";
}

.ayah p::after {
  content: "\00a0\FD3F";
}

.ayah cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.ayah cite a {
  font-weight: 400;
}

.market .ayah p::before,
.market .ayah p::after {
  color: var(--saffron);
}

/* sayings of the Prophet ﷺ */
.hadith {
  margin: 2rem 0;
  padding: 1.15rem 1.25rem;
  border-left: 5px solid var(--c);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper-2);
}

.hadith p {
  font-size: 1.15rem;
}

.hadith cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* simple timeline (Prophet Muhammad ﷺ page) */
.timeline {
  list-style: none;
  padding: 0 !important;
  border-left: 3px solid var(--c);
}

.timeline li {
  position: relative;
  padding: 0 0 0.25rem 1.25rem;
}

.timeline li + li {
  margin-top: 1.1rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--c);
}

.timeline b {
  display: block;
  font: 800 1.3rem/1.1 var(--font-display);
}

/* names of God */
.names {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  list-style: none;
  padding: 0 !important;
}

.names li {
  margin: 0 !important;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--c);
  color: var(--on-c);
}

.names [lang="ar"] {
  display: block;
  font-size: 2rem;
  line-height: 1.3;
}

.names b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.names span:last-child {
  font-size: 0.95rem;
}

/* shahada */
.shahada {
  margin: 2rem 0;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.shahada [lang="ar"] {
  display: block;
  font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  line-height: 1.7;
  color: var(--saffron);
}

.shahada i {
  display: block;
  margin-top: 0.85rem;
  color: var(--hero-text);
}

.shahada p:last-child {
  margin-top: 0.85rem;
  font: 700 1.35rem/1.3 var(--font-display);
}

/* "ask about this" block at the end of each pamphlet */
.ask {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper);
  padding: 2.75rem 0 3rem;
  border-top: 8px solid var(--c);
}

.ask__inner {
  display: grid;
  gap: 1.5rem;
}

.ask h2 {
  font-size: clamp(2rem, 8vw, 3rem);
}

.ask p {
  margin-top: 0.75rem;
  max-width: 30rem;
  color: var(--hero-text);
}

@media (min-width: 900px) {
  .ask__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }
}

/* keep reading */
.next {
  padding: 3rem 0;
}

.next h2 {
  font-size: 1.9rem;
  margin-bottom: 1.25rem;
}

.next__list {
  display: grid;
  gap: 0.7rem;
}

.next-link {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
  border-radius: 3px;
  background: var(--c);
  color: var(--on-c);
  text-decoration: none;
}

.next-link__title {
  font: 800 1.45rem/1.1 var(--font-display);
}

.next-link__blurb {
  font-size: 0.98rem;
}

.next-link:hover .next-link__title {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
}

@media (min-width: 800px) {
  .next__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- footer ---------- */

.site-foot {
  padding: 2.75rem 0 2.25rem;
  background: var(--ink);
  color: var(--hero-text);
  font-size: 1rem;
}

.foot {
  display: grid;
  gap: 2rem;
}

.foot .brand {
  color: var(--paper);
  font-size: 1.1rem;
}

.foot__about p {
  margin-top: 0.75rem;
  max-width: 24rem;
  color: var(--hero-soft);
}

.foot__head {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  color: var(--paper);
}

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

.foot__list li + li {
  margin-top: 0.35rem;
}

.foot__list a {
  text-decoration: none;
  overflow-wrap: anywhere;
}

.foot__list a:hover {
  text-decoration: underline;
}

.foot__how {
  display: inline-block;
  min-width: 5.5rem;
  color: var(--paper);
  font-weight: 700;
}

@media (min-width: 800px) {
  .foot {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

/* ---------- bottom "Ask us" bar ---------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.45rem 0.4rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 24px rgb(29 42 15 / 0.35);
  transform: translate(-50%, calc(100% + 2rem));
  transition: transform 220ms ease-out;
}

.dock:empty {
  display: none;
}

.dock.is-shown {
  transform: translate(-50%, 0);
}

@media (min-width: 900px) {
  .dock {
    left: auto;
    right: 1.5rem;
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    transform: translateY(calc(100% + 3rem));
  }

  .dock.is-shown {
    transform: translateY(0);
  }
}

.dock__label {
  margin-right: 0.3rem;
  font: 800 1.15rem/1 var(--font-display);
  white-space: nowrap;
}

.dock__btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--c);
  color: var(--ink);
}

.dock__btn svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* ---------- 404 ---------- */

.lost {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  padding: 3rem 0;
}

.lost h1 {
  font-size: clamp(2.6rem, 11vw, 4.5rem);
}

.lost p {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--hero-text);
}

.lost .tiles {
  max-width: 34rem;
  margin-top: 2rem;
}

/* ---------- preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .dock,
  .ask,
  .hero::before {
    display: none;
  }
}
