/* Hallmark · custom direction (brand given: night ground, amber, Reem Kufi + IBM Plex) · genre atmospheric · hero: Poster, centred over the sky by request · nav: wordmark and two links by choice · footer: one line of thanks and links · signature: the real sky capture with the prayer arc *//* Design tokens for the Samakum site. Every colour, font family, spacing
   step and corner radius used by main.css is declared here, once.
   Fonts are self-hosted (SIL Open Font License, see src/fonts/OFL-*.txt);
   the site makes no request to any other host. */

@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/_astro/reem-kufi-latin-500-normal.BQCKG746.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/_astro/reem-kufi-arabic-500-normal.CI8P0nls.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/_astro/reem-kufi-latin-600-normal.D3q9CKj_.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/_astro/reem-kufi-arabic-600-normal.DfPr_Olo.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/_astro/ibm-plex-sans-latin-400-normal.CDDApCn2.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/_astro/ibm-plex-sans-latin-500-normal.6ng42L7E.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/_astro/ibm-plex-sans-latin-600-normal.CuJfVYMP.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/_astro/ibm-plex-sans-arabic-latin-400-normal.Bo5KPYvw.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/_astro/ibm-plex-sans-arabic-arabic-400-normal.CyU-ddYS.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/_astro/ibm-plex-sans-arabic-latin-500-normal.Cd6jVIg7.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/_astro/ibm-plex-sans-arabic-arabic-500-normal.C4MQITzh.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/_astro/ibm-plex-sans-arabic-latin-600-normal.KrqB56Mw.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/_astro/ibm-plex-sans-arabic-arabic-600-normal.0pRdybE_.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

:root {
  /* Colour */
  --color-ground: #101626;
  --color-ink: #F4F1EA;
  --color-muted: #B4BACB;
  /* Words over the hero's daylight sky, when the light ink would not read. */
  --color-ink-day: #060912;
  --color-accent: #F2B56B;
  --color-on-accent: #101626;
  --color-hairline: rgba(244, 241, 234, 0.14);
  --color-dotted: rgba(244, 241, 234, 0.4);
  --color-ground-clear: rgba(16, 22, 38, 0);
  /* The two extra colours of the app icon in the header. */
  --color-icon-top: #16233F;
  --color-icon-mid: #8A4A66;

  /* Type */
  --font-display: 'Reem Kufi', 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-body-ar: 'IBM Plex Sans Arabic', 'Geeza Pro', system-ui, sans-serif;

  /* Space (named by their size in pixels) */
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-22: 22px;
  --space-24: 24px;
  --space-26: 26px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-72: 72px;
  --space-80: 80px;
  --space-96: 96px;
  --space-120: 120px;
  --space-128: 128px;

  /* Corner radius by role */
  --radius-shot: 8px;
  --radius-tile: 18px;
  --radius-button: 10px;
  --radius-icon: 9px;

  /* Layout */
  --container: 1280px;
  --gutter: var(--space-32);
  --focus-ring: 3px solid var(--color-accent);
}

@media (max-width: 699.98px) {
  :root {
    --gutter: var(--space-20);
  }
}

/* Layout sizes: phone under 700px, tablet 700 to 1099px, desktop from 1100px. */

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

html,
body {
  overflow-x: clip;
}

html {
  background: var(--color-ground);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-ground);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

/* Text in the other language (the language links) uses its own font. */
[lang='ar'] {
  font-family: var(--font-body-ar);
}

[lang='en'] {
  font-family: var(--font-body);
}

html[lang='ar'] body {
  font-family: var(--font-body-ar);
  font-size: 18px;
  line-height: 1.75;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  overflow-wrap: break-word;
  text-wrap: balance;
  min-width: 0;
}

