@font-face {
  font-family: "Schibsted Grotesk";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/schibsted-400.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/schibsted-500.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/schibsted-700.woff2") format("woff2");
}

:root {
  --paper: #f3f5f4;
  --ink: #10211f;
  --muted: #55625e;
  --rule: #c7d0cc;
  --signal: #2546d8;
  --on-ink: #e9eeec;
  --on-ink-muted: #9fb0ab;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 78rem;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hero: the name is the design. "Change" sits on the left edge, "IT"
   drops to the right on its own line; the intro fills the gap beside it. */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 6rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "change change"
    "intro  it";
  align-items: end;
  column-gap: var(--gutter);
}

.wordmark {
  display: contents;
  font-weight: 700;
  font-size: clamp(5rem, 21vw, 17rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.wm-change,
.wm-it {
  display: block;
  font: inherit;
  font-weight: 700;
  font-size: clamp(5rem, 21vw, 17rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.wm-change {
  grid-area: change;
  margin-left: -0.06em;
}

.wm-it {
  grid-area: it;
  margin-right: -0.04em;
  margin-top: -0.02em;
}

.intro {
  grid-area: intro;
  max-width: 33ch;
  padding-bottom: 0.6em;
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  line-height: 1.4;
  color: var(--ink);
}

/* Services: three columns divided by hairlines, stacked on small screens. */
.services {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3.5rem, 8vw, 6.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service {
  border-top: 2px solid var(--ink);
  padding: 1.25rem 2rem 0 0;
}

.service + .service {
  padding-left: 2rem;
  border-left: 1px solid var(--rule);
}

.service h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.service p {
  color: var(--muted);
  max-width: 36ch;
}

/* Contact: the one dark band on the page. */
.contact {
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
}

.contact > * {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}

.contact h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--on-ink-muted);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-list dt {
  font-size: 0.9375rem;
  color: var(--on-ink-muted);
  margin-bottom: 0.35rem;
}

.contact-list dd {
  font-size: clamp(1.375rem, 2.6vw, 2.125rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.contact-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--on-ink-muted);
  transition: text-decoration-color 0.15s;
}

.contact-list a:hover {
  text-decoration-color: currentColor;
}

.contact :focus-visible {
  outline-color: var(--on-ink);
}

.footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  font-size: 0.875rem;
  padding: 0 var(--gutter) 2rem;
}

.footer p {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #2a3b38;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
}

@media (max-width: 52rem) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "change"
      "it"
      "intro";
  }

  .wm-it {
    justify-self: end;
  }

  .intro {
    padding: 1.75rem 0 0;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service,
  .service + .service {
    padding: 1rem 0 0;
    border-left: 0;
  }

  .contact-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
