/* Roam Pal guides — premium travel-magazine feel, accessible by construction.
   Colours meet WCAG AA on their backgrounds; layout is rem-based and scales to
   200%+ zoom; focus is always visible; motion respects prefers-reduced-motion. */

:root {
  --navy: #12233f;
  --navy-2: #1d3557;
  --cream: #fdf8f0;
  --ink: #1a1a1a;
  --ink-soft: #40474f;
  --accent: #b23a2e;        /* warm rust — AA on cream (7.0:1) */
  --accent-ink: #8f2d24;    /* darker for small text if needed */
  --rule: #e2d8c6;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(18, 35, 63, .06), 0 8px 24px rgba(18, 35, 63, .08);
  --maxw: 46rem;
  --wide: 64rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: 1.25rem; }

h1, h2, h3, .brand, .btn, .site-head nav, .chip, .guide-hero__eyebrow, .guide-card__eyebrow, .guide-toc__label {
  font-family: "Outfit Variable", "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent-ink); }
a:focus-visible, .btn:focus-visible, .stop__actions a:focus-visible {
  outline: 3px solid var(--navy-2);
  outline-offset: 2px;
  border-radius: 3px;
}

img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 20;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---- site chrome ---- */
.site-head {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.site-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: .01em; }
.site-head nav { display: flex; gap: 1.25rem; font-size: 1rem; }
.site-head nav a { color: #fff; text-decoration: none; opacity: .92; }
.site-head nav a:hover { opacity: 1; text-decoration: underline; }
.site-head nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent); text-decoration-thickness: 3px; opacity: 1; }

