/* coralinelabs.org: the lab. The same family as Io (its type, its inks, its grain), on the quiet canvas instead of
   the sky; the one piece of sky on the page is Io itself. */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/inter.woff2") format("woff2")}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url("fonts/serif.woff2") format("woff2")}
:root{
  --t1:rgba(255,255,255,.94);--t2:rgba(255,255,255,.70);--t3:rgba(255,255,255,.48);
  --acc:#9fd3e0;--ok:#92d7ae;--warn:#f2c46b;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --serif:"Source Serif 4",Georgia,"Times New Roman",serif;
  --ease:cubic-bezier(.22,.9,.25,1);
  color-scheme:dark;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#141211;color:var(--t1);font:400 16px/1.55 var(--sans);-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit}
:focus-visible{outline:2px solid rgba(159,211,224,.8);outline-offset:3px;border-radius:8px}
::selection{background:rgba(159,211,224,.35)}
.wrap{width:min(1040px,calc(100% - 48px));margin-inline:auto}

.backdrop{position:fixed;inset:0;z-index:0;overflow:hidden;background:#141211}
.canvas{position:absolute;inset:0;background:
  radial-gradient(60% 46% at 86% 104%,rgba(244,163,132,.10),transparent 70%),
  radial-gradient(110% 80% at 50% -10%,#2b2826 0%,#1b1918 52%,#141211 100%)}
.grain{position:absolute;inset:0;opacity:.14;mix-blend-mode:overlay;pointer-events:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
.page{position:relative;z-index:1;min-height:100vh;display:flex;flex-direction:column}
main{flex:1}

.top{display:flex;align-items:center;justify-content:space-between;height:76px}
.brand{display:inline-flex;align-items:center;gap:11px;text-decoration:none;font:500 17px/1 var(--sans);letter-spacing:-.01em}
.org-mark{width:24px;height:24px;flex:none}
.top-nav{display:flex;align-items:center;gap:8px;font-size:14.5px}
.top-nav .pill{text-decoration:none;color:var(--t1);padding:9px 18px;border-radius:999px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);transition:background .2s}
.top-nav .pill:hover{background:rgba(255,255,255,.12)}

/* what the lab is, in one sentence */
.lead{padding:clamp(56px,13vh,140px) 0 clamp(64px,11vh,120px);max-width:880px}
.eyebrow{margin:0;font-size:14px;letter-spacing:.02em;color:var(--t3)}
.lead h1{margin:18px 0 0;font:400 clamp(40px,6vw,74px)/1.05 var(--serif);letter-spacing:-.024em;text-wrap:balance}
.lead .lede{margin:28px 0 0;max-width:640px;font-size:clamp(17px,1.5vw,19.5px);line-height:1.58;color:var(--t2);text-wrap:pretty}

/* the finely torn line, as in Io: here it names what comes next */
.tearline{display:flex;align-items:center;gap:18px;font-size:12.5px;letter-spacing:.02em;color:var(--t2)}
.tearline::before,.tearline::after{content:"";flex:1;height:16px;background:repeat-x left center/6px 16px
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='16'><path d='M0 10.5 L3 5.5 L6 10.5' fill='none' stroke='rgba(255,255,255,.42)' stroke-width='1.3' stroke-linejoin='round' stroke-linecap='round'/></svg>")}

/* what we work on */
.works{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:clamp(40px,7vh,64px) 0 clamp(72px,12vh,128px)}
.work{position:relative;display:flex;flex-direction:column;min-height:270px;padding:28px 30px 26px;border-radius:26px;overflow:hidden;text-decoration:none;
  background:rgba(255,255,255,.045);box-shadow:inset 0 0 0 1px rgba(255,255,255,.085)}
.work .kind{font-size:13px;color:var(--t3)}
.work h2{margin:8px 0 0;font:400 34px/1.1 var(--serif);letter-spacing:-.016em}
.work p{margin:14px 0 0;font-size:16px;line-height:1.6;color:var(--t2);max-width:30em}
.work .state{margin-top:auto;padding-top:22px;display:flex;align-items:center;gap:9px;font-size:13px;color:var(--t2)}
.work .state::before{content:"";width:7px;height:7px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--t3)}
.work .state.live::before{background:var(--ok);box-shadow:none}
/* Io is the one piece of sky here */
.work.io{isolation:isolate;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);transition:transform .3s var(--ease)}
.work.io::before{content:"";position:absolute;inset:0;z-index:-1;background:
  radial-gradient(58% 46% at 82% 84%,rgba(244,163,132,.55),transparent 70%),
  radial-gradient(70% 48% at 30% 12%,rgba(126,146,206,.34),transparent 72%),
  linear-gradient(180deg,#27406a 0%,#43609a 38%,#857fae 70%,#c59597 100%)}
.work.io:hover{transform:translateY(-2px)}
.work.io .kind{color:rgba(255,255,255,.72)}
.work.io p{color:rgba(255,255,255,.88)}
.work.io .state{color:var(--t1)}
.work.io .go{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-weight:500}
.work.io .go svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* how we work */
.ways{display:grid;grid-template-columns:1fr 1fr;gap:clamp(34px,5vw,56px) clamp(40px,7vw,88px);padding:clamp(44px,8vh,72px) 0 clamp(80px,13vh,140px)}
.way h3{margin:0;font:400 25px/1.2 var(--serif);letter-spacing:-.012em}
.way p{margin:11px 0 0;font-size:16px;line-height:1.62;color:var(--t2);max-width:31em}

.foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;padding:26px 0 34px;font-size:13.5px;color:var(--t3);border-top:1px solid rgba(255,255,255,.08)}
.foot nav{display:flex;flex-wrap:wrap;gap:6px 22px}
.foot a{color:var(--t2);text-decoration:none}
.foot a:hover{color:var(--t1)}

@media (max-width:760px){
  .wrap{width:calc(100% - 32px)}
  .top{height:64px}
  .works,.ways{grid-template-columns:1fr}
  .work{min-height:0;padding:24px 22px 22px}
  .work h2{font-size:30px}
  .foot{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){*{transition-duration:.01ms!important;animation:none!important}}
