/* Generated by brand/src/build.py from tokens/rainshadow.tokens.json. Do not edit. */
:root {
  --rs-ochre-50: #FBF4E9;
  --rs-ochre-100: #F6E7CE;
  --rs-ochre-200: #EFD3A5;
  --rs-ochre-300: #E5B872;
  --rs-ochre-400: #D9A052;
  --rs-ochre-500: #D08C3C;
  --rs-ochre-600: #B0722C;
  --rs-ochre-700: #8A5722;
  --rs-ochre-800: #6A421B;
  --rs-ochre-900: #442A11;
  --rs-neutral-50: #FAF8F4;
  --rs-neutral-100: #F2EFE9;
  --rs-neutral-200: #E4E1DB;
  --rs-neutral-300: #C9C8C6;
  --rs-neutral-400: #A2A5A8;
  --rs-neutral-500: #7C8085;
  --rs-neutral-600: #5C6167;
  --rs-neutral-700: #43484E;
  --rs-neutral-800: #2E3238;
  --rs-neutral-900: #16181B;
  --rs-basalt: #16181B;
  --rs-slate: #2E3238;
  --rs-ochre: #D08C3C;
  --rs-stone: #E4E1DB;
  --rs-paper: #FAF8F4;
  --rs-extra-basalt-raised: #1F2226;
  --rs-extra-body-on-dark: #CFCCC6;
  --rs-extra-hairline-dark: #262A2F;
  --rs-extra-black: #000000;
  --rs-font-wordmark: Newsreader, Georgia, serif;
  --rs-font-sans: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --rs-font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --rs-surface-canvas: #FAF8F4;
  --rs-surface-raised: #F2EFE9;
  --rs-border-hairline: #E4E1DB;
  --rs-border-strong: #C9C8C6;
  --rs-fill-accent: #D08C3C;
  --rs-focus-ring: #B0722C;
  --rs-text-primary: #16181B;
  --rs-text-body: #43484E;
  --rs-text-muted: #5C6167;
  --rs-link: #16181B;
  --rs-on-fill-accent: #16181B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
      --rs-surface-canvas: #16181B;
      --rs-surface-raised: #1F2226;
      --rs-border-hairline: #262A2F;
      --rs-border-strong: #43484E;
      --rs-fill-accent: #B0722C;
      --rs-focus-ring: #D9A052;
      --rs-text-primary: #E4E1DB;
      --rs-text-body: #CFCCC6;
      --rs-text-muted: #A2A5A8;
      --rs-link: #E4E1DB;
      --rs-on-fill-accent: #000000;
  }
}
:root[data-theme="dark"] {
  --rs-surface-canvas: #16181B;
  --rs-surface-raised: #1F2226;
  --rs-border-hairline: #262A2F;
  --rs-border-strong: #43484E;
  --rs-fill-accent: #B0722C;
  --rs-focus-ring: #D9A052;
  --rs-text-primary: #E4E1DB;
  --rs-text-body: #CFCCC6;
  --rs-text-muted: #A2A5A8;
  --rs-link: #E4E1DB;
  --rs-on-fill-accent: #000000;
}

/* rainshadowhq.com: one stylesheet for every page. scripts/build.py puts the brand's tokens (src/brand/rainshadow.css)
   in front of this file and publishes the pair as public/site.<hash>.css.
   The world ("one open drawer", .impeccable/surfaces/public-index-html.md): basalt ground, a slate tray with the
   mark's ochre ridge across its foot, a 2px ochre rule under the header, paper text, ochre status lines, one bold
   grotesk (Schibsted Grotesk, SIL OFL, self-hosted). Flat fills only: no gradient, glow or glass. Dark only. */

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

