/* ---------------------------------------------------------------------------
   Hippos — colours and type taken from the printed 2026 media card:
   deep navy masthead on white, pale periwinkle panels, a serif for headlines
   and a very light, widely tracked sans for the HIPPOS wordmark.
   --------------------------------------------------------------------------- */

:root {
  --navy: #1b2a6b;
  --navy-deep: #16204f;
  --tint: #e7ebf8;
  --tint-soft: #f4f6fc;
  --ink: #1a1a2e;
  --muted: #5b6486;
  --line: #d6ddf2;
  --gold: #a8842c;
  --white: #fff;

  /* --gh-font-* are injected by Ghost when an editor picks fonts in Design
     settings; the self-hosted faces are the fallback, not the other way round. */
  --serif: var(--gh-font-heading, "Source Serif 4", Georgia, "Times New Roman", serif);
  --sans: var(--gh-font-body, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);

  --wrap: 1120px;
  --wrap-narrow: 720px;
  --radius: 12px;
}

/* Self-hosted rather than loaded from Google's CDN — member-facing pages on a
   Finnish federation site should not hand visitor IPs to a third party. */
@font-face {
  font-family: Inter; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url("../fonts/inter-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/source-serif-variable.woff2") format("woff2");
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }

.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;
}

/* --- wordmark ------------------------------------------------------------ */

.wordmark {
  display: block;
  font-family: var(--sans);
  font-weight: 200;
  font-size: 34px;
  letter-spacing: .17em;
  text-indent: .17em;
  color: var(--navy);
  line-height: 1;
}
.wordmark--sm { font-size: 24px; }
.wordmark__kicker {
  display: block; margin-top: 5px;
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

/* --- demo banner --------------------------------------------------------- */

.demo-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 24px;
  background: var(--gold); color: #2a2007;
  font-size: 13px; font-weight: 500;
}
.demo-banner__tag {
  text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 700;
  background: #2a2007; color: #fff; padding: 3px 8px; border-radius: 3px;
}

/* --- header -------------------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header__inner {
  display: flex; align-items: center; gap: 32px;
  padding-top: 20px; padding-bottom: 20px;
}
.site-header__brand {
  text-decoration: none; flex-shrink: 0;
  display: flex; align-items: center; gap: 14px;
}
.site-seal { width: 54px; height: 54px; flex-shrink: 0; }
.site-seal--footer { width: 64px; height: 64px; margin-bottom: 16px; }

.site-nav { flex: 1; min-width: 0; }
.site-nav ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  text-decoration: none; color: var(--navy-deep); font-size: 14px; font-weight: 500;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--navy); }

.site-header__account { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.account-name { font-size: 13.5px; color: var(--muted); max-width: 180px; overflow: hidden;
                text-overflow: ellipsis; white-space: nowrap; }

.site-nav__toggle {
  display: none; background: none; border: 0; font-size: 20px; color: var(--navy); cursor: pointer;
}
.site-nav-mobile { border-top: 1px solid var(--line); padding: 14px 0; }
.site-nav-mobile ul { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.site-nav-mobile a { text-decoration: none; color: var(--navy-deep); font-weight: 500; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-block; text-decoration: none; border-radius: 7px;
  font-size: 14px; font-weight: 600; padding: 9px 17px; line-height: 1.3;
  transition: background .15s ease, color .15s ease;
}
.btn--solid { background: var(--navy); color: var(--white); }
.btn--solid:hover { background: var(--navy-deep); }
.btn--ghost { border: 1px solid var(--line); color: var(--navy); }
.btn--ghost:hover { background: var(--tint); }
.btn--lg { font-size: 16px; padding: 13px 28px; }

/* --- masthead strap ------------------------------------------------------ */

.masthead { background: var(--tint-soft); border-bottom: 1px solid var(--line); }
.masthead__strap {
  margin: 0; padding: 14px 0;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
}

/* --- lead story ---------------------------------------------------------- */

