@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Noto+Kufi+Arabic:wght@400;600;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,700;8..60,900&display=swap');

:root {
  --paper: #f3efe6;
  --ink: #171717;
  --red: #a8342f;
  --sand: #d8c39d;
  --blue-black: #20313b;
  --muted: #6d6a63;
  --line: rgba(23, 23, 23, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.utility {
  border-bottom: 1px solid var(--ink);
  font: 11px "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
}

.masthead {
  padding: 28px 0 19px;
  border-bottom: 5px solid var(--ink);
}

.mast-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
}

.issue,
.mast-date {
  font: 11px/1.5 "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mast-date {
  text-align: right;
}

.wordmark {
  text-align: center;
  font-size: clamp(40px, 7vw, 94px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.78;
  text-decoration: none;
}

.wordmark-ar {
  display: block;
  margin-top: 14px;
  font: 700 clamp(15px, 1.8vw, 23px) "Noto Kufi Arabic", sans-serif;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 29px;
  padding: 15px 0;
  border-bottom: 1px solid var(--ink);
}

.primary-nav a {
  font: 600 12px "IBM Plex Mono", monospace;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--red);
}

.menu-button {
  display: none;
  width: 100%;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font: 600 12px "IBM Plex Mono", monospace;
}

.kicker,
.meta,
.mono,
.label {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kicker {
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--ink);
}

.hero-photo {
  min-height: 570px;
  position: relative;
  overflow: hidden;
  background: var(--blue-black);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 570px;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.04);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
}

.photo-label {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  padding: 9px 13px;
  color: white;
  background: var(--red);
  font: 11px "IBM Plex Mono", monospace;
}

.photo-credit {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 14px;
  color: white;
  font: 10px "IBM Plex Mono", monospace;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero h1 {
  margin: 17px 0;
  font-size: clamp(45px, 6vw, 77px);
  line-height: 0.94;
  letter-spacing: -0.046em;
}

.dek {
  font-size: 20px;
  line-height: 1.45;
}

.arabic {
  direction: rtl;
  font-family: "Noto Kufi Arabic", sans-serif;
}

.hero .arabic {
  margin: 18px 0;
  font-size: 17px;
  line-height: 1.85;
  text-align: left;
}

.byline {
  padding-top: 15px;
  border-top: 1px solid var(--ink);
  font: 11px/1.6 "IBM Plex Mono", monospace;
}

.btn {
  display: inline-block;
  padding: 13px 17px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font: 600 11px "IBM Plex Mono", monospace;
  text-decoration: none;
  text-transform: uppercase;
}

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

.btn.red {
  border-color: var(--red);
  background: var(--red);
}

.section {
  padding: 62px 0;
}

.section-rule {
  display: grid;
  grid-template-columns: 0.48fr 1.52fr;
  gap: 38px;
  padding-top: 17px;
  border-top: 4px solid var(--ink);
}

.section-rule h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
}

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

.issue-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
}

.issue-item .number {
  color: var(--red);
  font: 12px "IBM Plex Mono", monospace;
}

.issue-item h3 {
  margin: 0 0 5px;
  font-size: 25px;
  line-height: 1.08;
}

.desk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.desk-card {
  min-height: 295px;
  padding: 25px 21px;
  border-right: 1px solid var(--ink);
}

.desk-card:last-child {
  border-right: 0;
}

.desk-card h3 {
  margin: 12px 0;
  font-size: 30px;
  line-height: 1;
}

.desk-card .arabic {
  font-size: 14px;
  text-align: left;
}

.dark-section {
  padding: 70px 0;
  background: var(--blue-black);
  color: var(--paper);
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.42);
}

.section-top h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-button {
  padding: 8px 11px;
  border: 1px solid var(--sand);
  background: transparent;
  color: var(--paper);
  font: 10px "IBM Plex Mono", monospace;
  cursor: pointer;
}

.filter-button.active {
  background: var(--sand);
  color: var(--ink);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 23px;
  padding-top: 28px;
}

.story-card {
  padding-top: 16px;
  border-top: 4px solid var(--red);
}

.story-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.76);
}

.story-card h3 {
  margin: 14px 0 8px;
  font-size: 28px;
  line-height: 1.08;
}

.story-card p {
  color: #ccd3d4;
}

.story-card a {
  color: inherit;
  text-decoration: none;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 60px;
}

.editorial-grid h2 {
  margin: 0;
  font-size: clamp(43px, 5vw, 60px);
  line-height: 1;
}

.principle {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
}

.principle h3 {
  margin: 0 0 5px;
  font-size: 22px;
}

.page-hero {
  padding: 62px 0 42px;
  border-bottom: 4px solid var(--ink);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 50px;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 700px;
  font-size: 20px;
}

.banner-photo {
  margin-top: 30px;
  height: clamp(280px, 40vw, 520px);
  overflow: hidden;
}

.banner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78);
}

.article-list {
  border-top: 1px solid var(--ink);
}

.article-row {
  display: grid;
  grid-template-columns: 90px 1.2fr 0.8fr auto;
  gap: 24px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--ink);
}

.article-row .date {
  color: var(--red);
  font: 11px "IBM Plex Mono", monospace;
}

.article-row h2,
.article-row h3 {
  margin: 0;
  font-size: 29px;
  line-height: 1.05;
}