::selection {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

html[lang='ar'] h1,
html[lang='ar'] h2 {
  font-weight: 600;
}

h2 {
  font-size: 44px;
  line-height: 1.15;
}

html[lang='ar'] h2 {
  line-height: 1.3;
}

p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

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

a {
  color: var(--color-ink);
  transition: color 150ms ease, background-color 150ms ease;
}

a:hover {
  color: var(--color-accent);
}

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

main:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  a,
  .btn {
    transition: none;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Skip link: off screen until focused. */
.skip-link {
  position: absolute;
  z-index: 10;
  inset-inline-start: var(--space-16);
  top: var(--space-8);
  padding: var(--space-10) var(--space-16);
  border-radius: var(--radius-button);
  background: var(--color-ground);
  color: var(--color-ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-16);
  padding-block: var(--space-28);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  min-height: 44px;
  text-decoration: none;
  color: var(--color-ink);
}

.logo {
  display: block;
  flex: none;
  border-radius: var(--radius-icon);
}

.logo-stop-top {
  stop-color: var(--color-icon-top);
}

.logo-stop-mid {
  stop-color: var(--color-icon-mid);
}

.logo-stop-low {
  stop-color: var(--color-accent);
}

.logo-ring {
  fill: none;
  stroke: var(--color-ink);
  stroke-opacity: 0.3;
}

.logo-sun {
  fill: var(--color-accent);
}

.logo-moon {
  fill: var(--color-ink);
}

.logo-ground {
  fill: var(--color-ground);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
}

html[lang='ar'] .wordmark {
  font-size: 26px;
  letter-spacing: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-28);
  font-size: 16px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-26);
  border-radius: var(--radius-button);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

html[lang='ar'] .btn {
  font-size: 18px;
}

.btn:hover,
.btn:active {
  background: var(--color-ink);
  color: var(--color-on-accent);
}

a:active {
  color: var(--color-accent);
}

.btn-disabled,
.btn-disabled:hover {
  background: var(--color-ground);
  color: var(--color-muted);
  border: 1px dotted var(--color-dotted);
  cursor: default;
}

.cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-18);
}

.cta-note {
  font-size: 16px;
  color: var(--color-muted);
}

/* By default the Mac button shows; phones get "Send the link to my Mac". */
.btn-share,
.note-phone {
  display: none;
}

@media (max-width: 699.98px), (hover: none) and (pointer: coarse) and (max-width: 1099.98px) {
  .btn-mac,
  .note-mac {
    display: none;
  }

  .btn-share,
  .note-phone {
    display: inline-flex;
  }
}

/* The same on a computer that is not a Mac; the share script marks it. */
.not-mac .btn-mac,
.not-mac .note-mac {
  display: none;
}

.not-mac .btn-share,
.not-mac .note-phone {
  display: inline-flex;
}

/* Once Windows is public (src/lib/windows.ts), Windows gets the Microsoft
   Store button in place of the Mac one, at any width: a narrow window on a
   PC is still a PC. The share script marks it (Ahmed, 5 December 2026). */
.btn-win,
.note-win {
  display: none;
}

.os-windows .btn-mac,
.os-windows .note-mac,
.os-windows .btn-share,
.os-windows .note-phone,
.os-windows .install-mac {
  display: none;
}

.os-windows .btn-win,
.os-windows .note-win {
  display: inline-flex;
}

/* Mac and Windows side by side above the final download. */
.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-24);
  align-self: stretch;
  margin-top: var(--space-8);
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
  padding: var(--space-32);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-tile);
}

.platform-name {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}

.platform-icon {
  width: 28px;
  height: 28px;
  flex: none;
  fill: var(--color-ink);
}

.platform-needs {
  margin: 0;
  font-size: 16px;
  color: var(--color-muted);
}

.platform .btn {
  margin-block: var(--space-4);
}

.platforms-share .btn-share {
  margin-top: var(--space-24);
}

/* Phones, and computers that are neither a Mac nor Windows, get "Send the
   link to my computer" in place of the two platform buttons. */
@media (max-width: 699.98px), (hover: none) and (pointer: coarse) and (max-width: 1099.98px) {
  .btn-platform {
    display: none;
  }
}

.not-mac .btn-platform {
  display: none;
}

.os-windows .btn-platform {
  display: inline-flex;
}

@media (max-width: 699.98px) {
  .platforms {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-16);
  }

  .platform {
    padding: var(--space-20);
  }

  .platform-name {
    font-size: 22px;
  }

  .platform-icon {
    width: 24px;
    height: 24px;
  }
}

