/* Layout follows the structure of emilkowal.ski: one narrow column, a quiet name block,
   sections of title plus text, spacing instead of lines. Brand colours and type stay Grünberger. */

@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fdfdfc;
  --ink: #13233a;
  --muted: #4c5f75;
  --blue: #1670b8;
  --blue-dark: #115a95;
  --sky: #8fd0f5;
  --navy: #0b2545;
  --navy-raised: #143a64;
  --white: #ffffff;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.column {
  max-width: 644px;
  margin: 0 auto;
  padding: clamp(40px, 9vh, 96px) 24px 32px;
}

.intro img {
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
}

h1 {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: inherit;
  font-weight: 400;
  text-wrap: pretty;
}

section {
  margin-top: clamp(56px, 10vh, 88px);
}

h2 {
  margin: 0 0 12px;
  font-size: inherit;
  font-weight: 600;
}

p {
  margin: 0;
  text-wrap: pretty;
}

section p {
  color: var(--muted);
}

section p + p {
  margin-top: 12px;
}

a {
  color: var(--blue-dark);
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
  touch-action: manipulation;
  transition: text-decoration-color 160ms var(--ease-out);
}

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 18px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.button:active {
  transform: scale(0.97);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: clamp(56px, 10vh, 88px);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer p {
  padding: 11px 0;
}

footer nav {
  display: flex;
  gap: 24px;
}

footer a {
  display: inline-block;
  padding: 11px 0;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    text-decoration-color: currentColor;
  }

  .button:hover {
    background: var(--navy-raised);
  }
}

@media (prefers-reduced-motion: reduce) {
  a,
  .button {
    transition: none;
  }
}
