/* ==========================================================================
   RAJIB MIAH — Premium Travel Brand
   Design system v2. Editorial/cinematic direction: large serif display type,
   generous whitespace, restrained color, real photography as the hero.
   ========================================================================== */

:root {
  --ink: #14140f;
  --ink-soft: #4a4a42;
  --paper: #faf8f4;
  --paper-raised: #ffffff;
  --sand: #eee7da;
  --teal: #0f8fa8;
  --teal-deep: #0b6f83;
  --gold: #b98a3d;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1240px;
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 1.75rem;
  --gap-lg: 3rem;
  --gap-xl: 5rem;
  --gap-xxl: 8rem;

  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.1rem; color: var(--ink-soft); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 400; }
h3 { font-size: 1.4rem; }
em { font-style: italic; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
section { padding-block: var(--gap-xxl); }
.section-tight { padding-block: var(--gap-xl); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--teal-deep);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background var(--ease) .25s, color var(--ease) .25s, border-color var(--ease) .25s;
  background: transparent;
  color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.92rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap var(--ease) .25s;
}
.link-arrow:hover { gap: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.4rem;
  transition: background var(--ease) .3s, padding var(--ease) .3s, box-shadow var(--ease) .3s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-scrolled {
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(10px);
  padding-block: 0.9rem;
  box-shadow: 0 1px 0 rgba(20,20,15,0.06);
}
.mark { display: flex; align-items: center; }
.mark img {
  height: 48px;
  width: auto;
  display: block;
  transition: height var(--ease) .3s, opacity var(--ease) .2s;
}
.mark .mark-dark { display: none; }
.site-header.is-scrolled .mark img,
.site-header.on-light .mark img { height: 43px; } /* ~10% smaller once solid, per spec */
.site-header.is-scrolled .mark-light,
.site-header.on-light .mark-light { display: none; }
.site-header.is-scrolled .mark-dark,
.site-header.on-light .mark-dark { display: block; }

@media (max-width: 1080px) {
  .mark img { height: 44px; } /* tablet */
}
@media (max-width: 600px) {
  .mark img { height: 38px; } /* mobile */
}
.main-nav { display: flex; gap: 2.2rem; }
.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.9);
  transition: color var(--ease) .3s;
  position: relative;
}
.site-header.is-scrolled .main-nav a,
.site-header.on-light .main-nav a { color: var(--ink-soft); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--teal); }
.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a[aria-current="page"],
.site-header.on-light .main-nav a:hover,
.site-header.on-light .main-nav a[aria-current="page"] { color: var(--teal-deep); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions .btn { padding: 0.6rem 1.4rem; font-size: 0.82rem; border-color: rgba(255,255,255,0.5); color: #fff; }
.site-header.is-scrolled .header-actions .btn,
.site-header.on-light .header-actions .btn { border-color: var(--ink); color: var(--ink); }
.header-actions .btn:hover { background: #fff; color: var(--ink); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 30px; height: 22px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  color: #fff; transition: transform var(--ease) .3s, opacity var(--ease) .3s, top var(--ease) .3s;
}
.site-header.is-scrolled .nav-toggle span, .site-header.on-light .nav-toggle span { color: var(--ink); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-actions .btn.btn-join { display: none; }
  .nav-toggle { display: block; }
}

.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem;
  transform: translateY(-100%);
  transition: transform var(--ease) .4s;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav-logo { height: 64px; width: auto; margin-bottom: 1rem; }
.mobile-nav a { font-family: var(--font-display); font-size: 2rem; color: var(--ink); }

/* ---------- Cinematic hero ---------- */
.hero-cinema {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-cinema .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroZoom 16s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-cinema::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,10,.25) 0%, rgba(10,12,10,.05) 30%, rgba(10,12,10,.65) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero-inner h1 { color: #fff; max-width: 900px; margin-bottom: 1.4rem; }
.hero-inner .lede { color: rgba(255,255,255,0.88); font-size: 1.2rem; max-width: 480px; margin-bottom: 2rem; }

/* Right-aligned variant: used when the photo's subject sits on the left
   and the clean negative space (sky/road/horizon) is on the right —
   keeps text off the subject instead of assuming left-alignment always. */
.hero-cinema--right .bg { background-position: 38% center; }

@media (min-aspect-ratio: 2/1) and (max-height: 900px) {
  /* Ultra-wide, short viewports (e.g. 21:9/32:9 monitors with a shallow
     browser window): cover crops much more aggressively top/bottom on
     these ratios. Bias the vertical anchor down so the seated subject
     stays in frame instead of centering on empty sky. */
  .hero-cinema--right .bg { background-position: 38% 62%; }
}
.hero-cinema--right::after {
  background:
    linear-gradient(90deg, rgba(8,10,8,.55) 0%, rgba(8,10,8,.12) 42%, rgba(8,10,8,0) 60%),
    linear-gradient(180deg, rgba(10,12,10,.1) 0%, rgba(10,12,10,.05) 25%, rgba(10,12,10,.7) 100%);
}
.hero-cinema--right .hero-inner { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hero-cinema--right .hero-inner h1,
.hero-cinema--right .hero-inner .lede { margin-left: auto; }

@media (max-width: 760px) {
  /* On narrow viewports "cover" would crop the subject out of frame entirely
     since the composition is wide; bias toward the left third (where Rajib
     and the car are) instead of the generic center crop. */
  .hero-cinema--right .bg { background-position: 22% center; }
  /* Text still needs to read clearly against a narrower visible slice —
     keep it left-aligned at the bottom on mobile rather than right-aligned,
     since the right-side sky/road is mostly cropped out of view here. */
  .hero-cinema--right .hero-inner { align-items: flex-start; text-align: left; }
  .hero-cinema--right .hero-inner h1,
  .hero-cinema--right .hero-inner .lede { margin-left: 0; }
  .hero-cinema--right::after {
    background: linear-gradient(180deg, rgba(10,12,10,.15) 0%, rgba(10,12,10,.1) 30%, rgba(10,12,10,.82) 100%);
  }
}

.hero-scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; color: #fff; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; opacity: 0.85;
}
.hero-scroll-cue .line { width: 1px; height: 34px; background: rgba(255,255,255,0.6); position: relative; overflow: hidden; }
.hero-scroll-cue .line::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: #fff; animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 50% { top: 100%; } 100% { top: 100%; } }

/* ---------- Stats band ---------- */
.stats-band { background: var(--ink); color: #fff; padding-block: var(--gap-lg); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #fff;
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg) var(--gap-md); }
}

/* ---------- Section header pattern ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
}
.section-head .lede { margin-top: 0.5rem; margin-bottom: 0; }
@media (max-width: 700px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Featured destinations — editorial mosaic (explicit placement) ---------- */
.dest-magazine {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 240px;
  gap: var(--gap-sm);
}
.dest-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
/* Explicit mosaic: big anchor (left, 2 rows), top-right, two-up bottom-right, full-width closer */
.dest-tile:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 3; }
.dest-tile:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 2; }
.dest-tile:nth-child(3) { grid-column: 8 / 10; grid-row: 2 / 3; }
.dest-tile:nth-child(4) { grid-column: 10 / 13; grid-row: 2 / 3; }
.dest-tile:nth-child(5) { grid-column: 1 / 13; grid-row: 3 / 4; aspect-ratio: unset; }
.dest-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.dest-tile:hover img { transform: scale(1.06); }
.dest-tile .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,10,8,.82) 100%);
}
.dest-tile .info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.6rem;
  color: #fff;
}
.dest-tile .info .no {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sand); display:block; margin-bottom:0.3rem;
}
.dest-tile:nth-child(1) .info h3 { font-size: 2.1rem; }
.dest-tile:nth-child(1) .info { padding: 2rem 2.2rem; }
.dest-tile .info h3 { color: #fff; margin: 0; font-size: 1.35rem; line-height: 1.15; }
.dest-tile .info p { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin: 0.3rem 0 0; }

@media (max-width: 900px) {
  .dest-magazine { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .dest-tile:nth-child(1),
  .dest-tile:nth-child(2),
  .dest-tile:nth-child(3),
  .dest-tile:nth-child(4),
  .dest-tile:nth-child(5) { grid-column: 1 / 2; grid-row: auto; }
  .dest-tile:nth-child(1) .info h3 { font-size: 1.6rem; }
}

/* ---------- Editorial story cards ---------- */
.story-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
  margin-bottom: var(--gap-lg);
}
.story-feature figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); }
.story-feature img { width: 100%; height: 100%; object-fit: cover; }
.story-feature .tag { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-deep); font-weight: 600; }
.story-feature h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0.6rem 0 0.8rem; }

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}
.story-card {
  background: var(--paper-raised);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,20,15,0.04);
  transition: box-shadow var(--ease) .3s, transform var(--ease) .3s;
}
.story-card:hover { box-shadow: 0 24px 48px rgba(20,20,15,0.12); transform: translateY(-3px); }
.story-card figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.story-card:hover img { transform: scale(1.05); }
.story-card a { display: block; padding-bottom: 1.4rem; }
.story-card .tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-deep); font-weight: 600; padding: 1.1rem 1.3rem 0; display: block; }
.story-card h3 { font-size: 1.2rem; margin: 0.5rem 1.3rem 0; line-height: 1.3; }
.story-card p { font-size: 0.92rem; margin: 0.5rem 1.3rem 0; }

