/* Da Nang family trip — a shareable travel long-read.
   Consumes the portal design tokens (aurora / editorial / signal) so the page
   re-themes with the rest of the site. Magazine layout: a centred reading
   column with full-bleed photography breaking out of it. No hardcoded colours
   except the photo-overlay scrims (which must read against any theme). */
@import "/assets/style.css";

/* ---- page shell --------------------------------------------------------- */
body.travel {
  background-attachment: scroll;
}
.mag {
  --read: 64ch;       /* reading measure  */
  --wide: 1180px;     /* widest content   */
  --gut: 24px;        /* page side gutter  */
  max-width: 100%;
  margin: 0 auto 0;
  padding: 0 0 0;
  overflow-x: clip;
}

/* a centred column for prose; sits inside full-bleed sections */
.read {
  max-width: var(--read);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wide {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---- top utility bar ---------------------------------------------------- */
.mag-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 20px var(--gut);
}
.mag-top > a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: rgba(10, 12, 20, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 14px;
  transition: background 0.15s ease;
}
.mag-top > a:hover { background: rgba(10, 12, 20, 0.62); }

/* EN / RU language switch — segmented glass pill */
.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 12, 20, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lang-switch a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  padding: 7px 13px;
  line-height: 1;
  transition: background 0.15s ease;
}
.lang-switch a[aria-current] { background: var(--accent); color: var(--on-accent); }
.lang-switch a:not([aria-current]):hover { background: rgba(255, 255, 255, 0.14); }

/* ---- hero --------------------------------------------------------------- */
.mag-hero {
  position: relative;
  height: min(92vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.mag-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.mag-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 8, 14, 0.86) 0%, rgba(6, 8, 14, 0.30) 42%, rgba(6, 8, 14, 0.12) 70%, rgba(6, 8, 14, 0.35) 100%);
}
.mag-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding: 0 var(--gut) clamp(28px, 6vw, 64px);
  color: #fff;
}
.mag-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  gap: 12px;
  align-items: center;
}
.mag-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent-warm);
  display: inline-block;
}
.mag-hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #fff;
  -webkit-text-fill-color: #fff;   /* override the gradient-clip from base .hero h1 */
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
  max-width: 16ch;
}
.mag-hero .sub {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 400;
}

/* hero "at a glance" chips */
.glance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.glance span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 13px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ---- section rhythm ----------------------------------------------------- */
.sec { padding: clamp(56px, 9vw, 110px) 0; }
.sec.tight { padding: clamp(36px, 6vw, 64px) 0; }

.sec-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 18px;
}
.sec-label .n {
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}
.sec h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  max-width: 18ch;
}
.sec h3 {
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}
.read p { margin: 0 0 18px; font-size: 1.0625rem; }
.read p.lead {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--fg);
}
.read a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.read a:hover { border-bottom-color: var(--accent); }
.read ul { margin: 0 0 18px; padding-left: 1.1em; }
.read li { margin: 7px 0; padding-left: 4px; }
.read strong { color: var(--fg); font-weight: 700; }

/* drop cap on the opening paragraph */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: var(--heading-weight, 700);
  float: left;
  font-size: 3.6em;
  line-height: 0.78;
  padding: 6px 12px 0 0;
  color: var(--accent);
}

