@import url("https://cdn.jsdelivr.net/npm/@fontsource-variable/source-sans-3@5.2.9/wght.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource-variable/hanken-grotesk@5.2.8/wght.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@5.3.0/wght.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource-variable/source-serif-4@5.3.0/wght.css");

:root {
  --paper: #f7f6f5;
  --footer: #f4f3ef;
  --ink: #151613;
  --muted: #65665f;
  --accent: #8a352d;
  --line: rgba(21, 22, 19, 0.16);
  --line-soft: rgba(21, 22, 19, 0.08);
  --sans: "Source Sans 3 Variable", "Helvetica Neue", Arial, sans-serif;
  --wordmark: "Hanken Grotesk Variable", "Helvetica Neue", Arial, sans-serif;
  --heading: "Geist Variable", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4 Variable", Georgia, serif;
}

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

html {
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: -0.008em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-grid {
  display: grid;
  width: min(100%, 1024px);
  min-height: 100dvh;
  grid-template-columns: minmax(184px, 224px) minmax(0, 800px);
  margin-inline: auto;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100dvh;
  align-items: flex-start;
  flex-direction: column;
  padding: 32px clamp(20px, 2vw, 32px);
  font-family: var(--sans);
}

.sidebar-logo {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

.logo-symbol,
.brand-symbol {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
}

.logo-symbol {
  width: 20px;
  flex: 0 0 20px;
}

.brand-symbol {
  width: 1.12em;
  flex: 0 0 1.12em;
  transform: translateY(-0.02em);
}

.logo-symbol img,
.brand-symbol img {
  display: block;
  width: 147.53%;
  max-width: none;
  height: auto;
  transform: translate(-16.1%, -16.1%);
}

.wordmark {
  font-family: var(--wordmark);
  font-weight: 590;
  font-kerning: normal;
  letter-spacing: normal;
}

.sidebar nav {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  margin-top: -6px;
}

.sidebar nav a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.3;
  text-decoration: none;
}

.sidebar nav a:hover,
.footer-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sidebar-logo:focus-visible,
.sidebar a:focus-visible,
.article-card:focus-visible,
.article-brand:focus-visible,
.article-back:focus-visible,
.footer-brand:focus-visible,
.footer-contact a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main {
  min-width: 0;
  grid-column: 2;
}

.section {
  padding: 56px clamp(48px, 4.5vw, 64px);
}

.intro {
  padding-top: clamp(80px, 10vh, 96px);
}

.section-number {
  margin-bottom: 32px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 520;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

h1,
h2 {
  font-family: var(--heading);
  hyphens: none;
  overflow-wrap: normal;
  text-wrap: balance;
}

h1 {
  max-width: 650px;
  font-size: clamp(28px, 2vw, 32px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h2 {
  max-width: 600px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 620px;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.prose {
  max-width: 620px;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.58;
}

.prose p + p {
  margin-top: 24px;
}

.prose strong {
  font-weight: 650;
}

.article-grid {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
}

.article-card {
  display: block;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.article-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--footer);
}

.article-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease-out;
}

.article-card-copy {
  display: block;
  padding-top: 12px;
}

.article-card-meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 520;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.article-card h2 {
  max-width: none;
  font-size: 17px;
  font-weight: 560;
  line-height: 1.28;
}

.article-card:hover .article-card-image img {
  opacity: 0.82;
}

.site-footer {
  scroll-margin-top: 24px;
  padding: 56px clamp(32px, 5vw, 80px) 48px;
  color: var(--ink);
  background: var(--footer);
}

.footer-inner {
  display: flex;
  width: min(100%, 1200px);
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.1em;
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.footer-contact {
  display: flex;
  align-items: baseline;
  gap: 32px;
}

.footer-contact p {
  font-size: 16px;
}

.footer-contact a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 520;
  text-underline-offset: 0.18em;
}

/* Article */
.article-page {
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.006em;
}

.article-header {
  display: flex;
  width: min(calc(100% - 48px), 1200px);
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-inline: auto;
}

.article-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.1em;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.article-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 520;
  text-underline-offset: 0.2em;
}

.article-main {
  width: min(calc(100% - 48px), 960px);
  margin: 0 auto;
  padding: 80px 0 112px;
}

.article-intro {
  max-width: 800px;
}

.article-meta {
  margin-bottom: 24px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-page .article-intro h1 {
  max-width: 800px;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 580;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.article-standfirst {
  max-width: 720px;
  margin-top: 32px;
  font-size: 22px;
  line-height: 1.5;
}

.article-hero-image {
  max-width: 720px;
  margin: 64px auto 72px;
}

.article-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-copy {
  max-width: 720px;
  margin-inline: auto;
}

.article-copy > p + p {
  margin-top: 24px;
}

.article-copy > h2 {
  max-width: 680px;
  margin-top: 72px;
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.article-copy strong {
  font-weight: 650;
}

.article-copy a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.article-copy a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.data-figure {
  margin: 56px 0;
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}

.data-figure figcaption {
  max-width: 620px;
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.data-figure-intro {
  max-width: 600px;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
}

.data-bars {
  margin-top: 30px;
}

.data-row + .data-row {
  margin-top: 22px;
}

.data-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.data-label strong {
  flex: 0 0 auto;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.data-track,
.ownership-track {
  overflow: hidden;
  background: var(--line-soft);
}

.data-track {
  height: 9px;
}

.data-bar,
.ownership-track span {
  display: block;
  width: var(--value);
  height: 100%;
}

.data-bar-total {
  background: #aaa9a3;
}

.data-bar-avoidable {
  background: #70716c;
}

.data-bar-erik,
.data-bar-span,
.data-bar-scenario,
.ownership-track span {
  background: var(--accent);
}

.data-note {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.5;
}

.data-bars-spans .data-label span {
  max-width: 500px;
}

.ownership-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 32px;
}

.ownership-item strong,
.ownership-item span {
  display: block;
}

.ownership-item strong {
  font-family: var(--heading);
  font-size: 36px;
  font-variant-numeric: tabular-nums;
  font-weight: 580;
  line-height: 1;
  letter-spacing: -0.035em;
}

.ownership-item > span {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.ownership-track {
  height: 7px;
  margin-top: 14px;
}

.method-note {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.article-copy .method-note h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 18px;
}

.method-note p + p {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .page-grid {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  main {
    grid-column: 2;
  }

  .sidebar {
    padding-inline: 20px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .page-grid {
    display: block;
    min-height: auto;
  }

  .sidebar {
    position: static;
    display: grid;
    height: auto;
    min-height: 64px;
    align-items: center;
    grid-template-columns: 1fr auto;
    padding: 10px 16px;
  }

  .sidebar-logo {
    align-items: center;
  }

  .sidebar nav {
    margin-top: 0;
  }

  .sidebar nav a {
    display: none;
  }

  .sidebar nav a[href="#kontakt"] {
    display: inline-flex;
    min-height: 44px;
  }

  .section {
    padding: 44px 20px;
  }

  .intro {
    padding-top: 48px;
  }

  .section-number {
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(21px, 6.2vw, 25px);
    line-height: 1.1;
  }

  h2 {
    font-size: 18px;
  }

  .lede {
    font-size: 16px;
  }

  .prose {
    margin-top: 28px;
    font-size: 16px;
  }

  .article-card h2 {
    font-size: 18px;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-footer {
    padding: 48px 20px 40px;
  }

  .footer-inner,
  .footer-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    gap: 40px;
  }

  .footer-contact {
    gap: 8px;
  }

  .footer-brand {
    font-size: 30px;
  }

  .article-page {
    font-size: 17px;
  }

  .article-header {
    width: calc(100% - 32px);
    min-height: 72px;
  }

  .article-brand {
    font-size: 21px;
  }

  .article-main {
    width: calc(100% - 40px);
    padding: 56px 0 80px;
  }

  .article-page .article-intro h1 {
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1.04;
  }

  .article-standfirst {
    margin-top: 24px;
    font-size: 19px;
  }

  .article-hero-image {
    width: 100%;
    margin: 48px auto 56px;
  }

  .article-copy > h2 {
    margin-top: 56px;
    font-size: 24px;
  }

  .data-figure {
    margin: 44px 0;
  }

  .data-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .ownership-pair {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