@media (max-width: 900px) {
  .story-feature { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
}

/* ---------- Gallery masonry + lightbox ---------- */
.masonry {
  columns: 3 260px;
  column-gap: var(--gap-sm);
}
.masonry figure {
  margin: 0 0 var(--gap-sm);
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
.masonry img { width: 100%; display: block; transition: transform .6s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }

/* Photo watermark — 15% opacity emblem, bottom-right, per brand guidelines.
   Applied to full photographs (gallery, hero-scale images) — not thumbnails
   or UI photos (author avatar, etc.) where it would just add clutter. */
.watermarked::after {
  content: "";
  position: absolute;
  right: 12px; bottom: 12px;
  width: 32px; height: 32px;
  background: url('images/brand/watermark-emblem.png') center/contain no-repeat;
  pointer-events: none;
  z-index: 2;
}
.masonry figure { position: relative; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,8,0.95);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; color: #fff; background: none; border: none; cursor: pointer;
  font-size: 1.6rem; padding: 1rem;
}
.lightbox .lb-close { top: 0.5rem; right: 1rem; }
.lightbox .lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Food & culture split ---------- */
.food-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.food-split .copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gap-xl) clamp(1.25rem, 5vw, 5rem);
  background: var(--sand);
}
.food-split .media { position: relative; overflow: hidden; }
.food-split .media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .food-split { grid-template-columns: 1fr; }
  .food-split .media { height: 340px; }
}