/* Hero */

.hero {
  position: relative;
}

/* The day sequence. The script gives the track its height and turns
   "is-live" on; without it the hero is a still picture, as before. While
   live, the hero holds in place and the script swaps real captures of one
   Cairo day as the page scrolls. Nothing here animates: every change is
   drawn in step with the scroll position. */
.hero-track.is-live .hero {
  position: sticky;
  top: var(--hero-pin, 0px);
}

.hero-text {
  padding: var(--space-40) var(--gutter);
}

.hero-copy {
  max-width: 1100px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-16);
}

.hero h1 {
  font-size: 46px;
  line-height: 1.1;
}

.hero h1,
.hero-sentence,
.hero .cta-note {
  transition: color 200ms ease;
}

html[lang='ar'] .hero h1 {
  line-height: 1.25;
}

.hero-sentence {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.45;
}

html[lang='ar'] .hero-sentence {
  line-height: 1.6;
}

.cta-hero {
  justify-content: center;
  padding-top: var(--space-6);
}

.hero-media {
  position: relative;
  aspect-ratio: 3456 / 2234;
  overflow: hidden;
}

.hero-img,
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Two still pictures share the box. The first frame of the day shows by
   default, so the sequence starts from what is already on screen. Visitors
   who ask for less motion get the Maghrib picture instead and no sequence. */
.hero-media picture {
  display: none;
}

.hero-canvas {
  visibility: hidden;
}

.hero-track.is-live .hero-canvas.is-ready {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media picture {
    display: block;
  }

  .hero-dawn,
  .hero-canvas {
    display: none;
  }

  .hero h1,
  .hero-sentence,
  .hero .cta-note {
    transition: none;
  }
}

/* The only gradient on the site: the short fade from the picture into the ground. */
.hero-media::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, var(--color-ground-clear), var(--color-ground));
  pointer-events: none;
}

@media (min-width: 1100px) {
  .site-header-over {
    position: absolute;
    z-index: 2;
    top: 0;
    inset-inline: 0;
  }

  /* The sky keeps the app's screen shape, but never grows taller than the
     window: in a wide, short window (a laptop with the Dock showing) a
     full-shape sky did not fit, so the day did not play at all. The
     drawing stretches to the box as the app stretches it to a screen. */
  .hero {
    aspect-ratio: 3456 / 2234;
    overflow: hidden;
  }

  @supports (height: 1cqi) {
    .hero-track {
      container-type: inline-size;
    }

    .hero {
      aspect-ratio: auto;
      height: min(calc(100cqi * 2234 / 3456), max(100vh, 760px));
    }
  }

  .hero-media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  /* The headline block sits at the top of the sky. Its bottom edge clears
     the Dhuhr mark (the top of the sun's path, 37% down the picture) and
     the three-line label the app puts above that mark before noon, so it
     never covers the path, the marks, their labels, the sun or the moon.
     In a short sky it would run into the header, so it never starts above
     the header's bottom ("safe") and grows down towards the path instead;
     the sky's 760px floor keeps it clear of the sun at noon. */
  .hero-text {
    position: absolute;
    z-index: 1;
    inset-inline: 0;
    top: var(--space-80);
    bottom: calc(72.6% + var(--space-8));
    display: flex;
    flex-direction: column;
    justify-content: safe flex-end;
    padding-block: 0;
  }

  .hero-copy {
    gap: var(--space-14);
  }

  html[lang='ar'] .hero-copy {
    gap: var(--space-10);
  }

  .hero h1 {
    font-size: clamp(34px, 3.7vw, 54px);
  }

  .hero-sentence {
    max-width: 1000px;
    font-size: clamp(16px, 1.3vw, 19px);
  }

  html[lang='ar'] .hero-sentence {
    font-size: clamp(16px, 1.35vw, 20px);
  }

  .hero .note-mac,
  .hero .note-win,
  .hero .note-phone {
    color: var(--color-ink);
  }

  /* In daylight each line turns dark when the sky behind it is bright,
     as the app's own labels do. The script sets these from the frame. */
  .hero[data-ink-h='d'] h1,
  .hero[data-ink-s='d'] .hero-sentence,
  .hero[data-ink-n='d'] .note-mac,
  .hero[data-ink-n='d'] .note-win,
  .hero[data-ink-n='d'] .note-phone {
    color: var(--color-ink-day);
  }
}

