/* The style sheet of shelfbench.com: the company page, in English and Arabic.

   It is Seenly's public/site.css, cut down to what these two pages use. The
   colours, the fonts and the sizes are Seenly's. Seenly's picture is not here.

   Rules for this file:
   - System fonts only. No url(), no @import, no @font-face: the pages'
     Content-Security-Policy allows styles from this host only, and the
     pages load nothing from another host. verify/check-pages.mjs fails on
     any of the three.
   - Logical properties only (margin-inline, padding-block, text-align:
     start), so the Arabic page flips right to left.
   - The colour values are Seenly's, unchanged. Seenly's own test checks that
     every text colour pair meets WCAG AA, 4.5 to 1, in the light and the
     dark scheme. A new colour here needs that check again. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f4f5f7;
  --text: #1f2328;
  --muted: #555e68;
  --link: #0a55b8;
  --border: #d0d7de;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --surface: #1f2329;
    --text: #e8eaed;
    --muted: #aab2bc;
    --link: #8cb8ff;
    --border: #3a414a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

html[lang="ar"] body {
  font-size: 1.125rem;
  line-height: 1.8;
}

.site-header,
main,
.site-footer {
  max-inline-size: 46rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-block-end: 1px solid var(--border);
}

.site-header p {
  margin: 0;
}

.brand {
  font-size: 1.125rem;
  font-weight: 700;
}

.brand a {
  color: var(--text);
  text-decoration: none;
}

main {
  display: block;
  padding-block: 0 1rem;
}

h1 {
  margin-block: 0.5rem 0.75rem;
  font-size: 1.875rem;
  line-height: 1.25;
}

h2 {
  margin-block: 2.25rem 0.75rem;
  font-size: 1.375rem;
  line-height: 1.3;
}

p,
ul {
  margin-block: 0 1rem;
}

ul {
  padding-inline-start: 1.5rem;
}

li + li {
  margin-block-start: 0.375rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

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

/* Smaller text is set in em, not rem, so it follows the page's body size:
   the Arabic page has a larger body size (html[lang="ar"] body). */
.meta {
  color: var(--muted);
  font-size: 0.875em;
}

.hero {
  padding-block: 2rem 2.5rem;
  border-block-end: 1px solid var(--border);
}

.hero h1 {
  margin-block: 0 1rem;
  font-size: 2.75rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

html[lang="ar"] .hero h1 {
  line-height: 1.35;
  letter-spacing: 0;
}

.hero .lead {
  margin-block-end: 0;
}

.lead {
  font-size: 1.1875rem;
}

.button {
  display: inline-block;
  padding-block: 0.625rem;
  padding-inline: 1.25rem;
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  background: var(--text);
  border-radius: 6px;
}

/* The company's name, "Aljodi Integrated e-commerce". A phone would break it
   into two lines, and in Arabic the two halves then sit at opposite ends of
   two lines. */
.nobreak {
  white-space: nowrap;
}

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

.action-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding-inline-start: 0;
  list-style: none;
  font-weight: 600;
}

.action-links li + li {
  margin-block-start: 0;
}

.block {
  padding-block: 0.5rem 1.5rem;
  border-block-end: 1px solid var(--border);
}

.block:last-child {
  border-block-end: 0;
}

.block > h2 {
  margin-block-start: 2rem;
}

/* Seenly's .steps cards, without the step numbers: these points have no
   order. */
.points {
  display: grid;
  gap: 1rem;
  margin-block: 0 0.5rem;
  padding-inline-start: 0;
  list-style: none;
}

.points > li {
  margin-block-start: 0;
  padding-block: 1rem;
  padding-inline: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.points strong {
  display: block;
  margin-block-end: 0.25rem;
}

.site-footer {
  padding-block: 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.875em;
  border-block-start: 1px solid var(--border);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding-inline-start: 0;
  list-style: none;
}

.site-footer li + li {
  margin-block-start: 0;
}

.footer-copy {
  margin-block: 0.75rem 0;
}

@media (min-width: 44rem) {
  .points {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 56rem) {
  .hero {
    padding-block: 4rem 3rem;
  }

  .hero h1 {
    font-size: 3.25rem;
  }
}

@media (max-width: 30rem) {
  body {
    font-size: 1rem;
  }

  html[lang="ar"] body {
    font-size: 1.0625rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  /* After the h1 rule: .hero h1 wins by specificity anyway. */
  .hero h1 {
    font-size: 2.125rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}