/* ---------- Newsletter ---------- */
.newsletter-cinema {
  position: relative;
  padding-block: var(--gap-xxl);
  color: #fff;
  text-align: center;
  background: var(--ink);
}
.newsletter-cinema h2 { color: #fff; max-width: 700px; margin-inline: auto; }
.newsletter-cinema .lede { color: rgba(255,255,255,0.7); margin-inline: auto; }
.nform {
  display: flex;
  max-width: 460px;
  margin: 2rem auto 0;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 0.6rem;
}
.nform input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 0.4rem 0;
}
.nform input::placeholder { color: rgba(255,255,255,0.5); }
.nform button {
  background: none; border: none; color: #fff; cursor: pointer;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid #fff;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); padding-block: var(--gap-xl) var(--gap-md); border-top: 1px solid var(--sand); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--gap-lg);
  margin-bottom: var(--gap-lg);
}
.footer-grid h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; color: var(--ink); font-family: var(--font-body); font-weight: 600; }
.footer-grid li { margin-bottom: 0.6rem; font-size: 0.92rem; }
.footer-grid a { color: var(--ink-soft); }
.footer-grid a:hover { color: var(--teal-deep); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--gap-md); border-top: 1px solid var(--sand);
  font-size: 0.8rem; color: var(--ink-soft); flex-wrap: wrap; gap: 1rem;
}
.social-row { display: flex; gap: 0.8rem; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--sand);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.social-row a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }

