/* Photo Concern's Nepali company story. The article stays narrow and
   readable while its supporting images remain deliberately modest. */

.story-page {
  --story-nepali-font: "Noto Sans Devanagari", "Nirmala UI", "Mangal", var(--font-body);
  --story-heading-size: clamp(2.4rem, 4vw, 3.25rem);
  --story-subheading-size: clamp(1.65rem, 2.3vw, 2.15rem);
  --story-body-size: clamp(1rem, 1.3vw, 1.08rem);
  width: calc(100% - (var(--gutter) * 2));
  max-width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(34px, 5vw, 72px) var(--sp-section);
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: center;
  gap: clamp(36px, 7vw, 104px);
  padding-bottom: clamp(38px, 6vw, 76px);
  border-bottom: 1px solid var(--rule);
}

.story-back {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: clamp(30px, 5vw, 56px);
  color: var(--ink-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .25s var(--ease);
}
.story-back:hover { color: var(--red); }

.story-hero h1 {
  max-width: 10ch;
  margin: .8rem 0 0;
  font-family: var(--story-nepali-font);
  font-size: var(--story-heading-size);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0;
}

.story-hero__dek {
  max-width: 46ch;
  margin: clamp(22px, 3vw, 32px) 0 0;
  color: var(--ink-body);
  font-family: var(--story-nepali-font);
  font-size: var(--story-body-size);
  line-height: 1.82;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.2rem;
  margin-top: 1.8rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.story-meta :is(span, time) + :is(span, time)::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 1.2rem 2px 0;
  border-radius: 50%;
  background: var(--red);
}

.story-article p a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.story-page--en { --story-nepali-font: var(--font-body); }
.story-page--en .story-hero h1 { max-width: 15ch; }
.story-page--en .story-lede { max-width: 55ch; }

.story-hero__media {
  justify-self: end;
  width: min(100%, 580px);
  margin: 0;
}
.story-hero__media img {
  width: 100%;
  height: clamp(300px, 34vw, 470px);
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.story-hero figcaption,
.story-inline-figure figcaption {
  margin-top: .7rem;
  color: #171312;
  font-family: var(--story-nepali-font);
  font-size: .84rem;
  line-height: 1.62;
}
body.theme-dark .story-hero figcaption,
body.theme-dark .story-inline-figure figcaption { color: var(--ink); }

.story-article {
  width: min(100%, 920px);
  margin-inline: auto;
}
.story-article--ne {
  font-family: var(--story-nepali-font);
}

.story-lede {
  max-width: 36ch;
  margin: clamp(56px, 8vw, 96px) auto clamp(64px, 9vw, 112px);
  color: var(--ink);
  font-family: var(--story-nepali-font);
  font-size: var(--story-body-size);
  font-weight: 500;
  line-height: 1.88;
}

.story-chapter {
  display: block;
  margin-top: clamp(66px, 9vw, 116px);
}
.story-chapter__body { width: min(100%, 720px); margin-inline: auto; }
.story-chapter__body,
.story-ending { display: flow-root; }
.story-chapter__body h2,
.story-ending h2 {
  margin: 0 0 1.6rem;
  font-family: var(--story-nepali-font);
  font-size: var(--story-subheading-size);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: 0;
}
.story-chapter__body > p,
.story-ending > p {
  margin: 0 0 1.35rem;
  color: var(--ink-body);
  font-size: var(--story-body-size);
  line-height: 1.88;
}
.story-chapter__body strong { color: var(--ink); }
.story-chapter blockquote {
  margin: 2.5rem 0 0;
  padding: 1.2rem 0 1.2rem clamp(22px, 4vw, 40px);
  border-left: 3px solid var(--red);
}
.story-chapter blockquote p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.2vw, 1.6rem);
  line-height: 1.55;
}

.story-inline-figure {
  margin: .35rem 0 1.5rem;
}
.story-inline-figure--float-right {
  float: right;
  width: min(43%, 300px);
  margin-left: clamp(22px, 4vw, 38px);
}
.story-inline-figure--float-left {
  float: left;
  width: min(48%, 340px);
  margin-right: clamp(22px, 4vw, 38px);
}
.story-inline-figure img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.story-inline-figure--square img { height: 300px; }
.story-inline-figure--landscape img { height: 225px; }
.story-inline-figure--portrait img { height: 375px; object-position: center top; }

