/*
Theme Name: Greg's Theme
Theme URI: https://example.com/gregs-theme
Author: Greg
Author URI: https://example.com
Description: A lightweight, modern blog theme with a dark sidebar, three-font system (Inter, Merriweather, JetBrains Mono), and clean typography. Inspired by classic WordPress themes with a contemporary twist.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gregs-theme
Tags: blog, one-column, two-columns, left-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/


/* ═══════════════════════════════════════════
   Reset
   ═══════════════════════════════════════════ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  line-height: 1.85;
  color: #2d2a28;
  background: #f7f6f4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #3a3633;
  color: #f7f6f4;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}


/* ═══════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════ */

.site {
  display: flex;
  min-height: 100vh;
}


/* ═══════════════════════════════════════════
   Sidebar
   ═══════════════════════════════════════════ */

.sidebar {
  width: 340px;
  flex-shrink: 0;
  background: #1e1c1a;
  color: #b8b3ab;
  position: relative;
}

.sidebar-inner {
  position: sticky;
  top: 0;
  padding: 3rem 2.4rem 2rem;
  max-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #3a3633 transparent;
}

.sidebar-inner::-webkit-scrollbar {
  width: 3px;
}

.sidebar-inner::-webkit-scrollbar-thumb {
  background: #3a3633;
  border-radius: 3px;
}