/* ---------- Destination page ---------- */
.dest-hero {
  position: relative; height: 82vh; min-height: 520px;
  display: flex; align-items: flex-end; color: #fff;
  background-size: cover; background-position: center;
}
.dest-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,10,8,.25), rgba(10,10,8,.8)); }
.dest-hero .wrap { position: relative; z-index: 1; padding-bottom: var(--gap-lg); }
.dest-hero .no { font-family: var(--font-display); font-size: 1.1rem; color: var(--sand); }
.dest-hero h1 { color: #fff; max-width: 700px; }
.breadcrumb-line { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }

.dest-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}
.dest-facts {
  background: var(--paper-raised);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: var(--gap-md);
}
.dest-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-deep); margin-top: 1rem; }
.dest-facts dt:first-child { margin-top: 0; }
.dest-facts dd { margin: 0.2rem 0 0; font-family: var(--font-display); font-size: 1.15rem; }

@media (max-width: 860px) {
  .dest-overview { grid-template-columns: 1fr; }
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--teal);
  padding-left: var(--gap-md);
  margin: var(--gap-lg) 0;
}

.tip-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-md); }
.tip-item { display: flex; gap: 1rem; }
.tip-item .n { font-family: var(--font-display); font-size: 1.3rem; color: var(--teal); flex-shrink: 0; }
@media (max-width: 700px) { .tip-list { grid-template-columns: 1fr; } }

.related-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-sm); }
.related-strip a { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius); }
.related-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.related-strip a:hover img { transform: scale(1.06); }
.related-strip .lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); font-family: var(--font-display); font-size: 1.05rem; }
@media (max-width: 760px) { .related-strip { grid-template-columns: repeat(2, 1fr); } }

.recovery-note {
  background: #fff7e6;
  border: 1px solid #f5d38a;
  color: #6b4c04;
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  font-size: 0.88rem;
  margin-bottom: var(--gap-md);
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--ink); color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  z-index: 999;
  transition: top var(--ease) .2s;
  font-size: 0.9rem;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.nav-toggle { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.nav-toggle span { position: static; }
.nav-toggle { position: relative; }
.nav-toggle span { position: absolute; }

/* ---------- Personal introduction ---------- */
.intro-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--gap-xl);
  align-items: center;
}
.intro-portrait { position: relative; }
.intro-portrait img {
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 50% center;
  width: 100%;
}
.intro-portrait .caption {
  position: absolute; left: -1.2rem; bottom: -1.2rem;
  background: var(--paper-raised);
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(20,20,15,0.12);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  max-width: 260px;
}
.intro-copy .kicker { justify-content: flex-start; }
.intro-copy h2 { margin-bottom: 1.2rem; }
.intro-copy .signature { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; margin-top: 1.5rem; }
@media (max-width: 860px) {
  .intro-split { grid-template-columns: 1fr; }
  .intro-portrait { max-width: 320px; margin-inline: auto; }
}

