/*
Theme Name: The GigMan's Life Classic Blog
Theme URI: https://thegigmanslife.com/
Author: Christopher George / ChatGPT
Description: Classic two-column WordPress blog theme for The GigMan's Life. Keeps pages simple while giving the blog an old-school posts-and-sidebar layout with search, recent posts, archives, and categories.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gigmans-classic-blog
*/

:root {
  --bg: #050505;
  --panel: #0d0d0d;
  --panel-2: #141414;
  --text: #f2f2f2;
  --muted: #b9b9b9;
  --line: #282828;
  --accent: #ff6a00;
  --accent-soft: #ff8a2b;
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover, a:focus { color: #fff; text-decoration: underline; }

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

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

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 22px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
}

.site-branding { display: flex; align-items: center; gap: 18px; }
.custom-logo { max-width: 190px; height: auto; }
.site-title { margin: 0; font-size: 24px; font-weight: 800; }
.site-title a { color: #fff; }
.site-description { margin: 4px 0 0; color: var(--muted); font-weight: 700; }

.main-navigation { text-align: right; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation li { display: inline-block; margin: 0 0 0 22px; font-weight: 800; }
.main-navigation a { color: #fff; }
.main-navigation a:hover { color: var(--accent); }

.site-main-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px 22px;
}

.content-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.blog-title-block {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.blog-title-block h1 { margin: 0 0 6px; font-size: 38px; line-height: 1.15; }
.blog-title-block p { margin: 0; color: var(--accent); font-weight: 700; }

.post-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 26px;
  margin-bottom: 24px;
}

.post-card.sticky { border-color: var(--accent); }
.entry-title { margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
.entry-title a { color: #fff; }
.entry-meta, .entry-footer { color: var(--muted); font-size: 14px; font-weight: 700; }
.entry-meta { margin-bottom: 16px; }
.entry-content, .entry-summary { margin-top: 14px; }
.read-more { display: inline-block; margin-top: 14px; font-weight: 800; }

.page-content-box {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px;
}

.sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
}

.sidebar .widget {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.sidebar .widget:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.sidebar .widget-title, .sidebar h2, .sidebar h3 { margin: 0 0 12px; color: #fff; font-size: 20px; }
.sidebar ul { margin: 0; padding-left: 20px; }
.sidebar li { margin-bottom: 8px; }

.search-form { display: flex; gap: 8px; }
.search-field, input[type="search"], input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: #000;
  color: #fff;
  border: 1px solid var(--line);
  padding: 10px;
}
.search-submit, button, input[type="submit"] {
  background: var(--accent);
  color: #000;
  border: 0;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.search-submit:hover, button:hover, input[type="submit"]:hover { background: #fff; }

.pagination, .nav-links { margin: 30px 0; font-weight: 800; }
.nav-links a, .nav-links span { margin-right: 12px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #000;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 22px;
}
.footer-title { color: #ddd; font-weight: 800; }

.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; color: var(--muted); }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr; text-align: center; }
  .site-branding { justify-content: center; flex-direction: column; }
  .main-navigation { text-align: center; }
  .main-navigation li { margin: 8px 10px; }
  .content-sidebar-layout { grid-template-columns: 1fr; }
  .blog-title-block h1 { font-size: 32px; }
}
