:root{
  --paper:#EFEDE6;
  --ink:#14171C;
  --ink-soft:#565B63;
  --rule:#C9C5B8;
  --blue:#2452B0;
  --tint:#E3E0D6;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#14171C;
    --ink:#ECE9E0;
    --ink-soft:#A3A8B0;
    --rule:#343941;
    --blue:#8FB0F2;
    --tint:#22262D;
    color-scheme:dark;
  }
  :root:not([data-theme="light"]) .masthead img{filter:grayscale(15%) brightness(.92)}
}
:root[data-theme="dark"]{
    --paper:#14171C;
    --ink:#ECE9E0;
    --ink-soft:#A3A8B0;
    --rule:#343941;
    --blue:#8FB0F2;
    --tint:#22262D;
    color-scheme:dark;
}
:root[data-theme="dark"] .masthead img{filter:grayscale(15%) brightness(.92)}
:root[data-theme="light"]{color-scheme:light}
*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--paper);color:var(--ink);font-family:'Spectral',Georgia,serif}
a{color:inherit}
a:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.sans{font-family:'Schibsted Grotesk',system-ui,sans-serif}
.wrap{max-width:720px;margin:0 auto;padding:0 24px}

.masthead{border-bottom:3px solid var(--ink);padding:48px 0 28px;display:flex;align-items:center;gap:24px}
.masthead img{width:76px;height:76px;border-radius:50%;object-fit:cover;flex-shrink:0;filter:grayscale(15%)}
.masthead .title{font-size:32px;font-weight:600;letter-spacing:-0.01em;text-decoration:none}
.masthead .tagline{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:13px;color:var(--ink-soft);margin-top:6px}
.site-nav{display:flex;flex-wrap:wrap;gap:4px 24px;font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:14px;border-bottom:1px solid var(--rule);padding:4px 0}
.site-nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;color:var(--ink-soft);border-bottom:2px solid transparent}
.site-nav a:hover{color:var(--ink)}
.site-nav a[aria-current="page"]{color:var(--ink);font-weight:600;border-bottom-color:var(--ink)}

.intro{padding:36px 0 32px;border-bottom:1px solid var(--rule)}
.intro p{font-size:21px;line-height:1.5;max-width:60ch}

.lead{padding:48px 0 40px;border-bottom:1px solid var(--rule)}
.kicker{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:12px;color:var(--blue);font-weight:600;margin-bottom:14px;letter-spacing:.02em}
.lead h1{font-size:38px;line-height:1.18;font-weight:600;margin-bottom:18px}
.lead h1 a{text-decoration:none}
.lead h1 a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
.lead .dek{font-size:19px;color:var(--ink-soft);line-height:1.5;margin-bottom:22px}
.byline{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:12px;color:var(--ink-soft)}
.empty{font-size:19px;color:var(--ink-soft);line-height:1.6}

.index{padding:44px 0}
.index h2{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:12px;color:var(--ink-soft);letter-spacing:.02em;margin-bottom:24px;font-weight:600}
.entry{display:block;padding:22px 0;border-bottom:1px solid var(--rule);text-decoration:none;color:inherit}
.entry:first-of-type{padding-top:0}
.entry .cat{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:11px;color:var(--blue);font-weight:600;margin-bottom:6px}
.entry h3{font-size:23px;font-weight:600;margin-bottom:6px;line-height:1.3}
.entry:hover h3{text-decoration:underline;text-underline-offset:4px}
.entry p{font-size:15px;color:var(--ink-soft);line-height:1.55;max-width:60ch}
.entry .foot{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:11px;color:var(--ink-soft);margin-top:10px}

.about{padding:48px 0 56px}
.about h2{font-size:30px;font-weight:600;margin-bottom:18px;letter-spacing:-0.01em}
.about p{font-size:18px;line-height:1.7;max-width:62ch;margin-bottom:16px}
.about p:last-child{margin-bottom:0}
.index+.about{padding-top:8px}