@media (min-width: 1100px) and (max-width: 1279.98px) {
  .site-header-over {
    padding-block: var(--space-20);
  }
}

/* Sections */

.section {
  padding-top: var(--space-120);
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-24) var(--space-80);
}

.section-head h2 {
  flex: 1 1 380px;
}

.section-head p {
  flex: 1 1 380px;
  max-width: 520px;
  color: var(--color-muted);
}

.section-head-wide + .tiles {
  margin-top: var(--space-8);
}

.shot {
  width: 100%;
  height: auto;
  border-radius: var(--radius-shot);
}

/* The row after the hero: three things in one glance. */

.only {
  padding-top: var(--space-80);
}

.only-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-32);
}

.only-list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  min-width: 0;
}

.only-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-shot);
}

.only-words {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.only-title {
  font-weight: 600;
  font-size: 20px;
  color: var(--color-ink);
}

.only-text {
  color: var(--color-muted);
}

/* Prayer list */

.prayers {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-20) var(--space-24);
}

.prayers li {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-12);
  border-top: 1px dotted var(--color-dotted);
  font-size: 16px;
}

.prayer-name {
  font-weight: 600;
  color: var(--color-accent);
}

.prayer-text {
  color: var(--color-muted);
}

/* Menu bar popover */

.menu {
  display: grid;
  grid-template-columns: 346px minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1fr;
  gap: var(--space-28) var(--space-96);
}

.menu picture {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
}

.popover-img {
  width: 346px;
  max-width: 100%;
  height: auto;
}

.menu h2 {
  grid-column: 2;
  grid-row: 2;
  max-width: 520px;
}

.menu-list {
  grid-column: 2;
  grid-row: 3;
}

.menu-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-32);
  padding-block: var(--space-18);
  border-top: 1px solid var(--color-hairline);
}

.menu-row:last-child {
  border-bottom: 1px solid var(--color-hairline);
}

.menu-row dt {
  flex: 0 0 200px;
  font-weight: 600;
}

.menu-row dd {
  flex: 1 1 280px;
  color: var(--color-muted);
}

/* Sky only and landmarks */

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-24);
}

.shot-figure {
  display: flex;
  flex-direction: column;
  gap: var(--space-14);
  min-width: 0;
}

.shot-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-4) var(--space-14);
  padding-top: var(--space-12);
  border-top: 1px dotted var(--color-dotted);
  font-size: 16px;
}

.shot-time {
  color: var(--color-accent);
}

html[lang='ar'] .shot-time {
  font-weight: 500;
}

.shot-caption {
  color: var(--color-muted);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-16);
}

.tile-figure {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  min-width: 0;
}

.tile {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius-tile);
}

.tile-more {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dotted var(--color-dotted);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-accent);
}

html[lang='ar'] .tile-more {
  font-size: 24px;
}

.tile-figure figcaption,
.tile-caption {
  font-size: 16px;
  color: var(--color-muted);
}

/* Privacy */

.privacy-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-24) var(--space-48);
}

.privacy-list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-top: var(--space-18);
  border-top: 1px solid var(--color-hairline);
}

.privacy-title {
  font-weight: 600;
  font-size: 20px;
}

.privacy-text {
  color: var(--color-muted);
}

/* Questions */

.faq {
  display: grid;
  grid-template-columns: 346px minmax(0, 1fr);
  gap: var(--space-32) var(--space-96);
  align-items: start;
}

.faq-list details {
  border-top: 1px solid var(--color-hairline);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--color-hairline);
}

.faq-list summary {
  min-height: 44px;
  padding-block: var(--space-18);
  font-weight: 600;
  cursor: pointer;
}

.faq-list details p {
  max-width: 620px;
  margin-top: calc(var(--space-8) * -1);
  padding-bottom: var(--space-18);
  color: var(--color-muted);
}

