/* laimon.ai — site styles. No JavaScript anywhere on this site. */

:root {
  --leaf: #7AC143;
  --leaf-dark: #5E9A30;
  --ink: #3C4A47;
  --ink-muted: #5F6D6A;
  --bg: #FFFFFF;
  --surface: #F4F6F5;
  --border: #DDE3E1;
  --on-leaf: #16211F;
  --focus: #2F6FED;
  --header-bg: rgba(255, 255, 255, 0.85);
  --logo-ink: #3C4A47;
  --logo-leaf: #7AC143;
  --logo-bg: #FFFFFF;
  --radius: 12px;
  --wrap: 1080px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E6EAE8;
    --ink-muted: #A8B2AF;
    --bg: #0F1413;
    --surface: #171D1B;
    --border: #2A3331;
    --leaf-dark: #9AD46B;
    --focus: #8AB4FF;
    --header-bg: rgba(15, 20, 19, 0.85);
    --logo-ink: #E6EAE8;
    --logo-bg: #0F1413;
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--leaf-dark); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.muted { color: var(--ink-muted); }

/* Skip link */

.skip {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--leaf);
  color: var(--on-leaf);
  font-weight: 600;
  transform: translateY(-120%);
  z-index: 100;
}
.skip:focus { transform: none; }

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
.btn:hover { border-color: var(--ink-muted); color: var(--ink); }
.btn-primary {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--on-leaf);
}
.btn-primary:hover { background: var(--leaf-dark); border-color: var(--leaf-dark); color: var(--on-leaf); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.site-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-header nav a:hover:not(.btn) { color: var(--leaf-dark); }
.site-header nav .btn { padding: 0.45rem 1rem; }

@media (max-width: 479px) {
  .brand span { display: none; }
}

/* Main / sections */

main { padding-top: 3rem; padding-bottom: 4rem; }

.section { padding: 3rem 0; border-top: 1px solid var(--border); }
.section:first-child { border-top: 0; padding-top: 0; }
.section > h2 { margin-bottom: 1.5rem; }
.section .lead { max-width: 60ch; }
.section > p { max-width: 72ch; }

.lead { font-size: 1.2rem; color: var(--ink-muted); max-width: 62ch; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 3rem;
}
.hero img { width: 160px; height: 160px; border-radius: var(--radius); }
@media (min-width: 640px) {
  .hero { grid-template-columns: 160px 1fr; gap: 3rem; }
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem;
}
.card h3 { margin-bottom: 0.2rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--leaf-dark); text-decoration: underline; }
.card .role { color: var(--leaf-dark); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.6rem; }
.card p:last-child { margin-bottom: 0; }

/* Columns (how it fits together) */

.columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .columns { grid-template-columns: repeat(3, 1fr); } }
.columns h3 { margin-bottom: 0.4rem; }
.columns p:last-child { margin-bottom: 0; }

/* Callout */

.callout {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 2rem;
}
.callout h2 { margin-bottom: 0.5rem; }
.callout p { max-width: 62ch; }

/* Definition list (developers) */

.dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1.5rem;
  margin: 0;
}
.dl dt { font-weight: 600; margin-top: 0.75rem; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .dl { grid-template-columns: max-content 1fr; }
  .dl dt, .dl dd { margin-top: 0; padding: 0.5rem 0; border-top: 1px solid var(--border); }
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

/* Legal pages */

.legal { max-width: calc(72ch + 2 * var(--gutter)); }
.legal h1 { margin-bottom: 0.25em; }
.legal .meta, .legal p.meta { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 0.6em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal ul, .legal ol { padding-left: 1.4rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.97rem;
}
.table th, .table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.table th { background: var(--surface); font-weight: 600; }

@media (max-width: 599px) {
  .table, .table thead, .table tbody, .table tr, .table th, .table td { display: block; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
  .table td { border: 0; border-top: 1px solid var(--border); }
  .table td:first-child { border-top: 0; background: var(--surface); font-weight: 600; }
  .table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink-muted); }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer nav a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.note { margin-top: 1rem; }
