/*
Theme Name: Playing With My Food
Theme URI: https://chazfren.ch
Description: Custom child theme for Playing With My Food — a journal of food, recipes, poetry, gardening, thought, and life by Chaz Barrett French.
Author: Chaz Barrett French
Author URI: https://chazfren.ch
Template: tove
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: pwmf
*/

/* =========================================
   RESET & BASE
   ========================================= */

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0e1a2e;
  color: #c4cfe0;
  -webkit-font-smoothing: antialiased;
}

a { transition: color 0.15s ease; }
img { max-width: 100%; height: auto; }

/* =========================================
   HEADER
   ========================================= */

.site-header {
  background: #1a2744;
  padding: 28px 36px;
  border-bottom: 3px solid #c8873a;
}

.site-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #e8c88a;
  letter-spacing: 0.02em;
  margin: 0;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  color: #c8873a;
}

.site-description {
  font-size: 14px;
  color: #8a9ab8;
  margin-top: 6px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.site-description .author-name {
  color: #c8873a;
}

/* =========================================
   LAYOUT: SIDEBAR + CONTENT
   ========================================= */

.site-body {
  display: flex;
  min-height: calc(100vh - 180px);
}

/* =========================================
   SIDEBAR
   ========================================= */

.site-sidebar {
  width: 260px;
  min-width: 260px;
  background: #1e2d4d;
  padding: 24px 20px;
  font-size: 13px;
}

/* Primary nav links */
.sidebar-nav {
  margin-bottom: 24px;
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  margin-bottom: 1px;
}

.sidebar-nav a {
  display: block;
  padding: 10px 14px;
  color: #8a9ab8;
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: 14px;
}

.sidebar-nav a:hover {
  color: #c4cfe0;
  background: rgba(255,255,255,0.03);
}

.sidebar-nav .current-menu-item a,
.sidebar-nav .current_page_item a {
  color: #e8c88a;
  font-weight: 500;
  border-left-color: #c8873a;
  background: rgba(200,135,58,0.06);
}

/* Sidebar section labels */
.sidebar-section-label {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #506585;
  padding: 0 14px;
  margin-bottom: 8px;
  margin-top: 20px;
}

.sidebar-section-label:first-child {
  margin-top: 0;
}

/* Category links */
.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
}

.sidebar-categories li {
  margin: 0;
}

.sidebar-categories a {
  display: block;
  padding: 6px 14px;
  color: #7a8cad;
  text-decoration: none;
  font-size: 13px;
}

.sidebar-categories a:hover {
  color: #c8873a;
}

/* Remove default WordPress widget styles */
.sidebar-widget-area .widget {
  margin-bottom: 0;
}

.sidebar-widget-area .widget-title {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #506585;
  padding: 0 14px;
  margin: 20px 0 8px;
  font-weight: 400;
}

.sidebar-widget-area .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget-area .widget li {
  margin: 0;
}

.sidebar-widget-area .widget a {
  display: block;
  padding: 6px 14px;
  color: #7a8cad;
  text-decoration: none;
  font-size: 13px;
}

.sidebar-widget-area .widget a:hover {
  color: #c8873a;
}

/* Sidebar divider */
.sidebar-divider {
  border: none;
  border-top: 1px solid #2a3d62;
  margin: 16px 0;
}

/* Recent posts in sidebar */
.sidebar-recent-posts a {
  display: block;
  padding: 5px 14px;
  color: #6b7d9e;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.5;
}

.sidebar-recent-posts a:hover {
  color: #c8873a;
}

/* =========================================
   CONTENT AREA
   ========================================= */

.content-area {
  flex: 1;
  background: #b8c9de;
  padding: 32px 40px;
  min-width: 0;
}

/* =========================================
   POST CARDS (Blog Index)
   ========================================= */

.post-card {
  background: #dfe6f0;
  border-radius: 8px;
  border: 1px solid #a0b1c8;
  padding: 28px 32px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease;
}

.post-card:hover {
  border-color: #c8873a;
}

.post-card .post-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c8873a;
  margin-bottom: 8px;
}

.post-card .post-meta a {
  color: #c8873a;
  text-decoration: none;
}

.post-card .post-meta a:hover {
  color: #a06a28;
}

.post-card .entry-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: #1a2744;
  line-height: 1.35;
  margin: 0 0 10px 0;
}

.post-card .entry-title a {
  color: inherit;
  text-decoration: none;
}

.post-card .entry-title a:hover {
  color: #c8873a;
}

.post-card .entry-excerpt {
  font-size: 14px;
  color: #2c3a52;
  line-height: 1.7;
}

.post-card .entry-excerpt p {
  margin: 0;
}

.read-more-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: #c8873a;
  text-decoration: none;
  font-weight: 500;
}

.read-more-link:hover {
  color: #a06a28;
}

/* =========================================
   SINGLE POST & PAGE CONTENT
   ========================================= */

.single-post-header {
  margin-bottom: 28px;
}

.single-post-header .post-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c8873a;
  margin-bottom: 12px;
}

.single-post-header .post-meta a {
  color: #c8873a;
  text-decoration: none;
}

.single-post-header .entry-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #1a2744;
  line-height: 1.3;
  margin: 0;
}

.single-content-wrap {
  background: #dfe6f0;
  border-radius: 8px;
  border: 1px solid #a0b1c8;
  padding: 36px 40px;
}

.entry-content {
  font-size: 16px;
  color: #1e2d4d;
  line-height: 1.8;
}

.entry-content p {
  margin: 0 0 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'Libre Baskerville', Georgia, serif;
  color: #1a2744;
  margin: 1.5em 0 0.6em;
  font-weight: 400;
}

