/* ============================================================
   Site identity.

   Borrowed from Maia's own EvalRAG interface rather than invented:
   a serif display face, uppercase mono for labels, and its amber
   used sparingly against the existing teal. Loaded after each
   page's inline <style>, so it refines rather than replaces.
   ============================================================ */

:root {
  --teal: #0d7377;
  --teal-deep: #0a5c5f;
  --amber: #b8802e;          /* the EvalRAG accent, darkened for white ground */
  --ink: #12211f;            /* near-black with a green bias, not pure grey */
  --ink-2: #3d4d4b;
  --muted: #6b7b79;
  --rule: #e2e8e7;
  --paper: #ffffff;
  --paper-2: #f7faf9;
}

/* ---------- type ---------- */

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .project-title, .metric-value {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.15;
}

h3, .project-title {
  font-size: 1.12rem;
  line-height: 1.25;
}

p, li {
  color: var(--ink-2);
}

/* Body copy shouldn't run the full width of a desktop screen. */
.tagline, .project-description, section p {
  max-width: 68ch;
}

/* ---------- labels: uppercase mono, the EvalRAG signature ---------- */

.project-tag,
.tech-tag,
.metric-label {
  font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.66rem !important;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.project-tag {
  background: transparent !important;
  border: 1px solid var(--rule);
  border-radius: 2px !important;
  padding: 0.28rem 0.5rem !important;
  color: var(--amber) !important;
}

.tech-tag {
  background: var(--paper-2) !important;
  border: 1px solid var(--rule);
  border-radius: 2px !important;
}

/* ---------- cards: fewer decorations, more edge ---------- */

.project-card {
  border-radius: 3px !important;
  border: 1px solid var(--rule) !important;
  box-shadow: none !important;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.project-card:hover {
  border-color: var(--teal) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -18px rgba(13, 115, 119, 0.45) !important;
}

/* ---------- numbers want a mono, tabular treatment ---------- */

.metric-box {
  border-radius: 3px !important;
  border: 1px solid var(--rule);
  background: var(--paper) !important;
}

.metric-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--teal) !important;
}

/* ---------- screenshots ---------- */

.shot {
  margin: 1.6rem 0 2rem;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.shot figcaption {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* A dark screenshot deserves a dark mount, not a white one. */
.shot--dark img {
  border-color: #1e1b16;
  background: #0d0b09;
}

/* ---------- rules and rhythm ---------- */

.section h2 {
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1rem;
}

a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

/* ---------- headline: no typewriter, no reserved gap ---------- */

#headline {
  min-height: 0 !important;
}

.typewriter-cursor,
#cursor {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- fixed-header clearance ----------
   The header is position:fixed at ~101px tall on desktop; several pages set a
   main padding-top just under that, so headings were being clipped. */
main {
  padding-top: 132px;
}

@media (max-width: 768px) {
  main {
    padding-top: 168px;
  }
}

/* Uniform cards, two per row, all the same height. The View link is pushed to
   the bottom so short and long descriptions still line up. */
.projects-container {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  align-items: stretch;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.project-card {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

.project-card .project-description { flex: 1 1 auto; }
.project-card .view-link { margin-top: auto; padding-top: 0.6rem; }

@media (max-width: 760px) {
  .projects-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Client work has no public repo; say so plainly instead of linking nowhere. */
.client-note {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--rule);
  border-radius: 2px;
  padding: 0.5rem 0.75rem;
}

/* ---------- proof strip ---------- */
.proof {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  padding: 2rem 2rem;
}
.proof-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem 2rem;
}
.proof-item { border-left: 2px solid var(--teal); padding-left: 1rem; }
.proof-value {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.proof-label { font-size: 0.9rem; color: var(--ink-2); margin-top: 0.35rem; }
.proof-src {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.3rem;
}

/* ---------- card chips + stack ---------- */
.card-metrics { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.7rem 0 0.5rem; }
.chip {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem; font-weight: 500;
  color: var(--teal);
  background: rgba(13,115,119,0.07);
  border: 1px solid rgba(13,115,119,0.18);
  border-radius: 2px;
  padding: 0.2rem 0.45rem;
  font-variant-numeric: tabular-nums;
}
.card-stack { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; margin-bottom: 0.6rem; }
.stack-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.63rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.stack-tag + .stack-tag::before { content: "·"; margin-right: 0.5rem; color: var(--rule); }

/* ---------- work section headings ---------- */
.work-heading {
  max-width: 1140px;
  margin: 0 auto 1rem;
  padding: 0 0 0.45rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.05rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-heading--more { margin-top: 3rem; }
.projects-container--more .project-card { background: transparent; }

/* ---------- project hero results ---------- */
.hero-metrics {
  display: flex; flex-wrap: wrap; gap: 0 2.2rem;
  margin: 0 0 1.4rem; padding: 0.9rem 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.hero-metric { min-width: 120px; }
.hero-metric b {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.5rem; font-weight: 600; line-height: 1.1;
  color: var(--teal); font-variant-numeric: tabular-nums;
}
.hero-metric span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