.site-foot {
  margin-top: 3.5rem;
  background: var(--navy);
  color: #e9eef6;
  padding-block: 2rem;
  font-size: .95rem;
  line-height: 1.6;
}
.site-foot p { margin: .4rem 0; max-width: var(--wide); }
.site-foot a { color: #fff; }
.site-foot__by { opacity: .82; margin-top: .8rem; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  line-height: 1.2;
  font-size: 1.02rem;
  transition: transform .12s ease, background .12s ease;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn--soft { background: var(--navy-2); color: #fff; }
.btn--soft:hover { background: var(--navy); }
.btn--ghost { background: transparent; color: var(--accent-ink); border: 1.5px solid var(--rule); padding: .5rem .9rem; font-size: .95rem; }
.btn--ghost:hover { border-color: var(--accent); background: #fff; }

/* ---- guide hero ---- */
.guide-hero { position: relative; background: var(--navy); color: #fff; padding-block: 3.25rem; }
.guide-hero--img { background-size: cover; background-position: center; min-height: 46vh; display: flex; align-items: flex-end; padding-block: 3rem; }
.guide-hero .wrap { max-width: var(--wide); }
.guide-hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; margin: 0 0 .6rem; color: #f6d9b0; }
.guide-hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.08; margin: 0 0 .8rem; max-width: 18ch; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.guide-hero__standfirst { font-size: clamp(1.1rem, 2.4vw, 1.4rem); max-width: 40ch; margin: 0 0 1.4rem; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.guide-hero__actions { margin: 0; }
.guide-hero__credit { position: absolute; right: .6rem; bottom: .4rem; margin: 0; font-size: .7rem; color: rgba(255,255,255,.8); font-family: system-ui, sans-serif; }

/* ---- guide layout ---- */
.guide__main { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; padding-top: 2.5rem; align-items: start; }
.guide__article { max-width: var(--maxw); }

.guide-toc { position: sticky; top: 1rem; font-family: inherit; }
.guide-toc__label { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--ink-soft); margin: 0 0 .5rem; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.guide-toc li { margin: 0; }
.guide-toc a { display: block; padding: .4rem .8rem; font-size: .95rem; text-decoration: none; color: var(--ink-soft); font-family: "Outfit Variable", ui-sans-serif, system-ui, sans-serif; }
.guide-toc a:hover { color: var(--accent-ink); background: rgba(178,58,46,.06); }

.lede { font-size: 1.28rem; line-height: 1.6; color: var(--ink); }
.lede p:first-child::first-letter { font-size: 3.4rem; line-height: .8; float: left; padding: .2rem .5rem .1rem 0; font-family: "Outfit Variable", sans-serif; font-weight: 700; color: var(--accent); }

.prose-section h2, .day__title { font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.15; margin: 2.4rem 0 .8rem; color: var(--navy); }
.day { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.day__title { position: relative; }
.day__intro { color: var(--ink); }

.pull-quote { margin: 2rem 0; padding: 0 0 0 1.4rem; border-left: 4px solid var(--accent); font-size: 1.35rem; line-height: 1.4; color: var(--navy); font-style: italic; }
.pull-quote p { margin: 0; }

/* ---- route map ---- */
.routemap { margin: 1.5rem 0; }
.routemap__svg { width: 100%; height: auto; background: #eef3ee; border: 1px solid var(--rule); border-radius: 12px; }
.rm-line { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.rm-dot { fill: var(--navy); }
.rm-label { fill: #fff; font-family: "Outfit Variable", sans-serif; font-size: 15px; font-weight: 700; }
.routemap figcaption, .stop__figure figcaption { font-size: .8rem; color: var(--ink-soft); font-family: system-ui, sans-serif; margin-top: .4rem; }

/* ---- stop cards ---- */
.stops { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.stop { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.stop__head { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem .25rem; }
.stop__num { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: "Outfit Variable", sans-serif; }
.stop__name { margin: 0; font-size: 1.3rem; color: var(--navy); }
.stop__figure { margin: .5rem 0 0; }
.stop__figure img { width: 100%; max-height: 22rem; object-fit: cover; }
.stop__figure figcaption { padding: 0 1.25rem; }
.stop__body { padding: 1rem 1.25rem 1.25rem; }
.stop__body p { margin: .6rem 0; }
.stop__summary { font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.stop__tip { background: #fbf3e3; border-radius: 8px; padding: .7rem .9rem; font-size: 1rem; }
.stop__tip-label { font-weight: 700; color: var(--accent-ink); font-family: "Outfit Variable", sans-serif; }
.stop__meta { font-size: .95rem; color: var(--ink-soft); }

/* ---- access badges (never colour-alone: icon glyph + text) ---- */
.access { margin-top: .8rem; padding: .75rem .9rem; border-radius: 8px; background: #f0f4ef; border: 1px solid #d9e4d6; }
.access__label { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 .4rem; font-family: "Outfit Variable", sans-serif; }
.access--unknown { background: #f4f1ea; border-color: var(--rule); color: var(--ink-soft); font-size: .95rem; margin-top: .8rem; }
.access__icon { font-weight: 700; }
.chips { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: #fff; border: 1px solid #cfe0ca; border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; font-family: "Outfit Variable", sans-serif; color: #22401d; }
.chip__icon { font-weight: 700; color: #2f6b28; }
.access__notes { font-size: .92rem; color: var(--ink-soft); margin: .5rem 0 0; }
/* orientation/hazard notes for blind & low-vision visitors — slightly more
   prominent (full ink, own labelled line) as it's critical for that audience */
.access__visual { font-size: .95rem; color: var(--ink); margin: .5rem 0 0; }
.access__visual-label { display: inline-block; font-family: "Outfit Variable", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; color: var(--accent-ink); margin-right: .4rem; }
.access__sensory { font-size: .92rem; color: var(--ink-soft); margin: .5rem 0 0; }
.access__sensory-label { font-family: "Outfit Variable", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; color: var(--accent-ink); margin-right: .35rem; }
.access__checked { font-size: .78rem; color: var(--ink-soft); margin: .5rem 0 0; font-family: "Outfit Variable", sans-serif; }

/* curated creator PROFILE cards (mini-map + editorial + recency) */
.creator-profiles { display: grid; gap: 1.5rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
.creator-profile { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: 1.2rem 1.35rem 1.35rem; display: flex; flex-direction: column; }
.creator-profile__name { margin: 0 0 .2rem; font-size: 1.3rem; color: var(--navy); }
.creator-profile__focus { margin: 0; font-family: "Outfit Variable", sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); }
.creator-profile__recency { margin: .3rem 0 0; font-size: .82rem; color: var(--ink-soft); }
.coverage { margin: .9rem 0; }
.coverage__svg { width: 100%; height: auto; background: #eef3ee; border: 1px solid var(--rule); border-radius: 10px; }
.cov-dot { fill: var(--accent); opacity: .85; }
.creator-profile__why { margin: .5rem 0; }
.creator-profile__bestfor { margin: .5rem 0; font-size: .95rem; }
.creator-profile__label { font-weight: 700; color: var(--accent-ink); font-family: "Outfit Variable", sans-serif; }
.creator-profile__stats { margin: .4rem 0 .3rem; font-size: .85rem; color: var(--ink-soft); font-family: "Outfit Variable", sans-serif; }
.creator-profile__packs { margin: .2rem 0 .6rem; font-size: .85rem; color: var(--ink-soft); }
.creator-profile__vids { margin: 0 0 .8rem; padding-left: 1.1rem; }
.creator-profile__vids li { margin: .28rem 0; font-size: .92rem; line-height: 1.4; }
.creator-profile__place { color: var(--ink-soft); font-size: .8rem; }
.creator-profile__more { list-style: none; color: var(--ink-soft); font-size: .85rem; }
.creator-profile__actions { margin: auto 0 0; }

/* creators "worth following" cards */
.creators { display: grid; gap: 1.25rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.creator { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: 1.1rem 1.25rem 1.25rem; }
.creator__name { margin: 0 0 .2rem; font-size: 1.2rem; color: var(--navy); }
.creator__meta { margin: 0 0 .6rem; font-size: .9rem; color: var(--ink-soft); }
.creator__vids { margin: 0; padding-left: 1.1rem; }
.creator__vids li { margin: .3rem 0; font-size: .95rem; line-height: 1.4; }
.creator__place { color: var(--ink-soft); font-size: .82rem; }

/* curated / accessible-travel videos on a stop */
.stop__videos { margin-top: .9rem; padding: .75rem .9rem; border-radius: 8px; background: #f4f1ea; border: 1px solid var(--rule); }
.stop__videos-label { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 .4rem; font-family: "Outfit Variable", sans-serif; }
.stop__videos ul { margin: 0; padding-left: 1.1rem; }
.stop__videos li { margin: .25rem 0; font-size: .95rem; line-height: 1.4; }
.stop__videos-by { color: var(--ink-soft); font-size: .85rem; }

/* full link options: official site + Wikipedia */
.stop__links { margin-top: .7rem; font-size: .9rem; }
.stop__links-label { font-family: "Outfit Variable", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--ink-soft); margin-right: .35rem; }
.stop__links a { color: var(--accent-ink); }

/* cross-reference: "Also featured in" other guides */
.stop__also { margin-top: .8rem; font-size: .9rem; color: var(--ink-soft); }
.stop__also-label { font-family: "Outfit Variable", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--ink-soft); margin-right: .35rem; }
.stop__also a { color: var(--accent-ink); }

.stop__actions { margin-top: 1rem; }
.day__actions { margin-top: 1.5rem; }

/* ---- closing CTA ---- */
.cta-band { margin-top: 3rem; padding: 2rem 1.75rem; background: var(--navy); color: #fff; border-radius: 16px; }
.cta-band h2 { margin: 0 0 .6rem; color: #fff; }
.cta-band p { margin: 0 0 1rem; color: #e9eef6; }

/* ---- guides index ---- */
.index-hero { padding-block: 2.5rem 1rem; max-width: var(--maxw); }
.index-hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0 0 .6rem; color: var(--navy); }
.index-hero__standfirst { font-size: 1.25rem; color: var(--ink-soft); margin: 0; }
.guide-grid { list-style: none; margin: 2rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.5rem; }
.guide-card { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.guide-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.guide-card__img { display: block; height: 11rem; background-size: cover; background-position: center; }
.guide-card__img--none { background: linear-gradient(135deg, var(--navy-2), var(--navy)); }
.guide-card__body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.guide-card__eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; color: var(--accent-ink); }
.guide-card__title { font-family: "Outfit Variable", sans-serif; font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--navy); }
.guide-card__desc { color: var(--ink-soft); font-size: 1rem; }
.guide-card a:hover .guide-card__title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---- guides index: search + filter + pagination (progressive enhancement) ---- */
.gsearch { margin: 1.5rem 0 .5rem; }
.gsearch__bar { max-width: 34rem; }
.gsearch__label { display: block; font-family: "Outfit Variable", sans-serif; font-weight: 600; font-size: .9rem; color: var(--ink-soft); margin-bottom: .35rem; }
.gsearch__input { width: 100%; font-size: 1.05rem; padding: .7rem .95rem; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--card); color: var(--ink); }
.gsearch__input:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 2px; border-color: var(--accent); }
.gsearch__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.gsearch__chip { font-family: "Outfit Variable", sans-serif; font-size: .92rem; font-weight: 600; padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--card); color: var(--ink); cursor: pointer; }
.gsearch__chip:hover { border-color: var(--accent); }
.gsearch__chip[aria-pressed="true"] { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.gsearch__count { margin: .9rem 0 0; font-size: .92rem; color: var(--ink-soft); font-family: "Outfit Variable", sans-serif; }
.gsearch__empty { font-size: 1.05rem; color: var(--ink-soft); padding: 1.5rem 0; }
.gsearch__more { text-align: center; margin: 1.5rem 0; }

/* ---- responsive ---- */
@media (max-width: 52rem) {
  .guide__main { grid-template-columns: 1fr; gap: 1.5rem; }
  .guide-toc { position: static; border: 1px solid var(--rule); border-radius: 10px; padding: 1rem; background: #fff; }
  .guide-toc ol { border-left: none; }
  body { font-size: 1.06rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---- dark mode (opt-in via OS) ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #14171c;
    --ink: #eef1f5;
    --ink-soft: #b6bfca;
    --card: #1d222b;
    --rule: #333a45;
    --navy: #0e1a2f;
    --accent: #e8735f;
    --accent-ink: #f0937f;
  }
  /* headings/titles use var(--navy) as text — which is a dark *background* colour
     in dark mode, so recolour them to a light ink or they vanish on dark cards */
  .prose-section h2, .day__title, .stop__name, .stop__summary, .creator__name,
  .creator-profile__name, .pull-quote, .guide-card__title, .index-hero h1 { color: #e8edf4; }
  .coverage__svg { background: #1a2620; }
  .stop__tip { background: #2a2418; }
  .stop__videos { background: #20242c; border-color: var(--rule); }
  .access { background: #1a2620; border-color: #294031; }
  .chip { background: #14171c; color: #cfe6c9; border-color: #2f5a2a; }
  .chip__icon { color: #7fd074; }
  .access--unknown { background: #20242c; }
  .routemap__svg { background: #1a2620; }
  .lede p:first-child::first-letter { color: var(--accent); }
}
