:root {
  --ink: #142033;
  --ink-2: #243246;
  --paper: #f3efe6;
  --sheet: #fbf8f2;
  --line: #ddd4c4;
  --terra: #b54d1e;
  --teal: #145650;
  --muted: #3c4654;
  --soft: #5c5148;
  --shadow: 0 16px 40px rgba(20, 32, 51, 0.08);
  --serif: "Literata", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --measure: 68ch;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 110% -10%, #f6dfd2 0%, transparent 60%),
    linear-gradient(180deg, #f7f3eb 0%, var(--paper) 28%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color-scheme: light;
}

body[lang="ar"] {
  font-family: var(--arabic);
}

body[lang="ar"] h1,
body[lang="ar"] h2,
body[lang="ar"] h3,
body[lang="ar"] h4,
body[lang="ar"] .brand span {
  font-family: var(--arabic);
}

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

a {
  color: var(--teal);
  text-underline-offset: 0.16em;
}

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

.skip {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--sheet);
  padding: 0.7rem 1rem;
  z-index: 50;
  border-radius: 999px;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.7rem;
}

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--ink);
}

.brand span {
  display: flex;
  flex-direction: column;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: 1.15rem;
}

.brand small {
  font-weight: 500;
  color: var(--terra);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.find {
  display: flex;
  flex: 1;
  min-width: 0;
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.find input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--ink);
}

.find input:focus {
  outline: none;
}

.find button {
  border: 0;
  background: var(--teal);
  color: #f6fffd;
  font: inherit;
  font-weight: 600;
  padding-inline: 1rem;
  min-width: 4.5rem;
  cursor: pointer;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.menu-panel {
  display: none;
  padding-bottom: 0.9rem;
}

.menu-panel.is-open {
  display: block;
}

.main-nav ul,
.lang-nav ul,
.crumb ol,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.main-nav a,
.lang-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 560;
}

.main-nav a[aria-current="page"] {
  color: var(--terra);
  box-shadow: inset 0 -2px 0 var(--terra);
}

.lang-nav {
  margin-top: 0.2rem;
}

.lang-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lang-nav a {
  min-height: 36px;
  padding-inline: 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--sheet);
  font-size: 0.92rem;
}

.lang-nav a[aria-current="true"] {
  background: var(--ink);
  color: var(--sheet);
  border-color: var(--ink);
}

.crumb {
  padding-block: 0.85rem 0.2rem;
}

.crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.crumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.crumb li + li::before {
  content: "/";
  color: var(--soft);
}

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

.hero {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.kicker time,
.pill {
  background: #f3d7c8;
  color: #6d2e10;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-weight: 600;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 650;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.05rem, 6vw, 3.7rem);
}

h2 {
  margin: 2rem 0 0.7rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.25rem;
}

h4 {
  margin: 1rem 0 0.35rem;
  font-size: 1.05rem;
}

.lede {
  font-size: 1.12rem;
  max-width: var(--measure);
  margin-top: 0;
}

.prose p,
.note p,
.person p {
  max-width: var(--measure);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  border: 2px solid var(--ink);
}

.btn-primary {
  background: var(--ink);
  color: #fbf8f2;
}

.btn-primary:hover {
  background: var(--terra);
  border-color: var(--terra);
  color: #fffaf6;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--sheet);
}

.frame {
  margin: 0;
  background: #e7dfd2;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.hero .frame {
  border-radius: 1.5rem 1.5rem 1.5rem 0.35rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 0.9rem;
}

.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: var(--shadow);
}

.card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.card span {
  display: inline-block;
  color: var(--terra);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.split {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: 0.6rem;
}

.pull {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-inline-start: 4px solid var(--terra);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
  max-width: 36ch;
}

ul.clean,
ol.steps {
  max-width: var(--measure);
  padding-inline-start: 1.15rem;
}

ol.steps li + li,
ul.clean li + li {
  margin-top: 0.4rem;
}

.person {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
  background: #efe7da;
  border-radius: 1.2rem;
  padding: 1rem;
}

.person img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
}

.faq details {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.75rem 0.95rem;
  margin-top: 0.6rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq summary:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
}

.band {
  margin-top: 2rem;
  background: var(--ink);
  color: #f6f1e7;
  border-radius: 1.4rem;
  padding: 1.2rem;
}

.band a {
  color: #f3c7b0;
}

.band h2 {
  margin-top: 0;
}

.form {
  display: grid;
  gap: 0.8rem;
  max-width: 40rem;
}

.form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--sheet);
  border-radius: 0.8rem;
  padding: 0.75rem 0.8rem;
  font: inherit;
  color: var(--ink);
}

.form textarea {
  min-height: 9rem;
  resize: vertical;
}

.status {
  min-height: 1.4rem;
  color: var(--teal);
  font-weight: 600;
}

.results {
  display: grid;
  gap: 0.7rem;
}

.result {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

.result b,
.result span {
  display: block;
}

.result b {
  color: var(--ink);
}

.site-footer {
  margin-top: 2.5rem;
  background: var(--ink);
  color: #efe8dc;
  padding: 2rem 0 1.2rem;
}

.site-footer a {
  color: #f3d2c2;
}

.foot-grid {
  display: grid;
  gap: 1.2rem;
}

.site-footer h2 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  letter-spacing: 0;
}

.legal {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #d9d0c3;
  font-size: 0.95rem;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .person {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .foot-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .top-row {
    display: grid;
    grid-template-columns: auto minmax(240px, 420px) auto;
    justify-content: space-between;
  }

  .menu-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.35rem;
  }

  .lang-nav {
    margin-top: 0;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
    padding-top: 0.4rem;
  }

  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (max-width: 979px) {
  .find {
    order: 3;
    flex-basis: 100%;
  }

  .top-row {
    flex-wrap: wrap;
  }

  .brand {
    flex: 1;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