/* Final download */

.final {
  padding-top: var(--space-128);
  padding-bottom: var(--space-96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-22);
}

.final h2 {
  max-width: 720px;
  font-size: 58px;
  line-height: 1.1;
}

html[lang='ar'] .final h2 {
  line-height: 1.25;
}

.install {
  max-width: 520px;
  font-size: 16px;
  color: var(--color-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-hairline);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-28) var(--space-32);
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
  font-size: 16px;
  color: var(--color-muted);
}

.credits {
  grid-column: 1 / -1;
  max-width: 620px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-28);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-muted);
}

.footer-nav a:hover {
  color: var(--color-accent);
}

/* Plain pages: privacy and 404 */

.plain {
  padding-top: var(--space-64);
  padding-bottom: var(--space-120);
}

.plain h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: var(--space-32);
}

html[lang='ar'] .plain h1 {
  line-height: 1.3;
}

.prose {
  max-width: 680px;
}

.prose h2 {
  font-size: 26px;
  line-height: 1.3;
  margin-top: var(--space-40);
  margin-bottom: var(--space-12);
}

.prose p,
.prose ul {
  margin-bottom: var(--space-16);
}

.prose p,
.prose li {
  color: var(--color-muted);
}

.prose strong {
  color: var(--color-ink);
  font-weight: 600;
}

.prose ul {
  padding-inline-start: var(--space-24);
}

.prose li + li {
  margin-top: var(--space-8);
}

.not-found-block + .not-found-block {
  margin-top: var(--space-64);
  padding-top: var(--space-48);
  border-top: 1px solid var(--color-hairline);
}

.not-found-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.3;
  margin-bottom: var(--space-16);
}

.not-found-block p {
  color: var(--color-muted);
  margin-bottom: var(--space-24);
}

/* Tablet and phone: the sky first, the headline and button under it. */

