/* VPSLatch — relaunch identity
   Palette recovered from the original 2010–2012 logo artwork:
   lime #C8F01E / #D2FA46, deep olive #8CAA00 / #3C4600, slate-teal #14323C */

:root {
  --lime: #C8F01E;
  --lime-hi: #D2FA46;
  --lime-dim: #8CAA00;
  --slate: #14323C;
  --slate-hi: #1B4250;
  --ink: #07090A;
  --ink-2: #0D1113;
  --ink-3: #141A1C;
  --line: #1F282B;
  --text: #E6EBE7;
  --muted: #8C9A92;
  --muted-2: #6B7872;
  --radius: 14px;
  --maxw: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient lime glow behind the hero, cheap and GPU-friendly */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 70vh;
  background:
    radial-gradient(60% 60% at 20% 0%, rgba(200, 240, 30, .10), transparent 70%),
    radial-gradient(50% 50% at 80% 10%, rgba(20, 50, 60, .55), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-hi); text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1.1em; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 10, .72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 30px; height: auto; }
.brand b { font-size: 1.12rem; letter-spacing: -.03em; color: #fff; font-weight: 700; }
.brand b span { color: var(--lime); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: .93rem; }
.site-nav a { color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav .btn-sm {
  color: var(--ink); background: var(--lime); padding: 8px 15px;
  border-radius: 8px; font-weight: 650;
}
.site-nav .btn-sm:hover { background: var(--lime-hi); color: var(--ink); }
@media (max-width: 640px) { .site-nav .hide-sm { display: none; } }

/* ---------- pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(200, 240, 30, .3);
  background: rgba(200, 240, 30, .06);
  color: var(--lime);
  padding: 6px 15px 6px 12px;
  border-radius: 999px;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200,240,30,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(200,240,30,0); } 100% { box-shadow: 0 0 0 0 rgba(200,240,30,0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } html { scroll-behavior: auto; } }

/* ---------- hero ---------- */
.hero { padding: 84px 0 72px; }
.hero .mark { width: 92px; margin-bottom: 28px; filter: drop-shadow(0 6px 24px rgba(200,240,30,.22)); }
.hero h1 { margin: 22px 0 20px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.lede { font-size: clamp(1.05rem, 2vw, 1.24rem); color: var(--muted); max-width: 62ch; }
.lede strong { color: var(--text); font-weight: 600; }

/* ---------- notify form ---------- */
.notify { margin: 34px 0 12px; max-width: 520px; }
.notify form { display: flex; gap: 10px; flex-wrap: wrap; }
.notify input[type=email] {
  flex: 1 1 260px; min-width: 0;
  background: var(--ink-3); border: 1px solid var(--line);
  color: var(--text); padding: 13px 16px; border-radius: 10px;
  font: inherit; font-size: .98rem;
}
.notify input[type=email]:focus { outline: none; border-color: var(--lime-dim); box-shadow: 0 0 0 3px rgba(200,240,30,.12); }
.notify button {
  background: var(--lime); color: var(--ink); border: 0;
  padding: 13px 24px; border-radius: 10px;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: background .15s ease;
}
.notify button:hover { background: var(--lime-hi); }
.notify .fine { font-size: .82rem; color: var(--muted-2); margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .93rem; }
.flash.ok { background: rgba(200,240,30,.09); border: 1px solid rgba(200,240,30,.32); color: var(--lime); }
.flash.err { background: rgba(255,110,90,.08); border: 1px solid rgba(255,110,90,.3); color: #FF9B87; }

/* ---------- sections ---------- */
section { padding: 62px 0; position: relative; z-index: 1; }
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--lime-dim); margin-bottom: 14px;
}
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- stat grid ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 28px; }
.stat {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.stat .k { font-family: var(--mono); font-size: 1.7rem; color: var(--lime); font-weight: 600; letter-spacing: -.03em; }
.stat .v { font-size: .9rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* ---------- timeline ---------- */
.tl { margin-top: 34px; border-left: 2px solid var(--line); padding-left: 0; list-style: none; }
.tl li { position: relative; padding: 0 0 30px 30px; }
.tl li::before {
  content: ""; position: absolute; left: -7px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--muted-2);
}
.tl li.on::before { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 14px rgba(200,240,30,.5); }
.tl .when { font-family: var(--mono); font-size: .82rem; color: var(--lime-dim); letter-spacing: .04em; }
.tl h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.tl p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.card {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { color: #fff; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card .ico { color: var(--lime); font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 12px; }

/* ---------- note / callout ---------- */
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--lime);
  background: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px; margin: 30px 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: #fff; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; color: var(--text); list-style: none; font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--lime); font-size: 1.5rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding: 0 0 22px; color: var(--muted); font-size: .97rem; max-width: 74ch; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- article ---------- */
.article { max-width: 740px; margin: 0 auto; padding: 56px 0 40px; }
.article .kicker { font-family: var(--mono); font-size: .82rem; color: var(--lime-dim); letter-spacing: .1em; text-transform: uppercase; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 14px 0 18px; }
.article .meta { color: var(--muted-2); font-size: .89rem; margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article h2 { margin: 52px 0 16px; font-size: clamp(1.45rem, 3vw, 1.85rem); scroll-margin-top: 90px; }
.article h3 { margin: 34px 0 12px; color: #fff; }
.article p { color: #C9D2CB; }
.article ul, .article ol { color: #C9D2CB; padding-left: 22px; margin: 0 0 1.2em; }
.article li { margin-bottom: .5em; }
.article strong { color: #fff; }
.article figure { margin: 32px 0; }
.article figure img { border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); padding: 20px; margin: 0 auto; }
.article figcaption { text-align: center; font-size: .85rem; color: var(--muted-2); margin-top: 12px; }
.article blockquote {
  margin: 30px 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--lime); color: var(--text);
  font-size: 1.06rem;
}
.article blockquote cite { display: block; font-style: normal; font-size: .86rem; color: var(--muted-2); margin-top: 10px; }
.article table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: .93rem; }
.article th, .article td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.article th { color: var(--lime-dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.article td { color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.toc { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 40px; }
.toc b { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-dim); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: .95rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--lime); }

.sources { font-size: .89rem; color: var(--muted-2); }
.sources li { margin-bottom: 8px; word-break: break-word; }

/* ---------- post list ---------- */
.posts { list-style: none; padding: 0; margin: 30px 0 0; }
.posts li { border-top: 1px solid var(--line); padding: 26px 0; }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts .when { font-family: var(--mono); font-size: .82rem; color: var(--lime-dim); }
.posts h2 { font-size: 1.3rem; margin: 8px 0 8px; }
.posts h2 a { color: #fff; }
.posts h2 a:hover { color: var(--lime); text-decoration: none; }
.posts p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 46px 0 60px; margin-top: 40px; color: var(--muted-2); font-size: .88rem; }
.site-foot .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--lime); }
.site-foot .legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 78ch; line-height: 1.6; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--lime); color: var(--ink); padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }
