/* Johan Kringel — board & advisory profile
   One typeface (Schibsted Grotesk, self-hosted: no third-party requests, no cookies).
   Palette taken from Copenhagen's verdigris copper roofs and slate. */

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

:root {
  --paper: #f5f7f6;
  --ink: #1b2d31;
  --slate: #536468;
  --mist: #dfe6e4;
  --verdigris: #2f7466;
  --band: #1b2d31;
  --band-text: #e8eeec;
  --band-muted: #a9bab6;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --space: clamp(4rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--verdigris); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--verdigris); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

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

/* Header */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .975rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* Hero — the one loud moment: the name, set large, against the portrait */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 var(--space); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.hero-name {
  font-size: clamp(3.2rem, 9.5vw, 8.25rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -0.035em;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.hero-name span { display: block; }
.hero-name--full { font-size: clamp(3rem, 7.2vw, 6.4rem); }
.hero-name--page { font-size: clamp(2.6rem, 6.5vw, 5.5rem); }
.hero-role { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 600; margin-bottom: 1rem; }
.hero-lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--slate); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2rem; align-items: center; }
.hero-photo { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--mist); }

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  padding: .8rem 1.35rem;
  border-radius: 3px;
}
.button:hover { background: var(--verdigris); color: #fff; }

/* Sections: heading in a narrow left column, content on the right */
.section { padding: 0 0 var(--space); }
.section .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); }
.section-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); position: sticky; top: 1.5rem; align-self: start; }
.section-body { max-width: 46rem; }
.lead { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; font-weight: 500; max-width: var(--measure); margin-bottom: 1.5em; }

/* Situations */
.situations { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1.5rem; }
.situations li { padding-left: 1.25rem; border-left: 3px solid var(--verdigris); max-width: var(--measure); }
.situations strong { display: block; font-size: 1.15rem; margin-bottom: .2rem; }
.situations span { color: var(--slate); }

/* Capabilities grid */
.capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(1.5rem, 4vw, 3rem); }
.capabilities h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.capabilities p { color: var(--slate); font-size: 1rem; }
.sectors { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--mist); color: var(--slate); font-size: 1rem; }
.sectors strong { color: var(--ink); }

/* Wide photo */
.photo-band { padding-bottom: var(--space); }
figure.photo-band { margin-top: 0; margin-bottom: 0; }
.band .section, .contact .section { padding: 0; }
.photo-band img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--mist); }
.photo-band figcaption { margin-top: .6rem; font-size: .9rem; color: var(--slate); }

/* Timelines — a real chronology, so years lead each row */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .25rem 1.5rem; padding: 1.35rem 0; border-top: 1px solid var(--mist); }
.timeline > li:last-child { border-bottom: 1px solid var(--mist); }
.timeline .years { color: var(--slate); font-variant-numeric: tabular-nums; font-size: .975rem; padding-top: .1rem; }
.timeline h3 { font-size: 1.1rem; font-weight: 700; }
.timeline .org-note { color: var(--slate); font-size: .975rem; margin: .1rem 0 .5rem; }
.timeline .detail { font-size: 1rem; margin: 0; max-width: var(--measure); }
.timeline ul.detail { padding-left: 1.1rem; }
.timeline ul.detail li + li { margin-top: .35rem; }

.edu { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.edu li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; max-width: 42rem; }
.edu .years { color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
.edu .inst { color: var(--slate); }
.languages { margin-top: 2rem; color: var(--slate); }
.languages strong { color: var(--ink); }

/* Dark band */
.band { background: var(--band); color: var(--band-text); padding: var(--space) 0; }
.band .section-title { color: var(--band-text); }
.band p { color: var(--band-muted); max-width: var(--measure); }
.band .lead { color: var(--band-text); }
.band a { color: #9fd3c6; }
.band a:hover { color: #fff; }

/* Contact */
.contact { padding: var(--space) 0; }
.contact-email { font-size: clamp(1.5rem, 4.2vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--verdigris); }
.contact-links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-top: 1.75rem; }

.site-footer { padding: 2rem 0 2.5rem; border-top: 1px solid var(--mist); font-size: .9rem; color: var(--slate); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; }

/* Advisory page */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.modes h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.modes p { color: var(--slate); font-size: 1rem; }
.qa dt { font-weight: 700; margin-top: 1.5rem; }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: .3rem 0 0; color: var(--slate); max-width: var(--measure); }
.fit { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.fit li { max-width: var(--measure); }
.fit strong { display: block; }
.fit span { color: var(--slate); }

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { max-width: 26rem; aspect-ratio: 4 / 5; }
  .hero-name--full { font-size: clamp(2.6rem, 14vw, 5.5rem); }
  .section .wrap { grid-template-columns: 1fr; }
  .section-title { position: static; }
  .modes { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .capabilities { grid-template-columns: 1fr; }
  .timeline > li { grid-template-columns: 1fr; }
  .edu li { grid-template-columns: 1fr; gap: 0; }
  .photo-band img { aspect-ratio: 4 / 3; }
}

@media print {
  .site-header, .photo-band, .hero-photo, .hero-actions { display: none; }
  .band { background: none; color: var(--ink); }
  .band p, .band .lead, .band .section-title { color: var(--ink); }
}

/* Photo in the dark advisory band: the black studio backdrop melts into the band */
.band-aside { display: grid; gap: 2rem; align-content: start; }
.band .band-aside .section-title { position: static; }
.band-photo { width: 100%; max-width: 18rem; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .band-photo { max-width: 14rem; } }
