:root {
  --bg: #fffdf9;
  --paper: #f7f1e8;
  --ink: #1d1d1b;
  --muted: #66625b;
  --line: #e2dbcf;
  --green: #123d34;
  --copper: #a8613d;
  --soft-green: #edf4f0;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

body[data-lang="en"] {
  direction: ltr;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header,
.hero,
.section,
.footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  margin-inline-end: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-size: 1rem;
  font-weight: 760;
  white-space: nowrap;
}

.mark {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.56rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a {
  padding-block: 6px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.quiet-actions a:hover,
.section-head a:hover,
.contact-links a:hover,
.professional-links a:hover,
.footer a:hover {
  color: var(--copper);
}

.language {
  width: 42px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: clamp(42px, 7vw, 98px);
  align-items: center;
  padding-block: 58px 72px;
}

.hero-text {
  max-width: 700px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 28px;
  font-size: clamp(3rem, 6.4vw, 6.8rem);
  line-height: 1.08;
  font-weight: 760;
}

body[data-lang="en"] h1 {
  max-width: 12ch;
  line-height: 0.98;
}

.intro {
  max-width: 54ch;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
}

.quiet-actions,
.contact-links,
.professional-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--green);
  font-weight: 760;
}

.quiet-actions a,
.contact-links a,
.professional-links a,
.section-head a,
.footer a {
  border-bottom: 1px solid currentColor;
}

.hero-image {
  margin: 0;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(32, 26, 17, 0.1);
}

.section {
  padding-block: 74px;
  border-top: 1px solid var(--line);
}

.page-hero {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  padding-block: 92px 78px;
}

.page-hero h1 {
  max-width: 12ch;
  margin-bottom: 24px;
}

.page-hero .intro {
  margin-bottom: 0;
}

.archive-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.article-page {
  width: min(780px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 82px 96px;
}

.article-page time {
  display: block;
  margin-bottom: 16px;
  color: var(--copper);
  font-weight: 760;
}

.article-page h1 {
  max-width: 11ch;
  margin-bottom: 22px;
}

.back-link {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--green);
  font-weight: 760;
  border-bottom: 1px solid currentColor;
}

.article-body {
  margin-top: 48px;
  color: var(--ink);
  font-size: 1.2rem;
}

.article-body p {
  margin-bottom: 28px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 7vw, 86px);
}

.section-label {
  margin-bottom: 16px;
  color: var(--copper);
  font-size: 0.92rem;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  line-height: 1.22;
  font-weight: 730;
}

.prose {
  color: var(--muted);
  font-size: 1.08rem;
}

.prose p {
  margin-bottom: 20px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.note-list,
.pick-list {
  border-top: 1px solid var(--line);
}

.note {
  display: grid;
  grid-template-columns: 150px minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.note time {
  color: var(--copper);
  font-size: 0.92rem;
  white-space: nowrap;
}

.note strong,
.pick strong {
  font-size: 1.18rem;
  line-height: 1.55;
}

.note span,
.pick p {
  margin: 0;
  color: var(--muted);
}

.pick {
  display: grid;
  grid-template-columns: 100px minmax(160px, 0.58fr) minmax(0, 1fr) 28px;
  gap: 24px;
  align-items: baseline;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.pick-type {
  color: var(--copper);
  font-size: 0.9rem;
  font-weight: 800;
}

.external {
  position: relative;
  width: 18px;
  height: 18px;
  color: var(--green);
  justify-self: end;
}

.external::before,
.external::after {
  content: "";
  position: absolute;
  border-color: currentColor;
}

.external::before {
  inset: 5px 0 0 5px;
  border-inline-start: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.external::after {
  width: 10px;
  height: 10px;
  inset-inline-end: 0;
  top: 0;
  border-top: 1.5px solid currentColor;
  border-inline-end: 1.5px solid currentColor;
}

.simple-list {
  margin: 28px 0 26px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.simple-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact {
  padding-block: 88px;
}

.contact h2 {
  max-width: 780px;
  margin-bottom: 18px;
}

.contact p {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.12rem;
}

.footer {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.93rem;
}

.holding-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(18, 61, 52, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 61, 52, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
}

.holding-header {
  border-bottom-color: rgba(18, 61, 52, 0.16);
}

.holding-main {
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100vh - 162px);
  margin-inline: auto;
  display: grid;
  align-items: center;
  padding-block: clamp(54px, 9vw, 118px);
}

.holding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: clamp(42px, 8vw, 92px);
  align-items: end;
}

.holding-copy {
  max-width: 760px;
}

.holding-status {
  margin-bottom: 22px;
  color: var(--copper);
  font-size: 1rem;
  font-weight: 800;
}

.holding-hero h1 {
  max-width: 11ch;
  margin-bottom: 24px;
  color: var(--green);
  font-size: clamp(3.6rem, 8vw, 7.6rem);
  line-height: 1.03;
}

body[data-lang="en"] .holding-hero h1 {
  max-width: 10ch;
  line-height: 0.98;
}

.holding-intro {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.55vw, 1.32rem);
}

.holding-card {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 22px 60px rgba(32, 26, 17, 0.08);
}

.profile-lines {
  margin: 0;
}

.profile-lines div {
  display: grid;
  gap: 4px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.profile-lines div:first-child {
  padding-top: 0;
}

.profile-lines dt {
  color: var(--copper);
  font-size: 0.88rem;
  font-weight: 800;
}

.profile-lines dd {
  margin: 0;
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 760;
}

.holding-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  color: var(--green);
  font-weight: 760;
}

.holding-links a {
  border-bottom: 1px solid currentColor;
}

.holding-links a:hover,
.holding-links a:focus-visible {
  color: var(--copper);
}

.holding-footer {
  border-top-color: rgba(18, 61, 52, 0.16);
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
    padding-block: 16px;
  }

  .brand {
    flex-basis: calc(100% - 58px);
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
  }

  .hero,
  .two-column,
  .holding-hero,
  .note,
  .pick {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 36px;
    padding-block: 44px 58px;
  }

  .hero-image {
    max-width: 520px;
  }

  .hero-image img {
    aspect-ratio: 16 / 10;
  }

  .holding-hero {
    align-items: start;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .note,
  .pick {
    gap: 8px;
  }

  .external {
    justify-self: start;
  }
}

@media (max-width: 540px) {
  .site-header,
  .hero,
  .holding-main,
  .section,
  .footer,
  .page-hero,
  .article-page {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: 3.15rem;
  }

  .holding-hero h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding-block: 54px;
  }

  .footer,
  .quiet-actions,
  .holding-links,
  .contact-links,
  .professional-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
