/* Chandis SriLankan Tours. Palette from the logo: paper, ink, lagoon teal (the logo ground), deep teal, pale yellow (the logo lines), gold-brown details. */
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/assets/fonts/hanken-grotesk.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f7f4ee; --paper-2: #efe9df; --card: #fffdf9; --ink: #1c1f1e; --ink-2: #4a4f4c; --line: #e2dbcf;
  --accent: #37676b; --accent-2: #284f53; --leaf: #7a5c14; --deep: #1d3b3e; --glow: #f0f8a0;
  --serif: 'Newsreader', Georgia, serif; --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --wrap: 1200px; --r: 4px; --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-variation-settings: 'opsz' 72; }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-variation-settings: 'opsz' 60; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 38em; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); font-weight: 600; margin-bottom: 1.1em; }
.eyebrow a { text-decoration: none; }
.small { font-size: .88rem; color: var(--ink-2); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 99; background: var(--ink); color: var(--paper); padding: 10px 16px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 0 1.5em; border: 1px solid var(--accent); border-radius: var(--r);
  background: var(--accent); color: #fff; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .18s, color .18s, transform .18s var(--ease); }
.btn:hover { background: var(--accent-2); color: #fff; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 42px; padding: 0 1.1em; font-size: .93rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link svg { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgb(247 244 238 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 48px; height: 48px; }
.brand span { display: grid; line-height: 1.05; }
.brand b { font: 500 1.35rem/1 var(--serif); }
.brand small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: .96rem; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: currentColor; }
.lang { display: flex; gap: 4px; margin-left: 2px; padding-left: 18px; border-left: 1px solid var(--line); align-items: center; }
.lang a { font-size: .8rem; font-weight: 600; letter-spacing: .08em; padding: 5px 7px; border: 1px solid transparent; border-radius: var(--r); }
.lang a[aria-current] { border-color: var(--accent); color: var(--accent); }
.menu { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; position: relative; }
.menu span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .2s var(--ease); }
.menu span:nth-child(1) { top: 18px; } .menu span:nth-child(2) { top: 27px; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Postcards: the site's image treatment */
.postcard { margin: 0; background: var(--card); padding: 10px 10px 0; box-shadow: 0 1px 2px rgb(28 31 30 / .08), 0 14px 34px -14px rgb(28 31 30 / .28); }
.postcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.postcard figcaption { font-size: .78rem; color: var(--ink-2); padding: 10px 2px 12px; letter-spacing: .02em; }

/* Home hero: full-bleed photo of Sigiriya. The headline sits in the hazy sky (top left), so it stays dark ink on a light veil. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(86vh, 820px); display: flex; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 62% 35%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(98deg, rgb(247 244 238 / .9) 0%, rgb(247 244 238 / .72) 32%, rgb(247 244 238 / .12) 60%, rgb(247 244 238 / 0) 75%),
              linear-gradient(to top, var(--paper) 0, rgb(247 244 238 / 0) 26%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 40px; width: 100%;
  padding-block: clamp(48px, 8vw, 120px) clamp(96px, 10vw, 140px); }
.hero-text { align-self: start; max-width: 40rem; }
.hero-title { font-size: clamp(2.7rem, 6vw, 5.4rem); font-weight: 350; font-variation-settings: 'opsz' 72; letter-spacing: -.012em; line-height: 1.02; }
.hero-title em { display: block; font-style: italic; font-weight: 300; color: var(--accent-2); font-size: .74em; margin-top: .12em; }
.hero .lead { color: var(--ink); max-width: 33em; }
.hero .btn-ghost { background: rgb(247 244 238 / .72); }
.hero .btn-ghost:hover { background: var(--ink); }
figure.hero-pc { justify-self: end; width: min(300px, 26vw); transform: rotate(2.5deg); margin-bottom: -18px; }
.hero-pc img { aspect-ratio: 3 / 2; }
.proof { position: relative; z-index: 1; list-style: none; margin: -58px 0 0; padding: 22px clamp(20px, 3vw, 34px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 28px;
  background: var(--card); box-shadow: 0 1px 2px rgb(28 31 30 / .06), 0 18px 40px -20px rgb(28 31 30 / .3); font-size: .93rem; line-height: 1.45; color: var(--ink-2); }
.proof li { border-left: 2px solid var(--accent); padding-left: 12px; }
.proof b { display: block; color: var(--ink); font-weight: 600; }

/* Bands */
.band { background: var(--paper-2); padding-block: clamp(56px, 7vw, 96px); }
.band-dark { background: var(--deep); color: var(--paper); }
.band-dark .link { color: var(--glow); }
.band-dark a:hover { color: #fff; opacity: .8; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.steps li { border-top: 1px solid var(--ink); padding-top: 18px; }
.step-n { display: block; font: 300 3rem/1 var(--serif); color: var(--accent); margin-bottom: 14px; }
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--ink-2); margin: 0; }