:root{
  --ground:var(--rs-basalt);          /* #16181B */
  --raised:var(--rs-extra-basalt-raised); /* #1F2226: the side-project cards */
  --tray:var(--rs-slate);             /* #2E3238 */
  --ochre:var(--rs-ochre);            /* #D08C3C */
  --ochre-hi:var(--rs-ochre-400);     /* hover on ochre */
  --paper:var(--rs-paper);            /* headings */
  --stone:var(--rs-stone);            /* strong body */
  --body:var(--rs-neutral-300);       /* #C9C8C6 */
  --muted:var(--rs-neutral-400);      /* #A2A5A8 */
  --hair:var(--rs-neutral-700);       /* #43484E */
  --hair-soft:var(--rs-neutral-800);  /* #2E3238 */
  --sans:"Schibsted Grotesk","Helvetica Neue",Arial,sans-serif;
  --gl:max(clamp(16px,5vw,72px),env(safe-area-inset-left,0px));
  --gr:max(clamp(16px,5vw,72px),env(safe-area-inset-right,0px));
  --ease:cubic-bezier(.16,1,.3,1);
  color-scheme:dark;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--ground);scrollbar-color:var(--hair) var(--ground)}
body{margin:0;background:var(--ground);color:var(--body);font:400 1.125rem/1.5 var(--sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-kerning:normal}
::selection{background:var(--rs-ochre-700);color:var(--paper)}
a{color:inherit;text-decoration:none;border-radius:.25rem}
:focus-visible{outline:2px solid var(--ochre);outline-offset:4px}
img,video,svg{display:block}
.wrap{max-width:81rem;margin:0 auto;padding-left:var(--gl);padding-right:var(--gr)}
@media (min-width:100rem){.wrap{max-width:96rem}}
.vh{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:var(--gl);top:-5rem;z-index:10;display:inline-flex;align-items:center;min-height:2.75rem;padding:0 1rem;background:var(--paper);color:var(--ground);font-weight:600;border-radius:.5rem}
.skip:focus{top:.75rem}
.arrow{width:1em;height:1em;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}

/* Header: the mark and the name, two links, a 2px ochre rule under it. */
header.top{border-bottom:2px solid var(--ochre)}
header.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-block:1.125rem}
.brand{display:inline-flex;align-items:center;gap:.75rem;min-height:2.75rem;color:var(--paper);font-size:1.3125rem;font-weight:700;letter-spacing:-.01em}
.brand svg{width:2.375rem;height:2.375rem;border-radius:22%}
nav.site{display:flex;gap:.25rem;margin-right:-.75rem}
nav.site a{display:inline-flex;align-items:center;min-height:2.75rem;padding-inline:.75rem;color:var(--stone);font-size:1.0625rem;font-weight:500}
nav.site a:hover{color:var(--paper)}
nav.site a[aria-current="page"]{color:var(--paper);text-decoration:underline 2px var(--ochre);text-underline-offset:.4em}
@media (max-width:24rem){
  .brand{font-size:1.1875rem;gap:.625rem}
  .brand svg{width:2.125rem;height:2.125rem}
  nav.site{margin-right:-.5rem;gap:0}
  nav.site a{padding-inline:.5rem;font-size:1rem}
}

/* Home: the line. */
.lede{text-align:center;padding-block:clamp(1.75rem,3vw,2.5rem) clamp(1.75rem,2.4vw,2rem)}
.lede h1{margin:0 auto;color:var(--paper);font-size:clamp(2.5rem,5.6vw,5rem);line-height:.98;letter-spacing:-.035em;font-weight:800;max-width:9.6em;text-wrap:balance}
.lede p{margin:clamp(.875rem,1.2vw,1rem) auto 0;font-size:clamp(1.125rem,1.6vw,1.375rem);line-height:1.4;color:var(--body);max-width:32ch;text-wrap:balance}
@media (min-width:51.25rem){.lede p{max-width:none}}

/* The tray. Every size in it is in --u, a hundredth of the tray's width, capped on wide screens so the labels stay in
   the first viewport. The ridge is the mark's own outline (brand 2.0.0: M0 52 L26 32 L34 44 L56 14 L64 26), stretched
   across the tray's foot. Each phone stands as tall as --c + --v x --b, where --v is the mark's height at the vertex
   that phone stands for: Kiokura the start (12), Tahona the first peak (32), Spile the dip (20), Croze the summit (50).
   So the line of the phones' tops is the ridge again, larger. */
