/* Advance Labs — "warm hacker" theme
   Direction: warm paper + bold ink + marker-yellow accents + monospace
   labels and terminal touches. Inspired by the friendly-technical feel of
   ML-community sites; own palette and composition. No external requests. */

:root {
  --paper: #fffbf2;
  --paper-tint: #fff3d1;
  --ink: #141414;
  --ink-soft: #4c4a44;
  --ink-faint: #8b887e;
  --line: #e8e2d2;
  --yellow: #ffd21e;
  --yellow-soft: #ffe89a;
  --orange: #ff9d00;
  --radius: 10px;
  --measure: 68rem;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 251, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a::before {
  content: "./";
  color: var(--ink-faint);
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- hero ---------- */

.hero {
  padding: 6.5rem 0 5rem;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--ink);
}

.hero-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  margin-bottom: 1.5rem;
  box-shadow: 2px 2px 0 var(--yellow);
}

.hero-kicker::before {
  content: "~/ ";
  color: var(--orange);
}

.hero h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 20ch;
}

.hero h1::after {
  content: "▊";
  color: var(--orange);
  margin-left: 0.1em;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1::after { animation: none; }
  html { scroll-behavior: auto; }
}

.hero p {
  margin-top: 1.5rem;
  max-width: 44rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */

.button {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease,
    background-color 120ms ease;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--yellow);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--orange);
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button-ghost {
  background: var(--paper);
  color: var(--ink);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--yellow-soft);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.button:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* ---------- sections ---------- */

.section {
  padding: 5rem 0;
}

.section + .section {
  border-top: 1px dashed var(--line);
}

.section-kicker {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-kicker::before {
  content: "$ ";
  color: var(--ink-faint);
}

.section h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  display: inline;
  background-image: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 94%, transparent 94%);
  background-repeat: no-repeat;
}

.section-lede {
  margin-top: 1.25rem;
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

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

.app-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.app-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.app-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--yellow);
}

.app-icon {
  font-size: 1.6rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--paper-tint);
  border: 1px solid var(--ink);
  border-radius: 8px;
  margin-bottom: 1.1rem;
}

.app-card h3 {
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.app-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  white-space: nowrap;
}

.app-status::before {
  content: "● ";
  color: var(--orange);
}

.app-card p {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- about ---------- */

.about-columns {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-columns h3 {
  font-family: var(--mono);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.about-columns h3::before {
  content: ">> ";
  color: var(--orange);
}

.about-columns p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- founder ---------- */

.founder {
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  padding: 2rem 1.75rem;
  box-shadow: 5px 5px 0 var(--paper-tint);
}

.founder-mark {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--yellow);
  color: var(--ink);
}

.founder h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.founder-role {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--orange);
}

.founder p:last-child {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- contact ---------- */

.contact-card {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  box-shadow: 6px 6px 0 var(--yellow);
}

.contact-card h3 {
  font-family: var(--mono);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.contact-card h3::before {
  content: "> ";
  color: var(--yellow);
}

.contact-card p {
  color: #cfcbc0;
  max-width: 34rem;
}

.contact-card .button-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
  box-shadow: 3px 3px 0 var(--orange);
}

.contact-card .button-primary:hover,
.contact-card .button-primary:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 4px 4px 0 var(--yellow);
}

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

.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--paper-tint);
  padding: 2rem 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--ink);
}

/* ---------- legal pages ---------- */

.legal {
  padding: 4rem 1.5rem;
  max-width: 46rem;
}

.legal h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  display: inline-block;
  background-image: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 94%, transparent 94%);
  background-repeat: no-repeat;
}

.legal h2 {
  font-family: var(--mono);
  font-size: 1.05rem;
  margin: 2rem 0 0.5rem;
}

.legal h2::before {
  content: "## ";
  color: var(--orange);
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.legal a {
  color: var(--ink);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-updated {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 2.5rem;
}

.placeholder {
  font-family: var(--mono);
  background: var(--yellow-soft);
  border: 1px dashed var(--orange);
  border-radius: 4px;
  padding: 0 0.35rem;
}

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

@media (max-width: 900px) {
  .app-grid,
  .about-columns {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .founder {
    flex-direction: column;
  }

  .site-nav {
    gap: 1rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }
}

/* ---------- beliefs / manifesto ---------- */

.beliefs-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2rem;
  counter-reset: belief;
}

.belief {
  counter-increment: belief;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  border-left: 3px solid var(--yellow);
  padding-left: 1rem;
}

.belief::before {
  content: "0" counter(belief);
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 0.3rem;
}

/* compact founder row */

.founder-compact {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  align-items: center;
  box-shadow: 3px 3px 0 var(--paper-tint);
}

.founder-compact .founder-mark {
  width: 2.75rem;
  height: 2.75rem;
}

.founder-compact h3 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
}

.founder-compact .founder-role {
  margin: 0;
}

.founder-compact p:last-child {
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .beliefs-grid {
    grid-template-columns: 1fr;
  }
}

/* founder quote */

.founder-quote {
  margin-top: 2.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 4px 4px 0 var(--paper-tint);
  max-width: 44rem;
}

.founder-quote blockquote {
  position: relative;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
  padding-left: 2.4rem;
}

.founder-quote blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.55rem;
  font-size: 3.4rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--yellow);
  -webkit-text-stroke: 1px var(--ink);
}

.founder-quote figcaption {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.founder-quote figcaption > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.founder-quote strong {
  font-size: 0.98rem;
}

.founder-quote .founder-role {
  margin: 0;
}

.founder-bio {
  font-size: 0.85rem;
  color: var(--ink-faint);
}
