/*
Theme Name: Wish & Vow
Theme URI: https://wishandvow.com
Author: Wish & Vow
Author URI: https://wishandvow.com
Description: A simple, classic (non-block) WordPress theme for Wish & Vow — a wedding and love-wishes content blog. Clean, fast, and readable, with no page builders and no bundled JavaScript.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wishandvow

Wish & Vow — site stylesheet.
No framework, no build step, no bundled JavaScript. Mobile-first, responsive.
Palette: bg #faf7f2, text #2e2a26, accent #b76e79, soft borders #e6ddd3.
*/

:root {
  --bg: #faf7f2;
  --text: #2e2a26;
  --accent: #b76e79;
  --border: #e6ddd3;
  --card-bg: #ffffff;
  --muted: #5a5450;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

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

a {
  color: var(--accent);
}

/* ---------- Accessibility ---------- */

.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;
}

.screen-reader-text:focus {
  background: var(--card-bg);
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  clip: auto !important;
  clip-path: none;
  color: var(--text);
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  height: auto;
  left: 1rem;
  line-height: normal;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-branding {
  display: flex;
  align-items: center;
}

.logo,
.site-title-link {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Main / layout ---------- */

.site-main {
  min-height: 60vh;
}

/* ---------- Hero (home) ---------- */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Card grid (home / archive) ---------- */

.card-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(46, 42, 38, 0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.post-card:hover {
  box-shadow: 0 6px 18px rgba(46, 42, 38, 0.1);
  transform: translateY(-2px);
}

.post-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--border);
}

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

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.post-card h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
  color: var(--text);
}

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

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.post-card .read-more {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Pagination ---------- */

.pagination,
.navigation.pagination {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  background: var(--card-bg);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
}

/* ---------- Article / page content ---------- */

.article,
.page-content-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.article h1,
.page-content-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.entry-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.75rem;
}

.entry-content {
  font-size: 18px;
  line-height: 1.7;
}

.entry-content h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.entry-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.75rem;
}

.entry-content h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--serif);
  margin: 1.5rem 0 0.75rem;
}

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

.entry-content a {
  color: var(--accent);
}

.entry-content strong,
.entry-content b {
  color: var(--text);
}

.entry-content em,
.entry-content i {
  color: var(--muted);
}

.entry-content img {
  border-radius: 8px;
  margin: 0 0 1.2rem;
}

/* Wish lists — scannable, airy, easy to copy */
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.entry-content ul li,
.entry-content ol li {
  border-left: 3px solid var(--border);
  padding: 0.65rem 0 0.65rem 1rem;
  margin-bottom: 0.5rem;
  background: rgba(183, 110, 121, 0.03);
  transition: border-color 0.15s ease;
}

.entry-content ul li:hover,
.entry-content ol li:hover {
  border-left-color: var(--accent);
}

.entry-content ul li ul,
.entry-content ol li ol,
.entry-content ul li ol,
.entry-content ol li ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

/* ---------- WP core alignment + caption classes ---------- */

.alignleft {
  float: left;
  margin: 0.3rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.3rem 0 1rem 1.5rem;
}

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

.alignwide {
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100%;
  width: 100%;
}

.wp-caption {
  max-width: 100%;
  margin: 0 0 1.5rem;
}

.wp-caption img {
  margin: 0 0 0.5rem;
}

.wp-caption-text,
.wp-caption .wp-caption-text {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

.wp-block-image figcaption,
.entry-content figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ---------- Related posts ---------- */

.related-posts {
  max-width: 700px;
  margin: 1rem auto 0;
  padding: 0 1.25rem 4rem;
}

.related-posts h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 0 0 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related-posts .card-grid {
  max-width: none;
  padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ---------- Static page ---------- */

.page-content-wrap {
  max-width: 700px;
}

/* ---------- 404 ---------- */

.error-404 {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  text-align: center;
}

.error-404 h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 1rem;
}

.error-404 p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.error-404 .home-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.error-404 .card-grid {
  padding-top: 0;
  padding-bottom: 0;
  text-align: left;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.footer-nav li {
  margin: 0;
}

.footer-nav li:not(:last-child)::after {
  content: "\00b7";
  margin: 0 0.4rem;
  color: var(--muted);
}

.footer-inner a,
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.15rem;
}

.footer-inner a:hover,
.footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-info {
  margin: 0;
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 420px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }

  .site-nav ul {
    gap: 0.9rem;
  }

  .hero {
    padding: 2rem 1rem 1.5rem;
  }

  .article,
  .page-content-wrap {
    padding: 2rem 1rem 3rem;
  }

  .entry-content {
    font-size: 17px;
  }
}

@media (min-width: 1440px) {
  .header-inner,
  .card-grid,
  .footer-inner {
    max-width: 1200px;
  }
}
