/* "Executive ledger" - matches Clarity CFO's own dark, brass-accented
   look (see /Users/daniel/Clarity CFO/frontend/src/index.css) so the
   portfolio and the product it links to read as one body of work. */

:root {
  --ink-950: #0a0c0f;
  --ink-900: #12151b;
  --ink-850: #161a21;
  --ink-800: #1a1e26;
  --ink-700: #232833;
  --ink-600: #2d3340;
  --ink-500: #454c5c;
  --ink-400: #6b7280;
  --ink-300: #9aa3b2;
  --ink-200: #c2c8d1;
  --ink-100: #e7e9ed;
  --ink-50: #f4f5f7;

  --brand-400: #c6a15b;
  --brand-500: #b08d46;

  --font-serif: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink-950);
}

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--ink-100);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* ---- Nav ---- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--ink-700);
  background: var(--ink-900);
  flex-wrap: wrap;
}

.site-nav .wordmark {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-50);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav .navlinks {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav .navlinks a {
  font-size: 13px;
  color: var(--ink-300);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav .navlinks a:hover,
.site-nav .navlinks a.current {
  color: var(--brand-400);
}

/* ---- Hero (homepage only) ---- */
.hero {
  padding: 72px 48px 56px;
  max-width: 1600px;
  margin: 0 auto;
}

.hero .kicker {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-400);
  font-weight: 500;
  margin: 0 0 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 50px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-50);
  margin: 0 0 18px;
  max-width: 12em;
  text-wrap: balance;
}

.hero .lede {
  font-size: 18px;
  color: var(--ink-300);
  line-height: 1.75;
  max-width: 34em;
  margin: 0 0 28px;
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-400);
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.hero .cta:hover {
  background: var(--brand-500);
}

/* ---- Page / content ---- */
.page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 56px 48px 80px;
}

.page-header {
  border-bottom: 1px solid var(--ink-700);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.page-header .eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-400);
  font-weight: 500;
  margin: 0 0 10px;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink-50);
  margin: 0;
  text-wrap: balance;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-50);
  margin: 2em 0 0.6em;
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-50);
  margin: 1.8em 0 0.5em;
}

.prose p {
  color: var(--ink-200);
  margin: 0 0 1.1em;
}

.prose strong {
  color: var(--ink-50);
  font-weight: 500;
}

.prose a {
  color: var(--brand-400);
  text-decoration: underline;
  text-decoration-color: var(--ink-600);
  text-underline-offset: 2px;
}

.prose a:hover {
  text-decoration-color: var(--brand-400);
}

.prose ul,
.prose ol {
  color: var(--ink-200);
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--ink-700);
  margin: 2em 0;
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--ink-800);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* ---- Project list ---- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.project-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--ink-700);
  border-radius: 10px;
  background: var(--ink-900);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.project-card:hover {
  border-color: var(--brand-400);
}

.project-card h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-50);
  margin: 0 0 8px;
  /* Coursework titles are often bare filenames
     (LLM_Integration_and_Workflows.ipynb) with no natural word-break
     point - without this they overflow the card's fixed width instead
     of wrapping. */
  overflow-wrap: break-word;
}

.project-card p {
  font-size: 13.5px;
  color: var(--ink-300);
  line-height: 1.6;
  margin: 0;
}

/* ---- Product showcase (homepage) ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink-700);
  border-radius: 12px;
  background: var(--ink-900);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.product-card:hover {
  border-color: var(--brand-400);
}

.product-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  /* contain, not cover - Leverage & Lag's cover art is a tall portrait
     image, and cropping it to fill a square frame cut off real content
     (the byline, at minimum). The two app icons are already square, so
     contain fills their frame exactly with no visible change; the book
     cover letterboxes on the sides instead of losing any of itself.
     The app icon source files are pre-cropped (see the download/crop
     step that produced them) to remove Apple's own baked-in rounded-
     corner mask - a scale-up hack was tried here first to hide that
     mask's white sliver, but a fixed percentage couldn't reliably
     clear a corner radius that varies per icon. */
  object-fit: contain;
  background: var(--ink-850);
}

.product-card-body {
  padding: 20px;
}

.product-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-50);
  margin: 0 0 4px;
  overflow-wrap: break-word;
}

.product-card-platform {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--brand-400);
  margin: 0 0 10px;
}

.product-card p:not(.product-card-platform) {
  font-size: 14px;
  color: var(--ink-300);
  line-height: 1.6;
  margin: 0;
}

/* ---- External link chip (project detail pages) ---- */
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.5em;
  padding: 9px 16px;
  border: 1px solid var(--ink-600);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-100);
  text-decoration: none;
}

.external-link:hover {
  border-color: var(--brand-400);
  color: var(--brand-400);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--ink-700);
  padding: 24px 32px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-400);
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 32px;
  }
  .hero {
    padding: 48px 20px 40px;
  }
  .page {
    padding: 40px 20px 56px;
  }
  .site-nav {
    padding: 16px 20px;
  }
}
