:root {
  /* Palette. --accent is the bright orange, used only on dark bands (button, hero numbers);
     --brand is its darker form, legible as text and marks on white. */
  --bg: #FFFFFF;
  --text: #0B0F17;
  --brand: #C2410C;
  --accent: #F2541B;
  --hero-bg: #0B0F17;
  --hero-fg: #FFFFFF;
  --tint: #F3F4F6;
  --radius: 4px;

  /* Headlines in a modern sans; the serif stays for intro paragraphs and the large quote. */
  --display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --space-s: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-m: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  --space-l: clamp(2.5rem, 1.5rem + 5vw, 6rem);
  --space-xl: clamp(4rem, 2rem + 9vw, 10rem);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration-color: var(--brand); text-decoration-thickness: 0.08em; text-underline-offset: 0.22em; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap {
  width: min(100% - 2 * clamp(1.25rem, 5vw, 4rem), 78rem);
  margin-inline: auto;
}

.skip { position: absolute; left: -999rem; top: 0; padding: 0.75rem 1rem; background: var(--text); color: var(--bg); }
.skip:focus { left: 0; z-index: 1; }

/* Colour bands: the block keeps the page width, its background runs edge to edge */
.hero, main > .section:nth-child(even), main > .section.contact {
  /* one fill painted across the block and 100vw out to each side, so there is no seam */
  border-image: conic-gradient(var(--band) 0 0) fill 0 // 0 100vw;
}
.hero { --band: var(--hero-bg); color: var(--hero-fg); }
main > .section:nth-child(even) { --band: var(--tint); }
main > .section.contact { --band: var(--text); color: var(--bg); }
/* on a band, links stay the band's text colour and thicken on hover */
.hero a, .contact a, .door-employers a { text-decoration-color: currentColor; }
.hero a:not(.action-primary):hover, .contact a:hover, .door-employers a:hover { color: inherit; text-decoration-thickness: 0.14em; }
.hero :focus-visible { outline-color: var(--hero-fg); }
.contact :focus-visible, .door-employers :focus-visible { outline-color: var(--bg); }

.num { font: 600 1rem/1.3 var(--sans); }

/* Masthead: a plain text row that wraps, never a hamburger */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: var(--space-m);
  padding-block: var(--space-s);
}
.wordmark {
  font: 700 clamp(1.5rem, 1.25rem + 0.9vw, 1.95rem)/1 var(--display);
  letter-spacing: -0.035em;
  text-decoration: none;
  padding-block: 0.7rem;
}
.masthead nav { display: flex; flex-wrap: wrap; column-gap: clamp(1.25rem, 3vw, 2.5rem); }
.masthead nav a { display: inline-block; padding-block: 0.6rem; text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { text-decoration: underline; }
.masthead nav a[aria-current="page"] { text-decoration-thickness: 0.12em; }

/* Inner pages: heading block */
.crumb { font-size: 0.95em; margin-bottom: var(--space-s); }
.page-head h1 { font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.75rem); max-width: 15ch; }

/* Bulleted lists and term/definition rows */
.roles, .lines, .plain { list-style: disc; padding-left: 1.15em; }
.roles li, .lines li, .plain li { padding-block: 0.3rem; }
.roles li::marker, .lines li::marker { color: var(--brand); }
/* each term is a column, so two or three of them fill the page width */
.terms { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--space-m) var(--space-l); }
.terms dt { font: 700 clamp(1.4rem, 1.15rem + 1.2vw, 2rem)/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 1rem; }
.terms dd { margin: 0; }
/* tap targets of at least 44px without shifting the layout */
.terms dt a { display: inline-block; padding-block: 0.7rem; margin-block: -0.7rem; }
/* inline, so the link can wrap with its sentence; the padding only enlarges the tap area */
.crumb a, .also a, .terms dd a { padding-block: 0.8rem; }
.also { margin-top: var(--space-m); }
.prose > * + * { margin-top: var(--space-s); }
.sector > p { margin-top: var(--space-s); max-width: 40ch; }
/* policy page: heading in a left column, text in a wider right column */
.policy > div { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-l); padding-block: var(--space-s); }
.policy h2 { flex: 1 1 14rem; font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem); letter-spacing: -0.03em; }
.policy .body { flex: 2.4 1 28rem; }
.policy .body > * + * { margin-top: var(--space-s); }
.policy .body p { max-width: 72ch; }
.prose-cols { columns: 2 24rem; column-gap: var(--space-l); }
.prose-cols > * { break-inside: avoid; margin: 0 0 var(--space-s); }

/* Hero */
.hero {
  display: grid;
  gap: var(--space-l);
  padding-block: var(--space-l);
}
h1 {
  font: 700 clamp(2.75rem, 1.2rem + 5.6vw, 6rem)/1 var(--display);
  letter-spacing: -0.04em;
  max-width: 16ch;
  text-wrap: balance;
}
.lede { max-width: 54ch; margin-top: var(--space-m); font-size: 1.15em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; margin-top: var(--space-m); }
.action, .action-primary { display: inline-block; font-weight: 600; padding-block: 0.7rem; }
.action-primary { background: var(--accent); color: var(--text); padding-inline: 1.6rem; border-radius: var(--radius); text-decoration: none; }
.action-primary:hover { color: var(--text); background: var(--bg); }

