/* ============================================================
   Rogier Banis — Dark editorial theme
   Updated 2026-05-19
   ============================================================ */

:root {
  /* Brand */
  --navy:        #0b1318;
  --navy-deep:   #060b0f;
  --surface:     #131d23;
  --surface-2:   #1a242b;
  --rule:        #1f2a30;
  --rule-strong: #2a3740;

  --blue:        #03a9f4;
  --blue-soft:   #4fc0f5;
  --green:       #00bf87;
  --orange:      #f79007;

  --fg:          #e8edf0;
  --fg-soft:     #c6d1d8;
  --fg-muted:    #8a9aa3;
  --fg-dim:      #5f6f78;

  /* Type */
  --font-sans:   'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono:   'JetBrains Mono', ui-monospace, 'SF Mono', 'Menlo', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a {
  color: var(--blue-soft);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--blue); }

::selection { background: var(--blue); color: var(--navy-deep); }

/* Soft texture / grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 80% -10%, rgba(3,169,244,0.08) 0%, transparent 45%),
    radial-gradient(circle at -10% 110%, rgba(0,191,135,0.05) 0%, transparent 55%);
  z-index: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ============ Mono accent (eyebrow / labels) ============ */
.mono,
.eyebrow,
.post-num,
.post-link time,
.tags li,
.brand-sub,
.hero-card-meta {
  font-family: var(--font-mono);
  font-feature-settings: "ss01" on, "cv11" on;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue-soft);
  font-weight: 500;
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--blue-soft);
  opacity: 0.7;
}

/* ============ Header ============ */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  background: rgba(11, 19, 24, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--fg);
}
.brand-initials {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.brand-sub {
  font-size: 10px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 3px;
}
.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.site-header nav a {
  color: var(--fg-soft);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.site-header nav a:hover { color: var(--blue-soft); }
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--blue-soft);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.site-header nav a:hover::after { transform: scaleX(1); }

/* ============ Hero ============ */
.hero {
  padding: 120px 0 96px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1200px;
  height: 1200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(3,169,244,0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-copy { max-width: 880px; }
.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.05;
  color: var(--fg);
  margin: 0 0 32px;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--blue-soft);
  font-weight: 700;
}
.hero-copy .lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--fg-soft);
  max-width: 660px;
  margin: 0 0 40px;
  line-height: 1.6;
}

.hero-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  max-width: 520px;
}
.hero-byline-rule {
  width: 28px;
  height: 1px;
  background: var(--blue-soft);
}
.hero-byline-text {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  margin: 0;
}
.hero-byline-text strong {
  color: var(--fg);
  font-weight: 600;
}

/* ============ Posts ============ */
.posts { padding: 104px 0 80px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 56px;
  gap: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--fg);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.section-sub {
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
  text-align: right;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.post-item {
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.post-item:first-child { border-top: 1px solid var(--rule); }

.post-link {
  display: grid;
  grid-template-columns: 80px 1fr 160px;
  gap: 48px;
  padding: 40px 0;
  color: inherit;
  transition: padding .25s ease, background .25s ease;
  align-items: start;
  position: relative;
}
.post-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(3,169,244,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.post-link:hover { color: inherit; padding-left: 16px; }
.post-link:hover::before { opacity: 1; }

.post-num {
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  padding-top: 8px;
}
.post-link:hover .post-num { color: var(--blue-soft); }

.post-body { min-width: 0; }
.post-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--fg);
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.post-link:hover .post-body h3 { color: var(--blue-soft); }
.post-body p {
  color: var(--fg-soft);
  margin: 0 0 20px;
  font-size: 16px;
  max-width: 640px;
  line-height: 1.6;
}

.post-meta-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
  padding-top: 8px;
}
.post-link time {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.tags li {
  font-size: 10px;
  color: var(--fg-muted);
  border: 1px solid var(--rule-strong);
  padding: 3px 9px;
  border-radius: 2px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all .2s ease;
}
.post-link:hover .tags li {
  border-color: var(--blue-soft);
  color: var(--blue-soft);
}

.post-cta {
  display: none; /* arrow on hover only via pseudo on h3 */
}

/* ============ About ============ */
.about {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
  background: var(--surface);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}
.about-grid h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  color: var(--fg);
  margin: 0 0 24px;
  letter-spacing: -0.015em;
}
.about-grid p {
  color: var(--fg-soft);
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
}
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px !important;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.about-links a {
  color: var(--blue-soft);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 4px;
  font-weight: 500;
}
.about-links a:hover { border-color: var(--blue); }
.about-signoff {
  padding: 32px;
  border: 1px solid var(--rule-strong);
  background: var(--surface-2);
  border-radius: 2px;
}
.about-signature {
  max-width: 200px;
  margin: 0 0 16px;
  opacity: 0.92;
  filter: brightness(0) invert(1);
}
.about-place {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 !important;
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0;
  background: var(--navy-deep);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.site-footer a { color: var(--fg-soft); }
.site-footer a:hover { color: var(--blue-soft); }

/* ============ Mobile ============ */
@media (max-width: 900px) {
  .container { padding: 0 22px; }
  .hero { padding: 72px 0 64px; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 48px); }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .section-sub { text-align: left; }

  .posts { padding: 64px 0 32px; }
  .post-link {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 32px 0;
  }
  .post-link:hover { padding-left: 0; }
  .post-num { padding-top: 0; }
  .post-body h3 { font-size: 22px; }
  .post-meta-side {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    text-align: left;
  }
  .tags { justify-content: flex-start; }

  .about { padding: 64px 0; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-signoff { padding: 24px; }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .site-header nav { gap: 20px; flex-wrap: wrap; }
  .site-footer .container { justify-content: flex-start; }
}
