:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #171615;
  --muted: #68645e;
  --quiet: #8b867f;
  --line: #dedbd5;
  --accent: #a93631;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: var(--sans);
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.6 var(--sans);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button { font: inherit; }

/* Shared frame */
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5.4vw, 78px);
  background: var(--paper);
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  font: 400 19px/1.05 var(--serif);
  letter-spacing: .005em;
}
.wordmark span {
  color: var(--muted);
  font: 9px/1.2 var(--mono);
  letter-spacing: .14em;
}
.primary-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.primary-nav a {
  position: relative;
  padding: 8px 0;
  color: #373430;
  font-size: 12px;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; border: 0; background: none; color: var(--ink); padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 1px; margin: 5px 0; background: currentColor; }
.page-shell {
  width: min(89%, 1240px);
  margin: 0 auto;
  padding: clamp(66px, 8vw, 104px) 0 100px;
}
.page-heading { max-width: 760px; margin-bottom: 58px; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font: 10px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
.page-heading h1, .contact-layout h1, .not-found h1 {
  margin: 0 0 20px;
  font: 400 clamp(40px, 5.5vw, 72px)/1.02 var(--serif);
  letter-spacing: -.025em;
}
.intro-copy { max-width: 510px; margin-bottom: 0; color: #4b4843; font-size: 14px; line-height: 1.75; }
.site-footer {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(24px, 5.4vw, 78px);
  color: var(--muted);
  font: 11px/1.4 var(--mono);
}
.site-footer a { color: var(--ink); }

/* Home slideshow */
.home-page { display: flex; height: 100svh; min-height: 520px; flex-direction: column; overflow: hidden; }
.home-header { flex: 0 0 78px; }
.home-main { min-height: 0; flex: 1; }
.slideshow { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--paper); }
.slide-stage { position: absolute; inset: 18px 5vw 62px; display: grid; place-items: center; }
.slide-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: none;
}
.slide-image-next { opacity: 0; }
.slide-shade { display: none; }
.home-title { position: absolute; z-index: 2; top: 22px; left: 5.4vw; margin: 0; padding: 7px 10px; background: var(--paper); color: var(--muted); font: italic 14px/1.4 var(--serif); }
.home-caption {
  position: absolute;
  z-index: 2;
  bottom: 13px;
  left: 5.4vw;
  display: flex;
  min-width: 185px;
  flex-direction: column;
  gap: 2px;
  padding: 8px 11px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}
.home-caption .eyebrow { margin: 0; font-size: 9px; }
.home-caption::after { margin-top: 2px; color: var(--accent); content: "the Observer"; font: italic 15px/1.3 var(--serif); }
.slide-controls { position: absolute; z-index: 2; right: 5.4vw; bottom: 15px; display: flex; gap: 6px; }
.slide-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #bdb8b0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
}
.slide-button:hover { border-color: var(--accent); color: var(--accent); }
.home-enter {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 5.4vw;
  padding: 7px 10px;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.4 var(--serif);
}
.home-enter span { margin-left: 8px; font: 12px var(--sans); }
.placeholder-note {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: .08em;
  pointer-events: none;
  text-transform: uppercase;
}
.home-footer { min-height: 44px; flex: 0 0 44px; padding-top: 10px; padding-bottom: 10px; }
.page-wipe {
  position: fixed;
  z-index: 20;
  inset: 0;
  transform: translateY(102%);
  transform-origin: bottom;
  background: var(--paper);
  pointer-events: none;
  transition: transform .32s cubic-bezier(.65, 0, .25, 1);
}
body.is-entering .page-wipe { transform: translateY(0); }

/* Work photo gallery */
.work-page .page-heading { margin-bottom: 44px; }
.work-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px 12px;
}
.gallery-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: zoom-in;
  text-align: left;
}
.gallery-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}
.gallery-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Expanded image viewer */
.photo-viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 32px 64px;
  overflow: hidden;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.photo-viewer[open] {
  display: grid;
  grid-template: 1fr / 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 16px;
}
.photo-viewer::backdrop { background: rgba(255, 255, 255, .97); }
.photo-viewer figure { grid-area: 1 / 2; min-width: 0; margin: 0; text-align: center; }
.photo-viewer figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 1100px);
  max-height: 78dvh;
  margin: 0 auto;
  object-fit: contain;
}
.photo-viewer figcaption {
  display: flex;
  min-height: 26px;
  justify-content: center;
  gap: 20px;
  padding-top: 10px;
  color: var(--muted);
  font: italic 13px/1.5 var(--serif);
}
.viewer-count { color: var(--accent); font: 10px/1.5 var(--mono); }
.viewer-close, .viewer-arrow { border: 0; background: none; color: var(--ink); cursor: pointer; }
.viewer-close { position: absolute; top: 18px; right: 24px; font-size: 30px; line-height: 1; }
.viewer-arrow { grid-row: 1; padding: 12px; font-size: 24px; }
.viewer-prev { grid-column: 1; }
.viewer-next { grid-column: 3; }
.viewer-close:hover, .viewer-arrow:hover { color: var(--accent); }