.entry-content h2 { font-size: 22px; }
.entry-content h3 { font-size: 18px; }
.entry-content h4 { font-size: 16px; }

.entry-content a {
  color: #c8873a;
  text-decoration: underline;
  text-decoration-color: rgba(200,135,58,0.3);
  text-underline-offset: 2px;
}

.entry-content a:hover {
  text-decoration-color: #c8873a;
}

.entry-content blockquote {
  border-left: 3px solid #c8873a;
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.5em;
  font-style: italic;
  color: #3d4a63;
}

.entry-content img {
  border-radius: 6px;
  margin: 1em 0;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.entry-content li {
  margin-bottom: 0.3em;
}

.entry-content pre,
.entry-content code {
  background: #c8d4e4;
  border-radius: 4px;
  font-size: 14px;
}

.entry-content pre {
  padding: 16px 20px;
  overflow-x: auto;
  margin: 1.2em 0;
}

.entry-content code {
  padding: 2px 6px;
}

/* Post navigation */
.post-navigation {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #a0b1c8;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.post-navigation a {
  color: #c8873a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.post-navigation a:hover {
  color: #a06a28;
}

/* Tags on single posts */
.post-tags {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #a0b1c8;
  font-size: 12px;
  color: #506585;
}

.post-tags a {
  color: #7a8cad;
  text-decoration: none;
  margin-right: 8px;
}

.post-tags a:hover {
  color: #c8873a;
}

/* =========================================
   PAGINATION
   ========================================= */

.pagination {
  text-align: center;
  padding: 16px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 4px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
}

.pagination a {
  border: 1px solid #c8873a;
  color: #c8873a;
  transition: all 0.2s;
}

.pagination a:hover {
  background: #c8873a;
  color: #1a2744;
}

.pagination .current {
  background: #c8873a;
  color: #1a2744;
  border: 1px solid #c8873a;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background: #111b30;
  padding: 20px 36px;
  text-align: center;
  font-size: 12px;
  color: #506585;
}

.site-footer a {
  color: #6b7d9e;
  text-decoration: none;
}

.site-footer a:hover {
  color: #c8873a;
}

/* =========================================
   COMMENTS
   ========================================= */

.comments-area {
  margin-top: 32px;
}

.comments-area .comments-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 18px;
  color: #1a2744;
  font-weight: 400;
  margin-bottom: 20px;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-list .comment {
  background: #c8d4e4;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.comment-list .comment-author {
  font-weight: 500;
  color: #1a2744;
  font-size: 14px;
}

.comment-list .comment-meta {
  font-size: 12px;
  color: #506585;
  margin-bottom: 8px;
}

.comment-list .comment-content {
  font-size: 14px;
  color: #2c3a52;
  line-height: 1.6;
}

.comment-respond .comment-reply-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 18px;
  color: #1a2744;
  font-weight: 400;
}

.comment-respond label {
  color: #2c3a52;
  font-size: 14px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #a0b1c8;
  border-radius: 4px;
  background: #edf1f7;
  color: #1e2d4d;
  font-family: inherit;
  font-size: 14px;
  margin-top: 4px;
}

.comment-respond input[type="submit"] {
  background: #c8873a;
  color: #1a2744;
  border: none;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-respond input[type="submit"]:hover {
  background: #a06a28;
  color: #e8c88a;
}

/* =========================================
   WORDPRESS BLOCK OVERRIDES
   ========================================= */

.wp-block-image figcaption {
  color: #506585;
  font-size: 12px;
  text-align: center;
  margin-top: 6px;
}

.wp-block-separator {
  border-color: #a0b1c8;
}

.wp-block-quote {
  border-left: 3px solid #c8873a;
  padding-left: 1.5em;
  font-style: italic;
  color: #3d4a63;
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Mobile menu toggle button — hidden on desktop */
.sidebar-toggle {
  display: none;
}

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

  /* Top bar: Home + About + toggle, always visible */
  .site-sidebar {
    width: 100%;
    min-width: 100%;
    padding: 0;
  }

  .sidebar-nav {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    padding: 0 16px;
    align-items: center;
  }

  .sidebar-nav li {
    margin-bottom: 0;
  }

  .sidebar-nav a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 16px;
  }

  .sidebar-nav .current-menu-item a,
  .sidebar-nav .current_page_item a {
    border-left: none;
    border-bottom-color: #c8873a;
  }

  /* Toggle button */
  .sidebar-toggle {
    display: block;
    margin-left: auto;
    background: none;
    border: 1px solid #3a5070;
    color: #8a9ab8;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .sidebar-toggle:active {
    background: rgba(255,255,255,0.05);
  }

  /* Categories section — collapsed by default on mobile */
  .sidebar-categories-wrap {
    display: none;
    padding: 12px 16px 16px;
    border-top: 1px solid #2a3d62;
  }

  .sidebar-categories-wrap.is-open {
    display: block;
  }

  .sidebar-section-label {
    margin-top: 14px;
    font-size: 10px;
  }

  .sidebar-section-label:first-child {
    margin-top: 0;
  }

  .sidebar-categories {
    columns: 2;
    column-gap: 12px;
  }

  .sidebar-categories li {
    break-inside: avoid;
  }

  .sidebar-divider {
    margin: 12px 0;
  }

  .sidebar-recent-posts {
    columns: 1;
  }

  .sidebar-widget-area {
    width: 100%;
  }

  .content-area {
    padding: 20px 16px;
  }

  .post-card {
    padding: 20px 24px;
  }

  .single-content-wrap {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 20px 16px;
  }

  .site-title {
    font-size: 22px;
  }

  .post-card .entry-title {
    font-size: 18px;
  }

  .single-post-header .entry-title {
    font-size: 22px;
  }

  .sidebar-categories {
    columns: 1;
  }
}
