@charset "utf-8";
/* Leftshark OÜ: shared stylesheet for leftshark.sh.
   Palette, type scale and dark mode are carried over from the original
   one-page site. No web fonts, no JavaScript, no inline styles: the CSP in
   nginx/default.conf only allows files served from this site. */

:root{
  --bg:#f4f2ec;
  --ink:#141414;
  --muted:#6d6a61;
  --line:#dcd8cd;
  --accent:#1a5cff;
  --pad:clamp(24px,5vw,56px);
  --section:clamp(56px,9vw,120px);
}
@media (prefers-color-scheme:dark){
  :root{--bg:#111110;--ink:#f3f1ea;--muted:#9a978c;--line:#2c2b27;--accent:#5b8cff}
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size:clamp(16px,1.5vw,18px);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit}
a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}
img{max-width:100%;height:auto}

.skip{position:absolute;left:var(--pad);top:-100px;padding:8px 12px;background:var(--ink);color:var(--bg);text-decoration:none;z-index:10}
.skip:focus{top:12px}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:var(--pad);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
main{flex:1}

/* ---- Header ---------------------------------------------------------- */
.site-header{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px 32px;
  flex-wrap:wrap;
  padding-bottom:clamp(48px,8vw,104px);
}
.mark{
  font-weight:700;
  font-size:clamp(18px,2.2vw,22px);
  letter-spacing:-0.02em;
  line-height:1.15;
  text-decoration:none;
}
.mark span{color:var(--accent)}
.site-nav{display:flex;flex-wrap:wrap;gap:6px clamp(18px,2.4vw,28px);font-size:clamp(15px,1.5vw,17px);line-height:1.3}
.site-nav a{text-decoration:none;color:var(--muted);padding:2px 0;border-bottom:1.5px solid transparent}
.site-nav a:hover{color:var(--ink)}
.site-nav a[aria-current="page"]{color:var(--ink);border-bottom-color:var(--accent)}

/* ---- Type ------------------------------------------------------------ */
.eyebrow,.label,.contact-label{
  margin:0;
  font-size:clamp(13px,1.4vw,15px);
  font-weight:400;
  line-height:1.3;
  text-transform:uppercase;
  letter-spacing:0.14em;
  color:var(--muted);
}
.accent{color:var(--accent)}

