/* Rydi blog theme for Ghost 6.
   Part 1 (fonts, tokens, base, buttons, header, footer) is copied from the marketing site, src/Landing/src/index.css,
   with the same class names, so the blog and rydi.net share one header and one footer. Change them there first and
   copy the rules here. Part 2 is the blog: hero band, post cards, post page, Koenig cards, archives, newsletter. */

/* =====================================================================================================
   Part 1: the site
   ===================================================================================================== */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, 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: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/open-sans-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --navy: #082645;
  --blue: #004080;
  --soft: #edf0fa;
  --soft-2: #dfe4f7;
  --text: #676c7e;
  --ink: #3f4456;          /* long text (the site's .prose) */
  --link: #135ba6;
  --white: #fff;
  --footer: #121212;
  --btn-hover: hsl(210, 15%, 28%);
  --card-shadow: 0 0 0 1px rgba(8, 38, 69, .06), 0 18px 36px -22px rgba(8, 38, 69, .45);
  --card-shadow-hover: 0 0 0 1px rgba(8, 38, 69, .08), 0 26px 44px -24px rgba(8, 38, 69, .55);
  --radius: 16px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font-body: var(--gh-font-body, "Open Sans", Helvetica, Arial, sans-serif);
  --font-heading: var(--gh-font-heading, "Open Sans", Helvetica, Arial, sans-serif);
  /* Koenig cards (card_assets) read this; ghost_head sets it from Settings > Brand > Accent colour */
  --ghost-accent-color: var(--navy);
}

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

html { font-size: 14px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #b9c2dc var(--soft); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--navy);
}

