/* CMJani. Shared styles for every page. Nothing here needs a build step. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: "Literata"; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/literata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/literata-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: "Literata"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("/assets/fonts/literata-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/literata-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --blue: #0a3a9a;        /* Finnish blue: header, route line, links */
  --blue-deep: #06245f;   /* headings, footer */
  --gold: #f5b301;        /* temple gold: stops and the Maps button */
  --mist: #eef2f8;        /* page background */
  --white: #ffffff;
  --ink: #14203a;         /* body text */
  --muted: #47536d;       /* secondary text */
  --line: #cdd7e8;        /* quiet borders */

  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;

  --gutter: 1rem;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
}

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

a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: break-word;
}
h2 { color: var(--blue-deep); font-size: 2.25rem; }
h3 { color: var(--blue-deep); font-size: 1.625rem; }

.wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(60rem + 2 * var(--gutter)); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 0.5rem; z-index: 2; padding: 0.25rem 0.75rem; background: var(--white); }

/* Blue header band */

.band { background: var(--blue); color: var(--white); }
.band a { color: var(--white); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
}
.wordmark { font-size: 1.75rem; font-weight: 700; line-height: 1; text-decoration: none; }
.lang { padding: 0.5rem 0; }

.crumbs { font-size: 0.875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 0.375rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 0.375rem; }

.band h1 { padding-top: 1.25rem; font-size: clamp(2.375rem, 11.5vw, 4.5rem); line-height: 0.98; }
.band .lede { margin: 1rem 0 0; font-size: 1.125rem; line-height: 1.5; }
.band--home { padding-bottom: 2.25rem; }
.band--post { padding-bottom: 7rem; }
.band--page { padding-bottom: 2.25rem; }

/* Video: a thumbnail link that site.js swaps for the YouTube player on click */

.video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-top: -5.5rem;
  background: var(--blue-deep);
  box-shadow: 0 0 0 4px var(--gold);
}
.video img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  background: var(--gold);
  color: var(--blue-deep);
  font: 700 1.25rem/1.2 var(--display);
}
.video__play svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }

.byline { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.byline__photo { flex: none; width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.byline p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.byline__name { display: block; color: var(--blue-deep); font: 700 1.25rem/1.2 var(--display); text-decoration: none; }
.byline__name:hover { text-decoration: underline; }

/* The short answer under the video */

.summary { margin-top: 2rem; padding-left: 1rem; border-left: 6px solid var(--gold); }
.summary h2 { font-size: 1.625rem; }
.summary p { margin: 0.375rem 0 0; }

/* Places: the route line. Order follows the video. */

.section { margin-top: 3rem; }

.route { margin-top: 1.75rem; }
.route h3 { margin-bottom: 0.5rem; }

.facts { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0 0 1.5rem; }
.facts div { display: flex; gap: 0.375rem; align-items: baseline; }
.facts dt { color: var(--muted); font-size: 0.9375rem; }
.facts dd { margin: 0; color: var(--blue-deep); font: 700 1.25rem/1.3 var(--display); }

.stops { margin: 0; padding: 0; list-style: none; }
.stop { position: relative; padding: 0 0 2.25rem 3.5rem; }
.stop::before {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--blue);
}
.stop:last-child { padding-bottom: 0.5rem; }
.stop:last-child::before { bottom: auto; height: 1rem; }
.stop__no {
  position: absolute;
  left: 0;
  top: -0.125rem;
  display: grid;
  place-items: center;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--mist);
  color: var(--blue-deep);
  font: 700 1.5rem/1 var(--display);
}
.stop__name {
  margin: 0;
  color: var(--blue-deep);
  font: 700 1.625rem/1.1 var(--display);
  overflow-wrap: break-word;
}
.stop__note { margin: 0.375rem 0 0.5rem; }
.stop__address { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.stop__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }

.maps {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1.125rem 0.5rem 0.875rem;
  background: var(--gold);
  color: var(--blue-deep);
  font: 700 1.25rem/1.1 var(--display);
  text-decoration: none;
}
.maps:hover { background: var(--blue-deep); color: var(--gold); }
.maps svg { flex: none; width: 1.25rem; height: 1.25rem; fill: currentColor; }

.at { white-space: nowrap; font-size: 0.9375rem; }