.work{container-type:inline-size;scroll-margin-top:1rem}
.drawer{
  --u:clamp(.62cqw,calc((100svh - 31rem) / 45),1cqw);
  --col:20.75;--pad-top:4;--c:18.6;--b:.447;--ridge:20.7;
}
.tray{position:relative;isolation:isolate;overflow:hidden;background:var(--tray);border-radius:clamp(1rem,2.4cqw,1.75rem);
  padding-top:calc(var(--pad-top) * var(--u));
  display:grid;grid-template-columns:repeat(4,calc(var(--col) * var(--u)));justify-content:space-evenly;align-items:end}
.ridge{position:absolute;inset:auto 0 0;z-index:-1;width:100%;height:calc(var(--ridge) * var(--u));fill:var(--ochre)}
.slot{position:relative;display:flex;justify-content:center;height:calc((var(--c) + var(--v) * var(--b)) * var(--u));overflow:clip}
.slot[data-app="kiokura"]{--v:12;--s:.78}
.slot[data-app="tahona"]{--v:32;--s:1}
.slot[data-app="spile"]{--v:20;--s:.7}
.slot[data-app="croze"]{--v:50;--s:1}
/* Apple's bezel as shipped, over the app's screen (screen geometry from tahona-site). The tray's foot cuts the phone. */
.phone{position:relative;flex:none;width:calc(var(--s) * 100%);aspect-ratio:704/1439;align-self:flex-start}
.phone .bezel{position:relative;z-index:1;width:100%;height:auto;pointer-events:none}
.screen{position:absolute;left:5.3333%;top:2.5%;width:89.3333%;height:95%;border-radius:15.755% / 7.246%;overflow:clip;background:#000}
.screen video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top}
.screen.splash{display:grid;align-content:center;justify-items:center;background:var(--tile)}
.screen.splash img{width:52%;height:auto;border-radius:22.5%}

/* The clips' control is the stop cue (below), in the tray's top corner, showing only its dial until it says Play again. */
.cue.clips{position:absolute;top:calc(1.5 * var(--u));left:calc(1.5 * var(--u));z-index:2;color:var(--muted)}

/* The labels: one per phone, in the same columns; each is the link to that app's own site. */
.labels{list-style:none;margin:0;padding:clamp(1rem,1.9cqw,1.375rem) 0 0;display:grid;grid-template-columns:repeat(4,calc(var(--col) * var(--u)));justify-content:space-evenly;row-gap:1.5rem}
.labels li{min-width:0}
/* a label starts where its phone's bezel starts, so the name and the device read as one object */
.labels li[data-app="kiokura"]{padding-left:calc((1 - .78) / 2 * var(--col) * var(--u))}
.labels li[data-app="spile"]{padding-left:calc((1 - .7) / 2 * var(--col) * var(--u))}
.app{display:block;padding-block:.125rem .25rem}
.app .name{margin:0;color:var(--paper);font-size:clamp(1.1875rem,1.7vw,1.5rem);font-weight:700;letter-spacing:-.01em;line-height:1.2}
.app .name .arrow,.sp .t .arrow{display:inline-block;vertical-align:-.02em;margin-left:.3em;width:.75em;height:.75em;color:var(--muted);transition:color .2s,translate .3s var(--ease)}
.app .st{display:block;margin-top:.125rem;color:var(--ochre);font-size:.9375rem;font-weight:600;line-height:1.35;text-wrap:balance}
.app .line{display:block;margin-top:.375rem;font-size:1rem;line-height:1.45;color:var(--body);max-width:26ch;text-wrap:pretty}
a.app:hover .name span{text-decoration:underline 2px var(--ochre);text-underline-offset:.22em}
a.app:hover .arrow{color:var(--ochre);translate:.125rem -.125rem}

