/* agatalabs.ai — shared styles
   Palette + type pairing per Design Philosophy: serif display (Source Serif 4),
   small-caps mono labels (IBM Plex Mono), Inter for body. Warm paper ground. */

:root {
  --paper: #FAF9F6;
  --card: #ffffff;
  --ink: #1c1c1a;
  --ink-soft: #6b6b67;
  --ink-faint: #8a8a86;
  --ink-ghost: #b5b3ac;
  --hairline: #d8d6cf;
  --leaf: #639922;
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* ---- top nav: quiet mono wordmark + links ---- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 2rem;
}
.site-nav .wordmark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
}
.site-nav .links {
  display: flex;
  gap: 1.5rem;
}
.site-nav .links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.site-nav .links a:hover { color: var(--ink); border-bottom-color: var(--hairline); }
.site-nav .links a.current { color: var(--ink); }

/* ---- page shell for inner pages ---- */
.page {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  flex: 1;
}
.page-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.page-intro {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 46ch;
}

/* ---- root-and-branch divider (botanical line art in place of a plain rule) ---- */
.divider {
  display: flex;
  justify-content: center;
  margin: 2.75rem 0;
  color: var(--hairline);
}
.divider svg { display: block; }

/* ---- catalog rows (running-publication feel, not a database dump) ---- */
.entry {
  display: block;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
}
.entry:last-of-type { border-bottom: none; }
.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.entry-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.entry-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  white-space: nowrap;
}
.entry-line {
  margin-top: 0.35rem;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 52ch;
}
a.entry:hover .entry-name { text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 4px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 2.5rem 0 0.35rem;
}

/* ---- footer: faint water line, tiny seven ---- */
.site-footer {
  margin-top: auto;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.site-footer .water { color: var(--hairline); opacity: 0.8; }
.site-footer .fine {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-ghost);
}
/* the seven: easy to miss on purpose */
.site-footer .seven {
  color: var(--ink-ghost);
  opacity: 0.55;
  text-decoration: none;
  cursor: default;
}

@media (max-width: 540px) {
  .site-nav { padding: 1.25rem 1.25rem; }
  .page { padding: 2rem 1.25rem 4rem; }
}
