/* buildasmuslim.com — shared tokens, reset and site furniture */

:root {
  --green-900: #071c16;
  --green-800: #0c2a21;
  --green-700: #12392d;
  --green-600: #1b5240;
  --green-400: #3e8a69;
  --mint-200: #cfe2d3;
  --mint-100: #e3ede4;
  --mint-050: #edf3ec;
  --brass: #c29a45;
  --brass-200: #e6ce93;
  --ink: #10241c;
  --ink-soft: #3d5a4e;
  --paper: #f7faf6;

  --measure: 62ch;
  --rule: 1px solid rgba(194, 154, 69, 0.38);
  --gap: clamp(1.25rem, 3vw, 2.25rem);

  --font-display: "Amiri", "Times New Roman", serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Amiri", "Segoe UI", serif;
}

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

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

body {
  margin: 0;
  background: var(--mint-050);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

blockquote {
  margin: 0;
}

a {
  color: inherit;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-800);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 20;
}

.skip:focus {
  left: 0;
}

.wrap {
  width: min(1180px, 100% - clamp(2rem, 6vw, 5rem));
  margin-inline: auto;
}

/* ---- Arabic ---- */

.arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  line-height: 2.1;
  margin-bottom: 0.9rem;
}

/* ---- Masthead ---- */

.masthead {
  background: var(--green-900);
  color: var(--mint-100);
  border-bottom: 1px solid rgba(194, 154, 69, 0.25);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
}

.wordmark span {
  color: var(--brass);
  font-weight: 400;
}

.masthead nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.95rem;
}

.masthead nav a {
  color: var(--mint-200);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.masthead nav a:hover {
  color: var(--brass-200);
  border-bottom-color: var(--brass);
}

/* ---- Footer ---- */

.site-footer {
  background: var(--green-900);
  color: var(--mint-200);
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.95rem;
}

.site-footer .arabic {
  color: var(--brass-200);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.site-footer p {
  max-width: 56ch;
}

.site-footer a {
  color: var(--brass-200);
}

.footer__note {
  color: rgba(207, 226, 211, 0.72);
  font-size: 0.875rem;
  border-top: 1px solid rgba(194, 154, 69, 0.2);
  padding-top: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