.article-row a {
  text-decoration: none;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 740px) 1fr;
  gap: 48px;
  padding: 52px 0 80px;
}

.article-aside {
  position: sticky;
  top: 20px;
  align-self: start;
  font: 11px/1.65 "IBM Plex Mono", monospace;
}

.article-aside div {
  padding: 10px 0;
  border-top: 1px solid var(--ink);
}

.article-body {
  font-size: 18px;
}

.article-body h2 {
  margin: 45px 0 12px;
  font-size: 38px;
  line-height: 1.05;
}

.article-body h3 {
  margin-top: 28px;
  font-size: 25px;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 9px;
}

.article-body blockquote {
  margin: 34px 0;
  padding: 22px 28px;
  border-left: 8px solid var(--red);
  background: var(--sand);
  font-size: 24px;
  line-height: 1.35;
}

.article-body pre {
  overflow-x: auto;
  padding: 20px;
  background: var(--blue-black);
  color: var(--paper);
  font: 13px/1.65 "IBM Plex Mono", monospace;
}

.article-image {
  margin: 30px 0;
}

.article-image img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.pull-note {
  align-self: start;
  padding: 20px;
  background: var(--sand);
  font-size: 14px;
}

.pull-note strong {
  display: block;
  margin-bottom: 8px;
  font: 600 11px "IBM Plex Mono", monospace;
}

.columns-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px;
}

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

.info-card {
  padding: 24px;
  border: 1px solid var(--ink);
  background: rgba(255,255,255,.18);
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.08;
}

.checklist {
  padding: 30px;
  border: 2px solid var(--ink);
  background: var(--sand);
}

.check-item {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(23,23,23,.35);
}

.check-item input {
  accent-color: var(--red);
}

.progress-track {
  height: 12px;
  margin-top: 22px;
  background: var(--paper);
}

.progress-bar {
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width .25s ease;
}

.progress-label {
  margin-top: 9px;
  font: 11px "IBM Plex Mono", monospace;
}

.form-shell {
  max-width: 820px;
  padding: 34px;
  border: 2px solid var(--ink);
  background: rgba(255,255,255,.25);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font: 600 11px "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fffdf7;
}

.field textarea {
  min-height: 145px;
  resize: vertical;
}

.form-note {
  margin: 15px 0;
  font-size: 13px;
}

.legal {
  max-width: 860px;
}

.legal h2 {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-size: 30px;
}

.newsletter {
  margin: 58px auto;
  padding: 40px;
  background: var(--sand);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.newsletter h2 {
  margin: 0 0 9px;
  font-size: 42px;
  line-height: 1;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.newsletter-form input {
  min-width: 0;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.newsletter-form .form-note {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.newsletter-form button {
  padding: 13px 17px;
  border: 1px solid var(--red);
  background: var(--red);
  color: white;
  font: 11px "IBM Plex Mono", monospace;
}

.site-footer {
  padding: 52px 0 24px;
  background: var(--ink);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, .6fr);
  gap: 30px;
}

.footer-brand {
  font-size: 39px;
  font-weight: 900;
  line-height: 1;
}

.footer-title {
  font: 600 11px "IBM Plex Mono", monospace;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--sand);
  text-decoration: none;
}

.footer-fine {
  margin-top: 38px;
  padding-top: 16px;
  border-top: 1px solid #555;
  font: 10px/1.6 "IBM Plex Mono", monospace;
}

.cookie-notice {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  width: min(370px, calc(100% - 36px));
  padding: 17px;
  border: 1px solid var(--paper);
  background: var(--blue-black);
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--red);
}

.cookie-notice p {
  margin: 0 0 12px;
  font-size: 13px;
}

.cookie-notice button {
  padding: 9px 13px;
  border: 0;
  background: var(--sand);
  font: 600 10px "IBM Plex Mono", monospace;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 14px 17px;
  background: var(--red);
  color: white;
  font: 11px "IBM Plex Mono", monospace;
}

@media (max-width: 820px) {
  .mast-grid {
    grid-template-columns: 1fr auto;
  }

  .mast-date {
    display: none;
  }

  .wordmark {
    font-size: 48px;
  }

  .menu-button {
    display: block;
  }

  .primary-nav {
    display: none;
  }

  .primary-nav.open {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero,
  .section-rule,
  .editorial-grid,
  .page-hero-grid,
  .newsletter,
  .columns-2 {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .hero-photo img {
    min-height: 430px;
  }

  .desk-grid,
  .story-grid,
  .columns-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .desk-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .article-row {
    grid-template-columns: 64px 1fr;
  }

  .article-row p,
  .article-row .arrow {
    grid-column: 2;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .pull-note {
    order: 2;
  }

  .form-grid,
  .issue-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

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

  .utility-inner span:last-child {
    display: none;
  }
}

@media (max-width: 460px) {
  .wrap {
    width: min(100% - 24px, 1180px);
  }

  .issue {
    font-size: 9px;
  }

  .wordmark {
    font-size: 37px;
  }

  .wordmark-ar {
    font-size: 12px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 44px;
  }

  .hero-photo,
  .hero-photo img {
    min-height: 350px;
  }

  .form-shell,
  .checklist,
  .newsletter {
    padding: 22px;
  }

  .cookie-notice {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 13px;
  }
}
