/*
Theme Name: Editorial Minimal
Author: You
Version: 1.0
*/

/* =========================
   Variables & Base Reset
========================= */

:root {
  --max-width: 1200px;
  --reading-width: 720px;

  --text-main: #111111;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --accent: #0055e3;

  --font: -apple-system, BlinkMacSystemFont,
    avenir next, avenir,
    segoe ui, helvetica neue, helvetica, arial, sans-serif;
}

* {
  box-sizing: border-box;
}
.site-header {
  position: relative;
  z-index: 100;
}

main {
  position: relative;
  z-index: 1;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Enforce calm editorial weight everywhere */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

/* =========================
   Header
========================= */

.site-header {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 18px;
  font-weight: 500;
  color: #0055e3;
}
.cta {
  font-size: 14px;
  font-weight: 400;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
}

/* =========================
   Blog Home – Text-First Grid
========================= */

.posts-grid {
  max-width: var(--max-width);
  margin: 96px auto 120px;
  padding: 0 24px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

/* No images by design */
.post-card img {
  display: none;
}

.post-card {
  padding-top: 8px;
}

.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.post-title {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 400;
}

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

/* =========================
   Single Post – Editorial Rhythm
========================= */

.single-header {
  max-width: var(--reading-width);
  margin: 96px auto 48px;
  padding: 0 24px;
}

.single-header h1 {
  font-size: 42px;
  line-height: 1.25;
  margin-bottom: 24px;
}

.single-content {
  max-width: var(--reading-width);
  margin: 0 auto 160px;
  padding: 0 24px;
}

/* Paragraph rhythm */
.single-content p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 1.8em;
}

/* Headings inside content */
.single-content h2 {
  font-size: 28px;
  margin-top: 3.2em;
  margin-bottom: 0.8em;
}

.single-content h3 {
  font-size: 22px;
  margin-top: 2.6em;
  margin-bottom: 0.6em;
}

/* Lists */
.single-content ul,
.single-content ol {
  margin: 1.8em 0 1.8em 1.2em;
}

.single-content li {
  margin-bottom: 0.6em;
}

/* Links inside post */
.single-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   Responsive
========================= */

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

@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .post-title {
    font-size: 20px;
  }

  .single-header h1 {
    font-size: 32px;
  }
}
/* ===== Click Safety Layer ===== */

.site-header {
  position: relative;
  z-index: 1000;
}

.site-header * {
  pointer-events: auto;
}

main {
  position: relative;
  z-index: 1;
}

/* =========================
   Contact Page
========================= */

.contact-page {
  max-width: var(--reading-width);
  margin: 96px auto 160px;
  padding: 0 24px;
}

.contact-header h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.contact-header p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.contact-form input {
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
}

.contact-form button {
  margin-top: 24px;
  align-self: flex-start;
}

.contact-success {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 16px;
}