/* ---------- Travel timeline ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 2.2rem;
}
.timeline::before {
  content: "";
  position: absolute; left: 7px; top: 0.5rem; bottom: 0.5rem;
  width: 1px; background: var(--sand);
}
.timeline-item { position: relative; padding-bottom: var(--gap-lg); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -2.2rem; top: 0.35rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--teal);
}
.timeline-item .year { font-family: var(--font-display); font-size: 1.6rem; color: var(--teal-deep); display: block; margin-bottom: 0.3rem; }
.timeline-item h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.timeline-item p { margin: 0; }

/* ---------- Journal post meta / author box ---------- */
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.post-meta-row span { display: inline-flex; align-items: center; gap: 0.4rem; }
.author-box {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: var(--gap-lg);
}
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.author-box p { margin: 0; font-size: 0.88rem; }

/* ---------- Article layout: content + sticky sidebar ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--gap-xl);
  align-items: start;
  max-width: 1100px;
  margin-inline: auto;
}
.article-body { min-width: 0; max-width: 720px; }
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; order: -1; }
}

/* Quick facts card */
.quick-facts {
  background: var(--paper-raised);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.quick-facts h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-deep); margin: 0 0 1rem; }
.quick-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: 0.9rem; }
.quick-facts dt:first-child { margin-top: 0; }
.quick-facts dd { margin: 0.15rem 0 0; font-family: var(--font-display); font-size: 1.05rem; }

/* Table of contents */
.article-toc {
  background: var(--paper-raised);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.article-toc h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-deep); margin: 0 0 0.9rem; }
.article-toc ol { counter-reset: toc; padding: 0; margin: 0; }
.article-toc li { list-style: none; counter-increment: toc; margin-bottom: 0.6rem; }
.article-toc a {
  font-size: 0.88rem; color: var(--ink-soft); display: flex; gap: 0.5rem;
}
.article-toc a::before { content: counter(toc) "."; color: var(--teal); font-weight: 600; flex-shrink: 0; }
.article-toc a:hover { color: var(--teal-deep); }

/* Chapter structure */
.chapter { margin-top: var(--gap-lg); scroll-margin-top: 100px; }
.chapter:first-child { margin-top: 0; }
.chapter-kicker { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal-deep); font-weight: 600; margin-bottom: 0.5rem; }
.chapter h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.2rem; }
.article-body p { font-size: 1.05rem; line-height: 1.85; }

/* Image placeholder with photography spec label — used until real photos
   are uploaded. Deliberately shows the shot spec rather than a blank box,
   per the "premium empty frame, not a blurry photo" instruction. */
