/* Shared chrome for hansjorgentorp.no — tokens, masthead, footer, buttons.
   Page-specific layout lives in a <style> block on each page. */

@font-face {
  font-family: "Baunk";
  src: url("/assets/Baunk.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #101010;
  --body: #4A4A4A;
  --grey: #6E6E6E;
  --dim: #A8A8A8;
  --line: #E4E4E4;
  --edge: #C4C4C4;
  --wash: #F4F4F4;
  --panel: #FAFAF9;
  --hair: #F1F1EF;
  --pad: 60px;
  --sans: Switzer, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Chakra Petch", "Helvetica Neue", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: #FFF;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

/* Sticky masthead must not cover anchor targets. */
[id] { scroll-margin-top: 84px; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.mark { font-family: Baunk, Georgia, serif; line-height: 1; display: inline-block; transform: translateY(0.085em); }
.u-eyebrow { font-size: 11px; color: var(--dim); letter-spacing: 0.01em; }
.u-note { font-size: 11px; color: var(--grey); }

/* ---------- masthead ---------- */
.masthead {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px var(--pad);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: #FFF; z-index: 10;
}
.masthead__left { display: flex; align-items: center; gap: 26px; }
.masthead .mark { font-size: 26px; }
.nav { display: flex; gap: 20px; font-size: 12px; }
.nav a { color: var(--grey); transition: color 0.15s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .is-soon { color: var(--dim); cursor: default; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans); font-size: 13px; line-height: 1;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--ink); color: #FFF; }
.btn--primary:hover { background: var(--grey); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--edge); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--soon { background: transparent; color: var(--dim); border-color: var(--line); cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- sections ---------- */
.section { padding: 60px var(--pad); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.section__head h2 { margin: 0; font-weight: 400; }

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tag { font-size: 11px; padding: 5px 12px; border-radius: 999px; background: var(--wash); color: var(--grey); }
.tag--live { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.tag--idle { background: transparent; border: 1px solid var(--edge); color: var(--grey); }

/* ---------- spec / fact list ---------- */
.facts { display: flex; flex-direction: column; font-size: 12px; margin: 0; }
.facts__row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts__row:first-child { border-top: 1px solid var(--ink); }
.facts__row dt { color: var(--grey); margin: 0; }
.facts__row dd { margin: 0; text-align: right; }

/* ---------- shipped / thought split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); }
.split__col { display: flex; flex-direction: column; gap: 8px; }
.split__col:first-child { padding-right: var(--split-pad, 22px); }
.split__col:last-child { padding-left: var(--split-pad, 22px); }
.split__rule { background: var(--line); }
.split dt { font-size: 10px; color: var(--dim); margin: 0; }
.split dd { margin: 0; font-size: 13px; line-height: 1.6; color: var(--body); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #FFF; padding: 56px var(--pad) 30px; display: flex; flex-direction: column; gap: 44px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 20px; }
.footer .mark { font-size: 84px; color: #FFF; }
.footer__blurb { font-size: 13px; line-height: 1.6; color: #8C8C8C; max-width: 34ch; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 60px; row-gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 9px; font-size: 12px; }
.footer__col h2 { font-size: 10px; color: #5A5A5A; font-weight: 400; margin: 0; letter-spacing: 0.02em; }
.footer__col a { color: #FFF; transition: color 0.15s ease; }
.footer__col a:hover { color: #8C8C8C; }
.footer__col .is-soon { color: #5A5A5A; cursor: default; }
.footer__base { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; border-top: 1px solid #2A2A2A; padding-top: 16px; }
.footer__base span { font-size: 10px; color: #5A5A5A; }

/* ---------- responsive (shared chrome) ---------- */
@media (max-width: 1080px) {
  :root { --pad: 40px; }
}

@media (max-width: 640px) {
  :root { --pad: 22px; }
  .section { padding: 44px var(--pad); }
  .masthead { padding: 16px var(--pad); }
  .masthead__left { gap: 18px; }
  .nav { gap: 14px; }
  .masthead__where { display: none; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .split__col:first-child { padding-right: 0; }
  .split__col:last-child { padding-left: 0; padding-top: 20px; border-top: 1px solid var(--line); }
  .split__rule { display: none; }
  .footer__top { gap: 36px; }
  .footer .mark { font-size: 64px; }
  .footer__cols { gap: 32px; row-gap: 28px; }
  .footer__col { min-width: 108px; }
  .btn { flex: 1 1 auto; justify-content: center; }
}