::selection { background: var(--navy); color: #fff; }

p { margin: 0 0 1rem; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; font-family: var(--font-heading); font-weight: 600; line-height: 1.4; color: var(--navy); overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
strong, b { font-weight: 700; }
address { font-style: normal; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 1100; padding: 10px 18px; border-radius: 50px;
  background: var(--navy); color: #fff; font-weight: 700; transition: top .2s var(--ease-out);
}
.skip:focus { top: 12px; }

/* Grid: Bootstrap 4 containers, as the site uses them */
.container { width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* Buttons */
.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  isolation: isolate;
  padding: 8px 35px;
  border: 1px solid transparent;
  border-radius: 50px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn:hover, .btn:focus-visible { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn--light { background: #ebefff; color: #135ba6; }
.btn--light:hover, .btn--light:focus-visible { background: #fff; border-color: #fff; }
.btn--xl { padding: 13px 56px; border-width: 2px; font-size: 18px; }
.btn--outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline-dark:hover, .btn--outline-dark:focus-visible { background: var(--soft); border-color: var(--navy); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn--outline-dark::after, .btn--light::after { background: linear-gradient(110deg, transparent 30%, rgba(8, 38, 69, .08) 50%, transparent 70%); }

/* ---------- Header (site b8449) ---------- */
.header { position: sticky; top: 0; z-index: 1000; background: var(--soft); }
.header__bar { padding: 12px 15px; box-shadow: 0 0 3px 0 #b5b5b5; }
@media (min-width: 768px) { .header__bar { padding: 20px 15px; } }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; }
.header__logo { flex: none; display: block; margin-right: 14px; }
.header__logo img { max-width: 180px; width: 100%; }
.header__langs { display: flex; align-items: center; padding: 30px 0 30px 10px; }

.header__nav { flex-basis: 100%; }
.nav { padding-top: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.nav li { margin-bottom: 7px; }
.nav__link { position: relative; display: inline-block; color: var(--text); line-height: 1.6; white-space: nowrap; transition: color .2s; }
.nav__link.is-active { color: var(--navy); }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px;
  background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav__link.is-active::after { transform: scaleX(1); }
.header__signup { margin: 4px 0 12px; padding: 6px 22px; font-size: 13px; white-space: nowrap; }

.burger { margin-left: auto; padding: 0; border: 0; background: none; line-height: 1; cursor: pointer; }
.burger__box { position: relative; display: block; width: 25px; height: 18px; }
.burger__inner, .burger__inner::before, .burger__inner::after {
  position: absolute; left: 0; width: 25px; height: 3px; border-radius: 3px;
  background: var(--text); transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.burger__inner { top: 0; }
.burger__inner::before { content: ""; top: 7.5px; }
.burger__inner::after { content: ""; top: 15px; }
.burger[aria-expanded="true"] .burger__inner { transform: translate3d(0, 7.5px, 0) rotate(45deg); }
.burger[aria-expanded="true"] .burger__inner::before { opacity: 0; transform: rotate(-45deg) translate3d(-5.7px, -6px, 0); }
.burger[aria-expanded="true"] .burger__inner::after { top: 15px; transform: translate3d(0, -15px, 0) rotate(-90deg); }

@media (max-width: 991.98px) {
  .header__inner { padding: 0; }
  .header__nav { display: none; }
  .header__nav.is-open { display: block; }
  /* without JavaScript the burger cannot open the menu, so the menu is simply shown */
  .no-js .header__nav, .no-js .header__langs { display: flex !important; }
  .no-js .header__nav { display: block !important; }
  .no-js .burger { display: none; }
}
@media (min-width: 992px) {
  .burger { display: none; }
  .header__inner { flex-wrap: nowrap; }
  .header__nav { display: flex; flex: 1 1 auto; flex-basis: auto; align-items: center; justify-content: flex-end; }
  .nav { display: flex; justify-content: flex-end; padding-top: 0; }
  .nav li { margin: 0 15px; }
  .nav li:last-child { margin-right: 15px; }
  .header__signup { flex: none; margin: 0 0 0 10px; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
  .header__logo { margin-right: 4px; }
  .header__langs { padding-left: 0; }
  .nav li { margin: 0 8px; }
  .nav li:last-child { margin-right: 6px; }
  .header__signup { padding: 6px 16px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .header__logo img { max-width: 112px; }
  .nav { font-size: 10px; }
  .nav li { margin: 0 5px; }
  .header__signup { padding: 5px 12px; font-size: 12px; }
}

/* phones: logo, "Try free" and the burger on one row; the languages move into the menu */
@media (max-width: 991.98px) {
  .header__bar { padding: 8px 12px; }
  .header__inner { flex-wrap: wrap; align-items: center; }
  .header__logo { margin-right: 6px; }
  .header__logo img { max-width: 104px; }
  .header__langs { order: 4; flex-basis: 100%; display: none; padding: 6px 0 14px; }
  .header.is-open .header__langs { display: flex; }
  .header__nav { order: 3; }
  .header__nav .header__signup { display: none; }
  .header__cta { margin-left: auto; margin-right: 14px; padding: 10px 22px; font-size: 15px; white-space: nowrap; }
}
@media (min-width: 992px) { .header__cta { display: none; } }
@media (max-width: 374.98px) {
  .header__logo img { max-width: 88px; }
  .header__cta { margin-right: 10px; padding: 9px 14px; font-size: 13px; }
}

/* ---------- Language switcher (site: Header.jsx LangSwitch, index.css) ---------- */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 9px; border: 1px solid rgba(8, 38, 69, .18);
  border-radius: 50px; background: #fff; color: var(--navy); font: 700 12px/1.4 var(--font-body); cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lang__globe { width: 16px; height: 16px; }
.lang__chev { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.lang.is-open .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 190px; margin: 0; padding: 6px; list-style: none;
  border-radius: 12px; background: #fff; box-shadow: 0 14px 34px -12px rgba(8, 38, 69, .35), 0 0 0 1px rgba(8, 38, 69, .06);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top left;
  /* hidden only after the fade on close; visible at once on open, so Tab and the arrow keys reach the choices */
  transition: opacity .16s ease, transform .2s var(--ease-out), visibility 0s linear .2s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang__item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--navy); font-size: 14px;
  transition: background-color .15s ease;
}
.lang__item b { width: 24px; color: var(--text); font-size: 11px; letter-spacing: .04em; }
.lang__item.is-current { font-weight: 600; }
.lang__check { width: 16px; height: 16px; margin-left: auto; color: var(--navy); }
.lang__item:hover, .lang__item:focus-visible { background: var(--soft); }
@media (hover: hover) and (pointer: fine) { .lang__btn:hover { border-color: var(--navy); box-shadow: 0 4px 12px -6px rgba(8, 38, 69, .4); } }
/* phones: inside the open menu, the three choices as a row; no floating card */
@media (max-width: 991.98px) {
  .lang__btn { display: none; }
  .lang__menu { position: static; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; padding: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .lang__item { padding: 6px 12px; border: 1px solid rgba(8, 38, 69, .18); border-radius: 50px; font-size: 13px; }
  .lang__item b { width: auto; }
  .lang__item.is-current { border-color: var(--navy); background: var(--navy); color: #fff; }
  .lang__item.is-current b { color: rgba(255, 255, 255, .7); }
  .lang__check { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lang__menu, .lang__chev { transition: none; } }
/* without JavaScript the button cannot open the menu, so the choices are shown as the phone row */
.no-js .lang__btn { display: none; }
.no-js .lang__menu { position: static; display: flex; gap: 6px; min-width: 0; padding: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
.no-js .lang__item { padding: 4px 10px; border: 1px solid rgba(8, 38, 69, .18); border-radius: 50px; font-size: 12px; }
.no-js .lang__item b { width: auto; }
.no-js .lang__check { display: none; }
@media (min-width: 992px) { .no-js .lang__item span { display: none; } .no-js .lang__item b { color: inherit; } }

/* footer: the official "Made in Norway" mark (it has its own light background, shown as a small tile) */
.made-in img { display: block; width: 200px; max-width: 100%; height: auto; border-radius: 8px; }

/* ---------- Footer (site b7279) ---------- */
.footer { padding: 60px 0 30px; background: var(--footer); color: #fff; }
.footer .row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.footer__main { flex: 0 0 100%; max-width: 100%; margin-bottom: 25px; padding: 0 15px; }
.footer__about { margin-bottom: 20px; }
.footer__about p:last-child { margin-bottom: 0; }
.footer__contacts { margin-bottom: 20px; }
.contact { display: flex; margin-bottom: 7px; }
.contact__ic { flex: none; width: 14px; height: 14px; margin: 4px 7px 0 0; fill: #fff; }
.contact a:hover { text-decoration: underline; }
.footer__col { flex: 0 0 100%; max-width: 100%; margin-bottom: 25px; padding: 0 15px; }
.footer__col:empty { display: none; }
.footer__links { margin-bottom: 30px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a:hover { text-decoration: underline; }
.footer__col:has(.footer__links) { margin-bottom: 0; }
.store-link { display: inline-block; border-radius: 10px; box-shadow: 0 0 0 1px #a6a6a6; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.store-link svg { display: block; width: 145px; height: 43.5px; }
.footer__store { margin-bottom: 20px; }
@media (min-width: 768px) {
  .footer__main { flex: 0 0 50%; max-width: 50%; }
  .footer__col { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .footer__col:empty { display: block; }
}
@media (min-width: 992px) {
  .footer__main, .footer__col { margin-bottom: 0; }
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); font-size: 13px; }
.footer__legal a { color: rgba(255, 255, 255, .85); }
.footer__legal a:hover { color: #fff; text-decoration: underline; }

/* Social circles (site b7289) */
.social { padding: 30px 0; }
.social__list { display: flex; flex-wrap: wrap; justify-content: center; }
.social__list li { margin: 0 6px 6px 0; }
.social__link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; transition: background-color .2s, filter .2s, transform .25s var(--ease-out); }
.social__ic { height: 18px; width: 18px; fill: currentColor; }
.social__link--linkedin { background: #0e76a8; }
.social__link--linkedin:hover { background: #0c6590; }
.social__link--facebook { background: #3b5998; }
.social__link--facebook:hover { background: #344e86; }
.social__link--instagram { background: radial-gradient(circle at 32% 120%, #ffe17d 0, #ffcd69 10%, #fa9137 28%, #eb4141 42%, transparent 82%), linear-gradient(135deg, #234bd7 12%, #c33cbe 58%); }
.social__link--instagram:hover { filter: brightness(.93); }

@media (max-width: 767.98px) {
  .footer { padding: 44px 0 24px; }
  .footer__about { margin-bottom: 22px; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.55; }
  .footer__contacts {
    display: grid; gap: 12px; margin-bottom: 22px; padding: 16px; border-radius: 14px;
    background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-size: 14.5px;
  }
  .footer__contacts .contact { margin: 0; align-items: flex-start; }
  .footer__contacts .contact__ic { width: 16px; height: 16px; margin: 3px 12px 0 0; fill: rgba(255, 255, 255, .7); }
  .footer__contacts strong { font-weight: 600; }
  .footer__store { margin-bottom: 8px; }
  .footer__links {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin: 4px 0 6px; padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .footer__links li { margin: 0; }
  .footer__links a { display: block; padding: 7px 0; color: rgba(255, 255, 255, .88); font-size: 15px; }
  .footer__legal { justify-content: center; gap: 8px 18px; margin-top: 18px; text-align: center; font-size: 13px; }
  .footer__legal span { flex-basis: 100%; order: 9; color: rgba(255, 255, 255, .5); }
  .social { padding: 6px 0 34px; background: var(--footer); }
  .social__list li { margin: 0 8px; }
  .social__link { width: 44px; height: 44px; }
}

/* Site motion: a light sweep across buttons, presses, small lifts under a mouse */
.btn:active, .store-link:active, .social__link:active { transform: scale(.97); transition-duration: .1s; }
@keyframes rydi-drop { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 991.98px) { .header__nav.is-open { animation: rydi-drop .28s var(--ease-out); } }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(8, 38, 69, .55); }
  .btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }
  .store-link:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #a6a6a6, 0 14px 26px -12px rgba(0, 0, 0, .5); }
  .nav__link:hover::after { transform: scaleX(1); }
  .nav__link:hover { color: var(--navy); }
  .social__link:hover { transform: translateY(-3px); }
}

/* =====================================================================================================
   Part 2: the blog
   ===================================================================================================== */

.site-main { display: block; }
.site-main:focus { outline: none; }

/* ---------- Bands: the soft title area at the top of every page ---------- */
.band { position: relative; padding: 64px 0 56px; background: linear-gradient(0deg, #fff 0%, var(--soft) 100%); overflow-x: clip; }
.band__title { margin-bottom: 14px; font-size: 45px; line-height: 1.3; text-wrap: balance; }
.band__lead { max-width: 640px; margin-bottom: 0; color: var(--text); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.band__count { margin: 14px 0 0; color: var(--text); font-size: 14px; }
@media (max-width: 575.98px) {
  .band { padding: 44px 0 40px; }
  .band__title { font-size: 34px; }
  .band__lead { font-size: 16px; }
}

/* Home: the band is solid soft, and the featured post below rises into it */
.band--home { padding: 88px 0 calc(22vw + 40px); background: var(--soft); }
.hero { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero__text { max-width: 600px; }
.hero__title { margin-bottom: 16px; font-size: 45px; line-height: 1.25; text-wrap: balance; }
.hero__lead { margin-bottom: 0; color: var(--text); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.hero__members { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; font-size: 14px; }
.hero__members a:not(.btn) { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(8, 38, 69, .3); }
.hero__members a:not(.btn):hover { text-decoration-color: currentColor; }
.hero__cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--card-shadow); }
@media (min-width: 992px) {
  .band--has-cover .hero { grid-template-columns: 1fr 1fr; gap: 56px; }
}
@media (max-width: 575.98px) {
  .band--home { padding: 48px 0 calc(46vw + 8px); }
  .hero__title { font-size: 34px; }
  .hero__lead { font-size: 16px; }
}

/* The scene behind the home title. Layers are sized by the band's width (cqw) and anchored to its bottom: the fjord
   with its mountains (drifting very slowly), a band of mist, the harbour town, the coast road with the Rydi van, and a
   warm light on top. Without JavaScript, on phones and with reduced motion it is a still picture; from 768px up
   main.js moves it like a camera on scroll (see there). */
.band--home { container-type: inline-size; }
.scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  /* the fjord water continued down behind the road, where the fjord picture fades out */
  background: linear-gradient(0deg, #cfd3ef 0, #cfd3ef 7cqw, rgba(207, 211, 239, 0) 11cqw); }
.scene::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 24%; background: linear-gradient(180deg, var(--soft), rgba(237, 240, 250, 0)); }
.scene__layer { position: absolute; left: 0; width: 100%; height: auto; max-width: none; transform-origin: 50% 100%; will-change: transform; }
.scene__fjord { bottom: 7cqw; scale: 1.04; -webkit-mask: linear-gradient(180deg, #000 80%, transparent); mask: linear-gradient(180deg, #000 80%, transparent); }
.scene__mist { bottom: 9cqw; height: 15cqw; opacity: .6;
  background: radial-gradient(36% 46% at 28% 60%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
              radial-gradient(30% 40% at 70% 52%, rgba(246, 244, 255, .75), rgba(246, 244, 255, 0) 70%); }
.scene__town { bottom: 4.5cqw; scale: 1.02; -webkit-mask: linear-gradient(90deg, transparent 14%, #000 30%); mask: linear-gradient(90deg, transparent 14%, #000 30%); }
/* the near layer: the coast road with the Rydi van on its near lane (the van sits on the lane in the road picture,
   1916 px wide: centre x 976, wheels 82 px above its bottom) */
.scene__near { bottom: 0; height: 16.13cqw; scale: 1.025; }
.scene__road { position: absolute; inset: auto 0 0; width: 100%; height: auto; max-width: none;
  -webkit-mask: linear-gradient(180deg, #000 82%, transparent); mask: linear-gradient(180deg, #000 82%, transparent); }
.scene__van { position: absolute; left: 41.7cqw; bottom: 4.1cqw; width: 18.5cqw; height: auto; max-width: none; filter: drop-shadow(0 .45cqw .5cqw rgba(8, 20, 40, .3)); }
.scene__glow { inset: 0; width: auto; opacity: .15; mix-blend-mode: soft-light;
  background: radial-gradient(60% 70% at 88% 18%, rgba(255, 196, 140, .95), rgba(255, 196, 140, 0) 70%); }
.band--has-cover .scene { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .scene__fjord { animation: scene-in 1.8s var(--ease-out) both, fjord-drift 46s 1.8s ease-in-out infinite alternate; }
  .scene__mist { animation: mist-in 2.4s .4s var(--ease-out) both, mist-drift 34s 2.8s ease-in-out infinite alternate; }
  .scene__town { animation: scene-in 1.8s .15s var(--ease-out) both; }
  .scene__near { animation: scene-in 1.8s .3s var(--ease-out) both; }
}
@keyframes scene-in { from { opacity: 0; translate: 0 3cqw; } to { opacity: 1; translate: 0 0; } }
@keyframes mist-in { from { opacity: 0; } to { opacity: .6; } }
@keyframes fjord-drift { from { translate: 0 0; } to { translate: -1.6% 0; } }
@keyframes mist-drift { from { translate: 0 0; } to { translate: 7% 0; } }

/* The hero route (partials/hero-route.hbs): drawn like a route in the Rydi app over the scene */
.hroute { position: absolute; z-index: 1; top: 30px; right: max(0px, calc((100vw - 1140px) / 2 - 20px)); width: min(46vw, 600px); height: auto; pointer-events: none; overflow: visible; display: none; }
@media (min-width: 992px) { .band--home:not(.band--has-cover) .hroute { display: block; } }
.hroute__casing { fill: none; stroke: #fff; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.hroute__line { fill: none; stroke: url(#hroute-grad); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.hroute__flow { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 13; opacity: .75; }
.hroute__depot rect { fill: var(--navy); stroke: #fff; stroke-width: 3; }
.hroute__depot path { fill: #fff; }
.hroute__stop circle { fill: #fff; stroke: var(--navy); stroke-width: 3; }
.hroute__stop text { fill: var(--navy); font: 700 12px/1 var(--font-body); text-anchor: middle; }
.hroute__stop--done circle { fill: var(--navy); stroke: #fff; }
.hroute__stop--done path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hroute__dot { fill: #2463b8; stroke: #fff; stroke-width: 3.5; }
.hroute__pulse { fill: #2463b8; opacity: 0; }
.hroute__pin { fill: var(--navy); stroke: #fff; stroke-width: 2.5; }
.hroute__eta rect { fill: #fff; filter: drop-shadow(0 4px 10px rgba(8, 38, 69, .18)); }
.hroute__eta circle { fill: #2fb36d; }
.hroute__eta text { fill: var(--navy); font: 700 12.5px/1 var(--font-body); text-anchor: middle; }
.hroute__van, .hroute__flow { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hroute__van, .hroute__flow { display: inline; }
  .hroute__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hroute-draw 2.2s .3s var(--ease-in-out) forwards; }
  .hroute__flow { animation: hroute-flow 1.6s linear infinite; }
  .hroute__pulse { transform-box: fill-box; transform-origin: 50% 50%; animation: hroute-pulse 1.8s var(--ease-out) infinite; }
  .hroute [data-at] { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; animation: hroute-pop .5s var(--ease-out) forwards; }
  .hroute__end { transform-origin: 50% 100%; }
  .hroute [data-at="0"] { animation-delay: .25s; }
  .hroute [data-at="1"] { animation-delay: .8s; }
  .hroute [data-at="2"] { animation-delay: 1.3s; }
  .hroute [data-at="3"] { animation-delay: 1.8s; }
  .hroute [data-at="4"] { animation-delay: 2.3s; }
  .hroute__van, .hroute__flow { opacity: 0; animation-name: hroute-fade; animation-duration: .6s; animation-delay: 2.5s; animation-fill-mode: forwards; }
  .hroute__flow { animation: hroute-fade .6s 2.5s forwards, hroute-flow 1.6s 2.5s linear infinite; }
}
@keyframes hroute-draw { to { stroke-dashoffset: 0; } }
@keyframes hroute-flow { to { stroke-dashoffset: -14; } }
@keyframes hroute-pulse { from { opacity: .45; scale: 1; } to { opacity: 0; scale: 2.6; } }
@keyframes hroute-pop { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes hroute-fade { to { opacity: 1; } }

/* The route: a planned run from the depot through three stops to the pin, drawn once when the page opens */
.route { position: absolute; top: 34px; right: max(0px, calc((100vw - 1140px) / 2 - 20px)); width: min(46vw, 600px); height: auto; pointer-events: none; }
.route__road { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; }
.route__line { fill: none; stroke: var(--navy); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: .1 10; opacity: .7; }
.route__draw { fill: none; stroke: #fff; stroke-width: 18; stroke-linecap: round; }
.route__stop { fill: #fff; stroke: var(--navy); stroke-width: 3; }
.route__stop--done { fill: var(--navy); }
.route__depot { fill: var(--navy); }
.route__pin { fill: var(--navy); }
.band--has-cover .route, .band--home .route { display: none; }
@media (min-width: 992px) { .band--home:not(.band--has-cover) .route { display: block; } }
@media (prefers-reduced-motion: no-preference) {
  .route .route__draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: route-draw 2.2s .25s var(--ease-in-out) forwards; }
  .route .route__stop, .route .route__pin, .route .route__depot { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; animation: route-stop .5s var(--ease-out) forwards; }
  .route .route__pin { transform-origin: 50% 100%; }
  .route .route__depot { animation-delay: .2s; }
  .route [data-at="1"] { animation-delay: .75s; }
  .route [data-at="2"] { animation-delay: 1.25s; }
  .route [data-at="3"] { animation-delay: 1.75s; }
  .route .route__pin { animation-delay: 2.3s; }
}
@keyframes route-draw { to { stroke-dashoffset: 0; } }
@keyframes route-stop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* ---------- Post cards ---------- */
.feed { padding: 0 0 80px; }
.feed--home { margin-top: -56px; position: relative; z-index: 2; }
@media (max-width: 575.98px) { .feed--home { margin-top: 0; padding-top: 8px; } }
.feed--plain { padding-top: 48px; }
.posts { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 576px) { .posts { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
@media (min-width: 992px) { .posts { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; } }
.featured + .posts { margin-top: 48px; }

.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius) var(--radius) 0 0; background: var(--soft-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease-out); }
.card__media--route { display: grid; place-items: center; background: var(--soft); }
.card__media--route svg { width: 62%; height: auto; }
.card__media--route .route__road { stroke-width: 12; }
.card__media--route .route__line { opacity: .5; }
.card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px 24px 22px; }
.card__tag { position: relative; z-index: 1; align-self: flex-start; margin-bottom: 8px; color: var(--link); font-size: 13px; font-weight: 700; line-height: 1.4; }
.card__tag:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__title { margin-bottom: 10px; font-size: 20px; line-height: 1.35; text-wrap: balance; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: var(--radius); }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--link); outline-offset: 3px; }
.card__excerpt { display: -webkit-box; margin-bottom: 18px; overflow: hidden; color: var(--text); font-size: 15px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: auto; color: #7a7f90; font-size: 13px; font-variant-numeric: tabular-nums; }
.card__meta > * + *::before { content: ""; display: inline-block; width: 1px; height: 11px; margin-right: 12px; background: #c9cfe2; vertical-align: -1px; }
.card__access { color: var(--navy); font-weight: 600; }

/* the featured post: the newest, large, half on the band */
.featured { display: grid; }
.featured .card__media { aspect-ratio: 16 / 9; }
.featured .card__body { padding: 28px 24px 26px; }
.featured .card__title { font-size: 26px; line-height: 1.3; }
.featured .card__excerpt { font-size: 16px; -webkit-line-clamp: 4; }
@media (min-width: 768px) {
  .featured { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .featured .card__media { aspect-ratio: auto; min-height: 400px; border-radius: var(--radius) 0 0 var(--radius); }
  .featured .card__media img { position: absolute; inset: 0; }
  .featured .card__body { justify-content: center; padding: 44px 44px 40px; }
  .featured .card__title { font-size: 32px; }
}
@media (min-width: 1200px) { .featured .card__title { font-size: 34px; } }

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
  .card:hover .card__media img { scale: 1.04; }
}

/* empty feed */
.empty { padding: 40px 32px; border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow); text-align: center; }
.empty p { margin: 0; color: var(--text); font-size: 16px; }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 56px; }
.pager__info { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.pager .btn { padding: 9px 26px; }

/* ---------- Post and page: the head ----------
   The landing's article head (src/index.css .article__head / .article__narrow / .article__title, the privacy and terms
   pages): a solid soft band, left-aligned in the text column. The tag is the landing's navy .pill. With a feature image
   the band runs on and the image rises out of it, as the featured post does on the blog home. */
.article__head { padding: 60px 0 40px; background: var(--soft); }
.article__narrow { max-width: 750px; }
.article__title { margin-bottom: 10px; font-size: 45px; line-height: 1.3; text-wrap: balance; }
.pill {
  display: inline-block; padding: 4px 10px; border: 1px solid transparent; border-radius: 50px; background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .02em;
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
.pill:hover, .pill:focus-visible { background: #0b3a6b; }
.post-head { padding: 60px 0 44px; }
.post-head--image { padding-bottom: 150px; }
.post-head__tag { margin-bottom: 16px; }
.post-head__lead, .post-head__excerpt { max-width: 680px; margin: 6px 0 0; color: var(--text); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.byline__avatars { display: flex; }
.byline__avatars > * + * { margin-left: -10px; }
.byline .avatar { width: 36px; height: 36px; box-shadow: 0 0 0 2px var(--soft); }
.byline__text, .byline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.byline__text > * + *::before, .byline__meta > * + *::before { content: ""; display: inline-block; width: 1px; height: 12px; margin-right: 12px; background: #b9c1d9; vertical-align: -1px; }
.byline__names { color: var(--navy); font-weight: 600; }
.byline__names a:hover { text-decoration: underline; text-underline-offset: 3px; }
.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px #fff; color: #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar__ic { width: 58%; height: 58%; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 575.98px) {
  .article__title { font-size: 34px; }
  .post-head { padding: 44px 0 36px; }
  .post-head--image { padding-bottom: 104px; }
  .post-head__lead, .post-head__excerpt { font-size: 17px; }
  .byline__text { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.45; }
  .byline__text > .byline__meta::before { display: none; }
}

/* the feature image: wider than the text (up to 1040px), with the landing's 22px corners, and its caption */
.post-image { position: relative; z-index: 1; width: min(1040px, calc(100% - 30px)); margin: -110px auto 0; }
.post-image img { width: 100%; border-radius: var(--radius-lg); background: var(--soft-2); box-shadow: 0 22px 40px -22px rgba(8, 38, 69, .45); }
.post-image figcaption { max-width: 640px; margin: 14px auto 0; color: var(--text); font-size: 14px; line-height: 1.5; text-align: center; text-wrap: pretty; }
.post-image figcaption a { color: var(--link); text-decoration: underline; }
@media (max-width: 575.98px) { .post-image { margin-top: -72px; } .post-image img { border-radius: var(--radius); } }

/* ---------- The content (Koenig) ----------
   The landing's long-text style (.prose: #3f4456 text, navy 600 headings, disc lists, underlined #135ba6 links, the
   navy-ruled quote on soft, tables ruled in #dfe4f7), set larger for reading: 18px / 1.75, 17px on phones, in a 720px
   column under the head. One grid with named lines: kg-width-wide reaches "wide", kg-width-full the edges. */
.gh-content {
  --main: min(720px, calc(100% - 30px));
  display: grid;
  grid-template-columns:
    [full-start] minmax(15px, 1fr)
    [wide-start] minmax(0, 160px)
    [main-start] var(--main) [main-end]
    minmax(0, 160px) [wide-end]
    minmax(15px, 1fr) [full-end];
  padding-bottom: 70px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.gh-content > * { grid-column: main-start / main-end; min-width: 0; }
.gh-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full { grid-column: full-start / full-end; }
.gh-content > .kg-width-full img { width: 100%; }

.gh-content > * + * { margin-top: 0; }
.gh-content p, .gh-content ul, .gh-content ol, .gh-content dl, .gh-content pre, .gh-content table, .gh-content blockquote { margin: 0 0 1.15em; }
.gh-content h2 { margin: 2.2em 0 .6em; font-size: 28px; line-height: 1.35; text-wrap: balance; }
.gh-content h3 { margin: 1.7em 0 .45em; font-size: 21px; line-height: 1.4; text-wrap: balance; }
.gh-content h4 { margin: 1.5em 0 .4em; font-size: 18px; }
.gh-content h5, .gh-content h6 { margin: 1.4em 0 .4em; font-size: 16px; }
.gh-content :is(h2, h3, h4) + :is(h2, h3, h4) { margin-top: .4em; }
.gh-content > :first-child { margin-top: 0; }
.gh-content :is(h2, h3) { scroll-margin-top: calc(var(--header-h, 127px) + 24px); }
.gh-content a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.gh-content a:hover { text-decoration-thickness: 2px; }
.gh-content strong { color: var(--navy); }
.gh-content ul, .gh-content ol { padding-left: 24px; }
.gh-content ul { list-style: disc; }
.gh-content li { margin-bottom: .4em; }
.gh-content li > :is(ul, ol) { margin: .4em 0 0; }
.gh-content li > p { margin-bottom: .4em; }
.gh-content hr { width: 100%; height: 1px; margin: 2.4em 0; border: 0; background: var(--soft-2); }
.gh-content blockquote:not([class]) { padding: 14px 20px; border-left: 4px solid var(--navy); background: var(--soft); color: var(--navy); font-style: normal; }
.gh-content blockquote:not([class]) p:last-child { margin-bottom: 0; }
.gh-content blockquote.kg-blockquote-alt { margin: .8em 0 1.4em; padding: 0 20px; color: var(--navy); font-size: 25px; font-style: normal; font-weight: 600; line-height: 1.45; text-align: center; text-wrap: balance; }
.gh-content code { padding: .12em .4em; border-radius: 6px; background: var(--soft); color: var(--navy); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
.gh-content pre { overflow-x: auto; padding: 20px 22px; border-radius: 12px; background: var(--navy); color: #e8edf9; font-size: 15px; line-height: 1.65; tab-size: 2; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.gh-content pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.gh-content table:not(.gist table) { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.gh-content th, .gh-content td { padding: 10px 12px; border: 1px solid var(--soft-2); text-align: left; vertical-align: top; }
.gh-content th { background: var(--soft); color: var(--navy); font-weight: 600; }
.gh-content mark { padding: 0 .15em; background: #fff1c2; color: inherit; }
.gh-content sup, .gh-content sub { line-height: 0; }
@media (max-width: 767.98px) {
  .gh-content { font-size: 17px; line-height: 1.72; }
  .gh-content h2 { font-size: 24px; }
  .gh-content h3 { font-size: 19px; }
  .gh-content blockquote.kg-blockquote-alt { padding: 0 6px; font-size: 22px; }
  .gh-content pre { margin-left: -15px; margin-right: -15px; border-radius: 0; font-size: 14px; }
}

/* cards: shared rhythm */
.gh-content .kg-card { margin: .4em 0 2.2em; }
.gh-content .kg-card + .kg-card { margin-top: 0; }
.gh-content figcaption { max-width: 640px; margin: 12px auto 0; color: var(--text); font-size: 14px; line-height: 1.5; text-align: center; text-wrap: pretty; }
.gh-content figcaption a { color: var(--link); }
.kg-width-full figcaption { padding: 0 15px; }

/* image */
.kg-image-card img { margin: 0 auto; border-radius: 16px; }
.kg-width-wide.kg-image-card img { border-radius: 20px; }
.kg-width-full.kg-image-card img { border-radius: 0; }
.kg-image-card a { display: block; }

/* gallery (layout and ratios come from Ghost's card assets) */
.kg-gallery-card img { border-radius: 8px; }

/* embeds, video, audio, file */
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { max-width: 100%; }
.kg-video-card, .kg-audio-card, .kg-file-card { border-radius: 14px; }
.kg-video-card video { border-radius: 14px; }
.gh-content .kg-audio-card, .gh-content .kg-file-card a.kg-file-card-container { box-shadow: 0 0 0 1px var(--soft-2); background: #fff; }
.gh-content .kg-file-card a.kg-file-card-container { border-radius: 14px; color: var(--navy); text-decoration: none; }
.kg-file-card-title, .kg-audio-title { color: var(--navy); font-weight: 600; }

/* callout */
.gh-content .kg-callout-card { padding: 20px 24px; border-radius: 14px; font-size: 17px; line-height: 1.6; }
.gh-content .kg-callout-card-grey { background: var(--soft); }
.gh-content .kg-callout-card-blue { background: #e3ecfb; }
.gh-content .kg-callout-card-accent { background: var(--navy); }
.gh-content .kg-callout-card a { color: inherit; }
.kg-callout-text { color: var(--ink); }
.kg-callout-card-accent .kg-callout-text, .kg-callout-card-accent .kg-callout-emoji { color: #fff; }

/* toggle */
.gh-content .kg-toggle-card { padding: 18px 22px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--soft-2); }
.gh-content .kg-toggle-heading-text { color: var(--navy); font-size: 18px; font-weight: 600; }
.gh-content .kg-toggle-content { color: var(--ink); font-size: 17px; }
.gh-content .kg-toggle-card-icon svg { color: var(--navy); }

/* bookmark */
.gh-content .kg-bookmark-card a.kg-bookmark-container { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--card-shadow); color: var(--navy); text-decoration: none; transition: box-shadow .3s var(--ease-out); }
.gh-content .kg-bookmark-card a.kg-bookmark-container:hover { box-shadow: var(--card-shadow-hover); }
.kg-bookmark-title { color: var(--navy); font-weight: 600; }
.kg-bookmark-description { color: var(--text); }
.kg-bookmark-metadata { color: var(--text); }

/* button (Koenig): the site's rounded button */
.gh-content .kg-button-card a.kg-btn, .gh-content .kg-header-card a.kg-header-card-button, .gh-content .kg-product-card a.kg-product-card-button {
  height: auto; padding: 11px 32px; border-radius: 50px; font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), filter .2s ease;
}
.gh-content .kg-button-card a.kg-btn-accent { background: var(--ghost-accent-color); color: #fff; }
.gh-content .kg-button-card a.kg-btn:hover, .gh-content .kg-header-card a.kg-header-card-button:hover { filter: brightness(1.12); }

/* header card */
.gh-content .kg-header-card { border-radius: var(--radius); }
.gh-content .kg-header-card.kg-width-full { border-radius: 0; }
.gh-content .kg-header-card h2.kg-header-card-header, .gh-content .kg-header-card h2.kg-header-card-heading { font-family: var(--font-heading); font-weight: 700; }

/* product card */
.gh-content .kg-product-card-container { border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow); }
.gh-content .kg-product-card-title { color: var(--navy); font-family: var(--font-heading); }
.gh-content .kg-product-card-description { color: var(--ink); }

/* signup card */
.gh-content .kg-signup-card { border-radius: var(--radius); }

/* ---------- Post: reading progress, share, contents, author, comments ---------- */
.post-body { position: relative; padding-top: 56px; }
.article:not(:has(.post-image)) .post-body { padding-top: 40px; }
.post-content { padding-bottom: 48px; }

/* reading progress: a navy line along the bottom of the sticky header (assets/js/post.js) */
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--navy); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* share: the landing's social circles (.social__link) with X and "Copy link" added; a row after the text, and from
   1200px a sticky rail left of it */
.share { width: min(720px, calc(100% - 30px)); margin: 0 auto 40px; padding-top: 22px; border-top: 1px solid var(--soft-2); }
.share__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.share__label { margin: 0; color: var(--navy); font-size: 15px; font-weight: 600; }
.share__list { justify-content: flex-start; gap: 10px; }
.share__list li { position: relative; margin: 0; }
.social__link--x { background: #000; }
.social__link--x:hover { background: #2a2a2a; }
.social__link--copy { padding: 0; border: 0; background: var(--navy); cursor: pointer; }
.social__link--copy:hover { background: #0b3a6b; }
.share__ic--link, .share__ic--done { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.share__ic--done, .share__copy.is-copied .share__ic--link { display: none; }
.share__copy.is-copied .share__ic--done { display: block; }
.share__copy.is-copied { background: #1b7f4b; }
.share__note {
  position: absolute; left: calc(100% + 10px); top: 50%; padding: 4px 10px; border-radius: 50px; background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; opacity: 0; transform: translate(-4px, -50%); pointer-events: none;
  transition: opacity .2s ease, transform .25s var(--ease-out);
}
.share__copy.is-copied + .share__note { opacity: 1; transform: translate(0, -50%); }
.no-js .share__copy-item { display: none; }
@media (min-width: 1200px) {
  .share { position: absolute; top: 56px; bottom: 0; left: calc(50% - 360px - 100px); width: 44px; margin: 0; padding: 0; border: 0; }
  .article:not(:has(.post-image)) .share { top: 40px; }
  .share__inner { position: sticky; top: calc(var(--header-h, 127px) + 40px); flex-direction: column; gap: 10px; transition: opacity .3s ease, visibility .3s; }
  .share__label { color: var(--text); font-size: 12px; }
  .share__list { flex-direction: column; }
}

/* "On this page": from 1200px, a sticky list right of the text on posts with three or more sections; the title and
   the current-section line follow the landing's menu (uppercase 11px, the navy underline bar) */
.toc { display: none; }
@media (min-width: 1200px) {
  .toc { position: absolute; top: 56px; bottom: 0; left: calc(50% + 360px + 50px); display: block; width: min(240px, calc(50% - 360px - 66px)); }
  .article:not(:has(.post-image)) .toc { top: 40px; }
  .toc__inner { position: sticky; top: calc(var(--header-h, 127px) + 40px); max-height: calc(100vh - var(--header-h, 127px) - 80px); overflow-y: auto; overscroll-behavior: contain; transition: opacity .3s ease, visibility .3s; }
  .toc__title { margin: 0 0 12px; color: var(--navy); font-size: 11px; font-weight: 700; text-transform: uppercase; }
  .toc__list { border-left: 1px solid var(--soft-2); }
  .toc__link { position: relative; display: block; padding: 6px 0 6px 16px; color: var(--text); font-size: 14px; line-height: 1.45; text-wrap: pretty; transition: color .2s ease; }
  .toc__link::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--navy); transform: scaleY(0); transition: transform .35s var(--ease-out); }
  .toc__link:hover { color: var(--navy); }
  .toc__link.is-current { color: var(--navy); font-weight: 600; }
  .toc__link.is-current::before { transform: scaleY(1); }
  .toc__link--h3 { padding-left: 30px; font-size: 13.5px; }
  /* both side columns step aside while a wide or full-width image passes them */
  .post-body.is-covered .share__inner, .post-body.is-covered .toc__inner { opacity: 0; visibility: hidden; }
}

/* author card */
.author-card { display: flex; align-items: flex-start; gap: 20px; width: min(720px, calc(100% - 30px)); margin: 0 auto 24px; padding: 26px 28px; border-radius: 12px; background: var(--soft); }
.author-card + .author-card { margin-top: -8px; }
.author-card:last-of-type { margin-bottom: 64px; }
.avatar--lg { width: 72px; height: 72px; }
.author-card__body { min-width: 0; }
.author-card__name { margin: 4px 0 6px; color: var(--navy); font-size: 20px; font-weight: 600; line-height: 1.35; }
.author-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.author-card__bio { margin: 0 0 10px; color: var(--ink); font-size: 16px; line-height: 1.6; }
.author-card__more { color: var(--link); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 459.98px) { .author-card { flex-direction: column; gap: 14px; padding: 22px; } .avatar--lg { width: 60px; height: 60px; } }

/* comments: Ghost renders them in their own frame; the heading is the theme's */
.post-comments { width: min(720px, calc(100% - 30px)); margin: 8px auto 72px; }
.post-comments__title { margin-bottom: 8px; font-size: 28px; line-height: 1.35; }

/* ---------- Motion: the landing's scroll reveal (src/index.css "Motion", src/lib/reveal.js) ----------
   up: rise 28px and sharpen; media: open from the bottom while settling from 4% larger; item: cards one after another.
   assets/js/post.js tags the elements, so without JavaScript everything simply shows. */
[data-reveal]:not([data-done]) {
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out), clip-path 1.1s var(--ease-in-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal="up"]:not([data-shown]) { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(5px); }
[data-reveal="item"]:not([data-shown]) { opacity: 0; transform: translate3d(0, 36px, 0); }
[data-reveal="media"]:not([data-shown]) { opacity: 0; transform: translate3d(0, 40px, 0) scale(1.04); clip-path: inset(30% 0 0 0); }
[data-reveal="media"][data-shown] { clip-path: inset(0 0 0 0); }
/* a media block waits 4% larger before it reveals: clip it so a full-width image never makes the page scroll
   sideways (the landing clips its sections the same way); clip, not hidden, keeps the sticky rails working */
.article, .related { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal]:not([data-done]) { transition: opacity .4s ease; transition-delay: 0s; }
  [data-reveal]:not([data-shown]) { transform: none !important; filter: none !important; clip-path: none !important; }
}

/* ---------- Landing helpers used by the post page (src/index.css) ---------- */
.d-block { display: block; }
.text-16 { font-size: 16px; line-height: 1.5; }
.text-16 p { margin-bottom: 14px; }
.btn-row { display: flex; justify-content: flex-start; padding: 10px 0; }

/* slanted separators between bands (blocks 26-4 / 26-5, partials/sep.hbs) */
.sep { height: 66px; overflow: hidden; }
.sep svg { display: block; width: 100%; height: 70px; margin: -2px 0; }
.sep .f1 { fill: var(--f1); }
.sep .f2 { fill: var(--f2); }
@media (min-width: 768px) {
  .sep { height: 146px; }
  .sep svg { height: 150px; }
}
.sep + .newsletter { padding-top: 24px; }

/* ---------- Call to action (the landing's b7275 from 768px, b8057 below; partials/cta.hbs) ---------- */
.cta { display: none; padding: 70px 0; background: var(--soft); }
.cta__row { display: flex; align-items: center; justify-content: center; margin: 0 -15px; }
.cta__text, .cta__action { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.cta__action { display: flex; justify-content: flex-end; align-items: center; }
.cta__title { margin-bottom: 10px; font-size: 35px; line-height: 1.4; }
.cta__title > .d-block:last-child { margin-bottom: 14px; }
.cta-mobile { position: relative; padding: 70px 0; background: url("../img/cta-bg.jpg") 50% / cover no-repeat; }
.cta-mobile::before { content: ""; position: absolute; inset: 0; background: hsla(228, 60%, 95%, .5); }
.cta-mobile .container { position: relative; }
.cta-mobile__title { margin-bottom: 20px; font-size: 35px; }
.cta-mobile__text { margin-bottom: 20px; padding-bottom: 1px; }
.cta-mobile__btn { margin: 0 10px; }
@media (min-resolution: 2dppx) { .cta-mobile { background-image: url("../img/cta-bg@2x.jpg"); } }
@media (min-width: 768px) {
  .cta { display: block; }
  .cta-mobile { display: none; }
}

/* ---------- Related posts ---------- */
.related { padding: 72px 0 80px; }
.section-title { margin-bottom: 28px; font-size: 28px; line-height: 1.3; }
.related .card__title { font-size: 19px; }
.related .posts > :nth-child(n+4) { display: none; }

/* ---------- Newsletter ---------- */
.newsletter { padding: 64px 0; background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 100%); color: rgba(255, 255, 255, .86); }
.newsletter__inner { display: grid; gap: 24px; align-items: center; }
.newsletter__title { margin-bottom: 8px; color: #fff; font-size: 30px; line-height: 1.3; }
.newsletter__text p { margin: 0; font-size: 16px; line-height: 1.55; }
.newsletter__field { display: flex; gap: 10px; padding: 6px; border-radius: 50px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.newsletter__input {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 20px; border: 0; border-radius: 50px; background: #fff;
  color: var(--navy); font: 400 16px/1 var(--font-body); caret-color: var(--navy);
}
.newsletter__input::placeholder { color: #7a7f90; }
.newsletter__input:focus-visible { outline: 3px solid #9ec5ff; outline-offset: 1px; }
.newsletter__btn { flex: none; padding: 0 28px; }
.newsletter__btn .is-busy { display: none; }
.newsletter__form.loading .newsletter__btn { pointer-events: none; opacity: .8; }
.newsletter__form.loading .is-idle { display: none; }
.newsletter__form.loading .is-busy { display: inline; }
.newsletter__msg { display: none; margin: 12px 4px 0; font-size: 14px; line-height: 1.5; }
.newsletter__form.success .newsletter__msg--ok, .newsletter__form.error .newsletter__msg--err { display: block; }
.newsletter__msg--ok { color: #fff; font-weight: 600; }
.newsletter__msg--err { color: #ffd4d4; }
.newsletter__form.success .newsletter__field { display: none; }
.newsletter__signin { margin: 12px 4px 0; font-size: 14px; }
.newsletter__signin a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.newsletter__form.success + .newsletter__signin { display: none; }
@media (min-width: 992px) {
  .newsletter__inner { grid-template-columns: 1fr minmax(0, 470px); gap: 60px; }
}
@media (max-width: 459.98px) {
  .newsletter { padding: 52px 0; }
  .newsletter__title { font-size: 26px; }
  .newsletter__field { flex-direction: column; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .newsletter__input { border-radius: 50px; }
  .newsletter__btn { height: 46px; }
}

/* ---------- Archives: tag and author ---------- */
.archive-head__inner { display: flex; flex-direction: column; gap: 22px; }
.archive-head__image { width: 100%; max-width: 760px; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.author-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.author-head .avatar { width: 96px; height: 96px; font-size: 36px; box-shadow: 0 0 0 4px #fff, var(--card-shadow); }
.author-head__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; }
.author-head__links a { color: var(--link); font-weight: 600; }
.author-head__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Error ---------- */
.error-head { padding: 88px 0 72px; }
.error-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.error-head__actions .btn { padding: 10px 30px; }

/* ---------- Reduced motion: things only fade ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn::after { display: none; }
  .card, .card__media img, .btn, .social__link, .store-link { transition: none; }
  .header__nav.is-open { animation: none; }
}


/* ---------- Cookie consent (site: index.css "Cookie consent", CookieConsent.jsx) ---------- */
.footer__legal .footer__cookies { padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .85); font: inherit; cursor: pointer; }
.footer__legal .footer__cookies:hover { color: #fff; text-decoration: underline; }
.no-js .footer__cookies { display: none; }
.consent {
  position: fixed; right: 20px; bottom: 20px; left: 20px; z-index: 1500; max-width: 520px; margin-left: auto;
  padding: 20px; border-radius: 10px; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .25); color: var(--navy);
}
.consent[hidden] { display: none; }
.consent__text { margin-bottom: 15px; font-size: 14px; line-height: 1.5; }
.consent__text a { text-decoration: underline; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@keyframes rydi-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes rydi-fade { from { opacity: 0; } }
.consent:not([hidden]) { animation: rydi-rise .45s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .consent:not([hidden]) { animation: rydi-fade .2s ease; } }
