/* youandme.travel - production landing page.
 *
 * Written from scratch. Nothing here comes from the Tilda export: the export
 * terms forbid using exported source to build pages outside Tilda, and the
 * point of this page is to owe Tilda nothing. TildaSans is the one carry-over
 * and it is licensed separately under the SIL OFL.
 *
 * build-landing.sh stamps this file's URL with a hash of its contents, so it
 * is safe for the production vhost to cache it hard.
 */

/* --- Fonts -------------------------------------------------------------- */
/* Vendored by build-landing.sh from local/vendor/fonts/. woff2 only: every
 * browser that gets a landing page in 2026 supports it, and shipping woff as
 * well would double the font payload for nobody. */
@font-face {
    font-family: "TildaSans";
    src: url("../fonts/TildaSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "TildaSans";
    src: url("../fonts/TildaSans-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "TildaSans";
    src: url("../fonts/TildaSans-Semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "TildaSans";
    src: url("../fonts/TildaSans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
    --ink: #10202f;
    --ink-soft: #1d3448;
    --body: #3d4c5a;
    --muted: #6b7a88;
    --line: #e2e0da;
    --paper: #ffffff;
    --sand: #f7f4ef;
    --accent: #b0793a;
    --accent-dark: #8d5f2c;

    --font: "TildaSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;

    --shell: 1180px;
    --gutter: clamp(20px, 5vw, 48px);
    --radius: 4px;
}

/* --- Reset -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--body);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

/* height:auto matters. Every img carries width/height attributes so the
 * browser can reserve the right box before the file arrives, but those
 * attributes become the used height as soon as CSS sets only the width - which
 * stretches the picture. Rules that set both dimensions (the gallery) are more
 * specific and still win. */
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dark); }

/* A visible focus ring everywhere. The design is dark-on-light and
 * light-on-dark by turns, so the ring uses currentColor to stay legible on
 * both rather than a fixed colour that disappears on one of them. */
:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 12px 20px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--accent-dark); }

.btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn--sm { padding: 10px 20px; font-size: 0.88rem; }

/* --- Header ------------------------------------------------------------- */
.masthead {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--ink);
}

.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.masthead__logo img { width: 168px; height: auto; }

.nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.6vw, 34px);
}

