/*
Theme Name: Rays of Bliss
Theme URI: https://raysofbliss.com
Author: Amber Ray
Author URI: https://raysofbliss.com/about
Description: Custom theme for Rays of Bliss — cozy homestead layout with navy header, two-column blog feed, full sidebar, and warm cream palette. Replaces Genesis framework with a clean, fast, fully custom theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Private
Text Domain: rays-of-bliss
Tags: blog, custom-colors, custom-logo, featured-images, two-columns, right-sidebar, sticky-post, threaded-comments
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --cream:        #FAF8F4;
  --cream-mid:    #F2EDE3;
  --cream-dark:   #EDE8DC;
  --navy:         #2E2F5B;
  --navy-mid:     #464879;
  --navy-light:   #8A8BAA;
  --navy-pale:    #B8BAD4;
  --ink:          #2C2A26;
  --ink-mid:      #6B6860;
  --ink-light:    #9E9C96;
  --border:       #E8E4DC;
  --warm-white:   #FFFDF9;
  --amber:        #BA7517;
  --teal:         #1D9E75;
  --pink:         #D4537E;
  --sage:         #639922;
  --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Lora', Georgia, serif;
  --max-width:    1100px;
  --content-width: 700px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--navy); }
ul, ol { padding-left: 1.5rem; }
button, input, select, textarea { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

blockquote {
  border-left: 3px solid var(--navy-pale);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ink-mid);
  background: var(--cream-mid);
  border-radius: 0 8px 8px 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Entry content styles */
.entry-content h2 { margin: 2rem 0 0.75rem; }
.entry-content h3 { margin: 1.5rem 0 0.5rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content a { color: var(--navy); border-bottom: 1px solid var(--navy-pale); padding-bottom: 1px; transition: border-color 0.2s; }
.entry-content a:hover { border-color: var(--navy); }
.entry-content img { border-radius: 8px; margin: 1.5rem auto; }

/* ============================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-size: 0.875rem;
}
.skip-link:focus { top: 0; }

/* ============================================================
   TOP ANNOUNCEMENT BAR
   ============================================================ */
.site-announcement {
  background: var(--cream-mid);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 8px 20px;
  font-size: 0.8125rem;
  color: var(--ink-mid);
  font-style: italic;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--navy);
  padding: 32px 40px 0;
  text-align: center;
}

.site-branding { margin-bottom: 8px; }

.site-logo img { max-height: 60px; margin: 0 auto 8px; }

.site-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #F5F0E6;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}

.site-title a { color: #F5F0E6; }
.site-title a:hover { color: var(--navy-pale); }

.site-description {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--navy-pale);
  margin-bottom: 0;
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.main-navigation {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 20px;
}

.main-navigation ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.main-navigation li { position: relative; }

.main-navigation a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--navy-pale);
  padding: 14px 22px;
  letter-spacing: 0.03em;
  transition: color 0.2s, background 0.2s;
  border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
  color: #F5F0E6;
  border-bottom-color: rgba(255,255,255,0.3);
}

/* Dropdown */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-mid);
  min-width: 220px;
  z-index: 100;
  border-radius: 0 0 8px 8px;
  padding: 6px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { display: block; }

.main-navigation .sub-menu li { width: 100%; }

.main-navigation .sub-menu a {
  padding: 10px 20px;
  font-size: 0.8125rem;
  color: var(--navy-pale);
  border-bottom: none;
}

.main-navigation .sub-menu a:hover { color: #F5F0E6; background: rgba(255,255,255,0.05); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #F5F0E6;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8125rem;
  margin: 14px auto;
}

/* ============================================================
   SITE BODY LAYOUT
   ============================================================ */
.site-body-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

/* Full-width layout (no sidebar) */
.site-body-wrap.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 800px;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
#main { min-width: 0; }

/* ============================================================
   HOME / BLOG FEED
   ============================================================ */

/* Hero post (first post on homepage) */
.post-hero { margin-bottom: 40px; }

.post-hero .post-thumbnail {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.post-hero .post-thumbnail img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-hero:hover .post-thumbnail img { transform: scale(1.02); }

/* Post meta eyebrow */
.post-meta-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.post-category-badge {
  display: inline-block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--navy);
  padding: 3px 10px;
  border-radius: 99px;
}

.post-category-badge.cat-amber  { background: var(--amber); }
.post-category-badge.cat-teal   { background: var(--teal); }
.post-category-badge.cat-pink   { background: var(--pink); }
.post-category-badge.cat-sage   { background: var(--sage); }

.post-date-meta {
  font-size: 0.75rem;
  color: var(--ink-light);
}

.post-hero .entry-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 12px;
}

.post-hero .entry-title a { color: var(--ink); }
.post-hero .entry-title a:hover { color: var(--navy); }

.entry-excerpt {
  font-size: 0.9375rem;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}

.read-more-link {
  font-size: 0.8125rem;
  color: var(--navy);
  border-bottom: 1px solid var(--navy-pale);
  padding-bottom: 1px;
  display: inline-block;
  transition: border-color 0.2s;
}

