/* Artemis Finance — shared styles */

:root {
  --ink: oklch(0.26 0.03 258);
  --muted: oklch(0.45 0.02 258);
  --muted-light: oklch(0.5 0.02 258);
  --eyebrow: oklch(0.5 0.03 255);
  --navy: oklch(0.32 0.07 255);
  --navy-dark: oklch(0.26 0.06 258);
  --navy-band: oklch(0.28 0.06 258);
  --band-light: oklch(0.97 0.004 255);
  --border: oklch(0.9 0.01 255);
  --border-soft: oklch(0.88 0.01 255);
  --surface: #fdfdfb;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  font-family: 'Public Sans', Helvetica, Arial, sans-serif;
  color: var(--ink);
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: oklch(0.45 0.09 255); }

/* ---------- Header ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 64px;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  font: 500 20px 'Newsreader', serif;
  letter-spacing: 0.02em;
}
.wordmark a { color: var(--ink); }
header nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
}
.btn-outline {
  border: 1px solid var(--navy);
  padding: 10px 20px;
  border-radius: 2px;
  white-space: nowrap;
}
.btn-outline:hover {
  background: var(--navy);
  color: white;
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 64px 100px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font: 400 58px/1.15 'Newsreader', serif;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 40px;
}
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 15px 32px;
  border-radius: 2px;
  font-weight: 500;
}
.btn-primary:hover {
  background: var(--navy-dark);
  color: white;
}
.hero p.hero-latest {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--muted-light);
}
.hero-latest .new-tag {
  font: 600 11px 'Public Sans', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-right: 8px;
}

/* ---------- Solutions ---------- */
.solutions {
  padding: 0 64px 110px;
  max-width: 900px;
  margin: 0 auto;
}
.eyebrow {
  font: 600 12px 'Public Sans', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 28px;
}
.solutions-list {
  border-top: 1px solid var(--border-soft);
}
.solution {
  display: grid;
  grid-template-columns: 80px 300px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline;
}
.solution .num {
  font: 400 16px 'Newsreader', serif;
  color: oklch(0.55 0.03 255);
}
.solution h3 {
  font: 400 26px 'Newsreader', serif;
  margin: 0;
}
.solution p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Approach (three layers) ---------- */
.approach {
  background: var(--band-light);
  padding: 100px 64px;
}
.approach-inner {
  max-width: 900px;
  margin: 0 auto;
}
.approach h2 {
  font: 400 34px/1.25 'Newsreader', serif;
  margin: 0 0 20px;
  max-width: 620px;
  text-wrap: pretty;
}
.approach-lead {
  font-size: 16px;
  line-height: 1.7;
  color: oklch(0.42 0.02 258);
  margin: 0 0 56px;
  max-width: 620px;
}
.layers {
  list-style: none;
  margin: 0;
  padding: 0 0 0 40px;
  border-left: 1px solid oklch(0.86 0.014 255);
  display: grid;
  gap: 44px;
}
.layer { position: relative; }
.layer::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 4px var(--band-light);
}
.layer-label {
  display: block;
  font: 600 11px 'Public Sans', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 8px;
}
.layer h3 {
  font: 400 24px 'Newsreader', serif;
  margin: 0 0 10px;
}
.layer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 620px;
}

/* ---------- Tools strip ---------- */
.tools {
  max-width: 900px;
  margin: 0 auto;
  padding: 104px 64px 104px;
  text-align: center;
}
.tools .eyebrow { margin-bottom: 14px; }
.tools-lead {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 40px;
}
.tools-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px 52px;
}
.tool {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted-light);
  font-size: 15px;
}
.tool svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: oklch(0.55 0.04 255);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- About ---------- */
.about {
  background: var(--band-light);
  padding: 100px 64px;
}
.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.about .eyebrow { margin-bottom: 20px; }
.about h2 {
  font: 400 34px/1.25 'Newsreader', serif;
  margin: 0 0 20px;
}
.about-text p {
  font-size: 15px;
  line-height: 1.7;
  color: oklch(0.42 0.02 258);
  margin: 0;
}
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.founder-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 16px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}
.photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 16px;
  border-radius: 4px;
  background: oklch(0.92 0.008 255);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.founder-name {
  font: 500 17px 'Newsreader', serif;
}
.founder-bio {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Writing / blog list ---------- */
.writing {
  padding: 100px 64px 110px;
  max-width: 900px;
  margin: 0 auto;
}
.writing-list {
  border-top: 1px solid var(--border-soft);
}
.post-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline;
}
.post-row .date {
  font: 400 14px 'Newsreader', serif;
  color: oklch(0.55 0.03 255);
  white-space: nowrap;
}
.post-row h3 {
  font: 400 24px 'Newsreader', serif;
  margin: 0 0 8px;
}
.post-row h3 a { color: var(--ink); }
.post-row h3 a:hover { color: var(--navy); }
.post-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.writing-more {
  margin-top: 28px;
  font-size: 14px;
}

