/* Schibsted Grotesk, SIL Open Font License 1.1: see /fonts/OFL.txt. Served from this site only. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --ink: #0e0e11;
  --ink-2: #4a4a53;
  --ink-3: #6e6e78;
  --rule: #e4e4e8;
  --rule-strong: #d4d4da;
  --done-ink: #146c43;
  --done-bg: #e6f4ec;
  --now-ink: #8a4b00;
  --now-bg: #fcefd9;
  --shadow: 0 1px 2px rgb(14 14 17 / 0.04), 0 16px 40px -18px rgb(14 14 17 / 0.14);
  --panel-rule: var(--rule);
  --select: #d9e6ff;
  --focus: #2f5bd3;
  --sans: "Schibsted Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 75rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e;
    --surface: #131316;
    --ink: #ededf0;
    --ink-2: #b4b4bd;
    --ink-3: #8c8c96;
    --rule: #232328;
    --rule-strong: #2e2e35;
    --done-ink: #7fd3a6;
    --done-bg: #12301f;
    --now-ink: #f2c27a;
    --now-bg: #33240d;
    --shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 1px 2px rgb(0 0 0 / 0.4);
    --panel-rule: var(--rule-strong);
    --select: #26375e;
    --focus: #8fb0ff;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--select);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 160ms ease-out, color 160ms ease-out;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Top bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.25rem;
}

.name {
  font-size: 0.9375rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.nav .pill {
  color: var(--bg);
  background: var(--ink);
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-weight: 520;
  transition: opacity 160ms ease-out;
}

.nav .pill:hover {
  color: var(--bg);
  opacity: 0.86;
}

/* First screen: introduction and the work panel side by side, how I work below */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 35rem);
  grid-template-areas:
    "intro panel"
    "how how";
  column-gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(3rem, 7vh, 5.5rem);
}

.intro {
  grid-area: intro;
  padding-top: 0.5rem;
}

.headline {
  font-size: clamp(2.5rem, 4.6vw, 3.75rem);
  line-height: 1.02;
  font-weight: 640;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 19ch;
}

.lead {
  margin-top: 1.75rem;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34rem;
  text-wrap: pretty;
}


.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 540;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.25rem;
  border-radius: 0.625rem;
  box-shadow: 0 1px 2px rgb(14 14 17 / 0.2);
  transition: transform 160ms ease-out, opacity 160ms ease-out;
}

.button:hover {
  opacity: 0.88;
}

.button:active {
  transform: translateY(1px);
}

.quiet {
  font-size: 0.9375rem;
  font-weight: 520;
  text-decoration: none;
}

.quiet span {
  display: inline-block;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.quiet:hover span {
  transform: translateX(3px);
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 1.25rem clamp(1.5rem, 3vw, 2.75rem);
  margin-top: clamp(2.5rem, 6vh, 3.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.figures div {
  display: flex;
  flex-direction: column;
}

.figures dd {
  order: -1;
}

.figures dd {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.figures dt {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* The work panel */

.panel {
  grid-area: panel;
  align-self: start;
  margin-top: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--panel-rule);
  border-radius: 0.875rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9375rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--ink);
}

.panel-head span {
  font-weight: 400;
  color: var(--ink-3);
  text-align: right;
}

.work-item {
  padding: 1.125rem 1.25rem 1.1875rem;
  border-bottom: 1px solid var(--rule);
}

.work-item:last-child {
  border-bottom: 0;
}

.work-item h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.work-item p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.work-item small {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.875rem;
  margin-top: 0.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--ink-3);
}

.tag {
  flex: none;
  font-size: 0.75rem;
  font-weight: 520;
  line-height: 1;
  padding: 0.3125rem 0.5625rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.tag.done {
  color: var(--done-ink);
  background: var(--done-bg);
}

.tag.now {
  color: var(--now-ink);
  background: var(--now-bg);
}

/* How I work */

.how {
  grid-area: how;
  margin-top: clamp(5rem, 12vh, 8rem);
}

.how h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.principles {
  margin-top: 2rem;
  border-bottom: 1px solid var(--rule);
}

.principles li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 35rem);
  column-gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: baseline;
  padding: 1.375rem 0;
  border-top: 1px solid var(--rule);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.principles strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-wrap: balance;
}

.principles span {
  text-wrap: pretty;
}

/* Contact: the page's close */

.contact {
  margin-top: clamp(5rem, 12vh, 8rem);
  padding: clamp(4rem, 10vh, 6.5rem) 0;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.contact-line,
.contact-mail {
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.contact-line {
  color: var(--ink-3);
}

.contact-mail a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
}

.foot {
  padding: 2rem 0 2.5rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* Tablet and phone */

@media (max-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "panel"
      "how";
  }

  .principles li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.375rem;
  }

  .panel {
    margin-top: 3.5rem;
  }

  .headline {
    max-width: 18ch;
  }
}

@media (max-width: 45rem) {
  .nav .nav-section {
    display: none;
  }

  .nav {
    gap: 1rem;
  }

  .panel-head {
    flex-direction: column;
    gap: 0.25rem;
  }

  .panel-head span {
    text-align: left;
  }
}

@media (max-width: 26rem) {
  .nav .pill {
    padding: 0.4375rem 0.625rem;
    font-size: 0.8125rem;
  }
}