/* Branding */
.site-branding {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mugshot {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  overflow: hidden;
  background: #2d2a28;
  border: 3px solid rgba(255, 255, 255, 0.1);
  display: block;
  transition: border-color 0.3s ease;
}

.mugshot:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.mugshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.mugshot:hover img {
  filter: grayscale(0%);
}

.site-title {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.site-title a {
  color: #fff;
  transition: opacity 0.2s ease;
}

.site-title a:hover {
  opacity: 0.7;
}

.site-description {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.84rem;
  font-weight: 300;
  color: #948f88;
  letter-spacing: 0.02em;
}


/* Search */
.search-box {
  position: relative;
  margin-bottom: 2rem;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #908a84;
  pointer-events: none;
  transition: color 0.2s ease;
}

.search-input {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 2.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #e8e5e0;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: #908a84;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.search-input:focus ~ .search-icon {
  color: #918c85;
}

.search-shortcut {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.7rem;
  color: #908a84;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  line-height: 1.4;
  pointer-events: none;
  transition: opacity 0.15s ease;
}


/* Sidebar Nav */
.sidebar-nav {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
}

.nav-section {
  margin-bottom: 0.4rem;
}

.sidebar-nav h2,
.widget-title {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #908a84;
  margin-bottom: 0.6rem;
  margin-top: 1.6rem;
}

.nav-section:first-child h2,
.widget:first-child .widget-title {
  margin-top: 0;
}

.sidebar-nav ul,
.widget ul {
  margin-bottom: 0.2rem;
  list-style: none;
  padding: 0;
}

.sidebar-nav li,
.widget li {
  padding: 0.12rem 0;
}

.sidebar-nav a,
.widget a {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #918c85;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.sidebar-nav a:hover,
.widget a:hover {
  color: #e8e5e0;
}

.sidebar-nav a svg {
  opacity: 0.5;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.sidebar-nav a:hover svg {
  opacity: 0.9;
}

.social-links a,
.nav-section:last-child a {
  font-size: 0.9rem;
}


/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 2.5rem;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.74rem;
  color: #908a84;
  letter-spacing: 0.03em;
  text-align: center;
}


/* ═══════════════════════════════════════════
   Content Area
   ═══════════════════════════════════════════ */

.content {
  flex: 1;
  background: #fff;
  padding: 4rem 5rem 3rem;
  max-width: 1000px;
  min-height: 100vh;
}


/* ═══════════════════════════════════════════
   Posts
   ═══════════════════════════════════════════ */

.post {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #eeedeb;
  position: relative;
}

.post:last-of-type {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: none;
}


.post-header {
  margin-bottom: 1rem;
}

.post-meta {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.7rem;
  color: #706b64;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.meta-sep {
  color: #706b64;
}

.post-reading-time {
  color: #706b64;
}

.post-title {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.post-title a {
  color: #1e1c1a;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: #706b64;
}

.post-content {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  font-weight: 300;
  color: #58534f;
}

.post-content p {
  margin-bottom: 1.1rem;
}

.post-content p:last-child {
  margin-bottom: 0;
}


/* Post Footer */
.post-footer {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.65rem;
  font-weight: 400;
  color: #706b64;
  background: #f5f4f2;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.01em;
  border: 1px solid #eeedeb;
  transition: all 0.15s ease;
}

.tag:hover {
  background: #1e1c1a;
  color: #e8e5e0;
  border-color: #1e1c1a;
}

.read-more {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #1e1c1a;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}

.read-more::after {
  content: '\2192';
  font-size: 0.9em;
  transition: transform 0.2s ease;
}

.read-more:hover {
  gap: 0.5rem;
}

.read-more:hover::after {
  transform: translateX(2px);
}


/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 1rem;
  color: #706b64;
}

.no-results svg {
  margin: 0 auto 1rem;
  opacity: 0.3;
}

.no-results p {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
}


/* ═══════════════════════════════════════════
   Pagination
   ═══════════════════════════════════════════ */

.pagination {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  margin-top: 0.5rem;
  border-top: 1px solid #eeedeb;
  font-size: 0.8rem;
  font-weight: 500;
}

.pagination-link {
  color: #1e1c1a;
  padding: 0.5rem 1rem;
  border: 1px solid #e0dedb;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.pagination-link:hover {
  background: #1e1c1a;
  color: #fff;
  border-color: #1e1c1a;
}

.pagination-link.disabled {
  color: #706b64;
  border-color: #eeedeb;
  cursor: default;
  pointer-events: none;
}


/* ═══════════════════════════════════════════
   Single Article
   ═══════════════════════════════════════════ */

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eeedeb;
}

.article-title {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #1e1c1a;
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
}

.article-subtitle {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: #706b64;
}


/* Article Body — all content element styles */
.article-body {
  font-weight: 300;
  color: #3b3836;
}

/* Headings inside article */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  color: #1e1c1a;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.article-body h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.8rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eeedeb;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
}

.article-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.8rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-body h5 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
  color: #58534f;
}

.article-body h6 {
  font-size: 0.78rem;
  font-weight: 500;
  margin: 1.5rem 0 0.4rem;
  color: #706b64;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Paragraphs */
.article-body p {
  margin-bottom: 1.3rem;
}

/* Links */
.article-body a {
  color: #1e1c1a;
  text-decoration: underline;
  text-decoration-color: #c8c3bc;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.article-body a:hover {
  text-decoration-color: #1e1c1a;
}

/* Bold / Italic / Etc */
.article-body strong {
  font-weight: 700;
  color: #2d2a28;
}

.article-body em {
  font-style: italic;
}

.article-body del {
  text-decoration: line-through;
  color: #706b64;
}

.article-body ins {
  text-decoration: none;
  border-bottom: 1px dashed #918c85;
}

.article-body mark {
  background: #f5ecd0;
  color: #2d2a28;
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

.article-body small {
  font-size: 0.82em;
  color: #706b64;
}

.article-body sup,
.article-body sub {
  font-size: 0.72em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.article-body sup {
  top: -0.5em;
}

.article-body sub {
  bottom: -0.25em;
}

.article-body abbr[title] {
  text-decoration: none;
  border-bottom: 1px dotted #918c85;
  cursor: help;
}

.article-body cite {
  font-style: italic;
  color: #706b64;
}

.article-body address {
  font-style: normal;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.88rem;
  color: #706b64;
  margin: 1.2rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid #eeedeb;
}

/* Inline code */
.article-body code {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.82em;
  background: #f5f4f2;
  color: #58534f;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  border: 1px solid #eeedeb;
}

.article-body kbd {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.78em;
  background: #f5f4f2;
  color: #3b3836;
  padding: 0.15em 0.45em;
  border-radius: 3px;
  border: 1px solid #ddd;
  box-shadow: 0 1px 0 #ccc;
}

.article-body samp {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.82em;
  color: #706b64;
}

.article-body var {
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  color: #58534f;
}

/* Code blocks */
.article-body pre {
  margin: 1.8rem 0;
  padding: 1.3rem 1.5rem;
  background: #1e1c1a;
  color: #c8c5c0;
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.65;
  font-size: 0.82rem;
  -webkit-overflow-scrolling: touch;
}

.article-body pre code {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  background: none;
  color: inherit;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: inherit;
}

/* Blockquotes */
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid #1e1c1a;
  background: #faf9f8;
}

.article-body blockquote p {
  font-style: italic;
  font-weight: 400;
  color: #3b3836;
  margin-bottom: 0.5rem;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body blockquote cite {
  display: block;
  font-size: 0.82rem;
  font-style: normal;
  color: #706b64;
  margin-top: 0.5rem;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin: 1.2rem 0;
  padding-left: 1.5rem;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 0.35rem;
  padding-left: 0.3rem;
}

.article-body li ul,
.article-body li ol {
  margin: 0.3rem 0 0.3rem;
}

/* Definition lists */
.article-body dl {
  margin: 1.2rem 0;
}

.article-body dt {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e1c1a;
  margin-top: 1rem;
}

.article-body dt:first-child {
  margin-top: 0;
}

.article-body dd {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 2px solid #eeedeb;
  color: #58534f;
  margin-bottom: 0.5rem;
}

/* Tables */
.article-body table {
  width: 100%;
  margin: 1.8rem 0;
  border-collapse: collapse;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.85rem;
}

.article-body th {
  font-weight: 600;
  text-align: left;
  padding: 0.7rem 1rem;
  background: #1e1c1a;
  color: #e8e5e0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-body th:first-child {
  border-radius: 4px 0 0 0;
}

.article-body th:last-child {
  border-radius: 0 4px 0 0;
}

.article-body td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #eeedeb;
  color: #58534f;
}

.article-body tr:last-child td {
  border-bottom: none;
}

.article-body tbody tr:hover td {
  background: #faf9f8;
}

/* Forms */
.article-body fieldset {
  margin: 1.8rem 0;
  padding: 1.2rem 1.5rem;
  border: 1px solid #e0dedb;
  border-radius: 6px;
}

.article-body legend {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: #1e1c1a;
  padding: 0 0.5rem;
}

.article-body form {
  margin: 1.5rem 0 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group > label {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #3b3836;
  display: block;
  margin-bottom: 0.3rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.88rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: #fff;
  border: 1px solid #ddd9d3;
  border-radius: 4px;
  color: #2d2a28;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #1e1c1a;
  box-shadow: 0 0 0 3px rgba(30, 28, 26, 0.06);
}

.form-group textarea {
  resize: vertical;
}

.form-group input[type="file"] {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.82rem;
  color: #706b64;
}

.form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.2rem;
}

.form-option {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #58534f;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.form-option input {
  accent-color: #1e1c1a;
}

.form-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.btn {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: #1e1c1a;
  color: #fff;
  border-color: #1e1c1a;
}

.btn-primary:hover {
  background: #3a3633;
}

.btn-secondary {
  background: #fff;
  color: #58534f;
  border-color: #ddd9d3;
}

.btn-secondary:hover {
  background: #f5f4f2;
  border-color: #c8c3bc;
}

/* Horizontal rule */
.article-body hr {
  border: none;
  border-top: 1px solid #eeedeb;
  margin: 2.5rem 0;
}

/* Figures */
.article-body figure {
  margin: 2rem 0;
}

.article-body figure img {
  border-radius: 4px;
}

.article-body figcaption {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.78rem;
  color: #706b64;
  margin-top: 0.6rem;
  text-align: center;
  line-height: 1.5;
}

/* Details / Summary */
.article-body details {
  margin: 1.5rem 0;
  border: 1px solid #eeedeb;
  border-radius: 6px;
  overflow: hidden;
}

.article-body summary {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1e1c1a;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.article-body summary:hover {
  background: #faf9f8;
}

.article-body details[open] summary {
  border-bottom: 1px solid #eeedeb;
}

.article-body details > *:not(summary) {
  padding: 0 1rem;
}

.article-body details > p {
  padding: 1rem;
  margin-bottom: 0;
}


/* Article Navigation */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eeedeb;
}

.article-nav-link {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid #e0dedb;
  border-radius: 6px;
  flex: 1;
  transition: all 0.15s ease;
}

.article-nav-link:hover {
  background: #1e1c1a;
  border-color: #1e1c1a;
}

.article-nav-link:hover .article-nav-label,
.article-nav-link:hover .article-nav-title {
  color: #e8e5e0;
}

.article-nav-next {
  text-align: right;
}

.article-nav-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #706b64;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s ease;
}

.article-nav-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: #1e1c1a;
  transition: color 0.15s ease;
}


/* ═══════════════════════════════════════════
   WordPress Image Alignments
   ═══════════════════════════════════════════ */

.alignleft {
  float: left;
  margin: 0.3rem 1.5rem 1rem 0;
  max-width: 50%;
}

.alignright {
  float: right;
  margin: 0.3rem 0 1rem 1.5rem;
  max-width: 50%;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.alignnone {
  display: block;
  margin: 1.5rem 0;
}

.alignwide {
  margin-left: -2rem;
  margin-right: -2rem;
}

.alignfull {
  margin-left: calc(-5rem);
  margin-right: calc(-5rem);
  max-width: none;
  width: calc(100% + 10rem);
}

.alignleft img,
.alignright img,
.aligncenter img {
  border-radius: 4px;
}

/* clearfix for floated images */
.article-body p::after {
  content: '';
  display: table;
  clear: both;
}


/* ═══════════════════════════════════════════
   Gutenberg Blocks
   ═══════════════════════════════════════════ */

/* Pullquote */
.wp-block-pullquote {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 3px solid #1e1c1a;
  border-bottom: 3px solid #1e1c1a;
  text-align: center;
}

.wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.wp-block-pullquote blockquote p {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: #1e1c1a;
}

.wp-block-pullquote blockquote cite {
  display: block;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
  color: #706b64;
  margin-top: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Separator */
.wp-block-separator {
  border: none;
  margin: 2.5rem auto;
}

.wp-block-separator:not(.is-style-dots):not(.is-style-wide) {
  border-top: 2px solid #1e1c1a;
  width: 60px;
}

.wp-block-separator.is-style-wide {
  border-top: 1px solid #eeedeb;
  width: 100%;
}

.wp-block-separator.is-style-dots {
  text-align: center;
  width: auto;
  line-height: 1;
}

.wp-block-separator.is-style-dots::before {
  content: '\00b7 \00b7 \00b7';
  font-size: 1.5rem;
  letter-spacing: 1em;
  color: #706b64;
}

/* Columns */
.wp-block-columns {
  display: flex;
  gap: 2rem;
  margin: 1.8rem 0;
}

.wp-block-column {
  flex: 1;
  min-width: 0;
}

.wp-block-column h4 {
  margin-top: 0;
}

/* Buttons */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.wp-block-button__link {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  background: #1e1c1a;
  color: #fff;
  text-decoration: none;
  border: 2px solid #1e1c1a;
  transition: all 0.15s ease;
}

.wp-block-button__link:hover {
  background: #3a3633;
  border-color: #3a3633;
  color: #fff;
  text-decoration: none;
}

.is-style-outline .wp-block-button__link {
  background: transparent;
  color: #1e1c1a;
}

.is-style-outline .wp-block-button__link:hover {
  background: #1e1c1a;
  color: #fff;
}

/* Embed */
.wp-block-embed {
  margin: 2rem 0;
}

.wp-block-embed__wrapper {
  position: relative;
}

.embed-placeholder {
  background: #f5f4f2;
  border: 1px solid #eeedeb;
  border-radius: 6px;
  padding: 3rem 1rem;
  text-align: center;
  color: #706b64;
}

.embed-placeholder svg {
  margin: 0 auto 0.8rem;
  display: block;
  opacity: 0.3;
}

.embed-placeholder p {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.85rem;
  margin: 0;
}

.wp-block-embed figcaption {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.78rem;
  color: #706b64;
  text-align: center;
  margin-top: 0.6rem;
}

/* Font size utility classes (Gutenberg) */
.has-small-font-size { font-size: 0.875rem; }
.has-normal-font-size { font-size: 1rem; }
.has-medium-font-size { font-size: 1.125rem; }
.has-large-font-size { font-size: 1.4rem; }
.has-huge-font-size { font-size: 1.8rem; }

/* Text alignment (Gutenberg) */
.has-text-align-left { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }


/* ═══════════════════════════════════════════
   Password Protected Post
   ═══════════════════════════════════════════ */

.post-password-form {
  margin: 2rem 0;
  padding: 2rem;
  background: #faf9f8;
  border: 1px solid #eeedeb;
  border-radius: 6px;
}

.post-password-form > p {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.88rem;
  color: #58534f;
  margin-bottom: 1rem;
}

.post-password-form label {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #3b3836;
  display: block;
  margin-bottom: 0.4rem;
}

.post-password-form input[type="password"] {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
  background: #fff;
  border: 1px solid #ddd9d3;
  border-radius: 4px;
  color: #2d2a28;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-password-form input[type="password"]:focus {
  border-color: #1e1c1a;
  box-shadow: 0 0 0 3px rgba(30, 28, 26, 0.06);
}

.post-password-form input[type="submit"] {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  border: 1px solid #1e1c1a;
  background: #1e1c1a;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.post-password-form input[type="submit"]:hover {
  background: #3a3633;
}


/* ═══════════════════════════════════════════
   Author Bio
   ═══════════════════════════════════════════ */

.author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 2rem;
  background: #faf9f8;
  border-radius: 8px;
  border: 1px solid #eeedeb;
}

.author-avatar {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #eeedeb;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1e1c1a;
  margin-bottom: 0.3rem;
}

.author-description {
  font-size: 0.88rem;
  font-weight: 300;
  color: #58534f;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.author-links {
  display: flex;
  gap: 1rem;
}

.author-links a {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #706b64;
  transition: color 0.2s ease;
}

.author-links a:hover {
  color: #1e1c1a;
}


/* ═══════════════════════════════════════════
   Comments
   ═══════════════════════════════════════════ */

.comments {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #eeedeb;
}

.author-bio ~ .comments {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.comments-title {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e1c1a;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* Comment list */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list .comment {
  margin-bottom: 0;
  padding: 0;
}

.comment-body {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eeedeb;
}

.comment-list > li:last-child > .comment-body {
  border-bottom: none;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #eeedeb;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.comment-author {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e1c1a;
}

.comment-author-badge {
  font-size: 0.62rem;
  font-weight: 500;
  color: #fff;
  background: #1e1c1a;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.comment-date {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.68rem;
  color: #706b64;
  transition: color 0.2s ease;
}

.comment-date:hover {
  color: #706b64;
}

.comment-content {
  font-weight: 300;
  color: #58534f;
  font-size: 0.92rem;
}

.comment-content p {
  margin-bottom: 0.8rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-actions {
  margin-top: 0.5rem;
}

.comment-reply-link {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: #706b64;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.comment-reply-link:hover {
  color: #1e1c1a;
}

/* Nested replies */
.comment-children,
.children {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 2.5rem;
  border-left: 2px solid #eeedeb;
}

/* Comment form */
.comment-respond {
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.comment-list ~ .comment-respond {
  border-top: 1px solid #eeedeb;
}

.comment-respond-title,
.comment-reply-title {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e1c1a;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.comment-notes {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.78rem;
  color: #706b64;
  margin-bottom: 1.5rem;
}

.required {
  color: #c0392b;
}

.comment-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-form .form-group {
  margin-bottom: 0;
}

.comment-form .btn {
  margin-top: 1rem;
}

/* WordPress comment form defaults */
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin-bottom: 1rem;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label,
.comment-form-comment label {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #3b3836;
  display: block;
  margin-bottom: 0.3rem;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input,
.comment-form-comment textarea {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.88rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: #fff;
  border: 1px solid #ddd9d3;
  border-radius: 4px;
  color: #2d2a28;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus,
.comment-form-comment textarea:focus {
  border-color: #1e1c1a;
  box-shadow: 0 0 0 3px rgba(30, 28, 26, 0.06);
}

.comment-form-comment textarea {
  resize: vertical;
}

.comment-form input[type="submit"] {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  border: 1px solid #1e1c1a;
  background: #1e1c1a;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 1rem;
}

.comment-form input[type="submit"]:hover {
  background: #3a3633;
}


/* ═══════════════════════════════════════════
   404 Page
   ═══════════════════════════════════════════ */

.error-404 {
  text-align: center;
  padding: 4rem 1rem;
}

.error-404-code {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 6rem;
  font-weight: 400;
  color: #918c85;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-404-title {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e1c1a;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.error-404-text {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #706b64;
  margin-bottom: 2rem;
}

.error-404 .search-form {
  max-width: 320px;
  margin: 0 auto 2rem;
}

.error-404 .search-form input[type="search"] {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.88rem;
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: #fff;
  border: 1px solid #ddd9d3;
  border-radius: 4px;
  color: #2d2a28;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.error-404 .search-form input[type="search"]:focus {
  border-color: #1e1c1a;
  box-shadow: 0 0 0 3px rgba(30, 28, 26, 0.06);
}

.error-404 .search-form input[type="submit"] {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  border: 1px solid #1e1c1a;
  background: #1e1c1a;
  color: #fff;
  cursor: pointer;
  margin-top: 0.6rem;
  transition: all 0.15s ease;
}

.error-404 .search-form input[type="submit"]:hover {
  background: #3a3633;
}

.error-404-link {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1e1c1a;
  border-bottom: 1px solid #c8c3bc;
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.error-404-link:hover {
  border-color: #1e1c1a;
}


/* ═══════════════════════════════════════════
   Archive / Search Results Header
   ═══════════════════════════════════════════ */

.archive-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eeedeb;
}

.archive-title {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e1c1a;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.archive-title span {
  font-weight: 300;
  color: #706b64;
}

.archive-description {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: #706b64;
  line-height: 1.6;
}


/* ═══════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post {
  animation: fadeInUp 0.4s ease both;
}

.post:nth-child(1) { animation-delay: 0s; }
.post:nth-child(2) { animation-delay: 0.06s; }
.post:nth-child(3) { animation-delay: 0.12s; }
.post:nth-child(4) { animation-delay: 0.18s; }

.site-branding {
  animation: fadeInUp 0.4s ease both;
}

.nav-section {
  animation: fadeInUp 0.35s ease both;
}

.nav-section:nth-child(1) { animation-delay: 0.08s; }
.nav-section:nth-child(2) { animation-delay: 0.14s; }
.nav-section:nth-child(3) { animation-delay: 0.20s; }


/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

@media (max-width: 1060px) {
  .content {
    padding: 3rem 3.5rem 2.5rem;
  }
}

@media (max-width: 860px) {
  .sidebar {
    width: 280px;
  }

  .content {
    padding: 2.5rem 2.5rem 2rem;
  }
}

@media (max-width: 680px) {
  .site {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar-inner {
    position: static;
    max-height: none;
    padding: 2rem 1.8rem;
    align-items: center;
    text-align: center;
  }

  .site-branding {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .mugshot {
    width: 90px;
    height: 90px;
    margin-bottom: 1rem;
  }

  .search-box {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1.5rem;
  }

  .sidebar-nav a {
    justify-content: center;
  }

  .sidebar-nav h2 {
    margin-top: 1.2rem;
  }

  .content {
    padding: 2rem 1.5rem;
    min-height: auto;
  }

  .post-title {
    font-size: 1.2rem;
  }

  .post {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .post-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-nav {
    flex-direction: column;
  }

  .article-nav-next {
    text-align: left;
  }

  .article-body pre {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    border-radius: 0;
    padding: 1rem 1.5rem;
  }

  .comment-form-fields {
    grid-template-columns: 1fr;
  }

  .wp-block-columns {
    flex-direction: column;
  }

  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-links {
    justify-content: center;
  }
}
