/* Artner — tokens */
:root {
  --paper: #fbfbf9;
  --ink: #171814;          /* from the logo mark */
  --ink-2: #6a6b66;
  --line: #e3e3de;
  --tile: #171814;

  --font-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 10vw, 128px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, .brand:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 12px;
}
.skip:focus { left: 8px; }

/* Shell */
.top, main, .contact {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; padding-bottom: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: -0.01em; }
.brand-mark {
  --t: 6px; --g: 3px;
  display: grid;
  grid-template-columns: repeat(3, var(--t));
  gap: var(--g);
}
.brand-mark i {
  display: block;
  background: var(--tile);
  border-radius: calc(var(--t) / 6);
  width: var(--t); height: var(--t);
}
.brand-mark i.gap { opacity: 0; }

.top-nav { display: flex; gap: 28px; font-size: 0.9375rem; }
.top-nav a, .lede a, .contact .big-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--line); transition: text-decoration-color .2s ease; }
.top-nav a:hover, .contact .big-link:hover { text-decoration-color: var(--ink); }

/* Hero: the copy sits inside a field of tiles that gives way around it */
.hero {
  position: relative;
  min-height: min(84vh, 880px);
  display: flex;
  align-items: center;
  margin-bottom: clamp(32px, 4vw, 64px);
}
.field {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; width: 100vw;
  transform: translateX(-50%);
  touch-action: pan-y;
  cursor: default;
}
.field canvas { display: block; width: 100%; height: 100%; }
.hero-copy { position: relative; padding: 48px 0; pointer-events: none; }
.hero-copy > * { width: fit-content; }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 5.25rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.035em;
  max-width: 13ch;
  text-wrap: balance;
}
.lede {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 40ch;
  text-wrap: pretty;
}
.meta { margin-top: 40px; }

/* Services */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services article { padding: var(--section) 0; }
.services article + article { border-left: 1px solid var(--line); padding-left: clamp(32px, 5vw, 72px); }
.services article:first-child { padding-right: clamp(32px, 5vw, 72px); }
.services h2 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 16ch;
  text-wrap: balance;
}
.services p { margin-top: 20px; color: var(--ink-2); max-width: 38ch; font-size: 1.0625rem; text-wrap: pretty; }
.services ul { margin-top: 32px; display: grid; gap: 12px; }
.services li { display: flex; align-items: baseline; gap: 14px; font-size: 1rem; }
.services li::before {
  content: ""; flex: none;
  width: 8px; height: 8px; border-radius: 1.5px;
  background: var(--tile);
  transform: translateY(-1px);
}

/* Experience */
.experience { padding: var(--section) 0; border-bottom: 1px solid var(--line); }
.eyebrow { margin-bottom: 28px; }
/* Logos, drawn in ink through their own shapes so they sit quietly together */
.logos {
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: clamp(36px, 5.5vw, 80px); row-gap: 28px;
  --logo-h: clamp(22px, 2vw, 28px);
}
.logos img {
  --h: 1;
  display: block;
  height: calc(var(--logo-h) * var(--h));
  width: calc(var(--logo-h) * var(--h) * var(--w));
  opacity: 0;                    /* the image only supplies the shape */
}
.logos li {
  background-color: var(--ink-2);
  -webkit-mask: var(--mask) center / contain no-repeat;
  mask: var(--mask) center / contain no-repeat;
  transition: background-color .2s ease;
}
.logos li:hover { background-color: var(--ink); }
.logos li:nth-child(1) { --mask: url("/assets/logos/klarna.svg"); }
.logos li:nth-child(2) { --mask: url("/assets/logos/froda.svg"); }
.logos li:nth-child(3) { --mask: url("/assets/logos/lumell.svg"); }
.logos li:nth-child(4) { --mask: url("/assets/logos/hm.svg"); }
.logos li:nth-child(5) { --mask: url("/assets/logos/sr.svg"); }

/* Contact */
.contact { padding-top: var(--section); padding-bottom: 48px; }
.contact .big-link {
  display: block;
  width: fit-content;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
}
.contact .big-link + .big-link { margin-top: 8px; }
.colophon { margin-top: 96px; }

/* Mobile */
@media (max-width: 760px) {
  .top { padding-top: 20px; padding-bottom: 20px; }
  .top-nav a:first-child { display: none; } /* email lives in the footer on small screens */
  .hero { min-height: 0; align-items: flex-start; }
  .hero-copy { padding: 24px 0 220px; }
  .hero h1 { max-width: none; }
  .logos { justify-content: center; }
  .services { grid-template-columns: 1fr; }
  .services article { padding: 56px 0; }
  .services article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .services article:first-child { padding-right: 0; }
  .colophon { margin-top: 64px; }
}
