/* Task 080c: sahabid.com (ADR 0027). The apps' tokens only (Theme.kt / Theme.swift): navy, gold as the one accent,
   the light background and the two text colours. One family, IBM Plex Sans Arabic (SIL OFL 1.1, fonts/OFL.txt). */

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #0F2A44;
  --gold: #E9C46A;
  --background: #F5F6F4;
  --text: #14202B;
  --muted: #5B6672;
  --gutter: clamp(20px, 6vw, 96px);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 18px/1.75 "IBM Plex Sans Arabic", system-ui, sans-serif;
}

header,
main,
footer {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

header {
  padding-block: 24px 0;
}

header img {
  display: block;
  height: clamp(44px, 5vw, 56px);
  width: auto;
}

/* Space above each section only, so the gaps do not stack */
section {
  padding-top: clamp(40px, 7vh, 64px);
}

.hero {
  padding-top: clamp(48px, 10vh, 112px);
}

main {
  padding-bottom: clamp(48px, 8vh, 80px);
}

h1,
h2 {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

h1 {
  font-size: clamp(3.5rem, 14.5vw, 8rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 16px;
}

p {
  margin: 0;
  max-width: 36em;
}

.lead {
  margin-top: 24px;
  font-size: clamp(1.125rem, 2.2vw, 1.25rem);
}

ol {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  max-width: 36em;
}

li + li {
  margin-top: 8px;
}

strong {
  color: var(--navy);
  font-weight: 700;
}

/* From 960 px: the heading in the right column, its content in the wider left one */
@media (min-width: 960px) {
  section:not(.hero) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 64px;
    align-items: baseline;
  }

  section:not(.hero) > h2 {
    margin-bottom: 0;
  }

  section:not(.hero) > :not(h2) {
    grid-column: 2;
  }
}

.contact p + p {
  margin-top: 8px;
}

a {
  color: var(--navy);
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.3em;
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--navy);
}

a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

footer {
  padding-block: 0 48px;
  color: var(--muted);
  font-size: 15px;
}

.nowrap {
  white-space: nowrap;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}