@media (max-width: 1099.98px) {
  .site-header {
    padding-block: var(--space-20);
  }

  .hero .cta-note {
    color: var(--color-muted);
  }

  /* On a phone, a tablet and a small window the sky fills the first screen from the very top, with the
     header over it, and the words sit on the dark ground under the
     horizon. The picture takes whatever height the words leave; the script
     slides the view to follow the sun, then the moon. The two stills sit
     where their sun is: dawn at the left, Maghrib at the right. */
  .site-header-over {
    position: absolute;
    z-index: 2;
    top: 0;
    inset-inline: 0;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }

  .hero-media {
    order: -1;
    flex: 1 1 auto;
    min-height: 300px;
    aspect-ratio: auto;
  }

  .hero-media::after {
    height: 96px;
  }

  .hero-text {
    position: relative;
    z-index: 1;
    margin-top: calc(var(--space-40) * -1);
    padding-top: 0;
  }

  .hero-dawn {
    object-position: 0% 50%;
  }

  .hero-dusk {
    object-position: 100% 50%;
  }

  .hero-dusk-left {
    object-position: 0% 50%;
  }

  .only-list {
    gap: var(--space-20);
  }

  .shots {
    gap: var(--space-16);
  }

  .prayers {
    gap: var(--space-20) var(--space-16);
  }

  .menu {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: var(--space-28) var(--space-40);
  }

  .popover-img {
    width: 300px;
  }

  .menu-row dt {
    flex-basis: 100%;
  }

  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phone */

@media (max-width: 699.98px) {
  body {
    font-size: 17px;
  }

  html[lang='ar'] body {
    font-size: 17px;
  }

  .site-header {
    flex-wrap: nowrap;
    padding-block: var(--space-16);
  }

  .logo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-shot);
  }

  .brand {
    gap: var(--space-10);
  }

  .wordmark {
    font-size: 21px;
  }

  html[lang='ar'] .wordmark {
    font-size: 23px;
  }

  .site-nav .nav-download {
    display: none;
  }

  h2 {
    font-size: 28px;
    line-height: 1.3;
  }

  html[lang='ar'] h2 {
    line-height: 1.35;
  }

  .hero-text {
    padding: var(--space-24) var(--gutter) var(--space-28);
  }

  .hero-copy {
    align-items: stretch;
    text-align: start;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.15;
  }

  html[lang='ar'] .hero h1 {
    line-height: 1.3;
  }

  .hero-sentence {
    font-size: 17px;
    line-height: inherit;
    color: var(--color-muted);
  }

  html[lang='ar'] .hero-sentence {
    line-height: inherit;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-16);
  }

  .cta-hero {
    padding-top: var(--space-6);
  }

  .btn-share {
    min-height: 52px;
  }

  .only {
    padding-top: var(--space-48);
  }

  .only-list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-24);
  }

  .only-list li {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-16);
  }

  .only-title {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .section {
    padding-top: var(--space-64);
    gap: var(--space-20);
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-20);
  }

  .section-head h2,
  .section-head p {
    flex: none;
  }

  /* The path picture runs edge to edge on a phone. */
  .shot-bleed {
    width: calc(100% + 2 * var(--gutter));
    max-width: none;
    margin-inline: calc(var(--gutter) * -1);
    border-radius: 0;
  }

  .prayers {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .prayers li {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-16);
    padding-block: var(--space-12);
  }

  .prayer-name {
    flex: 0 0 80px;
  }

  html[lang='ar'] .prayer-name {
    flex-basis: 64px;
  }

  .menu {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: var(--space-24);
  }

  .menu h2 {
    grid-column: 1;
    grid-row: 1;
  }

  .menu picture {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
  }

  .menu-list {
    grid-column: 1;
    grid-row: 3;
  }

  .popover-img {
    width: 280px;
  }

  .menu-row {
    display: block;
    padding-block: var(--space-14);
  }

  /* Picture rows become sideways strips that snap. */
  .strip {
    display: flex;
    gap: var(--space-12);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) var(--space-8);
    margin-top: var(--space-4);
  }

  .strip > * {
    scroll-snap-align: start;
  }

  .shot-figure {
    flex: 0 0 300px;
    gap: var(--space-8);
  }

  .shot-figure figcaption {
    padding-top: 0;
    border-top: 0;
    gap: var(--space-12);
  }

  .tile-figure {
    flex: 0 0 200px;
    gap: var(--space-6);
  }

  .privacy-title {
    font-size: 18px;
  }

  .faq {
    gap: var(--space-16);
  }

  .faq-list summary {
    padding-block: var(--space-14);
  }

  .faq-list details p {
    margin-top: calc(var(--space-6) * -1);
    padding-bottom: var(--space-14);
  }

  .final {
    padding-top: var(--space-72);
    padding-bottom: var(--space-56);
    align-items: stretch;
    gap: var(--space-16);
  }

  .final h2 {
    font-size: 34px;
    line-height: 1.3;
  }

  .install {
    display: none;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding-top: var(--space-20);
    padding-bottom: var(--space-32);
  }

  .credits {
    margin-bottom: var(--space-8);
  }

  .footer-nav {
    gap: 0 var(--space-24);
  }

  .copyright {
    order: 1;
  }

  .plain h1 {
    font-size: 34px;
  }
}

/* A link under a section, to a page with more. */

.more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Feedback form */

.feedback {
  display: grid;
  grid-template-columns: 346px minmax(0, 1fr);
  gap: var(--space-32) var(--space-96);
  align-items: start;
  padding-bottom: var(--space-96);
}

.feedback-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.feedback-head p {
  color: var(--color-muted);
}

.feedback-head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  max-width: 620px;
}

.feedback-form[hidden] {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  font-weight: 600;
}

.field textarea,
.field input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-12) var(--space-14);
  border: 1px solid var(--color-dotted);
  border-radius: var(--radius-button);
  background: var(--color-ground);
  color: var(--color-ink);
  font: inherit;
  font-weight: 400;
}

.field textarea {
  resize: vertical;
}

.feedback-send {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-18);
}

.feedback-send .btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.feedback-send .btn:disabled {
  background: var(--color-ground);
  color: var(--color-muted);
  border: 1px dotted var(--color-dotted);
  cursor: default;
}

