/* ============================================================
   "The Issue": the home page as a fashion magazine (redesign direction 01, 29 Oct 2026).
   Newsprint ground, a giant ella. masthead over a full-bleed cover, coverlines in place of
   buttons and a cover-story spread. Loaded on the home page only, after styles.css.
   ============================================================ */
/* "Ella Serif": Cormorant Garamond for Latin, Thmanyah Serif Display for Arabic */
@font-face { font-family: "Ella Serif"; src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Ella Serif"; src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Ella Serif"; src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Ella Serif"; src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Ella Serif"; src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Ella Serif"; src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500 600; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Ella Serif"; src: url("../fonts/thmanyah/thmanyahserifdisplay-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Ella Serif"; src: url("../fonts/thmanyah/thmanyahserifdisplay-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Ella Serif"; src: url("../fonts/thmanyah/thmanyahserifdisplay-Medium.woff2") format("woff2"); font-weight: 500 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }

body.issue {
  --news: #F3EEE7;      /* newsprint */
  --ink-i: #17090C;     /* magazine ink */
  --blush-i: #E9C9C0;   /* the masthead's full stop */
  --serif-i: "Ella Serif", Georgia, serif;
  --mono-i: ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: var(--news);
}
.issue .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.issue .kicker { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--clay-text); }
html[lang="ar"] .issue .kicker { font-size: 14px; font-weight: 500; }
.issue .hdr { background: color-mix(in srgb, var(--news) 97%, transparent); }

/* ---------- the cover ---------- */
.cover { position: relative; isolation: isolate; overflow: hidden; height: calc(100svh - var(--header)); min-height: 560px; max-height: 1040px; background: var(--ink-i); color: #fff; }
.cover-photo { position: absolute; inset: 0; z-index: -2; }
.cover-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 30%, transparent 58%, rgba(0,0,0,.6)); }
.cover-mast { position: absolute; inset-inline: 0; top: clamp(4px, 1.2vw, 18px); text-align: center; direction: ltr; pointer-events: none;
  font: 300 clamp(150px, 23vw, 360px)/.8 var(--serif-i); letter-spacing: -.045em; color: #F6EFE6; text-shadow: 0 2px 40px rgba(0,0,0,.12); }
.cover-mast i { font-style: italic; color: var(--blush-i); }
.cover-issue { position: absolute; inset-inline-end: clamp(18px, 3.4vw, 48px); top: calc(min(23vw, 360px) * .8 + clamp(14px, 2.4vw, 40px));
  text-align: end; text-shadow: 0 1px 12px rgba(0,0,0,.45); font-size: 11px; font-weight: 500; line-height: 1.75; letter-spacing: .2em; text-transform: uppercase; }
html[lang="ar"] .cover-issue { font-size: 14px; line-height: 1.8; }
.coverlines { position: absolute; inset-inline-start: clamp(18px, 3.4vw, 48px); bottom: clamp(18px, 3.4vw, 48px); width: min(380px, 42vw); display: grid; }
.coverlines { text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.coverlines a { display: grid; gap: 6px; padding: 12px 0 14px; border-top: 1px solid rgba(255,255,255,.5); }
.coverlines small { font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
html[lang="ar"] .coverlines small { font-size: 13px; }
.coverlines span { font: 400 clamp(21px, 2vw, 28px)/1.12 var(--serif-i); text-wrap: balance; }
.coverlines i { font-style: italic; }
html[lang="ar"] .coverlines span { line-height: 1.45; }
html[lang="ar"] .coverlines i { font-style: normal; color: var(--blush-i); }
.coverlines a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.cover-open { position: absolute; inset-inline-end: clamp(18px, 3.4vw, 48px); bottom: calc(clamp(18px, 3.4vw, 48px) + 160px); font-size: 14px; padding-bottom: 4px; border-bottom: 1px solid #fff; }
.barcode { position: absolute; inset-inline-end: clamp(18px, 3.4vw, 48px); bottom: calc(clamp(18px, 3.4vw, 48px) + 76px); background: #fff; color: #000; padding: 8px 10px 6px; text-align: center;
  font: 500 8px/1 var(--mono-i); letter-spacing: .06em; }
.barcode span { direction: ltr; unicode-bidi: isolate; }
.barcode b { display: block; width: 100px; height: 36px; margin-bottom: 5px;
  background: repeating-linear-gradient(90deg, #000 0 2px, #fff 2px 3px, #000 3px 4px, #fff 4px 7px, #000 7px 10px, #fff 10px 11px, #000 11px 12px, #fff 12px 15px); }

/* ---------- big magazine titles ---------- */
.issue .ttl { font: 300 clamp(64px, 8vw, 128px)/.86 var(--serif-i); letter-spacing: -.03em; color: var(--ink-i); margin-top: 14px; }
.issue .ttl i { font-style: italic; color: var(--clay-text); }
html[lang="ar"] .issue .ttl { line-height: 1.15; letter-spacing: 0; }

/* ---------- the cover story spread ---------- */
.spread { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: min(92svh, 900px); border-bottom: 1px solid var(--ink-i); }
.spread[hidden] { display: none; }
.spread-l { position: relative; display: block; overflow: hidden; background: var(--rose); }
.spread-l img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform 1.2s var(--ease); }
.spread-l:hover img { transform: scale(1.03); }
.spread-r { position: relative; padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 80px) clamp(60px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.spread-r .ttl { font-size: clamp(84px, 10vw, 168px); margin: 18px 0 0; }
.pull { font: italic 400 clamp(21px, 1.9vw, 28px)/1.35 var(--serif-i); color: #3a2025; max-width: 30ch; margin-top: 28px; padding-inline-start: 18px; border-inline-start: 2px solid var(--clay); }
html[lang="ar"] .pull { font-style: normal; line-height: 1.7; }
.meta { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 30px; font-size: 14px; color: #4b3236; }
.meta dt { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
html[lang="ar"] .meta dt { font-size: 13px; }
.story-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 34px; max-width: 520px; padding: 18px 22px; background: var(--clay); color: #F6EFE6; font-size: 15px; transition: background .25s; }
.story-cta i { font: italic 400 24px/1 var(--serif-i); white-space: nowrap; }
html[lang="ar"] .story-cta i { font-style: normal; font-size: 20px; }
.story-cta:hover { background: var(--clay-deep); }
.folio { position: absolute; bottom: 18px; font: 400 10px/1 var(--mono-i); letter-spacing: .1em; color: var(--ink-mute); }
.spread-l .folio { inset-inline-start: 18px; color: #efe4da; }
.spread-r .folio { inset-inline-end: clamp(24px, 5vw, 80px); }

/* ---------- the rest of the home page, set like the magazine ---------- */
.issue .sec-head .title { font-family: var(--serif-i); font-weight: 300; color: var(--ink-i); font-size: clamp(44px, 5.4vw, 84px); letter-spacing: -.02em; }
html[lang="ar"] .issue .sec-head .title { font-weight: 400; }
.issue .sec-head { align-items: end; }
.issue #popular .sec-head { display: grid; justify-content: start; gap: 10px; }
.issue .card .num { font-family: var(--serif-i); font-size: 27px; font-weight: 400; }
/* "also new": the cover-story piece is already above, so the other two */
.issue #featuredBlocks .card.is-story { display: none; }
@media (min-width: 901px) { .issue #featuredBlocks { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 66%; margin-inline: auto; } }
/* the feature: made to measure */
.issue .mtm-copy .title { font-family: var(--serif-i); font-weight: 300; font-size: clamp(44px, 5vw, 76px); line-height: .95; color: var(--ink-i); }
html[lang="ar"] .issue .mtm-copy .title { font-weight: 400; line-height: 1.3; }
html[lang="en"] .issue .mtm-copy p:not(.kicker)::first-letter { float: left; font: 300 4.4em/.78 var(--serif-i); color: var(--clay-text); margin: .06em .1em 0 0; }
.issue .mtm-art { background: var(--pattern); }
.issue #made-to-measure { padding-bottom: clamp(56px, 7vw, 110px); }
/* colophon */
.issue .service { background: var(--news); border-top: 1px solid var(--ink-i); }
.issue .service .kicker { grid-column: 1 / -1; padding-top: 40px; }
.issue .service .kicker + a { border-inline-start: 0; padding-inline-start: 0; }
.issue .service strong { font-family: var(--serif-i); font-size: 30px; }

@media (max-width: 900px) {
  .cover { height: calc(100svh - var(--header)); min-height: 600px; }
  .cover-mast { font-size: 36vw; top: 10px; }
  .cover-issue { top: calc(36vw * .8 + 24px); font-size: 10px; }
  .coverlines { inset-inline: 18px; width: auto; bottom: 18px; }
  .cover-open, .barcode { display: none; }
  .spread { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .spread-l { aspect-ratio: 4 / 5; }
  .spread-r { padding: 34px 18px 58px; }
  .spread-r .folio { inset-inline-end: 18px; }
  .issue .service .kicker { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { .spread-l img { transition: none; } }
html[lang="ar"] .issue i { font-style: normal; }
