/* Nähtav design system. Calm premium (vault 05 Skills/Taste, website mode): white and #F5F5F7 full-bleed bands,
   near-black text, Inter, black buttons, text links with ›, hairline rules. No cards, pills, gradients or emoji.
   Shared by every page. Page-only styles go in assets/css/<page module>.css, which the shell links on that page only. */

/* Inter, self hosted from @fontsource/inter (SIL OFL 1.1, license in /assets/fonts/inter-OFL.txt).
   tools/build.py copies exactly the files named here from node_modules into dist/assets/fonts. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light only;
  --ink: #1d1d1f;          /* text, buttons */
  --ink-2: #5e5e63;        /* secondary text, 5.9:1 on white, 5.4:1 on --band */
  --bg: #ffffff;
  --band: #f5f5f7;         /* grey full-bleed band */
  --dark: #1d1d1f;         /* the one dark band a page may use */
  --line: #e8e8ed;         /* hairline */
  --line-strong: #d2d2d7;  /* hairline on --band, input borders */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1080px;
  --gutter: 20px;
  --section: 64px;         /* band padding, phone */
  --radius: 8px;           /* buttons and photos; never boxes around text */
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 84px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* Layout */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: var(--section) 0; }
.band + .band:not(.band-grey):not(.band-dark) { border-top: 1px solid var(--line); }
.band-grey { background: var(--band); }
.band-dark { background: var(--dark); color: #f5f5f7; }
.band-dark .muted { color: #a1a1a6; }
.narrow { max-width: 680px; }

/* Type scale: few sizes */
.display { font-size: clamp(36px, 9.4vw, 80px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
h2, .h2 { font-size: clamp(28px, 5vw, 44px); }
h3, .h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; }
.lead { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; }
.small { font-size: 15px; }
.muted { color: var(--ink-2); }
h1 + .lead, h2 + .lead, h2 + p, .display + .lead { margin-top: 16px; }
.stack > * + * { margin-top: 16px; }
.section-head { margin-bottom: 36px; }

/* Actions: black button, text link with › */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--ink); color: #fff;
  border: 0; border-radius: var(--radius);
  font: 600 17px/1 var(--font); text-decoration: none;
  transition: background-color .15s ease;
}
.button:hover { background: #000; }
.band-dark .button { background: #fff; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
p a:not(.text-link):not(.button) { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Hairlines instead of boxes */
.rule { height: 0; border: 0; border-top: 1px solid var(--line); margin: 0; }
.band-grey .rule { border-top-color: var(--line-strong); }
.rows { list-style: none; padding: 0; }
.rows > * { padding: 20px 0; border-top: 1px solid var(--line); }
.rows > *:last-child { border-bottom: 1px solid var(--line); }
.band-grey .rows > * { border-color: var(--line-strong); }

/* Columns split by whitespace (and optionally a vertical hairline). One column on a phone. */
.cols { display: grid; gap: 32px; }
@media (min-width: 768px) {
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .cols-ruled > * + * { border-left: 1px solid var(--line); padding-left: 40px; }
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 24px; }
.wordmark {
  display: inline-flex; align-items: center; min-height: 56px;
  font-size: 22px; font-weight: 700; letter-spacing: -0.04em; text-decoration: none;
}
/* Nav links: 44px tall and at least 44px wide, the padding is the tap area. The nav's negative side margin keeps the
   first and last label on the page edge. */
.site-nav { display: flex; width: auto; flex: 1 0 100%; justify-content: space-between; margin: -6px -10px 4px; }
.site-nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px;
  font-size: 15px; color: var(--ink-2); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }
@media (min-width: 640px) {
  .site-nav { flex: 0 1 auto; gap: 8px; margin: 0 -10px 0 0; }
  .wordmark { min-height: 64px; }
}

/* Footer: a few short lines in normal small type. The company left, one contact line right (stacked on a phone). */
.site-footer { background: var(--band); padding: 32px 0 40px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.footer-inner { display: grid; gap: 12px; }
.site-footer .footer-brand { color: var(--ink); font-weight: 600; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.footer-contact a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
  .footer-contact { flex-direction: row; align-items: center; column-gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
