/* Calm variant (2026-10-04): a quiet, public-service look inspired by skatteetaten.no.
   White page, one readable column, system type, blue arrow links, mint notes, plum footer. */

:root {
  --ink: #1a1a1a;
  --muted: #595959;
  --line: #dcdcdc;
  --soft: #f4f4f4;
  --mint: #e3f2e8;
  --blue: #1a5ea8;
  --blue-dark: #144a85;
  --focus: #cde1f9;
  --plum: #2f1b2b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 18px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px; background: var(--focus); border-radius: 2px;
}

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 60; background: #fff; padding: 10px 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ───── header ───── */
.site-head { border-bottom: 3px solid var(--plum); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { font-size: 18px; }
.brand span { font-size: 14px; color: var(--muted); }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 16px; font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* ───── type ───── */
h1 { font-size: clamp(34px, 4.6vw, 46px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -.005em; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--blue); text-decoration: underline; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 700; }
.lead { font-size: clamp(19px, 1.9vw, 21px); line-height: 1.55; max-width: 38em; }
.kicker { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.small { font-size: 16px; color: var(--muted); }

/* arrow links, the way public-service sites mark the next step */
.go { font-weight: 700; }
.go::before { content: "→\00a0"; text-decoration: none; display: inline-block; }
.go--out::after { content: "\00a0↗"; display: inline-block; }
.links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; font-size: 17px; }

/* ───── hero ───── */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.hero .lead { margin-top: 18px; max-width: 34em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 22px; font-size: 16px; color: var(--muted); }

.notice { background: var(--mint); padding: clamp(22px, 3vw, 32px); margin-top: clamp(32px, 4vw, 48px); max-width: 760px; }
.notice h2 { font-size: 21px; line-height: 1.3; }
.notice p { margin-top: 8px; }
.notice .links { margin-top: 12px; }

/* ───── sections ───── */
.block { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.block > .wrap > h2 + .lead, .block > .wrap > .lead { margin-top: 14px; }
.tint { background: var(--soft); border-top: 0; }

/* four lanes as cards with a rule underneath */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 32px; margin-top: clamp(28px, 3.5vw, 44px); }
.card { padding: 0 0 24px; border-bottom: 2px solid var(--ink); }
.card svg { width: 34px; height: 34px; color: var(--plum); margin-bottom: 14px; }
.card h3 { font-size: 20px; }
.card .q { display: block; font-size: 16px; font-weight: 600; color: var(--muted); margin: 2px 0 8px; }
.card p { font-size: 16px; line-height: 1.55; }

/* work index */
.index { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; margin-top: clamp(24px, 3vw, 36px); }
.index a { display: block; padding: 18px 0 20px; border-bottom: 1px solid var(--ink); text-decoration: none; color: var(--ink); }
.index a span { display: block; font-size: 14px; color: var(--muted); }
.index a strong { display: block; margin-top: 4px; font-size: 19px; line-height: 1.3; color: var(--blue); }
.index a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* ───── a project ───── */
.work .split { margin-top: clamp(24px, 3vw, 36px); }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 56px; align-items: start; }
  .split--media-left { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.stack > * + * { margin-top: 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; font-weight: 600; padding: 4px 12px; border: 1px solid #b9b9b9; border-radius: 999px; background: #fff; }

.credits { background: var(--soft); padding: 18px 22px; display: grid; gap: 10px; }
.tint .credits { background: #fff; }
.credits div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; font-size: 16px; line-height: 1.5; }
.credits dt { font-weight: 700; }
.note { background: var(--mint); padding: 16px 20px; font-size: 16px; line-height: 1.55; }
.note strong { font-weight: 700; }

.shot { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.shot--wide { margin-top: clamp(24px, 3vw, 36px); }
.two-up, .thumbs { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 700px) { .two-up { grid-template-columns: 1fr 1fr; } .thumbs { grid-template-columns: repeat(3, 1fr); } }
.thumbs figcaption { padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--muted); border-top: 1px solid var(--line); }
.media > * + * { margin-top: 16px; }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .phones { grid-template-columns: repeat(2, 1fr); } }
.phones img { border-radius: 14px; border: 1px solid var(--line); }

.brandkit { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.brandkit img { width: 72px; height: 72px; border-radius: 16px; }
.swatches { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 18px; font-size: 14px; }
.swatches li { display: flex; align-items: center; gap: 8px; }
.swatches li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.brandkit-note { font-size: 15px; color: var(--muted); }

/* VA documents */
.doc { display: grid; gap: 24px; padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 900px) { .doc { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; } }
.doc-copy > * + * { margin-top: 12px; }
.doc-copy p { font-size: 17px; }
.doc-copy .with { font-size: 16px; color: var(--muted); }
.brochure { display: grid; grid-template-columns: .34fr 1fr; gap: 10px; align-items: start; }
.deck { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.brochure img, .deck img, .report img { border: 1px solid var(--line); border-radius: 4px; }
.redacted { background: var(--soft); padding: 26px; display: flex; flex-direction: column; gap: 9px; border-radius: 4px; }
.redacted-h { font-weight: 700; font-size: 18px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.redacted-s { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.redacted i { display: block; height: 8px; width: var(--w); background: #cfcfcf; border-radius: 2px; }

/* book */
.pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pages img { border: 1px solid var(--line); border-radius: 4px; }
.pull { border-left: 4px solid var(--plum); padding: 4px 0 4px 18px; font-size: 20px; line-height: 1.45; font-style: italic; }
.more { margin-top: clamp(32px, 4vw, 48px); }
.more h3 { font-size: 17px; }
.more ul { margin-top: 8px; }

/* page galleries (behaviour from ../site.js) */
.doc-gallery { margin-top: clamp(28px, 3.5vw, 40px); }
.dg-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 19vw, 220px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; }
.dg-page { all: unset; cursor: zoom-in; scroll-snap-align: start; display: grid; gap: 8px; }
.dg-page img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.dg-page:hover img { border-color: var(--blue); }
.dg-page:focus-visible img { outline: 3px solid var(--blue); outline-offset: 2px; }
.dg-page span { font-size: 13px; font-weight: 600; color: var(--muted); }
.dg-controls { display: flex; gap: 10px; margin-top: 6px; }
.dg-nav { font: inherit; font-size: 18px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blue); background: #fff; color: var(--blue); cursor: pointer; }
.dg-nav:hover { background: var(--blue); color: #fff; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: #141414; display: flex; flex-direction: column; color: #fff; font-family: var(--font); }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-size: 15px; font-weight: 600; }
.lb-close { font: inherit; background: none; border: 2px solid rgb(255 255 255 / .6); color: #fff; border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.lb-stage { flex: 1 1 auto; min-height: 0; padding: 0 12px; display: flex; align-items: center; justify-content: center; overflow: auto; overscroll-behavior: contain; }
.lb-stage.is-zoomed { align-items: flex-start; justify-content: flex-start; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; margin: auto; object-fit: contain; background: #fff; cursor: zoom-in; }
.lb-stage.is-zoomed img { max-width: none; max-height: none; margin: 0 auto; cursor: zoom-out; }
.lb-hint { font-size: 13px; font-weight: 500; color: rgb(255 255 255 / .65); white-space: nowrap; }
@media (max-width: 700px) { .lb-hint { display: none; } }
.lb-bottom { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 14px 18px 20px; }
.lb-bottom button { font: inherit; font-size: 20px; width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .6); background: none; color: #fff; cursor: pointer; }
.lb-bottom button:disabled { opacity: .3; cursor: default; }
.lb-count { font-size: 15px; font-weight: 600; min-width: 5em; text-align: center; }

/* ───── back to top + footer ───── */
.to-top { text-align: center; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.to-top a { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; text-decoration: none; }
.to-top a::before { content: "↑"; display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid currentColor; border-radius: 50%; font-size: 18px; }
.to-top a:hover { text-decoration: underline; }

.site-foot { background: var(--plum); color: #fff; padding: clamp(48px, 6vw, 72px) 0 32px; }
.site-foot a { color: #fff; }
.site-foot a:focus-visible { background: rgb(255 255 255 / .15); outline-color: #fff; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; } }
.about { display: flex; gap: 20px; align-items: flex-start; }
.about img { width: 96px; height: 96px; border-radius: 50%; flex: none; }
.about p { font-size: 17px; line-height: 1.6; color: rgb(255 255 255 / .9); }
.site-foot h2 { font-size: 26px; }
.site-foot .email { display: inline-block; margin-top: 10px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; overflow-wrap: anywhere; }
.copy { margin-top: 48px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .25); font-size: 14px; color: rgb(255 255 255 / .75); }

/* ───── groups of work (2026-10-04): Writing, Print and presentations, Brands, websites and apps ───── */
.group-head { padding: clamp(56px, 7vw, 96px) 0 clamp(28px, 3.5vw, 40px); border-top: 4px solid var(--plum); }
.group-head h2 { font-size: clamp(32px, 4vw, 42px); line-height: 1.15; }
.group-head .lead { margin-top: 10px; color: var(--muted); }
.group-head + .block { border-top: 1px solid var(--line); }
.work-title { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; font-weight: 700; }
.work-title a { color: inherit; text-decoration: none; }
.work-title a:hover { color: var(--blue); text-decoration: underline; }

.index-groups { display: grid; gap: 36px 40px; margin-top: clamp(24px, 3vw, 36px); }
@media (min-width: 900px) { .index-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.index-group h3 { font-size: 18px; padding-bottom: 10px; border-bottom: 4px solid var(--plum); }
.index-group h3 a { color: var(--ink); text-decoration: none; }
.index-group h3 a:hover { color: var(--blue); text-decoration: underline; }
.index-groups .index { grid-template-columns: 1fr; margin-top: 0; }

/* ───── how I work: the "Finish the underside" essay (2026-10-04) ───── */
.essay { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); }
.essay .wrap > * { max-width: 40rem; }
.essay h1 { margin-top: 4px; }
.essay .lead { margin-top: 18px; font-size: clamp(20px, 2.1vw, 23px); line-height: 1.5; }
.essay-body { margin-top: 32px; padding-top: 32px; border-top: 4px solid var(--plum); }
.essay-body p { font-size: 19px; line-height: 1.7; margin: 0 0 1.15em; }
.essay-body .turn { font-weight: 700; }
.essay-body .sign { margin: 32px 0 0; font-weight: 700; }
.essay-links { margin-top: 40px; }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.about-text p + p { margin-top: 10px; }

/* ───── VA News features (2026-10-04) ───── */
.stories { display: grid; gap: 16px; margin-top: clamp(24px, 3vw, 36px); }
@media (min-width: 900px) { .stories { grid-template-columns: 1fr 1fr; } }
.story { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.story .when { font-size: 14px; font-weight: 600; color: var(--muted); }
.story h4 { margin: 0; font-size: 20px; line-height: 1.3; }
.story h4 a { color: var(--ink); text-decoration: none; }
.story h4 a:hover { color: var(--blue); text-decoration: underline; }
.story p { margin: 0; font-size: 16px; line-height: 1.55; }
.story p:last-child { margin-top: auto; padding-top: 6px; }

/* ───── how I work: faint technical drawing in the right margin (2026-10-04) ───── */
.margin-drawing { display: none; }
@media (min-width: 1000px) {
  .essay .wrap { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 72px); }
  .essay .wrap > * { grid-column: 1; }
  .essay .wrap > .margin-drawing {
    display: block; grid-column: 2; grid-row: 1 / span 6; align-self: start;
    position: sticky; top: 32px; max-width: 400px; justify-self: end; width: 100%;
    opacity: .32; pointer-events: none; user-select: none;
  }
  .margin-drawing svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 64px); }
}
