/* ==========================================================
   NorwayYatra stylesheet. One small file for the whole site,
   so the browser downloads it once and reuses it on every page.
   ========================================================== */

/* ---- Fonts. Stored on our own domain (no Google request),
   which is faster and keeps visitors' data with us.
   "swap" shows text at once in a fallback font while these load. ---- */
@font-face { font-family: "Mukta"; font-weight: 400; font-display: swap;
  src: url("/fonts/mukta-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-weight: 700; font-display: swap;
  src: url("/fonts/mukta-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* The "latin-ext" files hold the rupee sign, so they are needed too. */
@font-face { font-family: "Mukta"; font-weight: 400; font-display: swap;
  src: url("/fonts/mukta-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mukta"; font-weight: 700; font-display: swap;
  src: url("/fonts/mukta-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Yatra One is used only for the site name. */
@font-face { font-family: "Yatra One"; font-weight: 400; font-display: swap;
  src: url("/fonts/yatra-one-latin-400-normal.woff2") format("woff2"); }

/* ---- Colours, named once here so a change in one place
   changes the whole site. ---- */
:root {
  --night: #0f2a43;     /* polar night blue: header, hero, footer */
  --ink: #15283a;       /* body text */
  --soft: #4d6072;      /* small grey-blue text */
  --snow: #f4f7fa;      /* page background */
  --paper: #ffffff;     /* reading surface */
  --line: #d3dce5;      /* thin borders */
  --aurora: #14674d;    /* links, the green of the lights */
  --marigold: #f2a900;  /* the one warm accent, from genda phool */
  --twilight: #fbeef0;  /* pink noon sky, used for notes */
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--snow); color: var(--ink);
  font: 400 1.0625rem/1.65 "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--aurora); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
/* A clear ring for people who move with the keyboard. */
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.1rem; }
/* Hidden link that appears on first Tab press, to jump past the menu. */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 0.5rem; top: 0.5rem; background: var(--paper); padding: 0.4rem 0.7rem; z-index: 5; }

/* ---- Header and menu ---- */
.top { background: var(--night); color: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 1.4rem; padding-top: 0.7rem; padding-bottom: 0.6rem; }
.brand { font: 400 1.55rem/1.2 "Yatra One", "Mukta", sans-serif; color: #fff; text-decoration: none;
  border-bottom: 3px solid var(--marigold); padding-bottom: 1px; }
/* The menu scrolls sideways on a phone, so no menu button or script is needed. */
.menu { display: flex; gap: 1.1rem; overflow-x: auto; white-space: nowrap; padding: 0.35rem 0; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { color: #dbe6f0; text-decoration: none; font-size: 1rem; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

/* ---- Home page opening ----
   The background is the northern lights drawing in aurora.svg.
   To use your own photo instead, save it as static/hero.jpg and rebuild:
   the build script then adds the class "photo" and the photo is shown.
   The dark layer on top (linear-gradient) keeps the white text readable. ---- */
.hero { background: var(--night) url("/aurora.svg") center bottom / cover no-repeat; color: #fff;
  padding: 2.2rem 0 7.5rem; min-height: 30rem; }
.hero.photo { background-image: linear-gradient(rgba(6,22,42,.5), rgba(6,22,42,.15) 55%, rgba(6,22,42,.35)), url("/hero.jpg");
  background-position: center 45%; padding-bottom: 9rem; }
.hero h1 { font-size: clamp(1.9rem, 6.2vw, 3.1rem); line-height: 1.12; margin: 0 0 0.8rem; max-width: 17ch; text-shadow: 0 2px 14px rgba(6,22,42,.7); }
.hero p { color: #eef4f9; max-width: 34rem; margin: 0 0 1.1rem; text-shadow: 0 1px 10px rgba(6,22,42,.9); }
.hero a.go { display: inline-block; background: var(--marigold); color: #1c1600; font-weight: 700; text-shadow: none;
  text-decoration: none; padding: 0.55rem 1rem; border-radius: 4px; margin: 0 0.6rem 0.6rem 0; }
.hero a.plain { color: #fff; }
/* On the home page the header joins the sky, so the picture starts at the very top. */
.home .top { background: #06162a; }

/* ---- Article pages ---- */
main { background: var(--paper); padding: 1.3rem 0 2.5rem; }
.crumbs { font-size: 0.9rem; color: var(--soft); margin: 0 0 0.6rem; }
.crumbs a { color: var(--soft); }
h1 { font-size: clamp(1.7rem, 5.4vw, 2.4rem); line-height: 1.15; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 2.2rem 0 0.5rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 1.6rem 0 0.3rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2rem; }
li { margin-bottom: 0.35rem; }
li > p { margin: 0; }
.by { color: var(--soft); font-size: 0.95rem; margin-bottom: 1.2rem; }
/* "On this page" box. It opens and closes without any script. */
.toc { border: 1px solid var(--line); border-left: 4px solid var(--aurora); padding: 0.5rem 0.9rem; margin: 0 0 1.4rem; background: var(--snow); }
.toc summary { cursor: pointer; font-weight: 700; }
.toc ul { list-style: none; padding: 0; margin: 0.5rem 0 0.2rem; }

/* ---- Tables. Wide tables scroll sideways inside their own box,
   so the page itself never scrolls sideways on a phone. ---- */
.scroll { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--line); min-width: 6.5rem; }
th { background: var(--snow); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* ---- Lists of pages (home page and bottom of each article) ---- */
.pages { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.pages li { margin: 0; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.pages a { font-weight: 700; font-size: 1.1rem; }
.pages span { display: block; color: var(--soft); font-size: 0.97rem; }
.note { background: var(--twilight); padding: 0.8rem 1rem; margin: 1.4rem 0; border-radius: 4px; }
.note p:last-child { margin-bottom: 0; }

/* ---- Search page ---- */
.search input { width: 100%; font: inherit; padding: 0.65rem 0.8rem; border: 2px solid var(--night); border-radius: 4px; }
.hits { list-style: none; padding: 0; }
.hits li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.hits small { display: block; color: var(--soft); }

/* ---- Footer ---- */
.foot { background: var(--night); color: #dbe6f0; font-size: 0.95rem; padding: 1.4rem 0 2rem; }
.foot a { color: #fff; }
.foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }

/* ---- Wider screens get a little more air. ---- */
@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
  main { padding-top: 2rem; }
  .hero { padding-top: 4rem; padding-bottom: 11rem; min-height: 36rem; }
  .hero.photo { min-height: 42rem; background-position: center 55%; }
}
/* Respect the "reduce motion" phone and computer setting. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Printing: drop the menu and footer so a page prints as a clean handout. */
@media print { .top, .foot, .toc, .more { display: none; } body { background: #fff; } }

/* ---- Packing checklist: tick boxes the reader can tap while packing. ---- */
ul.task-list { list-style: none; padding-left: 0; }
ul.task-list label { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.15rem 0; }
ul.task-list input { width: 1.2rem; height: 1.2rem; margin-top: 0.3rem; flex: none; accent-color: var(--aurora); }

/* ==========================================================
   Home page layout
   ========================================================== */
.wrap.wide { max-width: 62rem; }
.homemain { background: var(--snow); }
.homemain h2 { border: 0; font-size: clamp(1.5rem, 4.5vw, 2rem); margin-top: 2.6rem; }
.homemain h2.first { margin-top: 0.6rem; }
.lead { max-width: 40rem; }

/* Bigger heading and a taller photo, so the picture fills most of the first screen. */
.hero h1 { font-size: clamp(2.1rem, 7vw, 4rem); max-width: 16ch; }
.hero p { font-size: 1.1rem; }
.hero a.go { padding: 0.75rem 1.3rem; font-size: 1.1rem; }

/* Strip of four facts under the photo: who writes this and why to trust it. */
.facts { background: var(--night); color: #dbe6f0; }
.facts ul { list-style: none; margin: 0 auto; padding-top: 1rem; padding-bottom: 1rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.2rem; font-size: 0.95rem; line-height: 1.35; }
.facts li { margin: 0; }
.facts b { display: block; color: #fff; font-size: 1.2rem; }

/* Trip plans as price cards. The cost is the largest thing on each card,
   because it is the first thing a visitor from India wants to know. */
.plans { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.9rem; }
.plans li { position: relative; margin: 0; background: var(--paper); border: 1px solid var(--line);
  border-top: 4px solid var(--marigold); border-radius: 6px; padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; }
.plans a { font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--ink); text-decoration: none; }
/* Makes the whole card tappable, not only the plan name. */
.plans a::after { content: ""; position: absolute; inset: 0; }
.plans li:hover { border-color: var(--aurora); border-top-color: var(--marigold); }
.plans .for { color: var(--soft); font-size: 0.97rem; margin: 0.25rem 0 0.9rem; flex: 1; }
.plans .cost { font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--aurora); }
.plans .nights { color: var(--soft); font-size: 0.9rem; }

@media (min-width: 40rem) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  /* Guide pages in two columns on wider screens. */
  .homemain .pages { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}
@media (min-width: 60rem) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  /* Photo fills most of the first screen on a laptop. */
  .hero, .hero.photo { min-height: 82vh; padding-top: 14vh; }
}
/* On the home page the menu and footer line up with the wider content. */
.home .top .wrap, .home .foot .wrap { max-width: 62rem; }

/* Photos inside guide pages. */
figure.photo { margin: 0.8rem 0 1.2rem; }
figure.photo img { display: block; width: 100%; height: auto; border-radius: 6px; }
figure.photo figcaption { color: var(--soft); font-size: 0.9rem; margin-top: 0.3rem; }

/* ---- Language switcher in the header: English, Hindi, Hinglish ---- */
.langs { display: flex; gap: 0.3rem; margin-left: auto; font-size: 0.9rem; padding: 0.2rem 0; }
.langs a { color: #dbe6f0; text-decoration: none; padding: 0.1rem 0.55rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.langs a[aria-current] { background: var(--marigold); border-color: var(--marigold); color: #1c1600; font-weight: 700; }
/* Hindi text uses the Devanagari font already on the reader's phone or computer.
   That avoids a 200 KB font download, and Hindi letters need a little more line height. */
:lang(hi) { line-height: 1.8; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { line-height: 1.4; }

/* ---- Site name in classic gold ----
   The letters are filled with a gold gradient (light gold at the top, deeper
   gold below), the way gold lettering looks on an Indian wedding card.
   "color" is the plain gold used by old browsers that cannot do the gradient. */
.brand { color: #e8b93c; font-size: 1.8rem; letter-spacing: 0.01em; border-bottom: 0; padding-bottom: 0;
  background: linear-gradient(180deg, #fbe7a1 0%, #f0c14b 45%, #c8922a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* A thin double gold rule under the name, in place of the old thick line. */
.brand::after { content: ""; display: block; height: 4px; margin-top: 1px;
  border-top: 1px solid #e8b93c; border-bottom: 1px solid #c8922a; }
