/* Tokens match the full Kiaveli site. Do not change values without sign-off. */
:root {
  --ink: #22305a;
  --text: #1b2338;
  --text-secondary: #4f5668;
  --bg: #ffffff;
  --ink-light: #c9cfe3;
  --focus: #6b7fc4;
  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --content-max: 1160px;
  --gutter: 32px;
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
  }
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-700.woff2') format('woff2');
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
p {
  margin: 0;
}

h1 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--ink-light);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  padding-block: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  flex: none;
}

.brand__word {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 48px 64px;
}

.intro__title {
  max-width: 11em;
  font-size: clamp(48px, 7vw + 16px, 120px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--text);
}

.intro__lead {
  margin-top: 32px;
  max-width: 35em;
  font-size: clamp(18px, 0.4vw + 16px, 21px);
  color: var(--text-secondary);
}

.intro__contact {
  margin-top: 20px;
  max-width: 35em;
  font-size: clamp(18px, 0.4vw + 16px, 21px);
  color: var(--text-secondary);
}

.intro__contact a {
  display: inline-block;
  padding-block: 10px;
  margin-block: -10px;
}

.site-footer {
  padding-block: 24px 32px;
  font-size: 15px;
  color: var(--text-secondary);
}