.story-ending {
  width: min(100%, 720px);
  margin-inline: auto;
  margin-top: clamp(72px, 10vw, 128px);
  padding: clamp(34px, 5vw, 56px) 0 0;
  border-top: 1px solid var(--rule);
}
.story-ending .section-label { color: var(--red); }
.story-ending h2 { max-width: 20ch; margin-top: .9rem; color: var(--ink); }
.story-ending > p { max-width: 62ch; margin-bottom: 0; color: var(--ink-body); }

.story-closing-figure {
  clear: both;
  width: min(100%, 520px);
  margin: clamp(34px, 5vw, 52px) auto 0;
}
.story-closing-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.story-closing-figure figcaption { margin-top: .8rem; color: var(--ink); font-size: .84rem; line-height: 1.62; }
.story-closing-figure figcaption a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.story-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: fit-content;
  min-height: 48px;
  margin: 1.15rem auto 0;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-body);
  font-size: .96rem;
  line-height: 1;
  font-weight: 700;
  text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.story-whatsapp:hover,
.story-whatsapp:focus-visible { background: #1fb85a; color: #fff; }
.story-whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }
.story-whatsapp span { display: block; line-height: 1; }

.story-source-icons {
  width: min(100%, 720px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin: clamp(44px, 7vw, 72px) auto 0;
}

.story-source-label {
  margin-right: .15rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.story-source-icons a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper-raised);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.story-source-icons a:hover,
.story-source-icons a:focus-visible { border-color: var(--red); background: var(--red-wash); }
.story-source-icons img { width: 18px; height: 18px; border-radius: 50%; }

@media (max-width: 900px) {
  .story-hero { grid-template-columns: 1fr; align-items: start; }
  .story-hero__copy { max-width: 760px; }
  .story-hero__media { justify-self: stretch; width: 100%; }
  .story-hero__media img { height: auto; aspect-ratio: 16 / 10; }
}

@media (max-width: 680px) {
  .story-page {
    --story-heading-size: 2.4rem;
    --story-subheading-size: 1.7rem;
    --story-body-size: 1.05rem;
    padding-top: 26px;
  }
  .story-back { margin-bottom: 30px; }
  .story-hero { gap: 30px; padding-bottom: 34px; }
  .story-hero__media img { height: auto; aspect-ratio: 4 / 3; }
  .story-meta { gap: .5rem .75rem; }
  .story-meta :is(span, time) + :is(span, time)::before { margin-right: .75rem; }
  .story-lede { margin-bottom: 64px; }
  .story-chapter {
    margin-top: 68px;
  }
  .story-chapter__body > p,
  .story-ending > p,
  .story-lede { line-height: 1.86; text-align: justify; text-justify: inter-word; }
  .story-inline-figure--float-left,
  .story-inline-figure--float-right {
    float: none;
    width: min(100%, 420px);
    margin: 30px auto;
  }
  .story-inline-figure--portrait { width: min(100%, 340px); }
  .story-inline-figure--square img { height: min(82vw, 360px); }
  .story-inline-figure--landscape img { height: min(58vw, 260px); }
  .story-inline-figure--portrait img { height: min(105vw, 430px); }
  .story-ending { padding-top: 32px; }
  .story-page--en :is(.story-lede, .story-chapter__body > p, .story-ending > p) { text-align: left; }
  .story-closing-figure { width: min(100%, 420px); }
  .story-whatsapp { width: min(100%, 340px); }
}

@media (max-width: 430px) {
  .story-page {
    --story-heading-size: 2.25rem;
    --story-subheading-size: 1.62rem;
    --story-body-size: 1.03rem;
    padding-top: 20px;
  }
  .story-hero__dek { line-height: 1.82; }
  .story-meta { display: grid; gap: .45rem; }
  .story-meta :is(span, time) + :is(span, time)::before { display: none; }
  .story-source-icons { gap: .5rem; }
  .story-source-icons a { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-back,
  .story-source-icons a { transition: none; }
}