/* Phones: the tray holds the two live apps; the labels list all four, the live ones first. */
@media (max-width:51.24rem){
  .drawer{--u:1cqw;--col:41;--pad-top:5;--c:29;--b:.75;--ridge:32}
  .lede{padding-block:1.5rem}
  .tray{grid-template-columns:repeat(2,calc(var(--col) * var(--u)))}
  .tray .slot[data-app="kiokura"],.tray .slot[data-app="spile"]{display:none}
  .labels{grid-template-columns:repeat(2,calc(var(--col) * var(--u)))}
  .labels li[data-app]{padding-left:0}
  .labels li[data-app="tahona"]{order:-2}
  .labels li[data-app="croze"]{order:-1}
}

/* Also from the studio: two half-width cards. */
.side{padding-block:clamp(4rem,8vw,6rem) 0}
.side h2{margin:0 0 1.5rem;color:var(--paper);font-size:clamp(1.75rem,2.6vw,2.25rem);line-height:1.05;font-weight:800;letter-spacing:-.025em}
.side ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
.sp{display:grid;grid-template-columns:minmax(0,11rem) minmax(0,1fr);gap:1.375rem;align-items:center;height:100%;padding:1.125rem;background:var(--raised);border-radius:1.25rem;transition:background-color .2s}
.sp:hover{background:var(--tray)}
.sp img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:center;border-radius:.625rem;background:var(--tray)}
.sp .t{margin:0;color:var(--paper);font-size:1.375rem;font-weight:700;letter-spacing:-.01em;line-height:1.2}
.sp:hover .t .arrow{color:var(--ochre);translate:.125rem -.125rem}
.sp p{margin:.375rem 0 0;font-size:1rem;color:var(--body);text-wrap:pretty}
@media (max-width:51.24rem){
  .side ul{grid-template-columns:1fr;gap:1rem}
}
@media (max-width:30rem){
  .sp{grid-template-columns:minmax(0,7.5rem) minmax(0,1fr);gap:1rem;padding:.875rem}
  .sp .t{font-size:1.1875rem}
}

/* Company: the photo, who, the facts. Shared by the home section and /company. */
.co{display:grid;grid-template-columns:5fr 7fr;gap:clamp(1.75rem,5vw,4.5rem);align-items:center;padding-block:clamp(4.5rem,9vw,7rem)}
.co .photo{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:50% 30%;border-radius:1.25rem;background:var(--tray)}
.co h2,.co h1{margin:0 0 1.125rem;color:var(--paper);font-size:clamp(2rem,3.4vw,3rem);line-height:1.05;letter-spacing:-.03em;font-weight:800;text-wrap:balance}
.co .bio{margin:0;font-size:clamp(1.125rem,1.4vw,1.25rem);line-height:1.5;color:var(--stone);max-width:36em;text-wrap:pretty}
.co .bio + .bio{margin-top:1rem}
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,max-content));justify-content:start;gap:1.25rem 2.5rem;margin:2rem 0 0;padding-top:1.25rem;border-top:1px solid var(--hair)}
.facts div{display:flex;flex-direction:column-reverse;justify-content:flex-end}
.facts dt{font-size:.9375rem;color:var(--muted)}
.facts dd{margin:0;color:var(--paper);font-size:1.375rem;font-weight:700;letter-spacing:-.01em;line-height:1.25}
.facts dd small{display:block;color:var(--muted);font-size:.9375rem;font-weight:400;letter-spacing:0;line-height:1.5}
.more{display:inline-flex;align-items:center;gap:.5rem;min-height:2.75rem;margin-top:1.25rem;color:var(--paper);font-size:1.125rem;font-weight:600;text-decoration:underline 2px var(--ochre);text-underline-offset:.35em;border-radius:.25rem}
.more .arrow{transition:translate .3s var(--ease)}
.more:hover .arrow{translate:.25rem 0}
@media (max-width:51.24rem){
  .co{grid-template-columns:1fr}
  .co .photo{max-width:16.25rem}
}

