/* Marcel Cremer — personal homepage
   Brand system: see STYLEGUIDE.md. The site deliberately uses the dark
   "Presentation / Talk" palette (anthracite + yellow) rather than the
   light Digital/Brand background — see the "Applied on the website" note
   in the styleguide. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/montserrat-400.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-600.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/montserrat-700.woff2") format("woff2");
}

:root {
  --color-primary:     #1A4D8F;
  --color-secondary:   #38BDF8;
  --color-secondary-2: #16A340;
  --color-accent:      #F5C400;

  --color-background: #222222;
  --color-surface:    #2A2A2A;
  --color-surface-2:  #1B1B1B;
  --color-text:       #FFFFFF;
  --color-text-muted: #B3B3B3;
  --color-border:     rgba(255, 255, 255, 0.12);
  --color-on-accent:  #1A1A1A;

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-text);
}

a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration-color: var(--color-accent);
}

a:hover {
  color: var(--color-accent);
}

p {
  color: var(--color-text);
}

.muted {
  color: var(--color-text-muted);
}

/* Yellow "highlighter box" — same treatment as the title-slide keyword box
   in the talk deck: solid accent fill, dark text. */

.mark {
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 0 0.35rem;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Header */

.site-header {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-on-accent);
  background: var(--color-accent);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--color-accent);
}

.site-nav a.lang-switch {
  border: 1.5px solid var(--color-accent);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
  color: var(--color-accent);
}

.site-nav a.lang-switch:hover {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  display: block;
}

/* Hero */

.hero {
  padding: 4.5rem 0 3rem;
}

.hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-on-accent);
  background: var(--color-accent);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  max-width: 20ch;
  margin: 0 0 1.2rem;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.hero .roles {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Proof bar */

.proof-bar {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
  margin: 1rem 0 3rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.proof-stat .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
}

.proof-stat .label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Sections */

section {
  padding: 3rem 0;
}

/* Section headers: full-bleed yellow bar, left-aligned — same pattern as
   the talk deck's section-header slides. */

section > h2 {
  display: inline-block;
  font-size: 1.4rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 0.4rem 1rem;
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: 2rem;
  font-weight: 400;
}

.page-title {
  display: inline-block;
  font-size: 1.5rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 0.4rem 1rem;
  margin-bottom: 1rem;
}

/* Pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.pillar h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pillar p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.pillar .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-on-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.pillar.tech .tag {
  background: var(--color-secondary);
}

.pillar.business .tag {
  background: var(--color-secondary-2);
  color: #fff;
}

.pillar.capital .tag {
  background: var(--color-accent);
}

/* Cards */

.card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.card .meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.card p {
  margin: 0 0 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.card .placeholder-flag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-on-accent);
  background: var(--color-accent);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  margin-bottom: 0.6rem;
}

/* Blog list */

.blog-index {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-index article {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.blog-index h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.15rem;
}

.blog-index h3 a {
  text-decoration: none;
  color: var(--color-text);
}

.blog-index h3 a:hover {
  color: var(--color-accent);
}

.blog-index .date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Article */

.article {
  padding: 3rem 0 4rem;
}

.article .date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.article h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 1.2rem;
}

.article p {
  font-size: 1.05rem;
  max-width: 68ch;
  font-weight: 400;
  color: #E5E5E5;
}

.article h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 0.3rem 0.8rem;
}

.article h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.article h4 {
  font-size: 0.95rem;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5rem 0 1.5rem;
  display: block;
}

.article ul, .article ol {
  color: #E5E5E5;
  max-width: 68ch;
  font-size: 1.05rem;
}

.article code {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}

.article pre {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  max-width: 68ch;
}

.article pre code {
  background: none;
  border: none;
  padding: 0;
}

/* Archive banner — flags legacy content ported from the previous blog that
   predates the capital/tech repositioning, so it reads as archive material
   rather than the current voice of the site. */

.archive-banner {
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  margin-bottom: 1.75rem;
  max-width: 68ch;
}

.archive-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Blog index: separator between current and archived posts */

.index-subheading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin: 2.5rem 0 0.5rem;
}

.index-subheading:first-of-type {
  margin-top: 0;
}

/* Footer */

.site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0 3rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-inner p {
  color: var(--color-text-muted);
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 1.2rem;
}

.footer-inner a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.footer-inner a:hover {
  color: var(--color-accent);
}

/* Legal pages */

.legal {
  padding: 3rem 0 4rem;
  max-width: 68ch;
  margin: 0 auto;
}


.legal h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 0.25rem 0.7rem;
}

.legal p {
  font-weight: 400;
  color: #E5E5E5;
}

.todo {
  background: rgba(245, 196, 0, 0.18);
  border: 1px dashed var(--color-accent);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-weight: 600;
  font-size: 0.9em;
  color: var(--color-accent);
}

/* Responsive */

@media (max-width: 720px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    display: none;
    gap: 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
