:root {
  --paper: #F1EFE8;
  --paper-bright: #F8F6EF;
  --ink: #14211D;
  --ink-soft: #1E342E;
  --muted: #4F635D;
  --muted-inverse: #9FAEA9;
  --accent: #2A6B72;
  --rule: #C8D0CC;
  --font-display: 'Schibsted Grotesk', Inter, sans-serif;
  --font-sans: Inter, system-ui, sans-serif;
  --font-mono: 'Source Code Pro', monospace;
  --ease-sail: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--paper-bright); }

.page { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.eyebrow { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.eyebrow--inverse { color: var(--muted-inverse); }
.mono { font-family: var(--font-mono); }

.topbar { height: 56px; border-bottom: 1px solid rgba(20, 33, 29, .12); display: flex; align-items: center; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--font-display, "Schibsted Grotesk", sans-serif); font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

.main { flex: 1; position: relative; }

.hero { padding: 112px 0 96px; position: relative; }
.hero__body { grid-column: 2 / span 9; min-width: 0; }
.hero .eyebrow { margin-bottom: 24px; }
.display { font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 7vw, 96px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 28px; text-wrap: balance; }
.display em { color: var(--accent); font-style: normal; }
.lede { font-family: var(--font-display); font-weight: 400; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--ink-soft); margin: 0; max-width: 44ch; text-wrap: pretty; }

.section { border-top: 1px solid var(--rule); padding: 56px 0 88px; scroll-margin-top: 16px; }
.section--people { padding-bottom: 96px; }
.section__label { grid-column: 1 / span 12; }

.services { grid-column: 2 / span 11; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.service { display: flex; flex-direction: column; gap: 10px; }
.service__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.service h3 { font-size: 20px; font-weight: 600; margin: 0; line-height: 1.2; }
.service p { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0; text-wrap: pretty; }

.people { grid-column: 2 / span 11; display: flex; flex-direction: column; gap: 56px; }
.person { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px; }
.person__photo { margin: 0; width: min(320px, 100%); display: flex; flex-direction: column; gap: 8px; }
.person__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 38%; border-radius: 2px; background: #0B0B0B; }
.person__photo figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.person__body { flex: 1 1 280px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.person__head { display: flex; flex-direction: column; gap: 6px; }
.person h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -.035em; margin: 0; }
.person__role { font-size: 14px; font-weight: 500; color: var(--accent); }
.person p { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 40ch; text-wrap: pretty; }
.person a { font-size: 15px; align-self: flex-start; }

.footer { background: var(--ink); color: var(--paper-bright); scroll-margin-top: 16px; }
.footer__inner { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 56px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.footer__cta { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.footer__headline { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.button { font-size: 15px; font-weight: 500; background: var(--paper-bright); color: var(--ink); text-decoration: none; padding: 12px 20px; border-radius: 4px; transition: background 140ms var(--ease-sail); }
.button:hover { background: #FFFFFF; }
.footer__meta { border-top: 1px solid rgba(248, 246, 239, .16); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-inverse); }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 72px 0 64px; }
  .hero__body, .services, .people { grid-column: 1 / -1; }
}

/* Blogg */
.hero--small { padding: 80px 0 56px; display: flex; flex-direction: column; }
.display--small { font-size: clamp(36px, 5vw, 64px); }
.post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 40px; max-width: 720px; }
.post-list__item { display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: baseline; }
.post-list__item time { font-size: 13px; color: var(--accent); }
.post-list__item h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
.post-list__item h2 a { text-decoration: none; }
.post-list__item h2 a:hover { text-decoration: underline; }
.post-list__item p { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0; text-wrap: pretty; }
.post { padding: 80px 0 96px; max-width: 720px; }
.post__head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.post__head .eyebrow a { color: inherit; text-decoration: none; }
.post__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.prose { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.prose p, .prose ul, .prose ol, .prose pre, .prose blockquote { margin: 0 0 1.25em; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 2em 0 .6em; color: var(--ink); }
.prose h3 { font-size: 20px; font-weight: 600; margin: 1.6em 0 .5em; color: var(--ink); }
.prose li { margin-bottom: .35em; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--paper-bright); padding: .1em .35em; border-radius: 2px; }
.prose pre { font-family: var(--font-mono); font-size: 14px; line-height: 1.5; background: var(--ink); color: var(--paper-bright); padding: 20px 24px; border-radius: 2px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 20px; color: var(--muted); }
.prose img { max-width: 100%; height: auto; border-radius: 2px; }
@media (max-width: 720px) {
  .hero--small { padding: 56px 0 40px; }
  .post-list__item { grid-template-columns: 1fr; gap: 6px; }
}