/* /company: the same section as the page's top, then the apps and the address. */
.company .co{padding-block:clamp(2.5rem,6vw,5rem) clamp(3rem,6vw,4.5rem)}
.company .co figure{margin:0}
.company .co h1{font-size:clamp(2.5rem,5vw,4.5rem);line-height:.98;letter-spacing:-.035em}
.company figcaption{margin-top:.75rem;font-size:.9375rem;color:var(--muted)}
.company h2{margin:0 0 1.25rem;color:var(--paper);font-size:clamp(1.5rem,2.4vw,2rem);font-weight:800;letter-spacing:-.02em;line-height:1.1}
.company section + section{padding-top:clamp(3rem,6vw,4.5rem)}
.applist{list-style:none;margin:0;padding:0;max-width:60rem;border-top:1px solid var(--hair)}
.applist li{border-bottom:1px solid var(--hair)}
.row{display:grid;grid-template-columns:3rem minmax(0,1fr) auto;gap:.25rem 1.125rem;align-items:center;padding-block:1rem;border-radius:0}
.row img{grid-row:span 2;width:3rem;height:3rem;border-radius:22.5%}
.row .name{color:var(--paper);font-size:1.25rem;font-weight:700;letter-spacing:-.01em;line-height:1.2}
.row .name .st{margin-left:.625rem;color:var(--ochre);font-size:.9375rem;font-weight:600;letter-spacing:0}
.row .line{grid-column:2;font-size:1rem;color:var(--body)}
.row .go{grid-row:1 / span 2;grid-column:3;display:inline-flex;align-items:center;gap:.375rem;font-size:1rem;font-weight:500;color:var(--stone)}
.row .go .arrow{width:.875em;height:.875em;color:var(--muted);transition:color .2s,translate .3s var(--ease)}
a.row:hover .name{text-decoration:underline 2px var(--ochre);text-underline-offset:.22em}
a.row:hover .go .arrow{color:var(--ochre);translate:.125rem -.125rem}
.row .go.none{color:var(--muted)}
@media (max-width:40rem){
  .row{grid-template-columns:3rem minmax(0,1fr)}
  .row .go{grid-row:auto;grid-column:2;font-size:.9375rem}
  .row .name .st{display:block;margin:.125rem 0 0}
  .row img{grid-row:span 3;align-self:start}
}
.mail{display:inline-flex;align-items:center;min-height:2.75rem;color:var(--paper);font-size:clamp(1.375rem,3vw,2.25rem);font-weight:700;letter-spacing:-.02em;text-decoration:underline 2px var(--ochre);text-underline-offset:.3em;overflow-wrap:anywhere}
.mail:hover{text-decoration-color:var(--ochre-hi)}
.company .contact p{margin:0 0 .5rem;color:var(--body)}
.company .last{padding-bottom:clamp(4rem,8vw,6rem)}

/* Privacy, terms, not found: one column of prose. */
.doc .wrap{padding-block:clamp(2.5rem,6vw,4.5rem) clamp(4rem,8vw,6rem)}
.doc .prose{display:grid;gap:1rem;max-width:42rem}
.doc h1{margin:0 0 .5rem;color:var(--paper);font-weight:800;font-size:clamp(2.25rem,4.6vw,3.25rem);line-height:1.02;letter-spacing:-.03em;text-wrap:balance}
.doc h2{margin:1.25rem 0 0;color:var(--paper);font-size:1.25rem;font-weight:700;letter-spacing:-.01em}
.doc p{margin:0;font-size:1.0625rem;line-height:1.6;text-wrap:pretty}
.doc .prose a{color:var(--paper);text-decoration:underline 1px var(--ochre);text-underline-offset:.2em}
.doc .prose a:hover{text-decoration-thickness:2px}
.doc .updated{font-size:.9375rem;color:var(--muted)}