.affiliate { margin: 0.75rem 0 0; font-size: 0.9375rem; }
.affiliate__tag { color: var(--muted); }

/* Article */

.prose > * + * { margin-block: 1rem 0; }
.prose h2 + *, .prose h3 + * { margin-top: 0.5rem; }
.prose h2:not(:first-child) { margin-top: 2.25rem; }
.prose h3 { margin-top: 2rem; }
.checked { color: var(--muted); font-size: 0.9375rem; }

.table { overflow-x: auto; }
.table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.4; }
.table th, .table td { padding: 0.5rem 0.75rem 0.5rem 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { border-top: 0; border-bottom: 3px solid var(--blue); color: var(--blue-deep); font: 700 1.125rem/1.2 var(--display); }
.table tbody th { font-weight: 600; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.375rem; }

.chapters { margin: 1rem 0 0; padding: 0; list-style: none; }
.chapters li { display: flex; gap: 0.875rem; padding-block: 0.5rem; border-top: 1px solid var(--line); }
.chapters a { flex: none; width: 3.25rem; font: 700 1.1875rem/1.45 var(--display); }

.next { margin-top: 3rem; padding: 1.5rem 0 0; border-top: 6px solid var(--blue); }
.next p { margin: 0.5rem 0 0; }

/* Video list on the landing pages */

.videos { display: grid; gap: 2.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.card__link { display: block; color: inherit; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card h3 { margin-top: 0.75rem; font-size: 1.75rem; }
.card__link:hover h3 { color: var(--blue); text-decoration: underline; text-underline-offset: 0.12em; }
.card__places { margin: 0.375rem 0 0; }
.card__date { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9375rem; }

/* Footer. To add a social channel, add another li to the "Follow" list on every page. */

.site-footer { margin-top: 4rem; padding-block: 2.5rem 1.5rem; border-top: 6px solid var(--gold); background: var(--blue-deep); color: var(--white); font-size: 0.9375rem; }
.site-footer a { color: var(--white); }
.footer { display: grid; gap: 1.75rem; }
.footer__wordmark { font: 700 2rem/1 var(--display); text-decoration: none; }
.footer__brand p { max-width: 24rem; margin: 0.5rem 0 0; }
.footer__title { margin: 0 0 0.375rem; color: var(--gold); font: 700 1.25rem/1.2 var(--display); }
.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; }
.footer__social svg { flex: none; width: 1.5rem; height: 1.5rem; fill: currentColor; }
.footer__legal { margin: 1.75rem 0 0; color: #c7d3ea; font-size: 0.875rem; }
.footer__legal a { margin-left: 0.5rem; }
.footer__legal + .footer__legal { margin-top: 0.5rem; }

/* Calls to action */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1.125rem;
  background: var(--gold);
  color: var(--blue-deep);
  font: 700 1.3125rem/1.1 var(--display);
  text-decoration: none;
}
.band a.button { color: var(--blue-deep); }
.band a.button:hover, .button:hover { background: var(--white); color: var(--blue-deep); box-shadow: inset 0 0 0 3px var(--gold); }
.button svg { flex: none; width: 1.5rem; height: 1.5rem; fill: currentColor; }
.proof { margin: 1rem 0 0; font-size: 0.9375rem; }

.join { display: grid; gap: 1.25rem; padding: 1.75rem 0 0; border-top: 6px solid var(--blue); }
.join__photo { width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--gold); }
.join p { margin: 0.5rem 0 0; }

.band--profile { padding-bottom: 6rem; }
.profile__photo {
  position: relative;
  width: 9rem;
  height: 9rem;
  margin-top: -4.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--gold);
}

@media (min-width: 40rem) {
  :root { --gutter: 1.5rem; }
  body { font-size: 1.125rem; }
  h2 { font-size: 2.75rem; }
  .band--post { padding-bottom: 8.5rem; }
  .video { margin-top: -7rem; }
  .video__play { left: 1rem; bottom: 1rem; font-size: 1.5rem; padding: 0.5rem 1.125rem 0.5rem 0.875rem; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; }
  .footer { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
  .join { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }
  .join__photo { width: 10rem; height: 10rem; }
}

@media print {
  .band { background: none; color: var(--ink); }
  .band a { color: var(--ink); }
  .video, .topbar .lang, .site-footer { display: none; }
}
