/* GurusLab — public site
   Dark lab aesthetic. Light text on dark backgrounds throughout. */

:root {
  --bg:        #0e1116;
  --bg-soft:   #141922;
  --card:      #161c25;
  --line:      #242c38;
  --line-soft: #1c232d;
  --text:      #e9eef5;
  --text-dim:  #9daabb;
  --text-mute: #6f7d8f;
  --accent:    #6ee7a8;
  --accent-dim:#3fae77;
  --accent-ink:#08130d;
  --radius:    14px;
  --radius-sm: 9px;
  --wrap:      1080px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, 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(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* subtle lab grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(110, 231, 168, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 231, 168, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

main, header, footer { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px; top: 16px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 99;
}

/* ---------------------------------------------------------------- header */

.site-head {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(14, 17, 22, .82);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  letter-spacing: -.015em;
  font-size: 18.5px;
}
.brand:hover { color: var(--text); }

.brand-mark {
  width: 13px; height: 13px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(110, 231, 168, .12), 0 0 22px rgba(110, 231, 168, .35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  position: relative;
  font-size: 15.5px;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color .16s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
  border-radius: 2px;
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--text); }

/* ------------------------------------------------------------------ home */

.hero {
  padding: 92px 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(110, 231, 168, .28);
  background: rgba(110, 231, 168, .06);
  border-radius: 999px;
  padding: 7px 15px;
  margin: 0 0 26px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.05rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 660;
  margin: 0 auto 26px;
  max-width: 17ch;
  text-wrap: balance;
}
.hero h1 .glow {
  color: var(--accent);
  text-shadow: 0 0 46px rgba(110, 231, 168, .32);
}

.hero p.lede {
  max-width: 56ch;
  margin: 0 auto 14px;
  color: var(--text-dim);
  font-size: 18.5px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-weight: 560;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--bg-soft);
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.btn:hover { border-color: #35404f; background: #1a212b; color: var(--text); transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
}
.btn-primary:hover { background: #86f2ba; border-color: #86f2ba; color: var(--accent-ink); }

/* --------------------------------------------------------------- section */

.section { padding: 26px 0 34px; }
.section + .section { padding-top: 30px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.section-head h2 {
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 560;
  margin: 0;
}

.section-head a { font-size: 14.5px; color: var(--text-dim); }
.section-head a:hover { color: var(--accent); }

/* ------------------------------------------------------------ note list */

.note-list { list-style: none; margin: 0; padding: 0; }

.note-list li { border-bottom: 1px solid var(--line-soft); }
.note-list li:last-child { border-bottom: 0; }

.note-item {
  display: grid;
  grid-template-columns: 128px 1fr auto;
  gap: 22px;
  align-items: baseline;
  padding: 21px 2px;
  transition: background .16s ease, padding .16s ease;
}
.note-item:hover { background: rgba(255, 255, 255, .018); }

.note-date {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-mute);
  letter-spacing: .04em;
  white-space: nowrap;
}

.note-title {
  display: block;
  font-size: 19.5px;
  font-weight: 560;
  letter-spacing: -.012em;
  line-height: 1.35;
}

.note-excerpt {
  display: block;
  margin: 7px 0 0;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 68ch;
}

.note-tags {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent-dim);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 18px;
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.card:hover {
  border-color: #35414f;
  background: #19212c;
  transform: translateY(-2px);
  color: var(--text);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.card h3 {
  margin: 0 0 9px;
  font-size: 18.5px;
  font-weight: 580;
  letter-spacing: -.015em;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

.card .domain {
  margin-top: 17px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-mute);
  letter-spacing: .02em;
}

.pill {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  white-space: nowrap;
}
.pill-live    { color: var(--accent); border-color: rgba(110, 231, 168, .35); background: rgba(110, 231, 168, .08); }
.pill-active  { color: #8ec9ff; border-color: rgba(142, 201, 255, .3); background: rgba(142, 201, 255, .07); }
.pill-paused  { color: #f2c66d; border-color: rgba(242, 198, 109, .3); background: rgba(242, 198, 109, .07); }
.pill-archived{ color: var(--text-mute); }

/* -------------------------------------------------------------- article */

.page-head { padding: 66px 0 38px; text-align: center; }
.page-head h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 650;
  margin: 0 auto 18px;
  max-width: 22ch;
  text-wrap: balance;
}
.page-head .meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-mute);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.page-head .lede {
  max-width: 60ch;
  margin: 18px auto 0;
  color: var(--text-dim);
  font-size: 18px;
}

.article {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.article h2 {
  font-size: 1.62rem;
  letter-spacing: -.02em;
  margin: 46px 0 14px;
  font-weight: 620;
  line-height: 1.25;
}
.article h3 { font-size: 1.24rem; margin: 34px 0 10px; font-weight: 600; letter-spacing: -.012em; }
.article p { margin: 0 0 20px; }
.article ul, .article ol { margin: 0 0 22px; padding-left: 22px; }
.article li { margin-bottom: 9px; }
.article li::marker { color: var(--accent-dim); }
.article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article a:hover { color: #9df3c7; }
.article code {
  font-family: var(--mono);
  font-size: .885em;
  background: #1b2330;
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 5px;
  color: #c9f5de;
}
.article pre {
  background: #10151d;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 24px;
  line-height: 1.55;
}
.article pre code { background: none; border: 0; padding: 0; font-size: 13.5px; color: #d7e3f0; }
.article blockquote {
  margin: 0 0 24px;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent-dim);
  color: var(--text-dim);
}
.article blockquote p:last-child { margin-bottom: 0; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.article img { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); }

.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 26px;
}
.back-link:hover { color: var(--accent); }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 0; }
.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}

/* ---------------------------------------------------------------- empty */

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 46px 28px;
  text-align: center;
  color: var(--text-mute);
}
.empty p { margin: 0; }

/* --------------------------------------------------------------- footer */

.site-foot {
  margin-top: 76px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-soft);
  padding: 46px 0 30px;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
  padding-bottom: 30px;
}

.foot-brand {
  margin: 0 0 8px;
  font-weight: 640;
  font-size: 16.5px;
  letter-spacing: -.01em;
}

.foot-col p.muted { margin: 0; max-width: 42ch; }

/* agency attribution — logo is a light-blue wordmark, sits fine on the dark footer */
.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  text-decoration: none;
  opacity: 1;
  transition: opacity .16s ease;
}
.foot-logo:hover { opacity: 1; }
.foot-logo img {
  display: block;
  width: 132px;
  height: auto;
}
.foot-logo-note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  line-height: 1.5;
}
.foot-logo:hover .foot-logo-note { color: var(--accent); }

.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--text-dim); font-size: 15px; }
.foot-links a:hover { color: var(--accent); }

.foot-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}

.muted { color: var(--text-dim); }
.small { font-size: 13px; }

/* ---------------------------------------------------------------- flash */

.flash {
  border-radius: var(--radius-sm);
  padding: 13px 17px;
  font-size: 14.5px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.flash-success { border-color: rgba(110, 231, 168, .35); background: rgba(110, 231, 168, .08); color: #b6f5d3; }
.flash-error   { border-color: rgba(255, 122, 122, .35); background: rgba(255, 122, 122, .08); color: #ffc0c0; }
.flash-info    { border-color: rgba(142, 201, 255, .3); background: rgba(142, 201, 255, .07); color: #c6e4ff; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 62px 0 40px; }
  .head-inner { height: 64px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 15px; }
  .note-item { grid-template-columns: 1fr; gap: 8px; padding: 19px 2px; }
  .note-date { order: -1; }
  .note-tags { display: none; }
  .foot-inner { flex-direction: column; gap: 26px; }
  .page-head { padding: 44px 0 28px; }
  .card-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