/* ---- full-bleed figure -------------------------------------------------- */
figure.bleed {
  margin: clamp(40px, 7vw, 80px) auto;
  max-width: var(--wide);
  padding-inline: var(--gut);
}
figure.bleed.full { max-width: 100%; padding-inline: 0; }
figure.bleed img {
  width: 100%;
  height: clamp(280px, 52vw, 620px);
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
figure.bleed.full img { border-radius: 0; }
figcaption {
  margin-top: 10px;
  padding-inline: var(--gut);
  font-size: 0.84rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
figcaption .credit { color: var(--fg-faint); }

/* ---- alternating split (text + photo) ----------------------------------- */
.split {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split.flip .split-media { order: -1; }
.split-media img {
  width: 100%;
  height: clamp(300px, 42vw, 560px);
  object-fit: cover;
  border-radius: var(--radius);
}
.split-media figcaption { padding-inline: 0; }
.split-text h2 { max-width: 14ch; }
.split-text p { margin: 0 0 16px; font-size: 1.0625rem; }
.split-text .sec-label { margin-bottom: 14px; }

/* ---- pull quote --------------------------------------------------------- */
.pull {
  max-width: 24ch;
  margin: clamp(40px, 7vw, 72px) auto;
  padding-inline: var(--gut);
  text-align: center;
  font-family: var(--font-display);
  font-weight: var(--heading-weight, 700);
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.pull span { color: var(--accent); }

/* ---- fact cards --------------------------------------------------------- */
.cards {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.fact {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.fact .ico { font-size: 1.5rem; line-height: 1; margin-bottom: 12px; }
.fact h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.fact p { font-size: 0.92rem; color: var(--fg-muted); margin: 0; }
.fact strong { color: var(--fg); }

/* ---- timeline (the must-do half-day) ------------------------------------ */
.timeline {
  max-width: 760px;
  margin: 28px auto 0;
  padding-inline: var(--gut);
  position: relative;
}
.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 26px 88px;
  min-height: 40px;
}
.timeline li::before {  /* the rail */
  content: "";
  position: absolute;
  left: 70px; top: 6px;
  width: 2px; height: 100%;
  background: var(--border);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {  /* the dot */
  content: "";
  position: absolute;
  left: 64px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.timeline .t {
  position: absolute;
  left: 0; top: 2px;
  width: 56px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.timeline .ev { font-size: 1rem; }
.timeline .ev strong { color: var(--fg); }
.timeline .ev small { display: block; color: var(--fg-muted); font-size: 0.88rem; margin-top: 2px; }

/* ---- the 8-day itinerary ------------------------------------------------ */
.days {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.day {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.day .hd { display: flex; align-items: baseline; gap: 10px; }
.day .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 700;
}
.day .date { font-family: var(--font-mono); font-size: 0.82rem; color: var(--fg-muted); }
.day h4 { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -0.01em; }
.day p { font-size: 0.9rem; color: var(--fg-muted); margin: 0; }
.day.rest { border-color: color-mix(in srgb, var(--pos) 40%, var(--border)); }
.day.rest .num { background: var(--pos); }
.day.big { border-color: color-mix(in srgb, var(--accent-warm) 55%, var(--border)); }

/* ---- dish chips --------------------------------------------------------- */
.dishes {
  max-width: var(--read);
  margin: 24px auto 0;
  padding-inline: var(--gut);
  display: grid;
  gap: 14px;
}
.dish {
  border-left: 3px solid var(--accent-warm);
  padding-left: 16px;
}
.dish b { font-family: var(--font-display); font-size: 1.05rem; }
.dish span { color: var(--fg-muted); }

/* a small inline note / aside */
.aside {
  max-width: var(--read);
  margin: 26px auto;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elev));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  color: var(--fg-muted);
}
.aside strong { color: var(--fg); }

/* ---- footer / credits --------------------------------------------------- */
.mag-foot {
  border-top: 1px solid var(--border);
  margin-top: clamp(48px, 8vw, 90px);
  padding: 48px var(--gut);
  max-width: var(--wide);
  margin-inline: auto;
}
.mag-foot h3 { font-size: 1.1rem; margin-bottom: 14px; }
.mag-foot p { color: var(--fg-muted); font-size: 0.92rem; max-width: 64ch; }
.mag-foot .creds {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--fg-faint);
  columns: 2;
  column-gap: 32px;
}
.mag-foot .creds a { color: var(--fg-muted); text-decoration: none; }
.mag-foot .creds a:hover { color: var(--accent); }
.mag-foot .home {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
}

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 22px; }
  .split.flip .split-media { order: 0; }
  .split-media img { height: clamp(240px, 60vw, 360px); }
  .timeline li { padding-left: 72px; }
  .timeline li::before { left: 54px; }
  .timeline li::after { left: 48px; }
  .timeline .t { width: 44px; }
  .mag-foot .creds { columns: 1; }
}