.article{padding:36px 0 56px;border-bottom:1px solid var(--rule)}
.article p,.article li{font-size:18px;line-height:1.7;max-width:66ch}
.article p{margin-bottom:20px}
.article>p:first-of-type::first-letter{font-size:56px;float:left;line-height:.8;padding-right:8px;padding-top:6px;font-weight:600}
.article h2{font-size:26px;font-weight:600;margin:36px 0 14px;line-height:1.25}
.article h3{font-size:21px;font-weight:600;margin:28px 0 10px}
.article ul,.article ol{margin:0 0 20px 24px}
.article li{margin-bottom:8px}
.article blockquote{border-left:3px solid var(--ink);padding-left:18px;margin:24px 0;font-style:italic;color:var(--ink-soft)}
.article a{color:var(--blue)}
.article code{font-family:ui-monospace,Menlo,monospace;font-size:.85em;background:var(--tint);padding:1px 5px;border-radius:3px}
.article pre{background:var(--tint);padding:16px;border-radius:4px;overflow-x:auto;margin:0 0 20px}
.article pre code{background:none;padding:0}
.article img{max-width:100%;height:auto}
.article figure{margin:28px 0 32px}
.article figure img{display:block;width:100%;border:1px solid var(--rule)}
.article figcaption{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:13px;color:var(--ink-soft);margin-top:10px;line-height:1.5}
.article hr{border:0;border-top:1px solid var(--rule);margin:32px 0}
.article.page>p:first-of-type::first-letter{font-size:inherit;float:none;line-height:inherit;padding:0;font-weight:inherit}
.article h2:first-child{margin-top:0}
.role{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:13px;color:var(--ink-soft);margin:-6px 0 14px!important}
.project{padding:22px 0;border-bottom:1px solid var(--rule)}
.project:first-of-type{padding-top:4px}
.project .cat{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:11px;color:var(--blue);font-weight:600;margin-bottom:6px;letter-spacing:.02em}
.project h3{font-size:23px;font-weight:600;margin:0 0 6px;line-height:1.3}
.project p{font-size:16px;margin-bottom:8px}
.project .links{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:13px;margin:10px 0 0}
.project .links a{margin-right:14px}
.case{display:grid;grid-template-columns:128px 1fr;gap:6px 16px;margin:10px 0 4px}
.case dt{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:11px;font-weight:600;color:var(--ink-soft);letter-spacing:.02em;text-transform:uppercase;padding-top:5px}
.case dd{font-size:16px;line-height:1.6;max-width:56ch}
.more{padding-top:36px}
.now{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:14px 0;border-bottom:1px solid var(--rule);font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:13px;color:var(--ink-soft)}
.now[hidden]{display:none}
.now-label{font-size:11px;font-weight:600;color:var(--blue);letter-spacing:.02em}
.now-label::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--blue);margin-right:8px;animation:pulse 2.4s ease-in-out infinite}
.now a{color:var(--ink);font-weight:600}
.about a{color:var(--blue)}
.progress{position:fixed;top:0;left:0;width:100%;height:3px;background:var(--blue);transform-origin:0 50%;transform:scaleX(0);z-index:10;animation:read linear both;animation-timeline:scroll(root)}
@supports not (animation-timeline:scroll()){.progress{display:none}}
@keyframes read{to{transform:scaleX(1)}}
@keyframes pulse{50%{opacity:.25}}
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.18s}
.back{display:inline-block;margin-top:12px;font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:13px;color:var(--blue);text-decoration:none}

.colophon{padding:36px 0 56px;font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:13px;color:var(--ink-soft);border-top:3px solid var(--ink);text-align:center;line-height:1.7}
.colophon a{color:var(--blue)}

@media (prefers-reduced-motion:reduce){
  .progress{display:none}
  .now-label::before{animation:none}
  @view-transition{navigation:none}
}
@media (max-width:600px){
  .case{grid-template-columns:1fr;gap:2px 0}
  .case dd{margin-bottom:8px}
  .masthead{flex-direction:column;align-items:flex-start;gap:16px}
  .masthead img{width:64px;height:64px}
  .masthead .title{font-size:26px}
  .site-nav{gap:0 20px}
  .intro p{font-size:19px}
  .lead h1{font-size:28px}
}

