/* Ketabuk website. Plain CSS: no scripts, no external fonts, nothing loaded from elsewhere. */

:root {
  --bg: #000000;
  --surface: #0b1310;
  --text: #f6f1e6;
  --muted: #a9b0aa;
  --green: #49a380;
  --green-soft: #8fcdb2;
  --green-deep: #1c3b2e;
  --gold: #dfb550;
  --line: rgba(246, 241, 230, 0.12);
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic', sans-serif;
  --naskh: 'Amiri', 'Noto Naskh Arabic', 'Geeza Pro', 'Traditional Arabic', 'Sakkal Majalla', serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

[lang='ar'] body {
  line-height: 1.95;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--green);
}

a:hover {
  color: var(--green-soft);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: #000;
  border-radius: 0.5rem;
}

.skip:focus {
  top: 1rem;
}

/* Top bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-block-end: 1px solid var(--line);
}

.bar-inner,
.footer-inner {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.bar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.bar-nav a {
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}

.bar-nav a:hover,
.bar-nav a[aria-current='page'] {
  color: var(--text);
}

.button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--green);
  color: #04130c;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--green-soft);
  color: #04130c;
  transform: translateY(-1px);
}

.button.small {
  padding: 0.45rem 1.1rem;
}

.bar-nav a.button,
.bar-nav a.button:hover {
  color: #04130c;
}

@media (max-width: 30rem) {
  .bar-nav {
    gap: 0.9rem;
    font-size: 0.875rem;
  }

  .brand span {
    display: none;
  }

  .button.small {
    padding: 0.4rem 0.85rem;
  }
}

/* Home */

main {
  overflow-x: clip;
}

.hero {
  position: relative;
  max-width: 52rem;
  margin-inline: auto;
  padding: 5rem 1.25rem 6rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -4rem -20vw auto;
  height: 46rem;
  background:
    radial-gradient(closest-side at 50% 34%, rgba(73, 163, 128, 0.3), transparent 70%),
    radial-gradient(closest-side at 50% 60%, rgba(223, 181, 80, 0.07), transparent 75%);
  pointer-events: none;
}

.hero-mark {
  display: grid;
  place-items: center;
  width: 12.5rem;
  height: 12.5rem;
  margin: 0 auto 2.5rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(73, 163, 128, 0.2), rgba(73, 163, 128, 0.04) 70%, transparent);
  box-shadow: inset 0 0 0 1px rgba(143, 205, 178, 0.14);
}

.hero-mark img {
  width: 7rem;
  height: 7rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

[lang='ar'] .eyebrow {
  font-size: 0.9375rem;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--serif);
  letter-spacing: -0.01em;
}

[lang='ar'] h1,
[lang='ar'] h2 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(2.25rem, 6.2vw, 4rem);
}

.lead {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
}

.pill {
  display: inline-block;
  margin: 2.5rem 0 0;
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--green-soft);
  font-size: 0.875rem;
}

.verse {
  max-width: 50rem;
  margin-inline: auto;
  padding: 4.5rem 1.25rem;
  text-align: center;
}

.verse::before,
.verse::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  margin-inline: auto;
  background: var(--gold);
  opacity: 0.7;
}

.verse-ar {
  margin: 2.5rem 0;
  font-family: var(--naskh);
  font-size: clamp(1.5rem, 3.6vw, 2.125rem);
  line-height: 2.1;
}

.verse-tr {
  margin: -0.75rem auto 2.5rem;
  max-width: 40rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-style: italic;
}

.band {
  max-width: 68rem;
  margin-inline: auto;
  padding: 5rem 1.25rem;
}

.band h2,
.contact h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.band-lead {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem;
  margin-block-start: 3.5rem;
}

.columns > div {
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--green);
}

.columns h3,
.places h3 {
  margin-block-end: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.columns p,
.places p {
  margin: 0;
  color: var(--muted);
}

.places {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: place;
}

.places li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  column-gap: 1rem;
  padding-block: 1.75rem;
  border-block-start: 1px solid var(--line);
  counter-increment: place;
}

.places li::before {
  content: counter(place);
  grid-row: span 2;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
}

.checks {
  max-width: 40rem;
  margin: 2.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-block: 0.6rem;
  padding-inline-start: 2rem;
}

.checks li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.25rem;
  top: 1.25em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
}

.more {
  color: var(--green-soft);
  font-weight: 600;
}

.verse.closing {
  padding-block: 3rem;
}

.contact {
  max-width: 68rem;
  margin: 2rem auto 0;
  padding: 5rem 1.25rem 6rem;
  text-align: center;
  background: radial-gradient(closest-side at 50% 100%, rgba(73, 163, 128, 0.16), transparent 75%);
}

.contact p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.contact .button {
  margin-block-start: 1rem;
}

/* Text pages: privacy, support, imprint */

.text-page main {
  max-width: 44rem;
  margin-inline: auto;
  padding: 4.5rem 1.25rem 5rem;
}

.text-page h1 {
  margin-block-end: 1.25rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.text-page h2 {
  margin: 3.25rem 0 0.9rem;
  padding-block-start: 1.75rem;
  border-block-start: 1px solid var(--line);
  font-size: 1.5rem;
}

.text-page p,
.text-page ul {
  margin: 0 0 1.1rem;
}

.text-page ul {
  padding-inline-start: 1.25rem;
}

.text-page li {
  margin-block-end: 0.6rem;
}

.text-page li::marker {
  color: var(--green);
}

.text-page .lead {
  margin: 0 0 1.5rem;
  max-width: none;
  color: var(--text);
}

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

.address {
  font-style: normal;
  line-height: 1.6;
}

/* Footer */

footer.site {
  border-block-start: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 2.5rem;
}

.footer-inner .brand {
  color: var(--text);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.footer-inner nav a {
  text-decoration: none;
}

.footer-inner p {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.875rem;
}

/* Sections ease in as they scroll into view, where the browser can do that without a script. */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

  .button {
    transition: none;
  }
}
