/* saharanstyles — rebuilt to the 2026 design (saharanuidesign/*.pdf).
   Geometry is measured from the 1728pt frames, not estimated:
   container 1662 with 33px gutters, ticker 57, nav band 93 between 1px rules,
   nav dividers and Subscribe button 58 tall, card columns 520 with 51 gaps. */

:root {
  --bg:         #FFFFFF;
  --ink:        #000000;
  --body:       #1A1A1A;
  --muted:      #767676;   /* kickers, excerpts, meta */
  --rule:       #929292;   /* the 1px rules above/below the nav and sections */
  --divider:    #DEDEDE;   /* the lighter 1px lines between nav items and cards */
  --bar:        #262626;   /* ticker bar, Subscribe */
  --bar-label:  #363636;   /* the "Now Reading" block */
  --dark:       #1A1A1A;   /* the editorial dark band */
  --dark-rule:  rgba(255,255,255,.22);
  --dark-muted: rgba(255,255,255,.62);

  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --container: 1728px;   /* 1662 content + 2 x 33 gutter */
  --gutter: 33px;
  --radius: 14px;          /* post hero and in-article images */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------------------------------------------------------------- ticker */
.ticker {
  display: flex; align-items: stretch;
  height: 57px; background: var(--bar); color: #fff; overflow: hidden;
}
.ticker-label {
  flex: none; width: 244px; background: var(--bar-label);
  display: flex; align-items: center; padding-left: 60px;
  font-size: 17px; color: rgba(255,255,255,.72);
}
.ticker-track {
  flex: 1; display: flex; align-items: center; gap: 0;
  white-space: nowrap; overflow: hidden; padding-left: 28px;
}
.ticker-track a { font-size: 17px; color: #fff; }
.ticker-track a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- masthead */
.masthead { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 16px; }
.masthead .container { display: flex; align-items: center; height: 93px; }
.masthead-logo { display: none; }         /* the design has no logo in the header */

.nav { display: flex; align-items: stretch; height: 58px; }
.nav a {
  display: flex; align-items: center; padding: 0 44px;
  font-size: 17px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink);
  border-right: 1px solid var(--divider);
}
.nav a:first-child { padding-left: 0; }
.nav a:last-child { border-right: 0; }
.nav a:hover { color: var(--muted); }
.nav a[aria-current="page"] { font-weight: 500; }

.masthead-actions { margin-left: auto; display: flex; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 58px; padding: 0 34px; border: 1px solid var(--ink); background: var(--ink);
  color: #fff; font: inherit; font-size: 17px; border-radius: 0; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #000; }
.btn--subscribe { width: 184px; background: var(--bar); border-color: var(--bar); padding: 0; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--onimage { background: var(--bar); border-color: var(--bar); color: #fff; }

.icon-btn {
  width: 58px; height: 58px; border: 1px solid var(--divider); background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { border-color: var(--ink); }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; margin-top: 15px; }
.hero-media { position: relative; aspect-ratio: 1662 / 906; overflow: hidden; background: #ddd; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-body {
  position: absolute; inset-inline: 0; bottom: 0; color: #fff;
  padding: 0 50px 56px;
  background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,0) 100%);
}
.hero h1 { font-size: 44px; line-height: 1.18; font-weight: 400; max-width: 24ch; margin-bottom: 18px; }
.hero p { font-size: 19px; line-height: 1.55; margin: 0 0 30px; max-width: 70ch; color: rgba(255,255,255,.92); }

/* ---------------------------------------------------------------- section head */
/* centred label with a 1px rule running out to each side */
.section-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px;
  margin: 56px 0 44px;
}
.section-head::before, .section-head::after { content: ""; height: 1px; background: var(--rule); }
.section-head h2 {
  font-size: 19px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); font-weight: 400;
}

