:root {
  --color-paper: #f5f2ea;
  --color-paper-2: #ebe6da;
  --color-surface: #fffdf8;
  --color-ink: #15212c;
  --color-ink-2: #4f5b66;
  --color-rule: #d6cfbf;
  --color-accent: #1f6b47;
  --color-accent-hover: #17553a;
  --color-accent-ink: #ffffff;
  --color-focus: #1f5aa8;
  --font-display: "Schibsted Grotesk", "Arial Narrow", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --space-3xs: 4px; --space-2xs: 8px; --space-xs: 12px; --space-sm: 16px; --space-md: 24px;
  --space-lg: 32px; --space-xl: 48px; --space-2xl: 72px; --space-3xl: 112px;
  --radius-sm: 3px; --radius-md: 6px;
  --gutter: max(20px, 4vw);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font: 400 17px/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-sm); }
h1, h2, h3 { font-style: normal; overflow-wrap: anywhere; min-width: 0; }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--color-ink); color: var(--color-paper); padding: 8px 14px; z-index: 20; display: inline-flex; align-items: center; min-height: 44px; }
.skip:focus { top: 12px; }

/* Masthead: name + one factual line, plain text links. Not sticky, no bar, no button. */
.mast { padding: var(--space-md) 0 var(--space-sm); }
.mast-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); }
.mast-id { display: flex; flex-direction: column; min-width: 0; flex: 1 1 0; }
.name { font: 800 21px/1.1 var(--font-display); letter-spacing: -.01em; color: var(--color-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.mast-line { font: 500 13px/1.4 var(--font-mono); color: var(--color-ink-2); }
.mast-links { display: flex; align-items: center; gap: var(--space-md); }
.mast-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 16px; white-space: nowrap; }
.mast-links .hire { display: none; }
@media (min-width: 769px) { .mast-links a { min-width: 0; padding-inline: 4px; margin-inline: -4px; } }
.mast-links a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.menu-btn { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 8px; background: var(--color-accent); color: var(--color-accent-ink); text-decoration: none; font: 700 16px/1.2 var(--font-body); padding: 12px 22px; border-radius: var(--radius-md); white-space: nowrap; }
.btn:hover { background: var(--color-accent-hover); }
.btn:active { transform: translateY(1px); }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; white-space: nowrap; }

.site-foot { border-top: 1px solid var(--color-rule); padding: var(--space-sm) 0 var(--space-lg); font-size: 14px; color: var(--color-ink-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; column-gap: .25em; row-gap: 0; align-items: center; }
.site-foot a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--color-ink-2); }

@media (max-width: 768px) {
  .js .mast-links { display: none; }
  .js .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; background: transparent; color: var(--color-ink); border: 1px solid var(--color-ink); border-radius: var(--radius-md); font: 700 15px/1 var(--font-body); cursor: pointer; flex: none; }
  .js .menu-btn[aria-expanded="true"] { background: var(--color-ink); color: var(--color-paper); }
  .js .mast.is-open .mast-links { flex: 1 0 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; border-top: 1px solid var(--color-ink); margin-top: var(--space-xs); }
  .js .mast.is-open .mast-row { flex-wrap: wrap; }
  .js .mast.is-open .mast-links a { border-bottom: 1px solid var(--color-rule); padding: var(--space-2xs) 0; font-size: 18px; }
  .js .mast.is-open .mast-links .hire { display: inline-flex; }
}
@media (max-width: 380px) {
  .name { font-size: 18px; }
  .mast-line { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