/* Stories index and story pages */
.story-list { border: 0; }
.story-row {
  display: grid;
  grid-template-columns: 54px minmax(220px, 1.1fr) minmax(200px, 1.5fr) 24px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
}
.story-index, .story-arrow { color: var(--accent); font: 11px var(--mono); }
.story-row h2 { margin: 0; font: 400 clamp(22px, 2.4vw, 31px)/1.15 var(--serif); }
.story-blurb { max-width: 460px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.story-arrow { text-align: right; transition: transform .2s; }
.story-row:hover .story-arrow { transform: translate(2px, -2px); }
.story-page { width: min(89%, 1240px); margin: 0 auto; padding: 36px 0 100px; }
.back-link { color: var(--muted); font-size: 12px; }
.story-title { max-width: 920px; padding: clamp(54px, 8vw, 96px) 0 40px; }
.story-title h1 { max-width: 880px; margin: 0 0 18px; font: 400 clamp(40px, 6.4vw, 82px)/1 var(--serif); letter-spacing: -.025em; }
.story-intro { max-width: 560px; margin: 0; color: #4b4843; font-size: 14px; font-style: italic; line-height: 1.75; }
.story-opening { width: min(100%, 740px); margin: 0 auto; }
.story-page[data-story-slug="salt-flats"] .story-opening { width: min(100%, 680px); }
.story-page[data-story-slug="bhutan"] .story-opening { width: min(100%, 680px); }
.story-opening img { display: block; width: 100%; height: auto; background: transparent; object-fit: contain; }
.story-opening figcaption, .sequence-item figcaption { padding-top: 9px; color: var(--muted); font: 11px/1.5 var(--mono); }
.story-sequence { width: min(100%, 1100px); margin-inline: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(24px, 3vw, 38px) clamp(18px, 2.5vw, 30px); padding-top: clamp(32px, 4vw, 48px); }
.story-copy { width: min(78%, 700px); margin: clamp(42px, 7vw, 84px) auto 0; color: var(--ink); font: 15px/1.85 var(--serif); }
.story-copy p { margin: 0 0 1.25em; }
.story-copy p:last-child { margin-bottom: 0; }
.story-copy[hidden] { display: none; }
.sequence-item { width: min(100%, 840px); margin: 0 auto; }
.sequence-item img { display: block; width: 100%; height: auto; background: transparent; object-fit: contain; }
.sequence-item figcaption:empty { display: none; }
.story-page[data-story-slug="tamil-nadu"] .sequence-item-fairground img { aspect-ratio: 3941 / 5163; object-fit: cover; }
.story-page[data-story-slug="largest-gathering"] .sequence-item-final-kumbh img { aspect-ratio: 5250 / 3757; object-fit: cover; }
.story-page[data-story-slug="monkhood"] .sequence-item-monkhood-shrine img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center bottom; }
.story-page[data-story-slug="tibetan-plateau"] .sequence-item-tibetan-first-row img { aspect-ratio: 3465 / 4518; object-fit: cover; object-position: center bottom; }
.story-page[data-story-slug="tibetan-plateau"] .sequence-item-tibetan-passerby img { aspect-ratio: 3973 / 5298; object-fit: cover; object-position: center bottom; }
.story-page[data-story-slug="tibetan-plateau"] .sequence-item-tibetan-final img { aspect-ratio: 5687 / 4160; object-fit: cover; object-position: center; }

/* About, contact and social links */
.about-layout {
  display: grid;
  max-width: 1080px;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(36px, 8vw, 100px);
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: 86px;
}
.about-layout > .eyebrow { margin: 5px 0 0; color: var(--muted); }
.about-copy { max-width: 700px; }
.about-copy p { margin: 0 0 20px; color: var(--ink); font: 15px/1.8 var(--serif); }
.about-copy .about-signoff { margin-top: 28px; color: var(--ink); font: italic 15px/1.6 var(--serif); white-space: pre-line; }
.about-foot {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 12px;
  padding-top: 8px;
}
.text-link { padding-bottom: 5px; font-size: 13px; }
.text-link span { margin-left: 10px; }
.social-links { display: flex; flex-wrap: wrap; gap: 9px; }
.social-button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 6px;
  border: 0;
  color: var(--ink);
  font-size: 12px;
  transition: color .18s, border-color .18s;
}
.social-button svg { width: 20px; height: 20px; flex: none; }
.social-links a.social-button { text-decoration: none; }
a.social-button:hover { color: var(--accent); }
.contact-layout { min-height: calc(100vh - 146px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; text-align: center; }
.contact-layout > .eyebrow { margin: 0; color: var(--muted); font-size: 9px; }
.contact-layout h1 { max-width: 420px; margin: 0; color: #373430; font-size: clamp(24px, 2.7vw, 32px); line-height: 1.4; letter-spacing: -.01em; }
.contact-layout .intro-copy { margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.contact-address { padding-bottom: 0; color: #373430; font: 400 clamp(15px, 1.5vw, 17px)/1.5 var(--serif); }
.print-note { max-width: 340px; }
.print-note h2 { margin: 0 0 7px; color: var(--muted); font: 12px/1.4 var(--sans); }
.print-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.print-note a { color: var(--ink); text-decoration: underline; text-decoration-color: #c7c2ba; text-underline-offset: 3px; }
.print-note a:hover { color: var(--accent); }
.print-note a[hidden] { display: none; }
.image-disclaimer { max-width: 340px; margin: -16px 0 0; color: var(--quiet); font-size: 10px; line-height: 1.6; }
.contact-hint { margin: 8px 0 26px; color: var(--quiet); font: 10px var(--mono); }
.contact-layout .social-links { margin-top: 0; gap: 14px; }
.not-found { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found .text-link { margin-top: 16px; }

@media (max-width: 1020px) {
  .work-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 6vw; }
  .home-header { flex-basis: 70px; }
  .wordmark { font-size: 18px; }
  .primary-nav {
    position: absolute;
    top: 69px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 6vw 22px;
    background: var(--paper);
  }
  .site-header.nav-open .primary-nav { display: flex; }
  .primary-nav a { padding: 7px 0; font-size: 14px; }
  .menu-toggle { display: block; }
  .page-shell { width: 88%; padding: 64px 0 74px; }
  .page-heading { margin-bottom: 40px; }
  .page-heading h1, .contact-layout h1, .not-found h1 { font-size: clamp(36px, 9vw, 56px); }
  .work-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .photo-viewer { padding: 56px 10px 22px; }
  .photo-viewer[open] { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 0; }
  .photo-viewer figure img { max-width: 100%; max-height: 74dvh; }
  .viewer-arrow { padding: 7px; font-size: 20px; }
  .viewer-close { top: 14px; right: 16px; }
  .story-row { grid-template-columns: 30px minmax(0, 1fr) 20px; gap: 12px; padding: 20px 0; }
  .story-row h2 { grid-column: 2; font-size: 25px; }
  .story-index { grid-column: 1; grid-row: 1; }
  .story-blurb { grid-column: 2; font-size: 12px; }
  .story-arrow { grid-column: 3; grid-row: 1; }
  .story-page { width: 88%; padding-top: 28px; }
  .story-sequence { grid-template-columns: 1fr; gap: 30px; }
  .story-page[data-story-slug="tamil-nadu"] .story-sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .story-page[data-story-slug="road-back-ranikot"] .story-sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .story-page[data-story-slug="tamil-nadu"] .sequence-item { width: 100%; margin: 0; }
  .story-title { padding: 60px 0 30px; }
  .story-title h1 { font-size: clamp(38px, 10vw, 62px); }
  .story-copy { width: 100%; margin-top: 38px; font-size: 14px; }
  .sequence-item, .story-opening { width: 100%; margin: 0; }
  .about-layout { display: block; padding-top: 58px; padding-bottom: 62px; }
  .about-layout > .eyebrow { margin: 0 0 25px; }
  .about-copy p { margin-bottom: 17px; font-size: 15px; line-height: 1.75; }
  .about-copy .about-signoff { margin-top: 22px; font-size: 15px; }
  .about-foot { align-items: flex-start; flex-direction: column; margin-top: 12px; }
  .contact-layout { min-height: calc(100svh - 140px); }
  .contact-layout { gap: 28px; }
  .contact-layout h1 { max-width: 320px; font-size: clamp(23px, 6vw, 28px); }
  .home-page { min-height: 500px; }
  .slide-stage { inset: 12px 4vw 68px; }
  .home-title { top: 17px; left: 4vw; font-size: 13px; }
  .home-caption { bottom: 10px; left: 4vw; min-width: 158px; padding: 7px 9px; font-size: 11px; }
  .slide-controls { right: 4vw; bottom: 12px; }
  .slide-button { width: 34px; height: 34px; }
  .home-enter { top: 17px; right: 4vw; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