/* ---------------------------------------------------------------- cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 51px; row-gap: 56px; }

.card { display: flex; flex-direction: column; position: relative; }
/* the 1px line that runs between the columns */
.grid > .card + .card::before {
  content: ""; position: absolute; left: -26px; top: 0; bottom: 0; width: 1px; background: var(--divider);
}
.card-media { aspect-ratio: 521 / 240; overflow: hidden; background: #ebebeb; margin-bottom: 36px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.02); }
.card-index { font-size: 40px; line-height: 1; font-weight: 300; color: #BFBFBF; margin-bottom: 14px; }
.kicker { font-size: 16px; color: var(--muted); margin-bottom: 10px; }
.kicker a:hover { color: var(--ink); }
.kicker .sep { margin: 0 5px; }
.card h3 {
  font-size: 22px; line-height: 1.3; color: var(--ink); margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card p {
  font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--divider);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.card-foot > * + * { margin-top: 0; }
.card > .card-foot { margin-top: 28px; }

/* ---------------------------------------------------------------- dark band */
.band--dark { background: var(--dark); color: #fff; padding: 60px 0 64px; margin: 64px 0; }
.band--dark .card h3 { color: #fff; }
.band--dark .card p, .band--dark .kicker { color: var(--dark-muted); }
.band--dark .card-foot { border-top-color: var(--dark-rule); color: var(--dark-muted); }
.band--dark .grid > .card + .card::before { background: var(--dark-rule); }
.band--dark .btn { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.band--dark .btn:hover { background: #fff; color: var(--ink); }
.band--dark .section-head h2 { color: #fff; }
.band--dark .section-head::before, .band--dark .section-head::after { background: var(--dark-rule); }

/* the asymmetric mosaic: tall card left, two stacked right, one wide beneath */
.mosaic { display: grid; grid-template-columns: 600px 1fr; column-gap: 51px; row-gap: 44px; }
.mosaic .m-tall { grid-row: span 2; }
.mosaic .m-tall .card-media { aspect-ratio: 600 / 700; margin-bottom: 28px; }
.mosaic .m-pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: 51px; }
.mosaic .m-pair .card-media { aspect-ratio: 16 / 9; }
.mosaic .m-wide .card-media { aspect-ratio: 1011 / 420; }
.mosaic .card h3 { font-size: 26px; }

/* ---------------------------------------------------------------- contributors */
.contributors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 72px; }
.contributor-media { aspect-ratio: 1 / 1; overflow: hidden; background: #ebebeb; margin-bottom: 18px; }
.contributor-media img { width: 100%; height: 100%; object-fit: cover; }
.contributor-initials {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: #F2F0EC; color: #9A9A9A; font-size: 54px; font-weight: 300;
}
.contributor-name { font-size: 20px; color: var(--ink); }
.contributor-role { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* ---------------------------------------------------------------- newsletter */
.newsletter { text-align: center; padding: 84px 0 96px; }
.newsletter h2 { font-size: 34px; line-height: 1.25; color: var(--ink); }
.newsletter p { font-size: 17px; color: var(--muted); margin: 10px 0 30px; }
.newsletter form { display: flex; justify-content: center; gap: 0; max-width: 620px; margin-inline: auto; }
.newsletter input {
  flex: 1; font: inherit; font-size: 16px; padding: 0 20px; height: 58px;
  border: 1px solid var(--rule); border-right: 0; background: transparent; border-radius: 0;
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--bg); padding: 90px 0 44px; }
.footer-brand { display: flex; justify-content: center; margin-bottom: 118px; }
.footer-brand img { width: 196px; }
.footer-cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.site-footer h4 {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 22px; font-weight: 400;
}
.site-footer a { font-size: 17px; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 96px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  font-size: 17px; color: var(--muted);
}
.footer-social { display: flex; gap: 22px; }
.footer-social a { color: var(--ink); }
.footer-credit { justify-self: end; display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); line-height: 1.25; }

/* ---------------------------------------------------------------- article */
/* The post page insets to 90px, not the 33px the homepage uses. */
.container--post { width: 100%; max-width: 1728px; margin-inline: auto; padding-inline: 90px; }
/* padding-block, not the shorthand: `padding: 60px 0 0` would reset the
   container's inline padding and let the title and hero run to the edge. */
.article-top { padding-block: 60px 0; }
.back-home {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 17px; color: var(--ink); margin-bottom: 36px;
}
.back-home:hover { color: var(--muted); }
.article-title { font-size: 44px; line-height: 1.22; font-weight: 400; color: var(--ink); max-width: 30ch; }
.article-hero { margin: 62px 0 0; aspect-ratio: 1548 / 657; overflow: hidden; border-radius: var(--radius); background: #ebebeb; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.article-layout {
  display: grid; grid-template-columns: 350px minmax(0, 865px); column-gap: 200px;
  padding-block: 58px 40px; align-items: start;
}

.author-card { display: flex; align-items: center; gap: 24px; }
.author-avatar {
  width: 90px; height: 90px; border-radius: 50%; overflow: hidden; flex: none; background: #F2F0EC;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-avatar .initials { width: 100%; height: 100%; display: grid; place-items: center; font-size: 30px; color: #9A9A9A; }
.author-name { font-size: 24px; color: var(--ink); }
.author-role { font-size: 16px; color: var(--muted); margin-top: 4px; }

.rail-rule { height: 1px; background: var(--divider); margin: 30px 0 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 20px; border: 1px solid var(--divider); border-radius: 999px;
  font-size: 15px; color: var(--body); white-space: nowrap;
}
.chip--icon { width: 38px; padding: 0; }
button.chip { background: transparent; font-family: inherit; cursor: pointer; }
button.chip:hover { border-color: var(--ink); }
.published { font-size: 16px; color: var(--muted); margin-top: 26px; }
.published .dot { margin: 0 8px; }

.related { margin-top: 90px; }
.related h3 { font-size: 24px; color: var(--ink); margin-bottom: 26px; }
.related-item { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 26px; }
.related-item .thumb { width: 98px; height: 72px; flex: none; overflow: hidden; background: #ebebeb; }
.related-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-item span { font-size: 16px; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.article-body { font-size: 19px; line-height: 1.62; color: var(--muted); max-width: 865px; }
.article-body > h2:first-child, .article-body > h1:first-child { margin-top: 0; }
.article-body h2 { font-size: 30px; line-height: 1.3; color: var(--ink); margin: 1.5em 0 .7em; }
.article-body h3 { font-size: 23px; color: var(--ink); margin: 1.4em 0 .6em; }
.article-body p { margin: 0 0 1.5em; }
.article-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--body); }
.article-body figure { margin: 2.2em 0; }
.article-body img { border-radius: var(--radius); }
.article-body figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; }
.article-body blockquote {
  margin: 0 0 2em; padding-left: 28px; border-left: 3px solid var(--divider);
  font-size: 22px; line-height: 1.5; color: var(--body);
}
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.5em; }
.article-body li { margin-bottom: .6em; }
.article-body iframe { max-width: 100%; border-radius: var(--radius); }
.article-end-rule { height: 1px; background: var(--divider); margin: 46px 0; }

/* category strip under an article */
.cat-strip { display: flex; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.cat-strip a {
  flex: 1; text-align: center; padding: 22px 10px; font-size: 17px;
  text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
  border-right: 1px solid var(--divider);
}
.cat-strip a:last-child { border-right: 0; }
.cat-strip a:hover { color: var(--muted); }

/* ---------------------------------------------------------------- archive */
.archive-head { padding: 72px 0 0; }
.archive-head h1 { font-size: 86px; line-height: 1.05; font-weight: 300; color: var(--ink); letter-spacing: -0.02em; }
.archive-head p { font-size: 18px; color: var(--muted); margin: 18px 0 0; max-width: 70ch; }
.archive-tools { margin: 74px 0 44px; }
.sort-select {
  appearance: none; font: inherit; font-size: 17px; color: var(--ink);
  border: 1px solid var(--rule); background: transparent; border-radius: 0;
  height: 58px; padding: 0 56px 0 24px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 22px center;
}

/* ---------------------------------------------------------------- page */
.page-narrow { max-width: 980px; margin-inline: auto; padding: 72px 0 40px; }
.page-narrow h1 { font-size: 64px; line-height: 1.1; font-weight: 300; color: var(--ink); margin-bottom: 34px; }
.page-narrow .article-body { max-width: none; }

/* ---------------------------------------------------------------- contact */
.contact-hero { text-align: center; padding: 120px 0 0; }
.contact-hero h1 { font-size: 112px; line-height: 1.08; font-weight: 300; letter-spacing: -0.03em; color: var(--ink); }
.contact-hero p { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 72ch; margin: 56px auto 0; text-align: left; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; padding: 90px 0 120px; }
.contact-arrow { align-self: end; }
.contact-arrow svg { width: 210px; height: 210px; color: #3A3A3A; }
.field { margin-bottom: 34px; }
.field label { display: block; font-size: 16px; color: var(--muted); margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--body);
  border: 1px solid var(--divider); background: transparent; border-radius: 0; padding: 18px 26px;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #AFAFAF; }

/* ---------------------------------------------------------------- comments */
.comments { max-width: 865px; padding: 0 0 80px; }
.comments h2 { font-size: 24px; color: var(--ink); margin-bottom: 24px; }
.comment { border-top: 1px solid var(--divider); padding: 22px 0; }
.comment-author { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.comment-date { font-size: 14px; color: var(--muted); }
.comment-body { font-size: 17px; margin-top: 10px; color: var(--body); }
.comment-form { display: grid; gap: 16px; margin-top: 30px; }
.comment-form input, .comment-form textarea {
  font: inherit; font-size: 17px; color: var(--body);
  border: 1px solid var(--divider); background: transparent; padding: 18px 22px; border-radius: 0;
}
.comment-form textarea { min-height: 170px; resize: vertical; }
.comment-form .btn { justify-self: start; }
.comment-note { font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin: 72px 0 96px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 58px; height: 58px; display: grid; place-items: center; padding: 0 16px;
  border: 1px solid var(--divider); font-size: 17px;
}
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------- search */
.search-form { display: flex; max-width: 680px; margin: 40px auto 0; }
.search-form input {
  flex: 1; font: inherit; font-size: 17px; padding: 0 22px; height: 58px;
  border: 1px solid var(--rule); border-right: 0; background: transparent; border-radius: 0;
}
.search-results { max-width: 865px; margin-inline: auto; padding: 44px 0 90px; }
.search-result { border-top: 1px solid var(--divider); padding: 26px 0; }
.search-result h3 { font-size: 22px; margin: 0 0 8px; color: var(--ink); }
.search-result p { margin: 0; font-size: 16px; color: var(--muted); }
.search-result mark { background: #FFEFBF; color: inherit; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1500px) {
  .article-layout { column-gap: 110px; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic .m-tall { grid-row: auto; }
  .mosaic .m-tall .card-media { aspect-ratio: 4 / 5; }
}

@media (max-width: 1500px) {
  .container--post { padding-inline: 48px; }
  .article-layout { grid-template-columns: 320px minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  :root { --gutter: 24px; }
  .container--post { padding-inline: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); column-gap: 36px; }
  .grid > .card + .card::before { display: none; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .contributors { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; row-gap: 46px; }
  .article-body { max-width: none; }
  .contact-hero h1 { font-size: 72px; }
  .archive-head h1 { font-size: 60px; }
}

@media (max-width: 767px) {
  :root { --gutter: 18px; }
  .ticker-label { width: auto; padding: 0 16px; font-size: 14px; }
  .ticker-track a { font-size: 14px; }
  .masthead .container { height: auto; padding: 12px var(--gutter); position: relative; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%; z-index: 20;
    flex-direction: column; height: auto; background: #fff;
    border-bottom: 1px solid var(--rule); padding: 6px 18px 14px;
  }
  .masthead.is-open .nav { display: flex; }
  .nav a { border-right: 0; border-bottom: 1px solid var(--divider); padding: 14px 0; height: auto; }
  .nav-toggle { display: grid; }
  .masthead-actions { padding-right: 0; gap: 10px; }
  .btn--subscribe { width: auto; padding: 0 18px; height: 46px; font-size: 15px; }
  .icon-btn { width: 46px; height: 46px; }
  .grid { grid-template-columns: 1fr; row-gap: 44px; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic .m-pair { grid-template-columns: 1fr; row-gap: 44px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .contributors { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
  .footer-credit { justify-self: center; }
  .footer-brand { margin-bottom: 56px; }
  .hero-media { aspect-ratio: 4 / 5; }
  .hero-body { position: static; background: var(--dark); padding: 26px var(--gutter) 30px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 16px; }
  .article-title { font-size: 28px; }
  .container--post { padding-inline: var(--gutter); }
  .article-body { font-size: 17px; }
  .contact-hero { padding-top: 60px; }
  .contact-hero h1 { font-size: 44px; }
  .contact-layout { grid-template-columns: 1fr; padding-top: 50px; }
  .contact-arrow { display: none; }
  .archive-head h1 { font-size: 40px; }
  .page-narrow h1 { font-size: 36px; }
  .newsletter h2 { font-size: 24px; }
  .cat-strip { flex-wrap: wrap; }
  .cat-strip a { flex: 1 0 50%; border-bottom: 1px solid var(--divider); }
  .section-head { gap: 18px; margin: 40px 0 32px; }
  .section-head h2 { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