.lead { margin: 44px 0 8px; }
.lead__link { text-decoration: none; color: inherit; display: grid; gap: 32px; }
.lead__media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.lead__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lead__title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12; letter-spacing: -.015em; margin: 10px 0 12px; color: var(--navy-deep);
}
.lead__link:hover .lead__title { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.lead__excerpt { font-size: 18px; color: var(--muted); margin: 0 0 14px; max-width: 62ch; }

@media (min-width: 900px) {
  .lead__link { grid-template-columns: 1.35fr 1fr; align-items: center; }
}

/* --- section title ------------------------------------------------------- */

.section-title {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  margin: 56px 0 22px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}

/* --- cards --------------------------------------------------------------- */

.grid {
  display: grid; gap: 34px 28px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card__link { text-decoration: none; color: inherit; display: block; }
.card__media { position: relative; border-radius: 10px; overflow: hidden; background: var(--tint); margin-bottom: 14px; }
.card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s ease; }
.card__link:hover .card__img { transform: scale(1.03); }

.card__lock {
  position: absolute; top: 10px; left: 10px;
  background: rgba(27, 42, 107, .93); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 4px;
}

.card__tag {
  display: inline-block; margin-bottom: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.card__title {
  font-family: var(--serif); font-size: 21px; line-height: 1.25; font-weight: 700;
  margin: 0 0 8px; color: var(--navy-deep); letter-spacing: -.01em;
}
.card__link:hover .card__title { text-decoration: underline; text-underline-offset: 3px; }
.card__excerpt { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.card__meta { font-size: 12.5px; color: var(--muted); margin: 0; }
.card__dot { margin: 0 6px; }

.card--featured .card__title { font-size: 24px; }

/* --- advertising placeholders -------------------------------------------- */

.ad { margin: 40px 0; }
.ad__label {
  display: block; margin-bottom: 6px;
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.ad__frame {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px dashed var(--line); border-radius: 8px; background: var(--tint-soft);
  color: var(--muted); text-align: center; padding: 20px;
}
.ad__name { font-size: 13px; font-weight: 600; color: var(--navy); }
.ad__size { font-size: 11.5px; }

.ad--leaderboard .ad__frame { min-height: 130px; }
.ad--inline .ad__frame { min-height: 200px; }
.ad--native { grid-column: span 1; margin: 0; }
.ad--native .ad__frame { min-height: 240px; height: 100%; }

/* --- post ---------------------------------------------------------------- */

.post__header { padding-top: 48px; text-align: center; }
.post__tag {
  display: inline-block; text-decoration: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.post__title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; color: var(--navy-deep);
}
.post__standfirst { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 20px; }
.post__byline {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px;
  font-size: 13.5px; color: var(--muted);
}
.post__author { font-weight: 600; color: var(--navy-deep); }
.post__badge {
  margin-left: 10px; background: var(--navy); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px;
}

.post__figure { margin: 36px auto 0; max-width: var(--wrap); padding: 0 24px; }
/* Cap the hero: a portrait or square feature image would otherwise push the
   whole article below the fold. */
.post__figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post__figure figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }

.post__content { padding-top: 40px; font-size: 18.5px; line-height: 1.72; }
.post__content > * { margin: 0 0 1.3em; }
.post__content h2 {
  font-family: var(--serif); font-size: 28px; line-height: 1.25; color: var(--navy-deep);
  margin: 1.9em 0 .5em;
}
.post__content h3 { font-family: var(--serif); font-size: 22px; color: var(--navy-deep); margin: 1.6em 0 .4em; }
.post__content blockquote {
  border-left: 3px solid var(--navy); padding-left: 22px; margin-left: 0;
  font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--navy-deep);
}
.post__content a { color: var(--navy); text-underline-offset: 2px; }
.post__content img { border-radius: 8px; }
.post__content ul, .post__content ol { padding-left: 1.3em; }
.post__content li { margin-bottom: .5em; }

/* Koenig editor card widths. The article column is narrow, so "wide" breaks out
   to the page grid and "full" to the viewport. */
.post__content .kg-width-wide {
  width: min(calc(100vw - 48px), var(--wrap));
  margin-left: 50%; transform: translateX(-50%); max-width: none;
}
.post__content .kg-width-full {
  width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none;
}
.post__content .kg-width-full img { border-radius: 0; }
.post__content figcaption {
  font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 10px;
}

.post__tags { margin: 44px auto; display: flex; gap: 10px; flex-wrap: wrap; }
.post__tag--sm { margin: 0; padding: 5px 11px; background: var(--tint); border-radius: 20px; }

.related { margin-bottom: 72px; }

/* --- paywall ------------------------------------------------------------- */

/* Ghost injects its own upgrade CTA ("This post is for subscribers only")
   wherever a members-only divider sits, in English and styled for a paid
   newsletter. The theme renders a Finnish membership CTA instead, so the
   built-in one is suppressed rather than shown twice. */
.gh-post-upgrade-cta { display: none !important; }

.paywall { position: relative; margin-top: -60px; }
.paywall__fade {
  height: 130px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 88%);
  position: relative; z-index: 1;
}
.paywall__box {
  position: relative; z-index: 2;
  max-width: var(--wrap-narrow); margin: 0 auto 72px; padding: 44px 32px;
  background: var(--tint); border-radius: var(--radius); text-align: center;
}
.paywall__eyebrow {
  margin: 0 0 10px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.paywall__title {
  font-family: var(--serif); font-size: 30px; line-height: 1.2; margin: 0 0 14px; color: var(--navy-deep);
}
.paywall__body { font-size: 16.5px; color: var(--muted); margin: 0 auto 26px; max-width: 46ch; }
.paywall__foot { font-size: 14px; color: var(--muted); margin: 22px 0 0; }

/* --- archive headers ----------------------------------------------------- */

.archive-header { padding: 56px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.archive-header__eyebrow {
  margin: 0 0 8px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.archive-header__title {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); margin: 0 0 12px; color: var(--navy-deep);
}
.archive-header__desc { font-size: 17px; color: var(--muted); margin: 0 0 24px; max-width: 60ch; }

/* --- pagination ---------------------------------------------------------- */

.pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 56px 0 80px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.pagination a { text-decoration: none; font-weight: 600; }

/* --- error --------------------------------------------------------------- */

.error-page { text-align: center; padding: 100px 24px 120px; }
.error-page__code { font-size: 66px; font-weight: 200; color: var(--tint); margin: 0; line-height: 1; }
.error-page__title { font-family: var(--serif); font-size: 30px; color: var(--navy-deep); margin: 8px 0 28px; }

/* --- footer -------------------------------------------------------------- */

.site-footer { background: var(--navy-deep); color: #c3cbe8; margin-top: 80px; }
.site-footer__inner { padding-top: 52px; padding-bottom: 52px; }
.site-footer .wordmark { color: #fff; }
.site-footer__pub { font-size: 13.5px; line-height: 1.7; margin: 16px 0 0; }
.site-footer__nav { margin: 28px 0; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { color: #fff; text-decoration: none; font-size: 14px; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__legal {
  font-size: 12.5px; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
}

/* --- narrow screens ------------------------------------------------------ */

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-nav__toggle { display: block; margin-left: auto; }
  .site-header__inner { gap: 16px; }
  .account-name { display: none; }
  .post__content { font-size: 17.5px; }
}

@media (min-width: 861px) {
  .site-nav-mobile { display: none; }
}
