/*
Theme Name: My Crisis Cost
Theme URI: https://mycrisiscost.com
Author: My Crisis Cost
Author URI: https://mycrisiscost.com
Description: Minimal blank theme for mycrisiscost.com calculator tools.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mycrisiscost
*/

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050709;
  --surface: #0e1219;
  --border: #242d3b;
  --text: #eaeff5;
  --text-dim: #94a3b8;
  --text-muted: #556275;
  --red: #ff4444;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; height: auto; }

/* ============ SITE HEADER ============ */
.site-header {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
}

.site-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

/* ============ CONTENT ============ */
.site-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Full-width page template — no padding, no max-width constraint on inner content */
.page-template-page-fullwidth .site-content {
  max-width: none;
  padding: 0;
}

/* ============ SITE FOOTER ============ */
.site-footer {
  text-align: center;
  padding: 32px 20px;
  border-top: 1px solid var(--border);
  max-width: 800px;
  margin: 40px auto 0;
  font-size: 12px;
  color: var(--text-muted);
}

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

/* ============ BLOG STYLES ============ */
.post-list {
  list-style: none;
}

.post-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.post-item-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.post-item-title a {
  color: var(--text);
}

.post-item-title a:hover {
  color: var(--red);
  text-decoration: none;
}

.post-item-excerpt {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Single post */
.single-post-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.single-post-meta {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 12px;
}

.single-post-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.single-post-content {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
}

.single-post-content h2 {
  color: var(--text);
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.single-post-content h3 {
  color: var(--text);
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 12px;
}

.single-post-content p {
  margin-bottom: 20px;
}

.single-post-content strong {
  color: var(--text);
}

.single-post-content ul, .single-post-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.single-post-content li {
  margin-bottom: 8px;
}

/* ============ WORDPRESS DEFAULTS ============ */
.wp-block-image { margin: 24px 0; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
