/*
Theme Name: Doorway IT Solarized
Template: twentytwentytwo
Description: Developer-focused Solarized-light theme. IBM Plex Mono + IBM Plex Sans, warm cream background, airy 2-column card grid.
Author: Doorway
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doorway-it-solarized
*/

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

body { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 1rem; line-height: 1.7; color: #657B83; background: #FDF6E3; }
h1, h2, h3 { font-family: "IBM Plex Mono", monospace; font-weight: 700; line-height: 1.2; color: #073642; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
a { color: #268BD2; text-decoration: none; border-bottom: 1px solid transparent; transition: all 0.2s; }
a:hover { color: #B58900; border-bottom-color: #B58900; }

/* ── Split Hero ──────────────────────────────────────────────── */
.devdaily-hero { background: #EEE8D5; padding: 4rem 2rem; }
.devdaily-hero .wp-block-columns { align-items: center; }
.devdaily-hero h1 { color: #268BD2; margin-bottom: 1rem; }
.devdaily-hero .wp-block-post-excerpt { color: #586E75; font-size: 1.05rem; }
.devdaily-hero .code-preview {
  background: #FDF6E3; border: 1px solid #93A1A1; border-radius: 8px;
  padding: 1.5rem; font-family: "IBM Plex Mono", monospace; font-size: 0.85rem;
  color: #B58900; line-height: 1.8; overflow-x: auto;
}

/* ── Card Grid (airy 2-col) ──────────────────────────────────── */
.devdaily-grid .wp-block-post-template { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.devdaily-grid .wp-block-post {
  background: #EEE8D5; border: 1px solid #93A1A1; border-radius: 8px;
  overflow: hidden; transition: border-color 0.2s;
}
.devdaily-grid .wp-block-post:hover { border-color: #268BD2; }
.devdaily-grid .wp-block-post-featured-image { aspect-ratio: 16/9; overflow: hidden; }
.devdaily-grid .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.devdaily-grid .wp-block-post-title { font-size: 1.05rem; padding: 1.25rem 1.5rem 0; font-family: "IBM Plex Mono", monospace; }
.devdaily-grid .wp-block-post-title a { color: #073642; }
.devdaily-grid .wp-block-post-title a:hover { color: #B58900; }
.devdaily-grid .wp-block-post-date { padding: 0.5rem 1.5rem 1.25rem; font-size: 0.75rem; color: #839496; font-family: "IBM Plex Mono", monospace; }

/* ── Code blocks ─────────────────────────────────────────────── */
pre, code { font-family: "IBM Plex Mono", monospace; }
.wp-block-code { background: #FDF6E3; border: 1px solid #93A1A1; border-radius: 8px; padding: 1.25rem; color: #657B83; }

/* ── Nav ─────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: #EEE8D5; border-bottom: 1px solid #93A1A1; }
.site-header .wp-block-navigation a { color: #657B83 !important; text-decoration: none; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; font-size: 0.85rem; font-family: "IBM Plex Mono", monospace; }
.site-header .wp-block-navigation a:hover { color: #B58900 !important; }
.site-header .wp-block-site-title a { font-family: "IBM Plex Mono", monospace; font-size: 1.3rem; font-weight: 700; color: #268BD2 !important; text-decoration: none; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: #EEE8D5; border-top: 1px solid #93A1A1; padding: 3rem 0 2rem; margin-top: 4rem; font-size: 0.85rem; color: #839496; }
.site-footer a { color: #268BD2; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .devdaily-grid .wp-block-post-template { grid-template-columns: 1fr; }
  .devdaily-hero .wp-block-columns { flex-direction: column; }
}