/* Home hero: same sizes as the original page */
.display{
  margin:clamp(16px,2vw,24px) 0 0;
  font-weight:700;
  letter-spacing:-0.035em;
  line-height:0.98;
  font-size:clamp(40px,9vw,120px);
}
.lede{
  margin:clamp(28px,4vw,52px) 0 0;
  max-width:22ch;
  font-weight:500;
  letter-spacing:-0.02em;
  line-height:1.05;
  font-size:clamp(24px,4.4vw,54px);
}
.contact{margin-top:clamp(36px,5vw,64px);display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.email-big{
  font-weight:600;
  font-size:clamp(23px,3.6vw,39px);
  letter-spacing:-0.012em;
  line-height:1.2;
  text-decoration:none;
  border-bottom:2px solid var(--line);
  overflow-wrap:anywhere;
}
.email-big:hover{border-bottom-color:var(--accent)}

/* Inner pages */
.title{
  margin:0;
  font-weight:700;
  letter-spacing:-0.035em;
  line-height:1;
  font-size:clamp(40px,7vw,88px);
}
.intro{
  margin:clamp(20px,3vw,36px) 0 0;
  max-width:30ch;
  font-weight:500;
  letter-spacing:-0.02em;
  line-height:1.15;
  font-size:clamp(22px,3vw,36px);
}
.big{
  font-size:clamp(20px,2.3vw,28px);
  font-weight:500;
  letter-spacing:-0.012em;
  line-height:1.3;
  max-width:34ch;
}
.arrow{font-weight:600;color:var(--accent);text-decoration:none}
.arrow::after{content:"\00a0\2192"}
.arrow:hover{text-decoration:underline;text-underline-offset:4px}

/* ---- Dancing sharks (home page, on the footer line; assets/shark.js) ---- */
/* The sharks dance at the left, standing on the footer's top border; the
   caption sits at the right end of that line. When the caption doesn't fit
   beside them (small phones), wrap-reverse puts it above the sharks, never
   below, so they stay on the floor. */
.dance{
  margin:auto 0 0; /* auto: spare room on a tall screen goes above them */
  padding-top:clamp(48px,7vw,88px);
  display:flex;
  flex-wrap:wrap-reverse;
  align-items:flex-start; /* = bottom: wrap-reverse flips the cross axis */
  gap:12px clamp(16px,3vw,32px);
}
/* When the sharks end <main>, the footer's border is their floor: no gap
   above it, and main stacks its content so spare room collects above them. */
main:has(> .dance:last-child){display:flex;flex-direction:column}
main:has(> .dance:last-child) + .site-footer{margin-top:0}
/* One fixed 34 x 12 character stage, so nothing shifts while they dance. */
.sharks{
  flex:none;
  margin:0;
  width:34ch;
  max-width:100%;
  height:13.8em; /* exactly 12 lines x line-height 1.15, so the feet touch the floor */
  overflow:hidden;
  font:400 clamp(10px,0.4vw + 8px,13px)/1.15 ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  font-variant-ligatures:none;
  text-align:left;
  color:var(--accent);
}
/* Five blues: shark.js gives every character one of them at random. */
.sharks .b1{color:#1e3a8a}
.sharks .b2{color:#0b3bb3}
.sharks .b3{color:#1a5cff}
.sharks .b4{color:#2f7bff}
.sharks .b5{color:#0a84c6}
/* White teeth on a dark mouth (white alone would vanish on the light page). */
.sharks .tt{color:#fff;background:#0b1a3d}
@media (prefers-color-scheme:dark){
  .sharks .b1{color:#5b8cff}
  .sharks .b2{color:#8fb3ff}
  .sharks .b3{color:#3d7bff}
  .sharks .b4{color:#4cc3ff}
  .sharks .b5{color:#a8c8ff}
  .sharks .tt{background:#13254f}
}
.sharks-caption{flex:1 1 14ch;max-width:40ch;margin:0 0 0 auto;padding-bottom:4px;text-align:right;font-size:clamp(13px,1.3vw,15px);line-height:1.45;color:var(--muted)}
.shark-toggle{margin-left:.4em}

/* ---- Sections: label column + content column ------------------------- */
.block{
  margin-top:var(--section);
  padding-top:24px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px 48px;
}
@media (min-width:860px){
  .block{grid-template-columns:minmax(160px,1fr) minmax(0,3fr)}
  .block > .label{padding-top:.4em}
}
.body > :first-child{margin-top:0}
.body > :last-child{margin-bottom:0}
.body p,.body ul{margin:0 0 1em;max-width:62ch}
.body .big{max-width:34ch}

.items{display:grid;grid-template-columns:minmax(0,1fr);gap:32px 48px}
@media (min-width:700px){.items{grid-template-columns:repeat(2,minmax(0,1fr))}}
.item h3{margin:0 0 8px;font-size:clamp(19px,2vw,24px);letter-spacing:-0.015em;line-height:1.2}
.item p{margin:0}

.facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:10px 28px;margin:0}
.facts dt{color:var(--muted)}
.facts dd{margin:0}
@media (max-width:480px){
  .facts{grid-template-columns:minmax(0,1fr);gap:2px}
  .facts dd{margin-bottom:12px}
}

/* ---- Contact page ---------------------------------------------------- */
.contact-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0 48px;margin-top:var(--section)}
@media (min-width:860px){.contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.contact-grid section{border-top:1px solid var(--line);padding:24px 0 40px}
.contact-grid .label{margin-bottom:14px}
.contact-grid p,.contact-grid address{margin:0;font-style:normal;font-size:clamp(18px,1.9vw,22px);line-height:1.4}

/* ---- Long-form text (privacy policy) --------------------------------- */
.updated{margin:16px 0 0;color:var(--muted)}
.prose{max-width:68ch;margin-top:clamp(40px,6vw,72px)}
.prose > :first-child{margin-top:0}
.prose h2{margin:2.2em 0 .6em;font-size:clamp(21px,2.2vw,26px);letter-spacing:-0.015em;line-height:1.2}
.prose h3{margin:1.6em 0 .4em;font-size:clamp(18px,1.8vw,20px);line-height:1.25}
.prose p,.prose ul,.prose ol{margin:0 0 1em}
.prose li{margin:.25em 0}
.prose a,.body a:not(.arrow){text-decoration:underline;text-decoration-color:var(--line);text-decoration-thickness:1.5px;text-underline-offset:3px}
.prose a:hover,.body a:not(.arrow):hover{text-decoration-color:var(--accent)}

/* ---- Cookie consent (built by assets/consent.js) --------------------- */
.consent{position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--bg);border-top:1px solid var(--line);box-shadow:0 -12px 32px rgba(0,0,0,.08)}
.consent[hidden]{display:none}
.consent-inner{max-width:1180px;margin:0 auto;padding:18px var(--pad);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 32px;font-size:clamp(14px,1.4vw,16px);line-height:1.45}
.consent p{margin:0;max-width:72ch}
.consent a{text-decoration:underline;text-decoration-color:var(--line);text-decoration-thickness:1.5px;text-underline-offset:3px}
.consent a:hover{text-decoration-color:var(--accent)}
.consent-actions{display:flex;gap:10px;flex-shrink:0}
/* Accept and Decline look the same on purpose: declining must be as easy as accepting. */
.consent button{font:inherit;font-weight:600;color:var(--ink);background:transparent;border:1.5px solid var(--ink);border-radius:999px;padding:9px 22px;cursor:pointer}
.consent button:hover{background:var(--ink);color:var(--bg)}
.consent button:focus-visible,.linklike:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.linklike{font:inherit;color:inherit;background:none;border:0;border-bottom:1px solid var(--line);padding:0;cursor:pointer;text-align:inherit}
.linklike:hover{color:var(--ink)}
.prose code{font-size:.9em}

/* ---- Footer: legal details on every page ----------------------------- */
.site-footer{
  margin-top:clamp(64px,10vw,140px);
  padding-top:28px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:28px 48px;
  font-size:clamp(13px,1.4vw,15px);
  line-height:1.5;
  color:var(--muted);
}
@media (min-width:860px){.site-footer{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}}
.site-footer a{text-decoration:none;border-bottom:1px solid var(--line)}
.site-footer a:hover{color:var(--ink)}
.legal{font-style:normal}
.legal p{margin:0}
.legal-name{color:var(--ink);font-weight:600}
.legal dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:2px 20px;margin:14px 0 0}
.legal dd{margin:0;color:var(--ink)}
.footer-side{display:flex;flex-direction:column;gap:20px}
.footer-nav{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.copyright{margin:0}
@media (min-width:860px){
  .footer-side{align-items:flex-end;text-align:right}
  .footer-nav{align-items:flex-end}
}

