/*
Theme Name: StanWilds
Theme URI: https://stanwilds.com/
Author: StanWilds
Description: A warm, simple WordPress theme matching the StanWilds static landing page.
Version: 0.2.0
License: GNU General Public License v2 or later
Text Domain: stanwilds
*/

:root {
  color-scheme: light;
  --bg: #f7f1e8;
  --surface: #fffaf2;
  --text: #1e2722;
  --muted: #607066;
  --accent: #b75f32;
  --accent-dark: #7f3f24;
  --green: #263f34;
  --border: #e0d3c2;
  --shadow: 0 24px 80px rgba(36, 31, 24, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.7; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent-dark); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
img { max-width: 100%; height: auto; border-radius: 1rem; }

.site-header, .site-footer { max-width: 1180px; margin: 0 auto; padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.site-header .brand .brand-logo,
.site-header a.brand > img.brand-logo,
body .site-header img.brand-logo {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  min-width: 38px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  display: block !important;
  flex: 0 0 38px !important;
}
.brand-mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--green); color: var(--surface); font-size: 0.8rem; letter-spacing: 0.08em; }
.site-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 650; }
.site-nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: white !important; padding: 0.55rem 0.95rem; font-weight: 800; text-decoration: none; border: 2px solid var(--accent); }

main { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.blog-hero { padding: 4rem 0 2rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.35fr); gap: 2rem; align-items: end; }
.blog-hero h1 { max-width: 860px; font-size: clamp(2.5rem, 7vw, 5.8rem); line-height: 0.95; letter-spacing: -0.06em; margin: 0 0 1.5rem; }
.blog-hero p { max-width: 660px; color: var(--muted); font-size: 1.15rem; }
.eyebrow, .post-meta { color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 800; margin: 0 0 0.7rem; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.post-card, .single-post, .sidebar-card, .pagination { background: var(--surface); border: 1px solid var(--border); border-radius: 1.4rem; box-shadow: var(--shadow); }
.post-card { padding: 1.4rem; margin-bottom: 1.2rem; box-shadow: none; }
.post-card h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 0.8rem; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card .excerpt { color: var(--muted); }
.post-card .read-more { font-weight: 800; }

.single-post { padding: clamp(1.2rem, 4vw, 3rem); max-width: 860px; margin: 0 auto; }
.single-post h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 0.98; letter-spacing: -0.055em; margin: 0 0 1rem; }
.single-post h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -0.04em; margin-top: 2.5rem; }
.single-post p, .single-post li { font-size: 1.08rem; }
.single-post blockquote { border-left: 4px solid var(--accent); margin-left: 0; padding: 0.5rem 0 0.5rem 1rem; color: var(--muted); }
.single-post figcaption, .wp-caption-text { color: var(--muted); font-size: 0.9rem; text-align: center; }
.wp-block-gallery { gap: 1rem !important; }
.wp-block-image, .gallery-item { margin-bottom: 1rem; }

.sidebar-card { padding: 1.2rem; box-shadow: none; position: sticky; top: 1rem; }
.sidebar-card h2, .sidebar-card h3 { margin-top: 0; }
.sidebar-card ul { padding-left: 1.2rem; }
.pagination { padding: 1rem; box-shadow: none; display: flex; justify-content: space-between; gap: 1rem; }
.search-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.search-form label { flex: 1 1 260px; }
.search-field {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--text);
  font: inherit;
  padding: 0.65rem 0.9rem;
}
.search-submit {
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.65rem 0.95rem;
}
.comments-area {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2rem;
}
.comment-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.comment-body {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}
.site-footer { border-top: 1px solid var(--border); color: var(--muted); }

@media (max-width: 880px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .blog-hero, .content-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}
