:root {
  color-scheme: light;
  --ink: #16231f;
  --muted: #58635e;
  --soft: #f8f8f3;
  --paper: #ffffff;
  --line: #dfe3d8;
  --green: #173f35;
  --green-deep: #0f2d27;
  --green-soft: #dfece5;
  --gold: #b08445;
  --clay: #9d5645;
  --focus: #d99b45;
  --shadow: 0 20px 55px rgba(22, 35, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--soft);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

[lang="ar"] body {
  font-family: Tahoma, Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 30;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.container,
.header-inner,
.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 20px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(15, 45, 39, 0.34);
  padding: 5px;
  backdrop-filter: blur(14px);
}

.site-nav a {
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  padding: 10px 12px;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(15, 45, 39, 0.34);
  padding: 5px;
  backdrop-filter: blur(14px);
}

.language-switch a {
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  padding: 10px 11px;
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
}

.hero {
  position: relative;
  display: grid;
  min-height: 78svh;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 24, 21, 0.9), rgba(10, 24, 21, 0.62) 44%, rgba(10, 24, 21, 0.14) 78%),
    linear-gradient(0deg, rgba(10, 24, 21, 0.35), rgba(10, 24, 21, 0.08));
}

[dir="rtl"] .hero::after {
  background:
    linear-gradient(270deg, rgba(10, 24, 21, 0.9), rgba(10, 24, 21, 0.62) 44%, rgba(10, 24, 21, 0.14) 78%),
    linear-gradient(0deg, rgba(10, 24, 21, 0.35), rgba(10, 24, 21, 0.08));
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  display: flex;
  align-items: end;
  padding-block: 128px 76px;
}

.hero-copy {
  width: min(680px, 100%);
}

.kicker,
.section-kicker,
.resource-type {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero .kicker {
  color: #e5bc78;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-block: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  letter-spacing: 0;
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] .tagline,
[lang="ar"] .brand {
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.18;
}

h1 {
  max-width: 10ch;
  margin-top: 14px;
  font-size: 5.45rem;
}

h2 {
  font-size: 2.45rem;
}

h3 {
  font-size: 1.55rem;
}

.tagline {
  max-width: 720px;
  margin: 22px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.35;
}

.tagline-secondary {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.hero-text {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.hero-actions,
.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #ffffff;
  color: var(--green-deep);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button-download {
  background: var(--green);
  color: #ffffff;
}

.button-download:hover {
  background: var(--green-deep);
}

.intro-section,
.section {
  padding-block: 76px;
}

.intro-section {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 38px;
  align-items: start;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-prose {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.04rem;
}

.about-prose p {
  margin: 0;
}

.about-prose p + p {
  margin-top: 16px;
}

.about-prose strong,
.about-prose cite {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 38px;
  align-items: end;
  margin-bottom: 28px;
}

.section-header h2,
.intro-grid h2 {
  margin-top: 10px;
}

.section-quiet {
  background:
    linear-gradient(180deg, rgba(223, 236, 229, 0.48), rgba(248, 248, 243, 0.92));
}

.notice-section {
  background: var(--green-deep);
  color: #ffffff;
}

.notice-section .section-kicker {
  color: #e5bc78;
}

.notice-section .section-header p,
.notice-copy {
  color: rgba(255, 255, 255, 0.78);
}

.notice-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 30px;
  align-items: start;
  border-block: 1px solid rgba(255, 255, 255, 0.18);
  padding-block: 30px;
}

.notice-copy {
  max-width: 760px;
  font-size: 1.05rem;
}

.notice-copy p {
  margin: 0;
}

.notice-copy p + p {
  margin-top: 16px;
}

.notice-links {
  display: grid;
  gap: 12px;
}

.notice-link {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.notice-link:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.notice-link span {
  color: #ffffff;
  font-weight: 800;
}

.notice-link strong {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.resource-grid.one-up {
  grid-template-columns: 1fr;
}

.resource-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 26px;
  box-shadow: 0 16px 38px rgba(22, 35, 31, 0.08);
}

.featured-resource {
  min-height: 245px;
  border-color: rgba(23, 63, 53, 0.28);
  background:
    linear-gradient(135deg, rgba(223, 236, 229, 0.86), rgba(255, 255, 255, 0.94) 48%, rgba(255, 255, 255, 1)),
    var(--paper);
}

.resource-body {
  max-width: 760px;
}

.resource-card h3 {
  margin-top: 10px;
}

.resource-card p:not(.resource-type) {
  margin: 14px 0 0;
  color: var(--muted);
}

.byline,
.resource-original {
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-block: 28px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p:first-child {
  color: #ffffff;
  font-weight: 800;
}

@media (min-width: 1180px) {
  h1 {
    font-size: 5.9rem;
  }
}

@media (max-width: 820px) {
  .container,
  .header-inner,
  .hero-content {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  .header-tools {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .language-switch {
    width: 100%;
    justify-content: stretch;
  }

  .site-nav a {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 8px;
    text-align: center;
  }

  .language-switch a {
    flex: 1 1 0;
    text-align: center;
  }

  .hero {
    min-height: 78svh;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(10, 24, 21, 0.92), rgba(10, 24, 21, 0.75) 58%, rgba(10, 24, 21, 0.28)),
      linear-gradient(0deg, rgba(10, 24, 21, 0.42), rgba(10, 24, 21, 0.08));
  }

  [dir="rtl"] .hero::after {
    background:
      linear-gradient(270deg, rgba(10, 24, 21, 0.92), rgba(10, 24, 21, 0.75) 58%, rgba(10, 24, 21, 0.28)),
      linear-gradient(0deg, rgba(10, 24, 21, 0.42), rgba(10, 24, 21, 0.08));
  }

  .hero-image {
    object-position: 60% center;
  }

  [dir="rtl"] .hero-image {
    object-position: 40% center;
  }

  .hero-content {
    padding-block: 132px 54px;
  }

  h1 {
    font-size: 3.65rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .tagline {
    font-size: 1.25rem;
  }

  .intro-section,
  .section {
    padding-block: 58px;
  }

  .intro-grid,
  .section-header,
  .notice-panel,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .section-header,
  .notice-panel {
    gap: 16px;
  }

  .resource-card {
    min-height: 0;
    padding: 22px;
  }
}

@media (max-width: 460px) {
  .brand {
    font-size: 1.02rem;
  }

  .site-nav a {
    font-size: 0.84rem;
  }

  h1 {
    max-width: 8ch;
    font-size: 3rem;
  }

  .hero-text,
  .about-prose,
  .section-header p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .resource-actions {
    width: 100%;
  }
}

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

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }

  .notice-link {
    transition: none;
  }

  .notice-link:hover {
    transform: none;
  }
}