.nav a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
}
.nav a:hover { color: #fff; }
.nav .btn { color: #fff; }

/* The nav links are the first thing to run out of room. Below 860px only the
 * call to action stays - it is the one link the page exists for, and the
 * sections it hides are all reachable by scrolling. */
@media (max-width: 860px) {
    .nav a:not(.btn) { display: none; }
    .masthead__logo img { width: 140px; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(460px, 76vh, 720px);
    padding: 80px 0;
    color: #fff;
    isolation: isolate;
    /* The shorthand first, then the image: written the other way round the
     * shorthand resets background-image back to none and the hero is a flat
     * navy block. Served at the size the viewport can use - the 1600px file is
     * half a megabyte, the wrong thing to hand a phone on the first paint. */
    background: var(--ink) center / cover no-repeat;
    background-image: url("../images/banff-valley-800.jpg");
}

/* The photograph is a background image rather than an <img>: it is decoration
 * behind text, it has no informational content of its own, and this keeps the
 * dark scrim that makes the headline legible in one place. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        105deg,
        rgba(9, 20, 30, 0.85) 0%,
        rgba(9, 20, 30, 0.62) 45%,
        rgba(9, 20, 30, 0.32) 100%
    );
}

@media (min-width: 801px) {
    .hero { background-image: url("../images/banff-valley-1600.jpg"); }
}

.hero h1 { color: #fff; max-width: 15ch; }

.hero__eyebrow {
    margin: 0 0 18px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.hero__lede {
    max-width: 46ch;
    margin: 20px 0 34px;
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Sections ----------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }

/* The masthead is sticky, so an in-page anchor has to leave room for it or it
 * scrolls the target's first line underneath the bar. */
[id] { scroll-margin-top: 88px; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.section--ink h2, .section--ink h3 { color: #fff; }

.section__head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section--ink .section__head p { color: rgba(255, 255, 255, 0.72); }

.eyebrow {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

/* --- Pillars ------------------------------------------------------------ */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(24px, 3vw, 40px);
}

.pillar__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: var(--accent);
}

.pillar h3 { margin-bottom: 0.4em; }
.pillar p { color: var(--muted); }

/* --- Destinations ------------------------------------------------------- */
/* Text cards, not photo cards, and deliberately so: the only travel photos we
 * own outright are Russia and Canada, and a grid where two cards carry an
 * image and three do not reads as broken rather than as a choice. The
 * photographs get their own section below, where every one of them is ours. */
.places {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.place {
    padding: clamp(28px, 3vw, 38px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.place__index {
    display: block;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--accent);
}

.place h3 { margin-bottom: 0.5em; }
.place p { font-size: 0.97rem; color: var(--muted); }

/* --- Gallery ------------------------------------------------------------ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
}

.shot {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.shot {
    aspect-ratio: 4 / 3;
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.shot:hover img { transform: scale(1.04); }

.shot figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 18px 14px;
    background: linear-gradient(transparent, rgba(9, 20, 30, 0.8));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* --- Steps -------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: clamp(28px, 3vw, 44px);
    counter-reset: step;
}

.step { counter-increment: step; }

.step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.step h3 { font-size: 1.08rem; margin-bottom: 0.45em; }
.step p { font-size: 0.95rem; }

/* --- Split (about) ------------------------------------------------------ */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.split__media img {
    width: 100%;
    border-radius: var(--radius);
}

/* --- Contact form ------------------------------------------------------- */
.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
}

.contact__aside p { color: var(--muted); }

.contact__direct {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.97rem;
}
.contact__direct li { margin-bottom: 10px; }
.contact__direct a { color: var(--ink); font-weight: 600; }

.field { margin-bottom: 18px; }

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
}

.field label .hint {
    display: inline;
    margin-left: 5px;
    font-weight: 400;
}

.field .hint {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font-family: inherit;
    font-size: 0.97rem;
    color: var(--ink);
}

.field textarea { min-height: 132px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(176, 121, 58, 0.25);
    outline-offset: 0;
}

.field--pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}
.field--pair .field { margin-bottom: 0; }

.field--check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.9rem;
    color: var(--muted);
}
.field--check input { width: auto; margin-top: 4px; flex: none; }
.field--check label { font-weight: 400; font-size: 0.9rem; color: var(--muted); }

/* Off-screen rather than display:none. A bot that reads the stylesheet skips
 * hidden fields; one that only parses the markup fills this in and is
 * discarded by the receiver's honeypot check. */
.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form__note {
    margin-top: 16px;
    font-size: 0.9rem;
}

.form__note[data-state="error"] { color: #a3341f; }
.form__note[data-state="ok"] { color: #1f6b45; }

button[disabled] { opacity: 0.6; cursor: progress; }

/* --- Footer ------------------------------------------------------------- */
.footer {
    padding: clamp(52px, 6vw, 76px) 0 40px;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

.footer__top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__logo img { width: 176px; margin-bottom: 18px; }

.footer h4 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 9px; }

.socials { display: flex; gap: 14px; }

.socials a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.78);
}
.socials a:hover { border-color: #fff; color: #fff; }
.socials svg { width: 19px; height: 19px; }

.footer__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 26px;
    font-size: 0.84rem;
}

/* --- Long-form pages (about, policies) ---------------------------------- */
.page-head {
    padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px);
    background: var(--sand);
}
.page-head p { max-width: 60ch; color: var(--muted); font-size: 1.05rem; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.08rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose .updated { font-size: 0.9rem; color: var(--muted); }