.read-more-link:hover { border-color: var(--navy); }

/* Feed divider */
.feed-divider { margin: 32px 0; }

/* Post row (horizontal card for subsequent posts) */
.post-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.post-row:last-of-type { border-bottom: none; }

.post-row .post-thumbnail {
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.post-row .post-thumbnail img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-row:hover .post-thumbnail img { transform: scale(1.04); }

.post-row .category-accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--navy);
}

.post-row .entry-title {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.post-row .entry-title a { color: var(--ink); }
.post-row .entry-title a:hover { color: var(--navy); }

.post-row-body { display: flex; flex-direction: column; justify-content: center; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--ink-mid);
  transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--navy);
  color: #F5F0E6;
  border-color: var(--navy);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single .site-body-wrap { max-width: 1100px; }

.entry-header { margin-bottom: 28px; }

.entry-header .entry-title { margin-bottom: 12px; }

.entry-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--ink-light);
  margin-bottom: 20px;
}

.entry-meta a { color: var(--ink-mid); transition: color 0.2s; }
.entry-meta a:hover { color: var(--navy); }

.entry-meta-sep { color: var(--border); }

.post-featured-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
}

.post-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Social share */
.social-share {
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-share-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.social-share-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--ink-mid);
  transition: all 0.2s;
  cursor: pointer;
  background: var(--warm-white);
}

.social-share-btn:hover { border-color: var(--navy-pale); color: var(--navy); background: var(--cream-mid); }
.social-share-btn.pinterest:hover { border-color: #E60023; color: #E60023; }
.social-share-btn.facebook:hover { border-color: #1877F2; color: #1877F2; }

/* Related posts */
.related-posts { margin: 40px 0 0; }

.related-posts-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-post-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--warm-white);
  transition: transform 0.25s, border-color 0.25s;
}

.related-post-card:hover { transform: translateY(-2px); border-color: var(--navy-pale); }

.related-post-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.related-post-card-body { padding: 12px 14px; }

.related-post-card h4 {
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ink);
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.nav-previous, .nav-next { display: flex; flex-direction: column; }
.nav-next { align-items: flex-end; text-align: right; }

.nav-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 4px;
}

.nav-post-title {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* Comments */
.comments-area { margin-top: 48px; }

.comments-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

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

.comment { padding: 20px 0; border-bottom: 1px solid var(--border); }

.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

.comment-author-avatar img { border-radius: 50%; width: 36px; height: 36px; }

.comment-author-name { font-weight: 600; font-size: 0.9375rem; }

.comment-date { font-size: 0.75rem; color: var(--ink-light); }

.comment-content { font-size: 0.9375rem; line-height: 1.7; }

/* Comment form */
.comment-respond { margin-top: 40px; }

.comment-reply-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.comment-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-mid);
  margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--warm-white);
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.comment-form input:focus, .comment-form textarea:focus { border-color: var(--navy-light); }

.comment-form textarea { min-height: 140px; resize: vertical; }

.comment-form-submit input[type="submit"] {
  background: var(--navy);
  color: #F5F0E6;
  border: none;
  padding: 11px 28px;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.comment-form-submit input[type="submit"]:hover { opacity: 0.85; }

/* ============================================================
   ARCHIVE / CATEGORY PAGES
   ============================================================ */
.archive-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.archive-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 6px;
}

.archive-description {
  font-size: 0.9375rem;
  color: var(--ink-mid);
  font-style: italic;
}

/* Category filter tabs */
.archive-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-tab {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--cream);
  text-decoration: none;
}

.filter-tab:hover, .filter-tab.active {
  background: var(--navy);
  color: #F5F0E6;
  border-color: var(--navy);
}

/* Archive grid */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.archive-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.archive-card:hover { transform: translateY(-3px); border-color: var(--navy-pale); }

.archive-card-img {
  overflow: hidden;
  position: relative;
}

.archive-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.archive-card:hover .archive-card-img img { transform: scale(1.04); }

.archive-card-body { padding: 16px 18px 20px; }

.archive-card h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 6px;
}

.archive-card h3 a { color: var(--ink); }
.archive-card h3 a:hover { color: var(--navy); }

.archive-card-excerpt {
  font-size: 0.8125rem;
  color: var(--ink-mid);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.load-more-btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 12px 32px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink-mid);
  background: var(--warm-white);
  cursor: pointer;
  transition: all 0.2s;
}

.load-more-btn:hover { border-color: var(--navy); color: var(--navy); }

/* ============================================================
   STATIC PAGES (About, Contact)
   ============================================================ */
.page .site-body-wrap { max-width: 1100px; }

.page-header { margin-bottom: 28px; }

.page-title { margin-bottom: 16px; }

.page-content { font-size: 1rem; line-height: 1.8; }

.page-content h2 { margin: 2rem 0 0.75rem; font-size: 1.35rem; }

.page-content p { margin-bottom: 1.25rem; }

