/* Fonts ---------------------------------------------------------------- */

/* Self-hosted (assets/fonts/, SIL OFL), latin subset only: covers Swedish.
   Jost is a variable font, one file for weights 400-500. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jost-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/libre-baskerville-latin.woff2") format("woff2");
}

/* Tokens -------------------------------------------------------------- */

:root {
  --fg: #1b2550;            /* logotype blue */
  --muted: #4a5275;
  --bg: #f4f6f9;            /* cool, glass-like off-white */
  --rule: #dde1ea;

  --serif: "Libre Baskerville", "Baskerville Old Face", Baskerville, Georgia, serif;
  --sans: "Jost", Futura, "Century Gothic", system-ui, sans-serif;
  --measure: 60rem;
  --gutter: 1rem;
}

/* Light on logotype blue, as on Instagram. Applied to a whole page or to
   a single region (e.g. the header). Off-white instead of pure #fff
   softens the contrast for reading (still ≈13:1, WCAG AAA). */
.theme-blue {
  --fg: #f3efe6;
  --muted: #c3c7d8;
  --bg: #1b2550;
  --rule: #39426b;
  background: var(--bg);
  color: var(--fg);
}

/* Base ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  /* keep the footer at the bottom on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; width: 100%; }

a { color: inherit; }

address { font-style: normal; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Clear keyboard focus, in whichever theme the element sits */
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

#kontakt:focus { outline: none; }  /* skip-link target, not interactive */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
}

.skip-link:focus { top: 1rem; }

/* Never break a phone number across lines */
a[href^="tel:"] { white-space: nowrap; }

/* Header ---------------------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--rule); }

.site-header.theme-blue { border-bottom: 0; }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-mark { width: 56px; height: 56px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Tracked capitals here reproduce the logotype, not a label style */
.brand-tag {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.header-call {
  font-weight: 500;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
}

.header-call:hover,
.header-call:focus-visible { background: var(--fg); color: var(--bg); }

/* Intro ----------------------------------------------------------------- */

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); max-width: 18em; }

h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }

.intro { padding: 4rem 0 3rem; }

.intro p { margin: 1rem 0 0; max-width: 36rem; color: var(--muted); }

/* Contact --------------------------------------------------------------- */

.contact { padding-bottom: 4rem; }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1.75rem 2rem;
}

.contact-list li { display: flex; flex-direction: column; min-width: 0; }

.label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-list a {
  font-size: 1.2rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

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

.note { margin-top: 0.15rem; color: var(--muted); }

/* Footer ---------------------------------------------------------------- */

.site-footer { font-size: 0.95rem; color: var(--muted); }

.site-footer .wrap {
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--rule);
}

.site-footer p { margin: 0; }

/* Small screens --------------------------------------------------------- */

@media (max-width: 40rem) {
  .intro { padding: 2.75rem 0 2.25rem; }
}

@media (max-width: 30rem) {
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 1.5rem; }
  .header-call { width: 100%; text-align: center; }
}