/* ---------- Article pages ---------- */
.article {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}
.article .eyebrow { margin-bottom: 16px; }
.article h1 {
  font: 400 42px/1.2 'Newsreader', serif;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.article .byline {
  font-size: 14px;
  color: var(--muted-light);
  margin: 0 0 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
}
.article p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 24px;
}
.article h2 {
  font: 400 28px/1.3 'Newsreader', serif;
  margin: 48px 0 16px;
}
.article ul, .article ol {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 24px;
  padding-left: 24px;
}
.article li { margin-bottom: 8px; }
.article .backlink {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 14px;
}

/* ---------- Chart (figure) ---------- */
.viz {
  margin: 40px 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 20px 16px;
  background: var(--surface);
}
.viz-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}
.viz-subtitle {
  font-size: 13px;
  color: var(--muted-light);
  margin: 0 0 16px;
}
.viz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.viz-legend .key {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 7px;
}
.viz svg { display: block; width: 100%; height: auto; }
.viz .axis-label { font: 12px 'Public Sans', sans-serif; fill: var(--muted-light); }
.viz .end-label { font: 600 12px 'Public Sans', sans-serif; fill: var(--muted); }
.viz-note {
  font-size: 12px;
  color: var(--muted-light);
  margin: 12px 0 0;
}
.viz-tooltip {
  position: fixed;
  pointer-events: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(30, 40, 70, 0.1);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ink);
  z-index: 10;
  display: none;
  min-width: 150px;
}
.viz-tooltip .tt-month {
  font-weight: 600;
  margin-bottom: 6px;
}
.viz-tooltip .tt-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
}
.viz-tooltip .tt-swatch {
  width: 10px;
  height: 3px;
  border-radius: 2px;
}
.viz-tooltip .tt-val {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  padding-left: 12px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-band);
  color: white;
  padding: 90px 64px;
  text-align: center;
}
.cta-band h2 {
  font: 400 36px/1.2 'Newsreader', serif;
  margin: 0 0 16px;
}
.cta-band p {
  margin: 0 0 32px;
  color: oklch(0.8 0.03 255);
  font-size: 16px;
}
.btn-inverse {
  display: inline-block;
  background: white;
  color: var(--navy-band);
  padding: 15px 32px;
  border-radius: 2px;
  font-weight: 500;
}
.btn-inverse:hover {
  background: oklch(0.92 0.01 255);
  color: var(--navy-band);
}
.cta-band p.cta-alt {
  margin: 28px 0 0;
  font-size: 14px;
  color: oklch(0.75 0.03 255);
}
.cta-alt a {
  color: oklch(0.88 0.02 255);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-alt a:hover { color: white; }

/* ---------- Footer ---------- */
footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 64px;
  font-size: 13px;
  color: var(--muted-light);
}
footer .links {
  display: flex;
  gap: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  header { padding: 20px 24px; }
  header nav { gap: 20px; }

  .hero { padding: 72px 24px 64px; }
  .hero h1 { font-size: 38px; }

  .solutions { padding: 0 24px 72px; }
  .solution {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "num title"
      ".   desc";
    gap: 8px 16px;
    padding: 28px 0;
  }
  .solution .num { grid-area: num; }
  .solution h3 { grid-area: title; }
  .solution p { grid-area: desc; }

  .approach { padding: 64px 24px; }
  .approach h2 { font-size: 28px; }
  .approach-lead { margin-bottom: 40px; }
  .layers {
    padding-left: 26px;
    gap: 36px;
  }
  .layer::before { left: -31px; }

  .tools { padding: 64px 24px; }
  .tools-row { gap: 22px 32px; }

  .about { padding: 64px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }

  .writing { padding: 64px 24px 72px; }
  .post-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 24px 0;
  }

  .article { padding: 56px 24px 72px; }
  .article h1 { font-size: 32px; }

  .cta-band { padding: 64px 24px; }
  footer {
    flex-direction: column;
    gap: 12px;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  header {
    flex-direction: column;
    gap: 16px;
  }
  .founders { grid-template-columns: 1fr; }
}
