﻿:root {
  --bg: #000000;
  --bg-elevated: #111111;
  --text-main: #e2e2e2;
  --text-muted: #c4c4c4;
  --accent: #ffffff;
  --border-subtle: #333333;
  --cookie-bg: #1b1b1b;
}

/* Reset */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* Layout container */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================
   HEADER
========================= */

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

.site-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.9rem 0;
  gap: 0.6rem;
}

/* Navigation */

nav {
  width: 100%;
  padding-bottom: 0.6rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.95rem;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
}

nav a:hover {
  text-decoration: underline;
}

nav .current > a {
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
}

/* Logo */

.brand {
  width: 100%;
  text-align: center;
  margin-top: 0.3rem;
  line-height: 0; /* prevents subtle vertical shift */
}

.brand img {
  display: block;
  height: 71px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* =========================
   MAIN CONTENT
========================= */

main {
  padding: 2.5rem 0 3rem;
}

section {
  margin-bottom: 2.5rem;
}

section:last-of-type {
  margin-bottom: 0;
}

h1, h2, h3, h4 {
  font-weight: 600;
  margin: 0 0 1.25rem;
  line-height: 1.35;
}

h1 { font-size: 1.7rem; }

h2 { font-size: 1.5rem; }

h3 {
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* =========================
   IMAGE SECTIONS
========================= */

.section-with-image {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

/* Text column grows naturally */
.section-with-image .text {
  flex: 1 1 260px;          /* flexible */
}

/* Image column fixed width */
.section-with-image .image {
  flex: 0 0 260px;
}

/* Image fills its column height */
.section-with-image .image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;        /* no crop */
  border-radius: 4px;
}

.page-research .section-with-image .image{
  margin-top: 3.4rem;
}

.page-publish .section-with-image .image{
  margin-top: 5.9rem;
}

/* =========================
   SIGNATURE
========================= */

.signature {
  margin-top: 1.5rem;
}

.signature img {
  max-width: 260px;   /* adjust size */
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   CONTACT FORM (Formspree)
========================= */

.contact-form {
  margin-top: 1rem;
  max-width: 720px;
}

.contact-form .form-row {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9a9a9a;
}

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

.contact-form .form-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-form button {
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-main);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
}

.contact-form button.primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}

.contact-form button:hover {
  opacity: 0.9;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Optional: simple “success/error” message blocks if you use them */
.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg);
  padding: 0.9rem 0 1.1rem;
  font-size: 0.82rem;
  color: #999999;
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

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

/* =========================
   COOKIE BANNER
========================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--cookie-bg);
  color: var(--text-main);
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: none;
  z-index: 999;
  font-size: 0.9rem;
}