/* Reader settings in the nav: theme switch and motion mode. Hidden until prefs.js runs. */
.prefs{margin-left:auto;display:flex;align-items:center;gap:6px}
.pref{font:500 12px 'Schibsted Grotesk',system-ui,sans-serif;letter-spacing:.04em;color:var(--ink-soft);background:none;border:1px solid var(--rule);border-radius:999px;padding:5px 12px;min-height:32px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.pref:hover{color:var(--ink);border-color:var(--ink-soft)}
.pref:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.pref[data-pref="motion"]::before{content:'';width:7px;height:7px;border-radius:50%;border:1.5px solid currentColor}
.pref[aria-pressed="true"]{color:var(--paper);background:var(--ink);border-color:var(--ink)}
.pref[aria-pressed="true"]::before{background:var(--blue);border-color:var(--blue)}

/* Motion mode. Only runs when the reader turns it on and their device allows motion. */
@media (prefers-reduced-motion:no-preference){
  /* Rules draw across like a press setting a page */
  :root[data-motion="on"] .masthead,:root[data-motion="on"] .colophon{position:relative;border-color:transparent}
  :root[data-motion="on"] .masthead::after,:root[data-motion="on"] .colophon::before{content:'';position:absolute;left:0;right:0;height:3px;background:var(--ink);transform-origin:0 50%;animation:rule-draw 1.1s cubic-bezier(.65,0,.15,1) both}
  :root[data-motion="on"] .masthead::after{bottom:-3px}
  :root[data-motion="on"] .colophon::before{top:-3px;animation-delay:.2s}
  :root[data-motion="on"] .masthead img{animation:ink-in 1s ease-out both}
  :root[data-motion="on"] .masthead .title,:root[data-motion="on"] .masthead .tagline{animation:rise .8s .15s cubic-bezier(.2,.7,.2,1) both}
  :root[data-motion="on"] .masthead .tagline{animation-delay:.3s}

  /* Headlines set in word by word */
  :root.motion-ready .w{display:inline-block;animation:set-word .7s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(.25s + var(--i) * 55ms)}
  :root.motion-ready .intro .w{animation-duration:.5s;animation-delay:calc(.2s + var(--i) * 12ms)}
  :root[data-motion="on"] .kicker{animation:kicker-in 1s .1s cubic-bezier(.2,.7,.2,1) both}
  :root[data-motion="on"] .lead .dek,:root[data-motion="on"] .lead .byline{animation:rise .8s .7s cubic-bezier(.2,.7,.2,1) both}
  :root[data-motion="on"] .lead .byline{animation-delay:.85s}

  /* Paragraphs and entries rise in as they scroll into view */
  :root.motion-ready .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
  :root.motion-ready .reveal.in{opacity:1;transform:none}

  /* Figures print top to bottom, with a blue scan line */
  :root.motion-ready .article figure.reveal{opacity:1;transform:none;position:relative}
  :root.motion-ready .article figure.reveal img{clip-path:inset(0 0 100% 0);transition:clip-path 1.4s cubic-bezier(.65,0,.25,1)}
  :root.motion-ready .article figure.reveal.in img{clip-path:inset(0 0 0 0)}
  :root.motion-ready .article figure.reveal::after{content:'';position:absolute;left:0;right:0;top:0;height:2px;background:var(--blue);box-shadow:0 0 12px var(--blue);opacity:0;pointer-events:none}
  :root.motion-ready .article figure.reveal.in::after{animation:scan 1.4s cubic-bezier(.65,0,.25,1) both}
  :root.motion-ready .article figure.reveal figcaption{opacity:0;transition:opacity .6s 1.1s}
  :root.motion-ready .article figure.reveal.in figcaption{opacity:1}

  /* Links and entry headlines underline like a pen stroke */
  :root[data-motion="on"] .entry h3{text-decoration:none;background:linear-gradient(currentColor,currentColor) 0 100%/0 1.5px no-repeat;transition:background-size .45s cubic-bezier(.65,0,.25,1)}
  :root[data-motion="on"] .entry:hover h3{text-decoration:none;background-size:100% 1.5px}
  :root[data-motion="on"] .article a{text-decoration:none;background:linear-gradient(currentColor,currentColor) 0 100%/100% 1px no-repeat;transition:background-size .4s ease}
  :root[data-motion="on"] .article a:hover{background-size:0 1px;background-position:100% 100%}

  /* Pages turn instead of fading */
  :root[data-motion="on"]::view-transition-old(root){animation:page-out .5s cubic-bezier(.4,0,.2,1) both}
  :root[data-motion="on"]::view-transition-new(root){animation:page-in .55s .05s cubic-bezier(.2,.7,.2,1) both}
}
@keyframes rule-draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes ink-in{from{opacity:0;filter:grayscale(100%) contrast(1.6) blur(3px);transform:scale(.94)}to{opacity:1}}
@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes set-word{from{opacity:0;transform:translateY(.45em) rotate(2deg);filter:blur(5px)}to{opacity:1;transform:none;filter:none}}
@keyframes kicker-in{from{opacity:0;letter-spacing:.4em}to{opacity:1;letter-spacing:.02em}}
@keyframes scan{0%{top:0;opacity:1}90%{opacity:1}100%{top:100%;opacity:0}}
@keyframes page-out{to{opacity:0;transform:perspective(1400px) translateX(-6%) rotateY(10deg)}}
@keyframes page-in{from{opacity:0;transform:perspective(1400px) translateX(6%) rotateY(-8deg)}}
@media (max-width:600px){.prefs{margin-left:0;width:100%;padding:4px 0 8px}}