.page-content img { border-radius: 8px; margin: 1.5rem auto; }

/* Contact page */
.contact-intro {
  font-size: 1rem;
  color: var(--ink-mid);
  margin-bottom: 28px;
  font-style: italic;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#secondary { min-width: 0; }

.widget {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
}

.widget-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* About widget */
.widget-about { text-align: center; }

.widget-about-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 3px solid var(--cream-dark);
}

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

.widget-about-text {
  font-size: 0.875rem;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-bottom: 12px;
}

.widget-about-link {
  font-size: 0.8125rem;
  color: var(--navy);
  border-bottom: 1px solid var(--navy-pale);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.widget-about-link:hover { border-color: var(--navy); }

/* Social links widget */
.widget-social { background: var(--navy); border-color: transparent; }
.widget-social .widget-title { color: #F5F0E6; border-bottom-color: rgba(255,255,255,0.1); }

.social-links-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-links-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--navy-pale);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}

.social-links-list a:hover { color: #F5F0E6; }
.social-links-list li:last-child a { border-bottom: none; }

/* Top posts widget */
.widget-top-posts .top-post-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.widget-top-posts .top-post-item:last-child { border-bottom: none; padding-bottom: 0; }

.top-post-num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--cream-dark);
  line-height: 1;
  min-width: 28px;
}

.top-post-title {
  font-size: 0.8125rem;
  color: var(--ink-mid);
  line-height: 1.5;
  transition: color 0.2s;
}

.widget-top-posts .top-post-item:hover .top-post-title { color: var(--navy); }

/* Waffles book widget */
.widget-waffles { text-align: center; }
.widget-waffles img { border-radius: 8px; margin: 0 auto 10px; }
.widget-waffles-link { font-size: 0.8125rem; color: var(--navy); }

/* Search widget */
.widget-search .search-form {
  display: flex;
  gap: 8px;
}

.widget-search input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  background: var(--cream);
  transition: border-color 0.2s;
}

.widget-search input[type="search"]:focus { border-color: var(--navy-light); }

.widget-search button {
  padding: 8px 14px;
  background: var(--navy);
  color: #F5F0E6;
  border: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.widget-search button:hover { opacity: 0.85; }

/* Email signup widget */
.widget-email { background: var(--navy); border-color: transparent; }
.widget-email .widget-title { color: #F5F0E6; border-bottom-color: rgba(255,255,255,0.1); }

.widget-email p {
  font-size: 0.8125rem;
  color: var(--navy-pale);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.6;
}

.widget-email input[type="email"] {
  width: 100%;
  padding: 9px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #F5F0E6;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  margin-bottom: 8px;
  outline: none;
}

.widget-email input::placeholder { color: var(--navy-light); }

.widget-email button {
  display: block;
  width: 100%;
  padding: 9px;
  background: #F5F0E6;
  color: var(--navy);
  border: none;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.widget-email button:hover { opacity: 0.9; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  padding: 52px 40px 28px;
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: #F5F0E6;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.footer-social-row { display: flex; gap: 8px; flex-wrap: wrap; }

.footer-social-chip {
  font-size: 0.6875rem;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.footer-social-chip:hover { border-color: rgba(255,255,255,0.3); color: #F5F0E6; }

.footer-col h4 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #F5F0E6;
  font-weight: 500;
  margin-bottom: 14px;
  font-family: var(--font-body);
}

.footer-col ul { list-style: none; padding: 0; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.footer-col a:hover { color: #F5F0E6; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.18);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { text-align: center; margin: 0 auto 1rem; }
.alignwide  { max-width: 900px; margin-left: auto; margin-right: auto; }
.alignfull  { max-width: 100%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .site-body-wrap {
    grid-template-columns: 1fr;
    padding: 32px 28px 60px;
    gap: 40px;
  }

  #secondary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .widget-email, .widget-social { grid-column: span 2; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }

  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }

  .archive-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding: 24px 20px 0; }
  .site-title { font-size: 2rem; }
  .menu-toggle { display: block; }
  .main-navigation ul { display: none; flex-direction: column; padding-bottom: 12px; }
  .main-navigation ul.toggled { display: flex; }
  .main-navigation a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .main-navigation .sub-menu { position: static; background: none; padding: 0 0 0 16px; }
  .main-navigation .sub-menu a { color: var(--navy-pale); font-size: 0.8125rem; }

  .site-body-wrap { padding: 24px 16px 48px; gap: 32px; }

  .post-row { grid-template-columns: 1fr; }
  .post-row .post-thumbnail img { height: 200px; }

  .post-hero .post-thumbnail img { height: 220px; }

  #secondary { grid-template-columns: 1fr; }
  .widget-email, .widget-social { grid-column: span 1; }

  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 36px 16px 24px; }
  .footer-bottom { flex-direction: column; }

  .related-posts-grid { grid-template-columns: 1fr; }

  .post-navigation { grid-template-columns: 1fr; }
  .nav-next { align-items: flex-start; text-align: left; }

  .social-share-links { gap: 6px; }
}
