/* ============================================================
   Chromatic Ventures — light, minimal cover + detail pages
   Static, self-contained (fonts self-hosted; no external requests).
   ============================================================ */

/* Poppins — self-hosted (OFL). Rounded geometric, echoes the logo. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600.woff2") format("woff2");
}

:root {
  --bg:    #ffffff;   /* pure white so the white-background logo blends seamlessly */
  --ink:   #1b2637;
  --body:  #47536a;
  --muted: #6b7280;
  --faint: #9aa3b2;
  --line:  #e6e9ef;

  --violet:  #7b2ff7;
  --magenta: #ff2fb0;
  --orange:  #ff9900;
  --cyan:    #12b2ff;
  --spectrum: linear-gradient(100deg, var(--violet), var(--magenta) 34%, var(--orange) 64%, var(--cyan));

  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }

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

/* ============================ Cover ============================ */
.cover-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.cover {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.cover-logo {
  width: min(322px, 72vw);
  height: auto;
}

.cover-tagline {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 400;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  letter-spacing: 0.01em;
}

.cover-accent {
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 24px;
  border-radius: 2px;
  background: var(--spectrum);
}

.cover-links {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
}
.cover-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cover-links a:hover { border-bottom-color: var(--violet); }
.cover-links .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--spectrum);
}

.cover-footer {
  padding: 22px 24px;
  text-align: center;
  color: var(--faint);
  font-size: 0.8rem;
}
.cover-footer p { margin: 0; }

/* ======================= Detail (doc) ========================= */
.doc {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(44px, 9vw, 88px) 24px clamp(40px, 7vw, 72px);
}

.doc-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: clamp(32px, 6vw, 52px);
  color: var(--muted);
  font-size: 0.9rem;
}
.doc-home img { width: 40px; height: auto; }
.doc-home:hover { color: var(--ink); }

.doc h1 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.doc p {
  margin: 0 0 18px;
  color: var(--body);
  font-size: 1.1rem;
}
.doc p:last-of-type { margin-bottom: 0; }
.doc a.inline {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.doc a.inline:hover { text-decoration-color: var(--violet); }

.doc-footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}
.doc-footer p { margin: 0; }
.doc-footer a { color: var(--faint); text-decoration: none; }
.doc-footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
