/* The blog (founder 2026-11-23: a new blog, not the old editorial page): the list (blogg.html) and the posts
   (blogg-*.html), built by build_blogg.mjs. The Sajter page's parts (sajter.css) plus what is its own here. Every post
   shows its photo or film; no text-only sections. */

/* outline pills on the white (the shared ghost button is drawn for dark grounds) */
.is-blogg .bl-post__head .mag-btn--ghost, .is-blogg .bl-more .mag-btn--ghost { --mb-color: #000; --mb-focus: #000; }
.is-blogg .bl-post__head .mag-btn--ghost .mag-btn__bg, .is-blogg .bl-more .mag-btn--ghost .mag-btn__bg { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.is-blogg .bl-post__head .mag-btn--ghost:is(:hover, :focus-visible) .mag-btn__bg, .is-blogg .bl-more .mag-btn--ghost:is(:hover, :focus-visible) .mag-btn__bg { background-color: rgba(0, 0, 0, 0.04); box-shadow: inset 0 0 0 1px #000; }

/* the line over a title: the subject, the date, the reading time, with thin dots between */
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: max(13px, calc(15 * var(--px))); color: rgba(0, 0, 0, 0.5); }
.bl-meta > * + *::before { content: ''; display: inline-block; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: currentColor; vertical-align: middle; opacity: 0.6; }
.bl-meta > span:first-child { color: #000; }

/* ---- the list ---- */
.is-blogg .bl-head { padding-bottom: calc(90 * var(--px)); }
.bl-list { padding: 0 var(--side-r) 0 var(--side-l); }

/* the newest film-led post: its window wide on the left, the text on the right, the whole card a link */
.bl-feat { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; padding: 10px; border-radius: 28px; background: #f2f2f3; color: inherit; text-decoration: none; transition: background-color 0.6s ease; }
.bl-feat__win { height: calc(600 * var(--px)) !important; min-height: 280px; }
.bl-feat__text { padding: calc(40 * var(--px)) calc(56 * var(--ux)); }
.bl-feat__title { margin-top: calc(18 * var(--px)); font-weight: 300; font-size: max(28px, calc(54 * var(--px))); line-height: 1.06; letter-spacing: -0.025em; color: #000; text-wrap: balance; }
.bl-feat__sum { margin-top: calc(20 * var(--px)); max-width: 30em; font-size: max(16px, calc(19 * var(--px))); line-height: 1.55; color: rgba(0, 0, 0, 0.66); text-wrap: pretty; }
.bl-feat__go { margin-top: calc(34 * var(--px)); }
@media (hover: hover) and (pointer: fine) { .bl-feat:hover { background-color: #ececee; } }

/* the subjects: outline pills, the chosen one filled black */
.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: calc(120 * var(--px)); }
.bl-tag { padding: 0.72em 1.2em; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16); font: inherit; font-size: max(14px, calc(16 * var(--px))); line-height: 1; color: #000; cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; }
.bl-tag:hover { box-shadow: inset 0 0 0 1px #000; }
.bl-tag[aria-pressed="true"] { background: #000; color: #fff; box-shadow: inset 0 0 0 1px #000; }
.bl-tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the posts: three across, each its photo, the line, the title and two lines of the summary */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(16 * var(--ux)); margin-top: calc(32 * var(--px)); }
.bl-card { display: flex; flex-direction: column; padding: 10px 10px calc(30 * var(--px)); border-radius: 26px; background: #f2f2f3; color: inherit; text-decoration: none; transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.6s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.6s ease; }
.bl-card[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .bl-card:hover { transform: translateY(-8px); background-color: #f7f7f8; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 24px -10px rgba(0, 0, 0, 0.12), 0 30px 60px -24px rgba(0, 0, 0, 0.16); }
  .bl-card:hover .bl-card__win > img { transform: scale(1.04); }
}
.bl-card__win { height: calc(330 * var(--px)); min-height: 220px; }
.bl-card__win > img { transform: none; transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.bl-card__text { padding: calc(26 * var(--px)) calc(22 * var(--ux)) 0; }
.bl-card__title { margin-top: calc(12 * var(--px)); font-weight: 300; font-size: max(21px, calc(28 * var(--px))); line-height: 1.16; letter-spacing: -0.015em; color: #000; text-wrap: balance; }
.bl-card__sum { display: -webkit-box; margin-top: calc(12 * var(--px)); overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: max(15px, calc(16 * var(--px))); line-height: 1.55; color: rgba(0, 0, 0, 0.6); }
.is-blogg .bl-list { padding-bottom: calc(5vw + 14svh); }

/* ---- a post ---- */
.bl-post__head { padding: calc(190 * var(--px)) var(--side-r) 0 var(--side-l); }
.bl-back { margin-bottom: calc(48 * var(--px)); font-size: max(14px, calc(16 * var(--px))); }
.bl-post__title { max-width: 17em; margin-top: calc(18 * var(--px)); font-weight: 300; font-size: max(36px, calc(88 * var(--px))); line-height: 1.02; letter-spacing: -0.035em; color: #000; text-wrap: balance; }
.bl-post__sum { max-width: 36em; margin-top: calc(30 * var(--px)); font-size: max(18px, calc(23 * var(--px))); font-weight: 300; line-height: 1.5; color: rgba(0, 0, 0, 0.7); text-wrap: pretty; }
.bl-post__cover { margin: calc(72 * var(--px)) var(--side-r) 0 var(--side-l); }
.bl-post__win { height: calc(780 * var(--px)) !important; min-height: 240px; border-radius: 26px !important; }
.bl-post__win > img { transform: none; }
.bl-post__cover figcaption { margin-top: 12px; font-size: max(13px, calc(14 * var(--px))); color: rgba(0, 0, 0, 0.5); }

/* the text in a readable column, the headings listed beside it while it is read */
.bl-post__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44em) minmax(0, 1fr); column-gap: calc(64 * var(--ux)); padding: calc(110 * var(--px)) var(--side-r) 0 var(--side-l); }
.bl-toc { position: sticky; top: 120px; align-self: start; max-width: 19em; }
.bl-toc__h { font-size: max(13px, calc(14 * var(--px))); color: rgba(0, 0, 0, 0.45); }
.bl-toc ol { list-style: none; margin-top: 14px; border-left: 1px solid rgba(0, 0, 0, 0.1); }
.bl-toc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 1px solid transparent; font-size: max(14px, calc(15 * var(--px))); line-height: 1.4; color: rgba(0, 0, 0, 0.5); text-decoration: none; transition: color 0.25s ease, border-color 0.25s ease; }
.bl-toc a:hover { color: #000; }
.bl-toc a.is-on { border-left-color: var(--accent); color: #000; }
.bl-body { font-size: max(17px, calc(20 * var(--px))); line-height: 1.7; color: #1d1d1f; }
.bl-body p { margin-top: 1.15em; text-wrap: pretty; }
.bl-body > p:first-child { margin-top: 0; font-size: 1.12em; line-height: 1.6; color: #000; }
.bl-body h2 { margin-top: 2.1em; scroll-margin-top: 110px; font-weight: 300; font-size: max(26px, calc(40 * var(--px))); line-height: 1.12; letter-spacing: -0.02em; color: #000; text-wrap: balance; }
/* the pictures in a post: rounded, the caption small under; the film (4:5, with sound) narrower and with controls */
.bl-fig { margin: 2.2em 0 0; }
.bl-body > .bl-fig:first-child { margin-top: 0; }
.bl-fig img, .bl-fig video { display: block; width: 100%; height: auto; border-radius: 18px; background: #f2f2f3; }
.bl-fig--film video { max-width: 30em; background: #0b0b0c; }
.bl-fig figcaption { margin-top: 12px; font-size: max(13px, calc(15 * var(--px))); line-height: 1.5; color: rgba(0, 0, 0, 0.5); }
.bl-body > .bl-fig:first-child + p { margin-top: 2em; font-size: 1.12em; line-height: 1.6; color: #000; }
/* lists: a thin rule between items, the bold lead in black */
.bl-body ul, .bl-body ol { list-style: none; margin-top: 1.15em; padding: 0; counter-reset: bl; }
.bl-body li { position: relative; padding: 0.7em 0 0.7em 1.6em; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.bl-body li:first-child { border-top: 0; }
.bl-body ul > li::before { content: ''; position: absolute; left: 0.25em; top: 1.48em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.bl-body ol > li { counter-increment: bl; }
.bl-body ol > li::before { content: counter(bl); position: absolute; left: 0; top: 0.7em; color: var(--accent); }
.bl-body b { font-weight: 500; color: #000; }
.bl-by { margin-top: 3em !important; padding-top: 1.4em; border-top: 1px solid rgba(0, 0, 0, 0.1); font-size: max(14px, calc(15 * var(--px))); color: rgba(0, 0, 0, 0.5); }

/* the service the post is about: a dark panel, the text left, that service's own clip right */
.bl-cta { padding: calc(200 * var(--px)) var(--side-r) 0 var(--side-l); }
.bl-cta__panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: calc(64 * var(--ux)); align-items: center; padding: calc(24 * var(--px)) calc(24 * var(--px)) calc(24 * var(--px)) calc(64 * var(--ux)); border-radius: 28px; background: #0b0b0c; color: #fff; }
.bl-cta__over { font-size: max(14px, calc(16 * var(--px))); color: rgba(255, 255, 255, 0.55); }
.bl-cta__text .sq { margin: calc(14 * var(--px)) 0 0; text-align: left; color: #fff; }
.bl-cta__text .slead { max-width: 26em; margin-inline: 0; text-align: left; color: rgba(255, 255, 255, 0.72); }
.bl-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: calc(34 * var(--px)); }
.bl-cta__win { height: auto !important; min-height: 0; aspect-ratio: 2 / 1; }   /* the site clips are 2560 x 1200: shown near their own shape */

.bl-more { padding: calc(200 * var(--px)) var(--side-r) calc(5vw + 14svh) var(--side-l); }
.bl-more__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.bl-more__head .sq { margin: 0; }

@media (max-width: 1100px) {
  .bl-feat { grid-template-columns: minmax(0, 1fr); }
  .bl-feat__win { height: 380px !important; }
  .bl-feat__text { padding: 28px 18px 18px; }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .bl-tags { margin-top: 72px; }
  .bl-post__wrap { grid-template-columns: minmax(0, 1fr); padding-top: 64px; }
  .bl-toc { display: none; }
  .bl-body { max-width: 44em; }
  .bl-cta, .bl-more { padding-top: 120px; }
  .bl-cta__panel { grid-template-columns: minmax(0, 1fr); row-gap: 32px; padding: 40px 28px 14px; }
  .bl-cta__win { margin-inline: -14px; }
}
@media (max-width: 720px) {
  .is-blogg .bl-head { padding-bottom: 48px; }
  .bl-feat { margin-inline: -8px; border-radius: 22px; }
  .bl-feat__win { height: 240px !important; min-height: 0; }
  .bl-feat__text { padding: 22px 14px 16px; }
  .bl-tags { flex-wrap: nowrap; margin: 56px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .bl-tags::-webkit-scrollbar { display: none; }
  .bl-tag { flex: none; }
  .bl-grid { grid-template-columns: minmax(0, 1fr); margin-inline: -8px; }
  .bl-card { border-radius: 22px; }
  .bl-card__win { height: 210px; min-height: 0; }
  .bl-card__text { padding: 20px 14px 0; }
  .bl-post__head { padding-top: 120px; }
  .bl-back { margin-bottom: 32px; }
  .bl-post__cover { margin: 36px calc(var(--side-r) - 8px) 0 calc(var(--side-l) - 8px); }
  .bl-post__win { height: 230px !important; min-height: 0; border-radius: 20px !important; }
  .bl-post__cover figcaption { padding-inline: 8px; }
  .bl-post__wrap { padding-top: 44px; }
  .bl-cta, .bl-more { padding-top: 96px; }
  .bl-cta__panel { margin-inline: -8px; padding: 32px 22px 10px; border-radius: 22px; }
  .bl-cta__win { margin-inline: -12px; }
  .bl-more .bl-grid { margin-top: 24px; }
}

/* the featured post with a 4:5 film (founder 2026-11-23: Under ett tak leads, with its film): the window takes the
   film's own shape, so the whole frame shows, and the text gets the wider side */
.bl-feat--tall { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); }
.bl-feat--tall .bl-feat__win { height: auto !important; min-height: 0; aspect-ratio: 4 / 5; }
.bl-feat--tall .bl-feat__title { font-size: max(30px, calc(68 * var(--px))); }
@media (max-width: 1100px) {
  .bl-feat--tall { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
  .bl-feat--tall .bl-feat__win { height: auto !important; }
}
@media (max-width: 720px) {
  .bl-feat--tall { grid-template-columns: minmax(0, 1fr); }
  .bl-feat--tall .bl-feat__win { height: auto !important; }
}
