/* ============================================================
   Funk Factory Ventures — site styles
   Design language: research publication.
   Serif body for long-form readability, sans-serif for UI chrome.
   Warm off-white background, near-black text, amber accent.
   ============================================================ */

:root {
  --bg: #faf8f5;
  --bg-elev: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #7a7a7a;
  --rule: #e6e0d4;
  --rule-strong: #d4ccbb;
  --accent: #b8531a;
  --accent-soft: #f4ead8;
  --max: 720px;
  --max-wide: 1080px;
  --serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", "Charter", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 120ms ease, color 120ms ease; }
a:hover { border-bottom-color: var(--accent); }

/* ----- Header / nav ----- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(6px);
  -webkit-backdrop-filter: saturate(180%) blur(6px);
  background: rgba(250, 248, 245, 0.85);
}
.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: none;
}
.brand:hover { border-bottom: none; color: var(--ink); }
.brand .brand__mark {
  color: var(--accent);
  font-style: italic;
}
.nav {
  display: flex;
  gap: 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  color: var(--ink-soft);
  border-bottom: none;
}
.nav a:hover { color: var(--accent); border-bottom: none; }

/* ----- Layout ----- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 80px;
}
main.wide { max-width: var(--max-wide); }

/* ----- Hero ----- */
.hero {
  padding: 24px 0 40px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.hero__kicker {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero p {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 600px;
}

/* ----- Section headings ----- */
.section-head {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

/* ----- Reports list ----- */
.reports {
  list-style: none;
  padding: 0;
  margin: 0;
}
.reports li {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.reports li:last-child { border-bottom: none; }
.reports__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 6px;
}
.reports__title a {
  color: var(--ink);
  border-bottom: none;
}
.reports__title a:hover { color: var(--accent); border-bottom: none; }
.reports__meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.reports__meta .tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 3px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 8px;
}
.reports__desc {
  color: var(--ink-soft);
  margin: 0;
  font-size: 17px;
}

/* ----- Article (report) ----- */
.article-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.article-header .kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.article-header h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}
.article-header .dek {
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 18px;
}
.article-header .byline {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

article h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  margin: 48px 0 16px;
  letter-spacing: -0.005em;
}
article h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  margin: 36px 0 12px;
}
article p { margin: 0 0 18px; }
article ul, article ol { margin: 0 0 18px; padding-left: 26px; }
article li { margin-bottom: 6px; }
article blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  color: var(--ink-soft);
  font-style: italic;
}
article hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}
article code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 3px;
}
article pre {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 14px;
}
article pre code { background: none; padding: 0; }
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}
article th, article td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}
article th {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--bg);
}

/* ----- About ----- */
.about-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--rule);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  color: var(--accent);
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 80px;
  padding: 36px 24px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 13px;
}
.site-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--ink-muted); border-bottom-color: var(--rule); }
.site-footer a:hover { color: var(--accent); }

/* ----- Portfolio grid (investments & real estate) ----- */
.portfolio-grid {
  display: grid;
  gap: 28px;
  margin: 0 0 40px;
}
.portfolio-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.portfolio-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
  border-color: var(--rule-strong);
}
.card__image {
  aspect-ratio: 16 / 10;
  background: var(--accent-soft);
  background-size: cover;
  background-position: center;
  position: relative;
}
.card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  color: var(--accent);
  background-image: linear-gradient(135deg, var(--accent-soft) 0%, #ead7b8 100%);
  background-size: cover;
  background-position: center;
}
.card__body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card__kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 6px;
}
.card__title a {
  color: var(--ink);
  border-bottom: none;
}
.card__title a:hover { color: var(--accent); border-bottom: none; }
.card__meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.card__desc {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.card__link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: none;
  margin-top: auto;
  align-self: flex-start;
}
.card__link::after {
  content: " \2192";
  transition: transform 150ms ease;
  display: inline-block;
}
.card__link:hover { border-bottom: none; }
.card__link:hover::after { transform: translateX(3px); }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .portfolio-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  html, body { font-size: 17px; }
  .hero h1 { font-size: 34px; }
  .article-header h1 { font-size: 30px; }
  .article-header .dek { font-size: 18px; }
  article h2 { font-size: 24px; }
  main { padding: 36px 20px 60px; }
  .site-header__inner { padding: 14px 20px; }
  .portfolio-grid.cols-2,
  .portfolio-grid.cols-3 { grid-template-columns: 1fr; }
}
