:root {
  --yellow: #f1cf18;
  --ink: #11110e;
  --line: rgba(17, 17, 14, 0.78);
  --soft-line: rgba(17, 17, 14, 0.28);
  --max: 1500px;
  --gutter: clamp(18px, 2.4vw, 42px);
}

@font-face {
  font-family: "Estedad";
  src: url("../fonts/Estedad-wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

body.rtl {
  direction: rtl;
  font-family: "Estedad", Tahoma, Arial, sans-serif;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--yellow);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(100px, 1fr);
  align-items: center;
  gap: 24px;
}

.site-name {
  justify-self: start;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 34px);
  font-size: .84rem;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover,
.language-switch a:hover,
.site-name:hover {
  opacity: .55;
}

.language-switch {
  justify-self: end;
  display: flex;
  gap: 7px;
  font-size: .8rem;
  align-items: center;
}

.language-switch a {
  text-decoration: none;
}

.language-switch strong {
  font-weight: 800;
}

.site-main {
  min-height: 75vh;
}

.section-block {
  scroll-margin-top: 82px;
}

.hero {
  min-height: calc(100vh - 69px);
  display: flex;
  align-items: stretch;
}

.hero .shell {
  padding-block: clamp(36px, 5vh, 72px) 32px;
  display: flex;
  min-height: inherit;
  flex-direction: column;
}

.hero-kicker {
  margin: 0;
  font-size: clamp(.85rem, 1vw, 1rem);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.rtl .hero-kicker {
  text-transform: none;
  letter-spacing: 0;
}

.display-name {
  margin: auto 0 0;
  max-width: 12ch;
  font-size: clamp(5rem, 14.4vw, 14rem);
  line-height: .76;
  letter-spacing: -.082em;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.rtl .display-name {
  max-width: 10ch;
  line-height: .86;
  letter-spacing: -.055em;
  text-transform: none;
}

.hero-bottom {
  border-top: 1px solid var(--line);
  margin-top: clamp(36px, 7vh, 90px);
  padding-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 680px) 1fr;
  gap: 30px;
  align-items: end;
}

.hero-intro {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.hero-arrow {
  justify-self: end;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1;
  text-decoration: none;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2.2fr);
  gap: clamp(30px, 7vw, 120px);
  padding-block: clamp(42px, 8vw, 110px);
}

.section-label {
  margin: 0;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 700;
}

.rtl .section-label {
  text-transform: none;
  letter-spacing: 0;
}

.section-copy {
  max-width: 900px;
  font-size: clamp(1.55rem, 3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.rtl .section-copy {
  line-height: 1.38;
  letter-spacing: -.015em;
}

.section-copy > :first-child {
  margin-top: 0;
}

.section-copy > :last-child {
  margin-bottom: 0;
}

.biography-details {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1.8;
  letter-spacing: 0;
}

.biography-details summary {
  cursor: pointer;
  font-size: .9rem;
  font-weight: 800;
}

.biography-details > div {
  margin-top: 1.25rem;
}

.biography-details p {
  margin-block: 0 1.25rem;
}

.section-heading-row {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.section-count {
  font-size: .8rem;
  font-weight: 700;
}

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

.work-row {
  min-height: 116px;
  display: grid;
  grid-template-columns: 58px minmax(0, 2.2fr) minmax(180px, 1fr) 44px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-inline .16s ease, background-color .16s ease;
}

.work-row:hover {
  padding-inline: 12px;
  background: rgba(255,255,255,.14);
}

.work-index,
.work-meta,
.work-arrow {
  font-size: .82rem;
}

.work-title {
  font-size: clamp(1.5rem, 2.8vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 700;
}

.rtl .work-title {
  line-height: 1.25;
  letter-spacing: -.015em;
  text-align: right;
}

.work-meta {
  opacity: .72;
}

.rtl .work-meta {
  text-align: left;
}

.work-arrow {
  justify-self: end;
  font-size: 1.2rem;
}

.contact-section {
  min-height: 58vh;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: .8rem;
}

.footer-inner a {
  text-decoration: none;
}

/* Book / publication detail pages */
.item-shell {
  padding-block: clamp(56px, 8vw, 120px);
}

.item-title {
  max-width: 16ch;
  margin: 14px 0 24px;
  font-size: clamp(3rem, 8vw, 8.5rem);
  line-height: .86;
  letter-spacing: -.06em;
  font-weight: 900;
}

.rtl .item-title {
  line-height: 1.05;
  letter-spacing: -.03em;
  text-align: right;
}

.item-meta {
  display: flex;
  gap: 14px;
  margin: 0 0 50px;
  font-size: .9rem;
}

.rtl .item-meta-list,
.rtl .item-content-grid,
.rtl .item-links {
  direction: rtl;
}

.rtl .item-meta-list {
  justify-content: flex-start;
  text-align: right;
}

.rtl .item-prose {
  direction: rtl;
  text-align: right;
}

.item-content-grid {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid;
  grid-template-columns: minmax(180px, 360px) minmax(0, 700px);
  gap: clamp(30px, 7vw, 100px);
}

.cover-large {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

.item-prose {
  font-size: clamp(1.1rem, 1.55vw, 1.45rem);
  line-height: 1.5;
}

.item-prose > :first-child { margin-top: 0; }

.item-links {
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.text-link {
  font-size: .9rem;
  font-weight: 700;
}

/* Entry/language choice */
.landing-page {
  min-height: 100vh;
}

.landing-shell {
  min-height: 100vh;
  padding: var(--gutter);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.landing-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  font-size: .8rem;
  font-weight: 800;
}

.landing-title {
  align-self: center;
  display: flex;
  flex-direction: column;
  font-size: clamp(4rem, 14vw, 13rem);
  line-height: .72;
  letter-spacing: -.075em;
  font-weight: 900;
}

.landing-works {
  border-top: 1px solid var(--line);
  padding-block: 14px 16px;
}

.landing-works-label {
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.landing-works-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-works-list a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(.78rem, 1.15vw, 1rem);
  font-weight: 700;
  text-decoration: none;
}

.landing-works-list a span:nth-child(2) {
  white-space: nowrap;
}

.landing-works-list a b {
  font-size: .9em;
}

.landing-choice {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.landing-choice a {
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  font-weight: 700;
  text-decoration: none;
}

.landing-works-list a:hover,
.landing-choice a:hover {
  opacity: .55;
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 60px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    border-top: 1px solid var(--soft-line);
    padding-block: 10px;
  }

  .language-switch {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header {
    position: relative;
  }

  .section-block {
    scroll-margin-top: 20px;
  }

  .hero {
    min-height: 78vh;
  }

  .display-name {
    font-size: clamp(4.2rem, 22vw, 8.8rem);
  }

  .hero-bottom,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-arrow {
    justify-self: start;
  }

  .work-row {
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    min-height: 96px;
  }

  .work-meta {
    grid-column: 2;
    padding-bottom: 15px;
  }

  .work-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .item-content-grid {
    grid-template-columns: 1fr;
  }

  .cover-large {
    max-width: 320px;
  }

  .landing-title {
    font-size: clamp(3.2rem, 18vw, 7rem);
    line-height: .78;
  }

  .landing-works-list {
    grid-template-columns: 1fr;
  }

  .landing-choice {
    flex-direction: column;
  }
}

/* Archive */
.archive-shell { padding-bottom: clamp(56px, 9vw, 120px); }
.archive-shell > .section-heading-row { min-height: 126px; }
.archive-note { margin: 6px 0 0; max-width: 42rem; font-size: .82rem; opacity: .72; }
.archive-group { margin-top: clamp(32px, 6vw, 76px); }
.archive-group-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 80px); padding-bottom: 26px; }
.archive-group-heading.compact { grid-template-columns: minmax(0, 1.15fr); }
.archive-eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.rtl .archive-eyebrow { text-transform: none; letter-spacing: 0; }
.archive-group-heading h2 { max-width: 18ch; margin: 0; font-size: clamp(2rem, 4.4vw, 5rem); line-height: .92; letter-spacing: -.055em; }
.rtl .archive-group-heading h2 { line-height: 1.22; letter-spacing: -.025em; }
.archive-group-heading > p { max-width: 34rem; margin: 0; font-size: clamp(1rem, 1.4vw, 1.35rem); line-height: 1.45; }
.series-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.series-index span { display: inline-flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); font-size: .78rem; }
.series-index b { font-size: .72rem; }
.item-meta-list { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 50px; font-size: .88rem; }
.item-meta-list div { display: flex; gap: 8px; }
.item-meta-list dt { opacity: .6; }
.item-meta-list dd { margin: 0; }
.archive-placeholder { font-size: clamp(1.25rem, 2.1vw, 2.2rem); }
@media (max-width: 720px) {
  .archive-group-heading { grid-template-columns: 1fr; }
  .archive-shell > .section-heading-row { min-height: 100px; }
}


/* Guided works and archive indexes */
.works-guide { padding-bottom: clamp(56px, 9vw, 120px); }
.works-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.works-guide-card { min-height: clamp(280px, 30vw, 440px); padding: clamp(20px, 3vw, 42px); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 14px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .16s ease; }
.works-guide-card:nth-child(odd) { border-right: 1px solid var(--line); }
.works-guide-card:hover { background: rgba(255,255,255,.14); }
.works-guide-card-featured { grid-column: span 2; min-height: clamp(320px, 37vw, 540px); }
.works-guide-number, .works-guide-kind, .works-guide-link { font-size: .78rem; font-weight: 800; }
.works-guide-kind { justify-self: end; text-transform: uppercase; letter-spacing: .04em; }
.works-guide-card h2 { grid-column: 1 / -1; align-self: end; max-width: 14ch; margin: 0; font-size: clamp(2.3rem, 5.4vw, 6.5rem); line-height: .87; letter-spacing: -.065em; }
.works-guide-card:not(.works-guide-card-featured) h2 { font-size: clamp(1.8rem, 3.6vw, 4rem); }
.works-guide-card p { grid-column: 1 / -1; max-width: 38rem; margin: 0; font-size: clamp(1rem, 1.4vw, 1.35rem); line-height: 1.42; }
.works-guide-link { grid-column: 1 / -1; align-self: end; }
.rtl .works-guide-card:nth-child(odd) { border-right: 0; border-left: 1px solid var(--line); }
.rtl .works-guide-kind { text-transform: none; letter-spacing: 0; }
.rtl .works-guide-card h2 { line-height: 1.2; letter-spacing: -.025em; text-align: right; }
.rtl .works-guide-card p, .rtl .works-guide-link { text-align: right; }
.archive-page { min-height: 72vh; }
.archive-page-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 6vw, 110px); margin: 16px 0 clamp(38px, 7vw, 90px); }
.archive-page-heading h1 { max-width: 12ch; margin: 0; font-size: clamp(4rem, 10vw, 11rem); line-height: .8; letter-spacing: -.075em; }
.archive-page-heading p { max-width: 34rem; margin: 0; align-self: end; font-size: clamp(1.1rem, 1.7vw, 1.65rem); line-height: 1.35; }
.rtl .archive-page-heading h1 { line-height: 1; letter-spacing: -.035em; text-align: right; }
.rtl .archive-page-heading p { text-align: right; }
.archive-overview-links { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: clamp(30px, 6vw, 76px); }
.archive-overview-links a { display: flex; justify-content: space-between; align-items: start; gap: 12px; min-height: 92px; padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.archive-overview-links a:hover { background: rgba(255,255,255,.14); }
.rtl .archive-overview-links { border-left: 0; border-right: 1px solid var(--line); }
.rtl .archive-overview-links a { border-right: 0; border-left: 1px solid var(--line); text-align: right; }
.archive-callout { display: block; padding: 18px; border-block: 1px solid var(--line); font-size: clamp(1.15rem, 2vw, 2rem); font-weight: 700; text-decoration: none; }
.archive-callout:hover { background: rgba(255,255,255,.14); }
.archive-back { margin: clamp(48px, 8vw, 100px) 0 0; }
@media (max-width: 720px) {
  .works-guide-grid, .archive-page-heading { grid-template-columns: 1fr; }
  .works-guide-card, .works-guide-card-featured { grid-column: auto; min-height: 280px; }
  .works-guide-card:nth-child(odd), .rtl .works-guide-card:nth-child(odd) { border-inline: 0; }
  .archive-overview-links { grid-template-columns: 1fr; }
  .archive-overview-links, .rtl .archive-overview-links { border-inline: 0; }
  .archive-overview-links a, .rtl .archive-overview-links a { border-inline: 0; }
}