.feedback-status,
.feedback-note {
  font-size: 16px;
  color: var(--color-muted);
}

@media (max-width: 1099.98px) {
  .feedback {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 699.98px) {
}

/* The live sky: drawn in the page by the web sky engine (SkyLive.astro). */

.live-page {
  padding-top: var(--space-48);
  padding-bottom: var(--space-96);
}

.live {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.live h1 {
  flex: 1 1 380px;
  font-size: 44px;
  line-height: 1.15;
}

html[lang='ar'] .live h1 {
  line-height: 1.3;
}

@media (max-width: 699.98px) {
  .live h1 {
    flex: none;
    font-size: 28px;
    line-height: 1.3;
  }
}

.live-download {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  padding-top: var(--space-72);
}

.only-live {
  margin-top: var(--space-32);
}

.only-live a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.live-locate {
  align-self: flex-start;
}

.live-figure {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.live-frame {
  aspect-ratio: 3456 / 2234;
}

/* The capture and the drawn sky fill the same frame, so the swap never moves the page. */
.live-frame .live-still,
.live-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-shot);
  background: var(--color-icon-top);
}

/* On phones the sky is drawn upright, like the app's phone layout, so its words stay readable. */
@media (max-width: 699.98px) {
  .live-frame {
    aspect-ratio: 4 / 5;
  }
}

.live-canvas[hidden],
.live-still[hidden],
.live-controls[hidden] {
  display: none;
}

.live-caption {
  font-size: 16px;
  color: var(--color-muted);
}

.live-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-20) var(--space-32);
}

.live-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  font-weight: 600;
}

.live-city {
  flex: 1 1 260px;
  max-width: 420px;
}

.live-time {
  flex: 2 1 320px;
}

.live-clock {
  font-weight: 400;
  color: var(--color-muted);
  margin-inline-start: var(--space-8);
}

.live-city input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-12) var(--space-14);
  border: 1px solid var(--color-dotted);
  border-radius: var(--radius-button);
  background: var(--color-ground);
  color: var(--color-ink);
  font: inherit;
  font-weight: 400;
}

.live-time-row {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.live-time-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  accent-color: var(--color-accent);
}

.btn-quiet {
  background: var(--color-ground);
  color: var(--color-ink);
  border: 1px solid var(--color-dotted);
  cursor: pointer;
  font-family: inherit;
}

.live-check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-10);
  min-height: 48px;
  /* Level with the city box and the slider, under their labels. */
  margin-top: var(--space-32);
  cursor: pointer;
}

.live-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--color-accent);
}

.live-status {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-muted);
}

.live-status:empty {
  display: none;
}

/* The Windows page, built once Windows is public (Ahmed, 5 December 2026). */

.windows-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-48);
  padding-top: var(--space-56);
  padding-bottom: var(--space-96);
}

.windows-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-20);
}

.windows-hero .platform-icon {
  width: 40px;
  height: 40px;
}

.windows-hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.1;
}

html[lang='ar'] .windows-hero h1 {
  line-height: 1.3;
}

.windows-needs,
.windows-privacy {
  margin: 0;
  font-size: 16px;
  color: var(--color-muted);
}

.windows-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-shot);
}

.windows-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-32);
  margin: 0;
  padding: 0;
  list-style: none;
}

.windows-facts li {
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-hairline);
}

.windows-facts strong {
  display: block;
  margin-bottom: var(--space-8);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

/* The Store button on computers, "Send the link" on phones. */
.btn-send {
  display: none;
}

@media (max-width: 699.98px), (hover: none) and (pointer: coarse) and (max-width: 1099.98px) {
  .btn-store {
    display: none;
  }

  .btn-send {
    display: inline-flex;
    min-height: 52px;
  }
}

.os-windows .btn-store {
  display: inline-flex;
}

.os-windows .btn-send {
  display: none;
}

@media (max-width: 699.98px) {
  .windows-page {
    gap: var(--space-32);
    padding-top: var(--space-24);
  }

  .windows-hero h1 {
    font-size: 34px;
  }

  .windows-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-16);
  }
}
