/* Bas: återställning, typografi, layout. Ägs av session 2. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 300; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--tr-display); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); }
h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 400; }
h4 {
  margin: 0; font-family: var(--font-ui); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--tr-label); text-transform: uppercase;
}
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
.lead { font-size: var(--fs-lead); color: var(--text-2); max-width: 60ch; }
small, .small { font-size: var(--fs-small); }
.muted { color: var(--text-2); }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.eyebrow {
  display: block; font-family: var(--font-mono); font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--text-3);
  margin-bottom: var(--s-5);
}
.mono { font-family: var(--font-mono); font-size: var(--fs-small); letter-spacing: .02em; }
.belopp { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Layout */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section + .section { border-top: var(--border); }
.section--ink { background: var(--ink); color: var(--on-ink); border-top: 0 !important; }
.section--ink .eyebrow, .section--ink .muted, .section--ink .lead { color: var(--on-ink-2); }
.section--tint { background: var(--paper-2); }
.prose { max-width: var(--measure); }
.stack > * + * { margin-top: var(--s-5); }

.grid { display: grid; gap: 0; grid-template-columns: 1fr; border: var(--border); }
.grid > * { padding: var(--s-6) var(--s-5); border-bottom: var(--border); }
.grid > *:last-child { border-bottom: 0; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid > * { border-bottom: 0; border-right: var(--border); }
  .grid > *:last-child { border-right: 0; }
}

.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: var(--s-3) var(--s-4);
}
.skip:focus { top: var(--s-4); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
