:root {
  --paper: #eef1f5;
  --surface: #ffffff;
  --ink: #16203a;
  --muted: #56617a;
  --rule: #cfd6e1;
  --cobalt: #2446c7;
  --camp: #0f9483;
  --focus: #2446c7;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-4: clamp(2.75rem, 7vw + 1rem, 6rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 38rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10162a;
    --surface: #182038;
    --ink: #e8ecf4;
    --muted: #a3adc2;
    --rule: #2c3656;
    --cobalt: #8ea4ff;
    --camp: #3fd1bd;
    --focus: #8ea4ff;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--cobalt);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
}

.wordmark svg {
  width: 1.5rem;
  height: 1.5rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

main {
  flex: 1;
}

/* Hero */

.hero {
  padding: clamp(3rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
}

.hero h1 {
  margin: 0;
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 12ch;
}

.hero h1 .tick {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.08em;
  vertical-align: -0.04em;
  color: var(--cobalt);
}

.tick path {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero .tick path {
    stroke-dashoffset: 100;
    animation: draw 700ms cubic-bezier(0.65, 0, 0.35, 1) 250ms forwards;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero .lede {
  margin: 2rem 0 0;
  max-width: var(--measure);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
}

/* Work */

.work {
  border-top: 1px solid var(--rule);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem var(--gutter);
}

.work h2 {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.product {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 6px solid var(--camp);
  border-radius: 4px 14px 14px 4px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--ink);
  text-decoration: none;
}

.product:hover {
  border-color: var(--camp);
}

.product-name {
  margin: 0;
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.product-url {
  margin: 0.25rem 0 0;
  color: var(--camp);
  font-weight: 600;
}

.product-desc {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--muted);
}

.product-cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.about p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

/* Contact page */

.contact {
  padding: clamp(3rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 6rem);
}

.contact h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.contact .lede {
  margin: 1.25rem 0 0;
  max-width: var(--measure);
  font-size: var(--step-1);
  color: var(--muted);
}

.email-block {
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.email {
  font-size: clamp(1.375rem, 3.5vw + 0.5rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.btn {
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--ink);
}

.btn[hidden] {
  display: none;
}

.checklist {
  margin: 3rem 0 0;
  max-width: var(--measure);
}

.checklist h2 {
  margin: 0 0 0.75rem;
  font-size: var(--step-1);
  font-weight: 600;
}

.checklist ul {
  margin: 0;
  padding-left: 1.25rem;
}

.checklist li {
  margin-bottom: 0.4rem;
}

.checklist p {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 44rem) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