/* Footer: the line, the address, the legal pages. */
footer.foot{border-top:1px solid var(--hair-soft)}
footer.foot .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.25rem 1.5rem;padding-block:1.5rem calc(2.5rem + env(safe-area-inset-bottom,0px));font-size:.9375rem;color:var(--muted)}
footer.foot p{margin:0}
footer.foot nav{display:flex;flex-wrap:wrap;column-gap:1.25rem;margin-inline:-.25rem}
footer.foot nav a{display:inline-flex;align-items:center;min-height:2.75rem;min-width:2.75rem;padding-inline:.25rem}
footer.foot nav a:hover{color:var(--paper)}
@media (max-width:24rem){footer.foot nav{column-gap:.75rem}}

/* The page arrives: the line first, then the tray. Content is visible by default; motion only adds. */
@media (prefers-reduced-motion:no-preference){
  .lede h1,.lede p,.drawer{animation:rise .9s var(--ease) backwards}
  .lede p{animation-delay:.08s}
  .drawer{animation-delay:.16s}
  @keyframes rise{from{opacity:.4;translate:0 .75rem}}
}

/* The stop cue (DESIGN.md "Stop cue"; src/cue.js): the one control for anything that moves on its own, the home
   page's clips and the /music and /podcast stepper (WCAG 2.2.2). While it plays, a thin ochre ring around the pause
   glyph fills as the run's budget is spent. When it stops, the ring closes, the control fills ochre and widens into
   "Play again", and one ochre ring ripples out once and fades. Flat: the light is the ochre fill, never a glow.
   Paused (by the visitor, or Reduce Motion) its dial is ringed in ochre. Reduce Motion: no ring motion, no ripple. */
.cue{--cue-p:0;--cue-ms:300ms;position:relative;display:inline-flex;align-items:center;gap:.375rem;min-width:2.75rem;min-height:2.75rem;padding:0 .875rem 0 .375rem;border:0;border-radius:999px;background:transparent;color:var(--stone);font:600 .9375rem/1 var(--sans);cursor:pointer;transition:background-color .3s,color .3s}
.cue[hidden]{display:none}
.cue .dial{position:relative;display:grid;place-items:center;flex:none;width:2rem;height:2rem}
.cue .ring{position:absolute;inset:0;width:100%;height:100%;rotate:-90deg;fill:none;transition:opacity .3s}
.cue .ring circle{stroke:var(--hair);stroke-width:1;transition:stroke .2s}
.cue .ring .meter{stroke:var(--ochre);stroke-width:2;stroke-dasharray:94.25px;stroke-dashoffset:calc(94.25px * (1 - var(--cue-p)))}
.cue .glyph{position:relative;width:.875rem;height:.875rem;fill:currentColor}
.cue .glyph.play,.cue:is([data-state="paused"],[data-state="done"]) .glyph.pause{display:none}
.cue:is([data-state="paused"],[data-state="done"]) .glyph.play{display:block}
.cue:hover{color:var(--paper)}
.cue:hover .ring .track{stroke:var(--muted)}
.cue[data-state="paused"] .ring .track{stroke:var(--ochre)}
.cue[data-state="done"]{padding:0 1.125rem 0 .75rem;background:var(--ochre);color:var(--ground)}
.cue[data-state="done"] .dial{width:1rem}
.cue[data-state="done"] .ring{opacity:0}
.cue[data-state="done"]:hover{background:var(--ochre-hi);color:var(--ground)}
.cue::after{content:"";position:absolute;inset:0;border:2px solid var(--ochre);border-radius:inherit;opacity:0;pointer-events:none}
.cue.solo:not([data-state="done"]){padding:0;justify-content:center}
.cue.solo:not([data-state="done"]) .cue-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (prefers-reduced-motion:no-preference){
  .cue .ring .meter{transition:stroke-dashoffset var(--cue-ms) linear}
  .cue.ripple::after{animation:cue-ripple .7s var(--ease) both}
}
@keyframes cue-ripple{from{inset:0;opacity:1}to{inset:-.875rem;opacity:0}}
