/* nocode.lt. One stylesheet for the landing and the blog.
   Plain, readable, no decoration that does not carry meaning.

   Contrast on paper #F2EEE5, all above the 7:1 target:
     ink       #14110D  16.3:1
     ink-soft  #3A362F  10.4:1
     link      #4A25A8   8.6:1
   The brand violet #7A4DE5 is 4.5:1, so it is never used for text.
   It survives as rules, marks and focus rings only. */

@font-face{font-family:'Geist';font-style:normal;font-weight:300 700;font-display:swap;src:url(/fonts/Geist-300-600-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Geist';font-style:normal;font-weight:300 700;font-display:swap;src:url(/fonts/Geist-300-600-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

:root{
  --paper:#F2EEE5;
  --paper-deep:#EAE5D9;
  --ink:#14110D;
  --ink-soft:#3A362F;
  --link:#4A25A8;
  --accent:#7A4DE5;
  --rule:rgba(20,17,13,.22);
  --rule-soft:rgba(20,17,13,.12);
  --gutter:clamp(20px,4vw,64px);
  --maxw:1280px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  background:var(--paper);color:var(--ink);
  font-family:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Helvetica,sans-serif;
  font-weight:400;font-size:18px;line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
@media (min-width:1200px){ body{font-size:19px} }
img{max-width:100%;height:auto;display:block}
a{color:var(--link);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
::selection{background:var(--accent);color:#fff}

.shell{max-width:var(--maxw);margin:0 auto;padding-inline:var(--gutter) !important}
.skip{position:absolute;left:-9999px}
.skip:focus{position:static;display:inline-block;padding:12px 0}

/* ---------------------------------------------------------------- nav */
.nav{
  display:flex;align-items:center;justify-content:space-between;
  gap:24px;flex-wrap:wrap;padding:20px 0;border-bottom:1px solid var(--rule);
}
.mark{
  display:inline-flex;align-items:center;gap:10px;
  font-size:21px;font-weight:600;color:var(--ink);text-decoration:none;letter-spacing:.01em;
}
.mark .dot{width:10px;height:10px;background:var(--accent);flex:none}
.nav-links{display:flex;align-items:center;gap:24px;flex-wrap:wrap;font-size:16px}
.nav-links a{color:var(--ink);text-decoration:none;padding:4px 0;border-bottom:2px solid transparent}
.nav-links a:hover{border-bottom-color:var(--ink)}
.nav-links a[aria-current="page"]{border-bottom-color:var(--accent)}
.langs{display:flex;align-items:center;gap:12px;font-size:16px}
.langs a{color:var(--ink-soft);text-decoration:none}
.langs a:hover{color:var(--ink);text-decoration:underline}
.langs span[aria-current]{color:var(--ink);font-weight:600}

/* -------------------------------------------------------------- bands */
.band{border-bottom:1px solid var(--rule);padding:64px 0}
.band:last-of-type{border-bottom:0}
.band-grid{display:grid;grid-template-columns:minmax(200px,1fr) minmax(0,2fr);gap:40px 56px;align-items:start}
.band-label{padding-top:2px}
.band-label p{color:var(--ink-soft);margin-top:14px;font-size:18px;max-width:30ch}
.band-body > * + *{margin-top:20px}
.measure{max-width:62ch}

h1,h2,h3{font-weight:600;letter-spacing:-0.012em;line-height:1.12;color:var(--ink)}
h1{font-size:clamp(34px,4.4vw,56px)}
h2{font-size:clamp(26px,2.7vw,32px);line-height:1.18}
h3{font-size:clamp(19px,1.7vw,22px);line-height:1.3}
.lead{font-size:clamp(20px,2vw,24px);line-height:1.45;max-width:46ch;font-weight:500}

/* hero */
.hero{padding:72px 0 56px;border-bottom:1px solid var(--rule)}
.hero.bare{border-bottom:0}
.hero.tight{border-bottom:0;padding-bottom:8px}
.hero h1{max-width:20ch}
.hero p{margin-top:24px;max-width:58ch;font-size:clamp(19px,1.7vw,21px);line-height:1.55}
.facts{
  display:flex;flex-wrap:wrap;gap:16px 48px;margin-top:40px;
  padding-top:28px;border-top:1px solid var(--rule-soft);
}
.facts div{max-width:30ch}
.facts b{font-weight:600;color:var(--ink)}
.actions{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:center;margin-top:36px}
.btn{
  display:inline-block;background:var(--ink);color:var(--paper);
  padding:15px 28px;border-radius:4px;font-size:18px;font-weight:600;
  text-decoration:none;border:2px solid var(--ink);
}
.btn:hover{background:#000;border-color:#000;color:var(--paper)}
.btn-note{color:var(--ink-soft)}
/* the one line under a mailto button that points at the privacy policy */
.cta-legal{margin-top:14px;max-width:56ch;color:var(--ink-soft);font-size:16px}

/* a plain notice band */
.notice{border-bottom:1px solid var(--rule);background:var(--paper-deep)}
.notice .shell{padding-block:22px}
.notice p{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline}
.notice b{font-weight:600}

/* definition lists */
.deflist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 48px;margin-top:0}
.deflist > div{border-top:1px solid var(--rule-soft);padding-top:16px}
.deflist dt{font-size:19px;font-weight:600;margin-bottom:6px}
.deflist dd{color:var(--ink);max-width:44ch}

/* numbered process rows */
.steps{display:flex;flex-direction:column}
.steps > div{
  display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px 28px;
  padding:22px 0;border-top:1px solid var(--rule-soft);align-items:baseline;
}
.steps .day{font-weight:600;font-size:17px;color:var(--ink-soft)}
.steps h3{margin-bottom:6px}
.steps p{max-width:56ch}

/* footer */
.foot{padding:56px 0 24px;border-top:1px solid var(--rule)}
.foot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 48px;align-items:start}
.foot h2{font-size:16px;font-weight:600;margin-bottom:14px}
.foot ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.foot p{max-width:36ch;color:var(--ink)}
.copyline{
  display:flex;flex-wrap:wrap;gap:8px 32px;justify-content:space-between;
  padding:24px 0 40px;margin-top:40px;border-top:1px solid var(--rule-soft);
  color:var(--ink-soft);font-size:16px;
}

/* ---------------------------------------------------------- blog index */
.postlist{list-style:none;display:flex;flex-direction:column}
.postlist li{
  display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr);
  gap:12px 56px;align-items:start;
  padding:32px 0;border-top:1px solid var(--rule-soft);
}
.postlist li:first-child{border-top:0;padding-top:8px}
.postlist .rowmeta{color:var(--ink-soft);padding-top:6px}
.postlist .rowmeta .n{display:block;font-weight:600;color:var(--ink);font-size:19px;margin-bottom:4px}
.postlist h2{margin-bottom:12px;max-width:24ch}
.postlist h2 a{color:var(--ink);text-decoration:none}
.postlist h2 a:hover{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px}
.postlist p{max-width:64ch}
.postmeta{margin-top:14px;color:var(--ink-soft)}
.postmeta .n{font-weight:600;color:var(--ink)}

/* ------------------------------------------------------- blog article */
.article{
  display:grid;grid-template-columns:minmax(0,720px) minmax(230px,300px);
  gap:56px;align-items:start;padding:48px 0 8px;
}
.prose > * + *{margin-top:22px}
.prose h2{margin-top:44px}
.prose p{max-width:none}
.prose figure{margin:32px 0}
.prose figure img{width:100%;border:1px solid var(--rule-soft)}
.prose figcaption{margin-top:10px;color:var(--ink-soft);font-size:16px}

.aside{position:sticky;top:32px;font-size:17px}
.aside h2{font-size:16px;font-weight:600;margin-bottom:14px}
.aside + .aside, .aside .group + .group{margin-top:36px}
.aside ol{list-style:none;counter-reset:s;display:flex;flex-direction:column;gap:12px}
.aside ol li{counter-increment:s;display:grid;grid-template-columns:26px 1fr;gap:8px;line-height:1.4}
.aside ol li::before{content:counter(s,decimal-leading-zero);color:var(--ink-soft);font-variant-numeric:tabular-nums}
.aside ol li a{color:var(--ink);text-decoration:none}
.aside ol li a:hover{text-decoration:underline}
.aside ol li[aria-current="true"]{font-weight:600}
.aside ol li[aria-current="true"]::before{color:var(--ink)}
.aside .srclist{display:flex;flex-direction:column;gap:12px;list-style:none}
.aside .srclist li{line-height:1.4}
.aside .srclist a{word-break:break-word}

.readnext{border-top:1px solid var(--rule);padding:36px 0}
.readnext-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.readnext .dir{color:var(--ink-soft);margin-bottom:8px}
.readnext h2{font-size:clamp(20px,2vw,24px)}
.readnext a{color:var(--ink);text-decoration:none}
.readnext a:hover{text-decoration:underline;text-decoration-thickness:2px}

/* a plain closing call to action, no oversized display type */
.closing{border-top:1px solid var(--rule);padding:56px 0}
.closing h2{max-width:22ch}
.closing p{margin-top:16px;max-width:56ch}

/* ------------------------------------------------------- privacy policy */
.legal{padding:40px 0 8px;max-width:76ch}
.legal .prose ul{margin-top:16px;padding-left:22px}
.legal .prose li + li{margin-top:10px}
.legal .prose h2{margin-top:44px}
.legal .prose h2:first-child{margin-top:0}
.legal-meta{color:var(--ink-soft)}

/* ---------------------------------------------------------- responsive */
@media (max-width:980px){
  .band-grid{grid-template-columns:1fr;gap:20px}
  .band-label p{max-width:none}
  .article{grid-template-columns:1fr;gap:40px}
  .aside{position:static}
  .deflist{grid-template-columns:1fr;gap:22px}
  .postlist li{grid-template-columns:1fr;gap:10px}
  .postlist .rowmeta{padding-top:0}
  .postlist .rowmeta .n{display:inline;margin-right:10px}
  .readnext-grid{grid-template-columns:1fr;gap:24px}
  .foot-grid{grid-template-columns:1fr;gap:32px}
}
@media (max-width:640px){
  .band{padding:44px 0}
  .hero{padding:44px 0 40px}
  .nav{gap:14px;padding:16px 0}
  .nav-links{gap:18px}
  .steps > div{grid-template-columns:1fr;gap:4px;padding:20px 0}
  .facts{gap:14px 28px;margin-top:32px}
  .copyline{padding:20px 0 32px;margin-top:28px}
}

/* ============================================================== motion
   Everything below animates opacity and transform only, so no element
   ever changes the space it takes and nothing reflows. Under
   prefers-reduced-motion every animation is switched off and the resting
   state is the finished one, so the page reads exactly the same. */

@keyframes nc-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* hero entrance on first load, one line at a time */
.hero-copy > *{animation:nc-enter .4s cubic-bezier(.2,.6,.2,1) both}
.hero-copy > *:nth-child(1){animation-delay:.04s}
.hero-copy > *:nth-child(2){animation-delay:.12s}
.hero-copy > *:nth-child(3){animation-delay:.20s}
.hero-copy > *:nth-child(4){animation-delay:.28s}
.hero-media{animation:nc-enter .5s .24s cubic-bezier(.2,.6,.2,1) both}

/* sections and rows arriving once, on first sight */
.js .reveal{opacity:0;transform:translateY(14px)}
.js .reveal{transition:opacity .42s cubic-bezier(.2,.6,.2,1),transform .42s cubic-bezier(.2,.6,.2,1)}
.js .reveal.in{opacity:1;transform:none}

/* underlines thicken, the button arrow steps forward */
a{transition:text-decoration-thickness .18s ease,text-underline-offset .18s ease}
a:hover{text-underline-offset:4px}
.btn{transition:background .18s ease,border-color .18s ease}
.btn .arw{display:inline-block;vertical-align:-1px;margin-left:8px;transition:transform .2s cubic-bezier(.2,.6,.2,1)}
.btn:hover .arw{transform:translateX(5px)}
.nav-links a{transition:border-color .18s ease}

/* ------------------------------------------------------------ hero art */
.hero-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:36px 64px;align-items:center}
.hero-copy > * + *{margin-top:0}
.hero-media{margin:0}
.hero-art{display:block;width:100%;height:auto}

/* the browser blocks slide in, the calendar week ticks across, then the
   whole thing resets off screen and runs again. One 6 second loop. */
@keyframes nc-slide{
  0%,3%{transform:translateX(-760px);opacity:0}
  11%,88%{transform:translateX(0);opacity:1}
  94%{transform:translateX(760px);opacity:0}
  94.01%,100%{transform:translateX(-760px);opacity:0}
}
@keyframes nc-tick{
  0%,4%{fill:#F2EEE5}
  12%,90%{fill:#7A4DE5}
  96%,100%{fill:#F2EEE5}
}
.hero-art .nb{animation:nc-slide 9s cubic-bezier(.2,.7,.2,1) infinite}
.hero-art .nb2{animation-delay:.3s}
.hero-art .nb3{animation-delay:.6s}
.hero-art .nd{animation:nc-tick 9s ease-in-out infinite}
.hero-art .nd2{animation-delay:.24s}
.hero-art .nd3{animation-delay:.48s}
.hero-art .nd4{animation-delay:.72s}
.hero-art .nd5{animation-delay:.96s}

.facts b{font-variant-numeric:tabular-nums}

/* ------------------------------------------------- drawings in the bands */
.deflist dt{display:flex;align-items:center;gap:14px}
.deflist .ico{width:44px;height:44px;flex:none}
.deflist dd{padding-left:58px}

.steps{position:relative;padding-left:26px}
.rail{position:absolute;left:0;top:10px;bottom:10px;width:2px;background:var(--rule-soft)}
.rail-fill{position:absolute;left:0;top:0;width:2px;height:100%;background:var(--accent)}
.steps > div{grid-template-columns:88px 76px minmax(0,1fr)}
.steps .scene{width:64px;height:64px;margin-top:-6px}

.closing-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:32px 64px;align-items:center}
.closing-media{margin:0}
.closing-media img{width:100%;max-width:420px;height:auto;margin-left:auto}

/* ------------------------------------------------------ blog index thumb */
.postlist .thumb{display:block;margin-top:14px;max-width:260px;border:1px solid var(--rule-soft)}
.postlist .thumb img{width:100%;height:auto}

@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr;gap:28px}
  .hero-media{max-width:560px}
  .closing-grid{grid-template-columns:1fr}
  .closing-media img{margin-left:0;max-width:340px}
  .steps > div{grid-template-columns:76px minmax(0,1fr)}
  .steps .scene{grid-row:1 / span 2}
  .postlist .thumb{max-width:200px}
}
@media (max-width:640px){
  .steps{padding-left:20px}
  .steps > div{grid-template-columns:56px minmax(0,1fr);gap:4px 16px}
  .steps .scene{width:52px;height:52px}
  .deflist dt{gap:12px}
  .deflist .ico{width:38px;height:38px}
  .deflist dd{padding-left:50px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
  .js .reveal{opacity:1;transform:none}
  .hero-copy > *,.hero-media{opacity:1;transform:none}
  .rail-fill{height:100% !important}
}
