/*
Theme Name: Maschinenmensch
Template: hello-elementor
Description: Child theme — front page + journal/portfolio styling for machine-human.com
Version: 1.0
*/
/* ==========================================================================
   Maschinenmensch — WordPress styles for Journal posts + Portfolio projects
   Paste into Appearance → Customize → Additional CSS (or your child theme).
   Fonts: add to header (or a fonts plugin):
   <link href="https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet">
   ========================================================================== */

:root {
  --mm-ink: #0B2740;
  --mm-body: #3E5B74;
  --mm-muted: #5B7489;
  --mm-blue: #2F6CB3;
  --mm-blue-dark: #1B4E8A;
  --mm-line: #D4DFE9;
  --mm-line-soft: #E7EEF4;
  --mm-wash: #F2F6FA;
  --mm-sans: Archivo, system-ui, sans-serif;
  --mm-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---- Base ------------------------------------------------------------- */
body { background: #fff; color: var(--mm-ink); font-family: var(--mm-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--mm-blue); text-decoration: none; }
a:hover { color: var(--mm-blue-dark); }
h1, h2, h3, h4 { font-family: var(--mm-sans); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; color: var(--mm-ink); text-wrap: balance; }
h1 { font-size: clamp(32px, 4.6vw, 60px); }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -0.015em; }
p, li { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.65; color: var(--mm-body); text-wrap: pretty; }
hr { border: 0; border-top: 1px solid var(--mm-line); margin: 48px 0; }
img { max-width: 100%; height: auto; }

/* Monospace label — use on categories, dates, eyebrows, meta */
.mm-label,
.entry-meta, .post-meta, .cat-links, .tags-links, .posted-on, .byline {
  font-family: var(--mm-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mm-muted);
}
.cat-links a, .mm-label a { color: var(--mm-blue); }

/* Buttons */
.mm-button, .wp-block-button__link, button, input[type="submit"] {
  font-family: var(--mm-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 12px 18px; border: 1px solid var(--mm-blue); background: #fff; color: var(--mm-blue);
  border-radius: 0; cursor: pointer; transition: background .15s, color .15s;
}
.mm-button:hover, .wp-block-button__link:hover, button:hover, input[type="submit"]:hover { background: var(--mm-blue); color: #fff; }
.mm-button--solid, .is-style-fill .wp-block-button__link { background: var(--mm-blue); color: #fff; }
.mm-button--solid:hover, .is-style-fill .wp-block-button__link:hover { background: var(--mm-blue-dark); }

/* ---- Blog archive (Journal) — list of posts as hairline grid --------- */
.blog .site-main, .archive .site-main, .mm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--mm-line);
  border-left: 1px solid var(--mm-line);
  gap: 0;
}
.blog article, .archive article, .mm-grid > * {
  border-right: 1px solid var(--mm-line);
  border-bottom: 1px solid var(--mm-line);
  padding: clamp(24px, 2.8vw, 34px);
  margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .15s;
}
.blog article:hover, .archive article:hover, .mm-grid > *:hover { background: var(--mm-wash); }
.blog article .entry-title, .archive article .entry-title { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; margin: 0; }
.blog article .entry-title a, .archive article .entry-title a { color: var(--mm-ink); }
.blog article .entry-summary p, .archive article .entry-summary p { font-size: 13.5px; line-height: 1.55; margin: 0; }
.blog article .post-thumbnail img, .archive article .post-thumbnail img { border: 1px solid var(--mm-line); display: block; }
.more-link { margin-top: auto; font-family: var(--mm-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.more-link::after { content: " →"; }

/* ---- Single post / project ------------------------------------------- */
.single .entry-header { max-width: 900px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) 24px 32px; border-bottom: 1px solid var(--mm-line); }
.single .entry-header .entry-title { margin: 20px 0 24px; }
.single .entry-content { max-width: 720px; margin: 0 auto; padding: 40px 24px 96px; }
.single .entry-content .alignwide { max-width: 1100px; margin-left: 50%; transform: translateX(-50%); }
.single .entry-content blockquote { border-left: 1px solid var(--mm-blue); margin: 32px 0; padding: 4px 0 4px 24px; font-size: 20px; color: var(--mm-ink); }
.single .entry-content blockquote p { font-size: inherit; color: inherit; }
.single .entry-content figcaption { font-family: var(--mm-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mm-muted); margin-top: 10px; }
.single .entry-content code, .single .entry-content pre { font-family: var(--mm-mono); font-size: 13px; background: var(--mm-wash); border: 1px solid var(--mm-line); }
.single .entry-content code { padding: 2px 6px; }
.single .entry-content pre { padding: 18px; overflow: auto; }

/* Hero image on single post */
.single .post-thumbnail { border-top: 1px solid var(--mm-line); border-bottom: 1px solid var(--mm-line); }
.single .post-thumbnail img { display: block; width: 100%; max-height: 600px; object-fit: cover; }

/* ---- Portfolio project spec block ------------------------------------ */
/* Put this HTML block at the top of each project post (see project-template.html).
   ID / Domain / Route / Stage — matches the index table on the main site. */
.mm-spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-top: 1px solid var(--mm-line);
  border-left: 1px solid var(--mm-line);
  margin: 0 0 40px;
}
.mm-spec > div {
  border-right: 1px solid var(--mm-line);
  border-bottom: 1px solid var(--mm-line);
  padding: 16px 18px;
}
.mm-spec dt { font-family: var(--mm-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mm-muted); margin: 0 0 6px; }
.mm-spec dd { margin: 0; font-family: var(--mm-mono); font-size: 13px; color: var(--mm-ink); }
.mm-spec dd.is-id { color: var(--mm-blue); }
.mm-spec dd.is-stage { color: var(--mm-blue); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Category tags rendered as pipeline stage pills */
.mm-tag {
  display: inline-block; font-family: var(--mm-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--mm-line); color: var(--mm-muted); margin: 0 6px 6px 0;
}

/* Back link */
.mm-back { display: inline-block; font-family: var(--mm-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mm-blue); margin-bottom: 20px; }
.mm-back::before { content: "← "; }

/* ---- Header / footer (if the theme lets you) -------------------------- */
.site-header { border-bottom: 1px solid var(--mm-line); background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); }
.site-header .custom-logo { height: 24px; width: auto; }
.main-navigation a { font-family: var(--mm-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mm-muted); }
.main-navigation a:hover { color: var(--mm-ink); }
.site-footer { border-top: 1px solid var(--mm-line); font-family: var(--mm-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mm-muted); }

/* Hide default WP chrome that clashes */
.single .entry-footer, .comments-area .comment-reply-title { font-family: var(--mm-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.sticky .entry-title::before { display: none; }


/* Front page: hide parent theme header/footer so front-page.php owns the chrome */
body.mm-front .site-header, body.mm-front .site-footer,
body.mm-front header.elementor-location-header, body.mm-front footer.elementor-location-footer { display: none; }