/* Tour rows */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.row a { display: grid; grid-template-columns: 52px 1fr auto 150px 32px; gap: 24px; align-items: center; padding: 20px 8px; border-top: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.row a:hover { background: var(--card); color: inherit; }
.row-n { font: 300 1.2rem/1 var(--serif); color: var(--ink-2); }
.row-t b { display: block; font: 400 clamp(1.3rem, 2.2vw, 1.75rem)/1.15 var(--serif); margin-bottom: 4px; }
.row-t span { font-size: .9rem; color: var(--ink-2); }
.row-d { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); font-weight: 600; white-space: nowrap; }
.row-img { width: 150px; aspect-ratio: 3 / 2; object-fit: cover; border: 5px solid var(--card); box-shadow: 0 6px 16px -8px rgb(28 31 30 / .35); transition: transform .3s var(--ease); }
.row a:hover .row-img { transform: rotate(-2deg) scale(1.03); }
.row-go svg { width: 24px; height: 24px; transition: transform .2s var(--ease); }
.row a:hover .row-go svg { transform: translateX(4px); color: var(--accent); }
.note { margin-top: 22px; color: var(--ink-2); }

/* Meet Chandi */
.meet { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.meet .postcard { transform: rotate(-1deg); }
.licence { border-left: 2px solid var(--accent); padding-left: 14px; font-size: .95rem; color: var(--ink-2); }

/* Quotes */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 18px; }
.quote p { font: italic 300 clamp(1.25rem, 2vw, 1.55rem)/1.45 var(--serif); }
.quote-big p { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.3; max-width: 30em; }
.quote figcaption { font-size: .95rem; }
.band-dark .small { color: rgb(247 244 238 / .7); }
.proof-links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.reviews { display: grid; gap: 48px; max-width: 900px; }
.reviews .quote { border-top: 1px solid var(--line); padding-top: 28px; }

.pay { text-align: center; }
.pay .lead { margin-inline: auto; }

/* Form */
.plan { border-top: 1px solid var(--line); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.plan-head p { color: var(--ink-2); }
.ask { display: grid; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ask label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-2); }
input, select, textarea { font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--card); border: 1px solid #cfc6b7; border-radius: var(--r); padding: 12px 13px; width: 100%; min-height: 48px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[aria-invalid="true"] { border-color: #b3261e; }
.ask .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.ask-out:empty { display: none; }
.ask-out { padding: 16px 18px; border-radius: var(--r); background: var(--paper-2); }
.ask-out.ok { background: #e7efe9; border-left: 3px solid var(--leaf); }
.ask-out.err { background: #f7e6e6; border-left: 3px solid #b3261e; }
.ask-out .btn { margin-top: 12px; }

/* Page heads */
.page-head { padding-block: clamp(40px, 6vw, 80px) 0; }
.about-head, .tour-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(32px, 5vw, 70px); }
.tour-head .postcard { transform: rotate(1deg); }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 14px 26px 14px 0; margin-right: 26px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font: 400 1.25rem/1.2 var(--serif); }

/* Tour body + timeline */
.tour-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; border-top: 1px solid var(--line); }
.tour-main > p { font-size: 1.1rem; max-width: 38em; }
.days { list-style: none; margin: 34px 0 0; padding: 0 0 0 34px; position: relative; }
.days::before, .days::after { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1.5px; background: var(--line); }
.days::after { background: var(--accent); }
.day { position: relative; padding-bottom: 30px; }
.day::before { content: ''; position: absolute; left: -34px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--accent); z-index: 1; }
.day-n { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.day h3 { font-size: 1.45rem; margin: 4px 0 6px; }
.day p { color: var(--ink-2); margin: 0; max-width: 36em; }
.tour-side { display: grid; gap: 18px; position: sticky; top: 100px; }
.box { background: var(--card); border: 1px solid var(--line); padding: 22px 24px; border-radius: var(--r); }
.box h2 { font-size: 1.3rem; }
.box p:last-child { margin-bottom: 0; }
.box-accent { border-top: 3px solid var(--accent); }
.ticks, .dashes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li, .dashes li { padding-left: 24px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }
.dashes li::before { content: ''; position: absolute; left: 2px; top: .8em; width: 11px; height: 1.5px; background: var(--ink-2); }

/* Prose, FAQ, plan page */
.prose { max-width: 760px; }
.prose p { font-size: 1.08rem; }
.pull { font: italic 300 clamp(1.5rem, 2.6vw, 2rem)/1.35 var(--serif); color: var(--accent); margin: 40px 0; }
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font: 400 1.3rem/1.3 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 18px; font: 300 1.7rem/1 var(--sans); color: var(--accent); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); max-width: 44em; padding-bottom: 12px; }
.plan-page { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.credits { padding-left: 20px; display: grid; gap: 8px; }

/* Footer */
.foot { background: var(--deep); color: rgb(247 244 238 / .86); margin-top: 0; padding-top: 70px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--glow); text-decoration: underline; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1.3fr 1.3fr .9fr; gap: 40px; padding-bottom: 50px; }
.foot h2 { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--glow); opacity: .8; margin-bottom: 18px; }
.foot-line { font: italic 300 1.35rem/1.3 var(--serif); color: var(--glow); margin-top: 18px; }
.foot .small { color: rgb(247 244 238 / .6); }
.foot-list a { display: block; padding: 3px 0; }
.foot-social a { margin-right: 16px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgb(247 244 238 / .14); padding-block: 22px 26px; }