.shot-frame {
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--paper-raised);
  padding: 2.5rem 1.5rem;
  margin: var(--gap-md) 0;
  text-align: center;
}
.shot-frame .shot-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--teal-deep); font-weight: 600; margin-bottom: 0.8rem;
}
.shot-frame .shot-icon {
  width: 44px; height: 44px; margin: 0 auto 1rem; border-radius: 50%;
  border: 1.5px solid #c9bd9e;
  background:
    linear-gradient(45deg, transparent 47%, #c9bd9e 47%, #c9bd9e 53%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, #c9bd9e 47%, #c9bd9e 53%, transparent 53%);
  opacity: 0.7;
}
.shot-frame .shot-specs {
  display: inline-flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; justify-content: center;
  font-size: 0.8rem; color: var(--ink-soft); max-width: 480px; margin-inline: auto;
}
.shot-frame .shot-specs span { white-space: nowrap; }
.shot-frame .shot-specs span::after { content: "•"; margin-left: 0.7rem; color: var(--sand); }
.shot-frame .shot-specs span:last-child::after { content: ""; margin: 0; }
.shot-frame.shot-hero { padding: 4rem 1.5rem; }
.shot-frame.shot-portrait { max-width: 320px; margin-inline: auto; }

/* Real article photography — same rhythm/spacing as the shot-frame
   placeholders it replaces, so no layout shift once photos are added. */
.article-photo {
  margin: var(--gap-md) 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-photo img { width: 100%; display: block; }
.article-photo figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-top: 0.6rem;
  font-style: italic;
}
.article-photo-hero { aspect-ratio: 16/9; }
.article-photo-hero img { height: 100%; object-fit: cover; }
.article-photo-portrait { max-width: 320px; margin-inline: auto; }

/* ---------- Reserved / future page category cards ---------- */
.resource-cards-3 { display: grid; gap: var(--gap-md); }
.resource-mini-card {
  background: var(--paper-raised);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: var(--gap-md);
  text-align: center;
}
.resource-mini-card .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--sand); color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.3rem;
}
.resource-mini-card h3 { font-size: 1rem; margin: 0 0 0.4rem; }
.resource-mini-card p { font-size: 0.88rem; margin: 0; }
@media (max-width: 760px) {
  .resource-cards-3 { grid-template-columns: 1fr !important; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .resource-cards-3 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Practical notes (only where genuinely drawn from the article's own text) */
.practical-notes {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: var(--gap-md) 0;
}
.practical-notes h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.8rem; color: var(--teal-deep); }
.practical-notes ul { margin: 0; padding: 0; }
.practical-notes li { list-style: none; padding-left: 1.4rem; position: relative; margin-bottom: 0.5rem; font-size: 0.92rem; color: var(--ink-soft); }
.practical-notes li::before { content: "—"; position: absolute; left: 0; color: var(--teal); }

/* Prev / next article nav */
.article-pagination {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-sm);
  margin-top: var(--gap-xl); padding-top: var(--gap-lg); border-top: 1px solid var(--sand);
}
.article-pagination a {
  display: block; padding: 1.2rem; border: 1px solid var(--sand); border-radius: var(--radius);
  transition: border-color var(--ease) .2s;
}
.article-pagination a:hover { border-color: var(--teal); }
.article-pagination .dir { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-deep); display: block; margin-bottom: 0.4rem; }
.article-pagination .next { text-align: right; }
.article-pagination h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0; font-weight: 400; }
@media (max-width: 600px) {
  .article-pagination { grid-template-columns: 1fr; }
  .article-pagination .next { text-align: left; }
}

.series-note {
  font-size: 0.85rem;
  color: var(--teal-deep);
  background: var(--sand);
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

/* ---------- Text-forward journal card (used until cover photos exist) ---------- */
.story-card-text {
  background: var(--paper-raised);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color var(--ease) .2s, transform var(--ease) .2s;
}
.story-card-text:hover { border-color: var(--teal); transform: translateY(-3px); }
.story-card-text .tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-deep); font-weight: 600; }
.story-card-text h3 { font-size: 1.2rem; margin: 0.6rem 0 0.5rem; line-height: 1.3; }
.story-card-text p { font-size: 0.9rem; margin: 0 0 1rem; flex: 1; }
.story-card-text .meta { font-size: 0.78rem; color: var(--ink-soft); border-top: 1px solid var(--sand); padding-top: 0.8rem; display: flex; justify-content: space-between; }
.story-grid-text { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
@media (max-width: 900px) { .story-grid-text { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .story-grid-text { grid-template-columns: 1fr; } }

/* ---------- Gallery filter ---------- */
.filter-row {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin-bottom: var(--gap-md);
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--sand);
  background: none;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all var(--ease) .2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.img-placeholder {
  width: 100%; height: 100%;
  min-height: 200px;
  background: var(--sand);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 1.5rem;
}
.img-placeholder::before {
  content: "";
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid #c9bd9e;
  background:
    linear-gradient(45deg, transparent 47%, #c9bd9e 47%, #c9bd9e 53%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, #c9bd9e 47%, #c9bd9e 53%, transparent 53%);
  opacity: 0.7;
}
.img-placeholder span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a7f66;
  max-width: 220px;
  line-height: 1.5;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-block: var(--gap-xxl);
}
.error-page .code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); color: var(--sand); line-height: 1; }

@media (max-width: 900px) {
  .masonry { columns: 2 180px; }
}
@media (max-width: 560px) {
  .masonry { columns: 1; }
}