/* phones and tablets: each fact is a row, number left and label right */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
  align-self: end;
}
.facts li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; align-items: baseline; }
.facts strong { font: 700 clamp(2rem, 1.5rem + 2.2vw, 3.25rem)/1 var(--display); letter-spacing: -0.03em; }
.hero .facts strong { color: var(--accent); }
.fact-label { font-size: 0.9em; line-height: 1.35; }
h1 br { display: none; }
/* a photo can take the hero's side column in place of a list */
.hero .photo { width: 100%; align-self: center; }
.hero .photo img { aspect-ratio: 4 / 3; max-height: 26rem; }
.hero .photo-top img { object-position: 50% 15%; }
/* contact details and "when it fits": same column, always stacked */
.facts-stack { gap: var(--space-m); }
.facts-stack li { grid-template-columns: 1fr; row-gap: 0.4rem; }
.facts-stack .fact-label { font-size: 1em; }
.fact-link { font: 400 clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem)/1.2 var(--serif); padding-block: 0.8rem; overflow-wrap: anywhere; }

/* shortcut: the one breakpoint. Phone width and sidebar width are nearly the
   same, so the facts column cannot switch on its own width; upgrade to a
   container query if the hero ever gains a third layout. */
@media (min-width: 64rem) {
  /* headline box shrinks to its longest line, so the side column sits right beside it */
  .hero { grid-template-columns: auto minmax(13rem, 1fr); column-gap: var(--space-l); }
  .hero h1 { width: max-content; max-width: 100%; }
  h1 br { display: inline; }
  .facts { gap: var(--space-m); }
  .facts li { grid-template-columns: 1fr; row-gap: 0.5rem; }
}

/* Sections */
.section { padding-block: var(--space-l); }
.section-head { margin-bottom: var(--space-m); }
h2 { font: 700 clamp(1.8rem, 1.3rem + 2.3vw, 3rem)/1.05 var(--display); letter-spacing: -0.035em; }

/* Narrow tall photo beside a wide column of prose */
.split { display: flex; flex-wrap: wrap; gap: var(--space-l); align-items: flex-start; }
.photo img { background: var(--tint); border-radius: var(--radius); }
.photo-portrait { max-width: 14rem; }
.photo-portrait img { aspect-ratio: 4 / 5; }
.photo-team { flex: 1 1 22rem; max-width: 32rem; }
.photo-team img { aspect-ratio: 4 / 3; }
/* stays tall and narrow on phones instead of filling the screen */
.photo-tall { flex: 1 1 15rem; max-width: min(24rem, 78%); }
.photo-tall img { aspect-ratio: 3 / 4; }
.photo-wide { margin-top: var(--space-l); margin-left: clamp(0rem, -6rem + 20vw, 14rem); }
.photo-wide img { aspect-ratio: 21 / 9; }

.prose { flex: 999 1 20rem; max-width: 40rem; }
/* on its own in a section, prose uses the full width: steps in two columns, paragraphs kept readable */
.section > .prose { max-width: none; }
.section > .prose > p { max-width: 62ch; }
.section > .prose > .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); column-gap: var(--space-l); }
.section > .prose > .lines { columns: 2 22rem; column-gap: var(--space-l); }
.section > .prose > .lines li { break-inside: avoid; }
.intro { font: 400 clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem)/1.3 var(--serif); letter-spacing: -0.01em; margin-bottom: var(--space-m); }
.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  padding-block: 0.6rem;
}
.steps li::before { content: counter(step); font: 700 1.4rem/1.35 var(--display); color: var(--brand); }

/* Sectors: uneven columns */
.sectors { display: flex; flex-wrap: wrap; gap: var(--space-l) var(--space-xl); }
.sector { flex: 5 1 17rem; }
.sector-wide { flex: 7 1 22rem; }
h3 { font: 700 clamp(1.4rem, 1.15rem + 1.2vw, 2rem)/1.1 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.roles { margin-top: var(--space-s); columns: 2 12rem; column-gap: var(--space-m); }
.roles li { break-inside: avoid; }

/* Two doors, employers given the weight */
.doors { display: flex; flex-wrap: wrap; gap: var(--space-m) var(--space-l); align-items: flex-start; }
.door > * + * { margin-top: var(--space-s); }
.door h3 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.08; }
.door-employers { flex: 7 1 24rem; background: var(--text); color: var(--bg); padding: var(--space-m); border-radius: var(--radius); }
.door-candidates { flex: 5 1 16rem; }

/* Statement: one sentence, set large */
.statement { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-l); padding-block: var(--space-l); }
.statement p {
  flex: 999 1 20rem;
  font: italic 400 clamp(2rem, 1.1rem + 4.4vw, 4.75rem)/1.08 var(--serif);
  letter-spacing: -0.025em;
  max-width: 19ch;
  margin-left: clamp(0rem, -4rem + 14vw, 10rem);
  text-wrap: balance;
}

/* Closing contact band */
.contact { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-m) var(--space-l); }
.contact h2 { flex: 1 1 20rem; font-size: clamp(2.5rem, 1.3rem + 4.8vw, 5.25rem); line-height: 1; letter-spacing: -0.04em; max-width: 12ch; text-wrap: balance; }
.contact-body { flex: 0 1 24rem; }
/* inner pages close with a smaller, page-specific heading */
.contact-slim { align-items: center; }
.contact-slim h2 { font-size: clamp(1.8rem, 1.3rem + 2.3vw, 3rem); max-width: 18ch; }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.25rem 2.5rem; margin-top: var(--space-s); }
.contact-links a { display: inline-block; padding-block: 0.8rem; font: 400 clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem)/1.2 var(--serif); }

.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem var(--space-m);
  padding-block: var(--space-m);
  font-size: 0.875em;
}
.colophon .wordmark { font-size: 1.4rem; padding: 0; margin-right: auto; }
.colophon nav { display: flex; flex-wrap: wrap; column-gap: 1.5rem; }
.colophon nav a { display: inline-block; padding-block: 0.8rem; }
/* address and copyright share one line when there is room, and stack when there is not */
.colophon .legal { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: var(--space-m); }
.colophon address a { display: inline-block; padding-block: 0.8rem; }