/* Vehicles */
.vehs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.vehs .postcard { transform: rotate(-1deg); } .vehs li:nth-child(even) .postcard { transform: rotate(1.2deg); }
.vehs .postcard img { aspect-ratio: 4 / 3; }
.vehlist { list-style: none; margin: 0; padding: 0; }
.veh { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); }
.veh:last-child { border-bottom: 1px solid var(--line); }
.veh-pics { position: relative; padding-bottom: 54px; }
.veh-in { position: absolute; width: 44%; right: -2%; bottom: 0; transform: rotate(3deg); }
.veh-in img { aspect-ratio: 3 / 2; }
.veh-for { font: italic 300 1.3rem/1.3 var(--serif); color: var(--accent); }

/* Mobile quick bar */
.mbar { display: none; }

/* Entrance: only the hero moves, once. */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .9s var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; } .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; } .hero-text > :nth-child(5) { animation-delay: .32s; }
  .hero-title, .hero-text .lead { animation-name: lift; } /* no fade on the LCP candidates: a transparent element delays LCP */
  .hero-bg img { animation: drift 2.6s cubic-bezier(.2, .7, .2, 1) both; }
  figure.hero-pc { animation: settle-s 1.1s var(--ease) .45s both; }
  @supports (animation-timeline: view()) {
    .days::after { transform-origin: top; animation: fill linear both; animation-timeline: view(); animation-range: entry 30% cover 60%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes lift { from { transform: translateY(14px); } }
@keyframes drift { from { transform: scale(1.07); } }
@keyframes settle-s { from { opacity: 0; transform: translateY(30px) rotate(-6deg); } }
@keyframes fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 1180px) { .top-cta { display: none; } }
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .row a { grid-template-columns: 40px 1fr auto 110px; } .row-go { display: none; } .row-img { width: 110px; }
}
@media (max-width: 900px) {
  .menu { display: block; }
  .top-cta { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px clamp(20px, 4vw, 40px) 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .lang { border-left: 0; padding: 14px 0 0; margin: 0; gap: 8px; } .nav .lang a { font-size: .95rem; padding: 8px 12px; border: 1px solid var(--line); }
  .nav .lang a[aria-current] { border-color: var(--accent); }
  .meet, .plan, .about-head, .tour-head, .tour-body, .plan-page, .veh { grid-template-columns: 1fr; }
  .vehs { grid-template-columns: repeat(2, 1fr); }
  /* Tablet and phone: text on paper, then the photo below it, so the rock is never under the text. */
  .hero { flex-direction: column; min-height: 0; }
  .hero::before { content: none; }
  .hero-bg { position: relative; order: 2; height: auto; z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%); }
  .hero-bg img { position: static; height: auto; aspect-ratio: 16 / 10; object-position: 62% 40%; }
  .hero-in { grid-template-columns: 1fr; padding-block: 40px 0; }
  figure.hero-pc { display: none; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .tour-side { position: static; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgb(247 244 238 / .97); border-top: 1px solid var(--line); }
  .mbar .btn { min-height: 48px; padding: 0 .8em; }
  body { padding-bottom: 76px; }
}
@media (max-width: 700px) {
  .hero-bg img { aspect-ratio: 1 / 1; object-position: 50% 35%; }
  .hero-in { padding-block: 32px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .grid2 { grid-template-columns: 1fr; }
  .row a { grid-template-columns: 1fr 96px; gap: 6px 16px; padding: 18px 2px; }
  .row-n { display: none; }
  .row-t { grid-column: 1; }
  .row-d { grid-column: 1; grid-row: 2; }
  .row-img { grid-column: 2; grid-row: 1 / span 2; width: 96px; border-width: 4px; }
  .facts div { padding-right: 16px; margin-right: 16px; }
  .foot-in { grid-template-columns: 1fr; }
  .ask .btn { justify-self: stretch; }
  .brand small { display: none; }
}
