/* ===== DATAPÄÄOMA — MODERNIZED DARK THEME ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #000000;
  --dark:        #0d0d0d;
  --dark-2:      #141414;
  --dark-3:      #1a1a1a;
  --red:         #e8321f;
  --red-dim:     rgba(232, 50, 31, 0.15);
  --white:       #ffffff;
  --grey:        rgba(255,255,255,0.55);
  --grey-light:  rgba(255,255,255,0.08);
  --border:      rgba(255,255,255,0.1);
  --font:        'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-w:       1080px;
  --post-w:      740px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== HEADER ===== */
header {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-wrap img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  /* Show original red logo instead */
  filter: none;
}

.logo-title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 0.1rem;
  margin-left: auto;
  align-items: center;
}

nav a {
  color: var(--grey);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

nav a:hover {
  background: var(--grey-light);
  color: var(--white);
  text-decoration: none;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
  flex-shrink: 0;
}

.social-icons a {
  display: flex;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.social-icons a:hover { opacity: 1; }
.social-icons img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* ===== HERO ===== */
.hero {
  background: var(--black);
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle grid decoration */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Red top accent line */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
}

.hero-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 2rem;
  display: block;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 400;
}

/* ===== SPLIT SECTION (image + quote) ===== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.split-image {
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.9);
}

.split-quote {
  background: var(--dark);
  display: flex;
  align-items: center;
  padding: 4rem 3.5rem;
  border-left: 1px solid var(--border);
}

.split-quote-inner { max-width: 440px; }

.split-quote blockquote {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.6;
  color: var(--white);
  position: relative;
}

.split-quote blockquote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--red);
  line-height: 0;
  vertical-align: -0.6em;
  margin-right: 0.1em;
  font-style: normal;
}

.split-quote cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--grey);
  letter-spacing: 0.04em;
}

/* ===== QUOTE BLOCK (full-width) ===== */
.quote-block {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
  text-align: center;
}

.quote-block blockquote {
  max-width: 760px;
  margin: 0 auto 1rem;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.65;
  color: var(--white);
}

.quote-block blockquote::before {
  content: '\201C';
  color: var(--red);
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.15em;
  font-style: normal;
}

.quote-block cite {
  font-size: 0.9rem;
  color: var(--grey);
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 2rem; }
.section.alt { background: var(--dark); }

.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-header { margin-bottom: 3rem; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.2;
}

/* ===== ABOUT / BODY TEXT ===== */
.about-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
  max-width: 760px;
}

.about-text p + p { margin-top: 1.25rem; }

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.2s, transform 0.2s;
}

.blog-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  text-decoration: none;
}

.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) saturate(0.85);
  transition: filter 0.2s;
}

.blog-card:hover .blog-card-img {
  filter: brightness(1) saturate(1);
}

.blog-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  font-size: 0.72rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.6rem;
}

.blog-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.blog-card p {
  font-size: 0.86rem;
  color: var(--grey);
  line-height: 1.6;
  flex: 1;
}

.blog-card-read {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.04em;
}

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.team-card img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  filter: grayscale(20%);
}

.team-card-info { flex: 1; }
.team-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 0.2rem; }
.team-card .role { font-size: 0.75rem; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.team-card p { font-size: 0.87rem; color: var(--grey); line-height: 1.6; }
.team-card .links { margin-top: 0.75rem; font-size: 0.82rem; }
.team-card .links a { color: var(--grey); transition: color 0.15s; }
.team-card .links a:hover { color: var(--white); text-decoration: none; }

/* ===== PODCAST ===== */
.podcast-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.podcast-logos a { display: block; opacity: 0.7; transition: opacity 0.15s; }
.podcast-logos a:hover { opacity: 1; }
.podcast-logos img {
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ===== NEWSLETTER ===== */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  max-width: 520px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1rem;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--white);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}

.newsletter-form input[type="email"]::placeholder { color: var(--grey); }
.newsletter-form input[type="email"]:focus { border-color: var(--red); }

.newsletter-form button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
  font-family: var(--font);
}

.newsletter-form button:hover { opacity: 0.85; }

/* ===== CONTACT ===== */
.contact-form { max-width: 520px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 0.85rem;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--white);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--grey); }

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); }

.contact-form textarea { height: 130px; resize: vertical; }

.contact-form button {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--red);
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  font-family: var(--font);
  transition: background 0.15s, color 0.15s;
}

.contact-form button:hover { background: var(--red); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.82rem;
  color: var(--grey);
}

.footer-brand {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-social a { opacity: 0.4; transition: opacity 0.15s; }
.footer-social a:hover { opacity: 1; }
.footer-social img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ===== BLOG POST PAGE ===== */
.post-header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem 3.5rem;
  position: relative;
}

.post-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
}

.post-header-inner { max-width: var(--post-w); margin: 0 auto; }

.post-header .back-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s;
}

.post-header .back-link:hover { color: var(--white); text-decoration: none; }

.post-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.post-meta {
  font-size: 0.8rem;
  color: var(--grey);
  letter-spacing: 0.03em;
}

/* ===== POST BODY ===== */
.post-body {
  max-width: var(--post-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.post-body p {
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.82);
}

.post-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.post-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin: 2.25rem 0 0.75rem;
}

.post-body h4, .post-body h5 {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin: 1.5rem 0 0.5rem;
}

.post-body blockquote {
  border-left: 3px solid var(--red);
  background: var(--dark-2);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  border-radius: 0 6px 6px 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-body strong { color: var(--white); font-weight: 700; }
.post-body em { color: rgba(255,255,255,0.7); }

.post-body ul, .post-body ol {
  margin: 0.75rem 0 1.5rem 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
}

.post-body a { color: var(--red); }
.post-body a:hover { text-decoration: underline; }

.post-body .post-image {
  width: 100%;
  border-radius: 6px;
  margin: 2rem 0;
  display: block;
  filter: brightness(0.9) saturate(0.9);
}

.post-body .author-sig {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}

/* ===== RECENT POSTS ===== */
.recent-posts {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem;
}

.recent-posts-inner { max-width: var(--post-w); margin: 0 auto; }

.recent-posts h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.5rem;
}

.recent-post-list { list-style: none; }

.recent-post-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.recent-post-list li:last-child { border-bottom: none; }

.recent-post-list a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
  font-weight: 500;
}

.recent-post-list a:hover {
  color: var(--white);
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  .split-section { grid-template-columns: 1fr; }
  .split-image { height: 280px; }
  .split-quote { padding: 2.5rem 1.5rem; border-left: none; border-top: 1px solid var(--border); }
  .split-quote blockquote { font-size: 1.1rem; }
}

@media (max-width: 640px) {
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .hero h1 { font-size: 2.4rem; }
  nav { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; align-items: center; text-align: center; }
  .post-header h1 { font-size: 1.5rem; }
  .section { padding: 3.5rem 1.5rem; }
  .post-body { padding: 2.5rem 1.25rem 4rem; }
}
