/*
Theme Name: Soulsweet
Theme URI: https://soulsweet.online/
Author: Soulsweet
Author URI: https://soulsweet.online/
Description: A calm, editorial WordPress theme for honest product recommendations and gift guides.
Version: 0.4.0
Requires at least: 6.1
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soulsweet
Tags: blog, e-commerce, grid-layout, one-column, custom-logo, featured-images, translation-ready
*/

:root {
  --ss-ink: #1d2224;
  --ss-muted: #6c7274;
  --ss-paper: #fbfaf6;
  --ss-surface: #f1eee7;
  --ss-line: #dedbd2;
  --ss-coral: #bd5546;
  --ss-coral-dark: #8f3e35;
  --ss-sage: #596d65;
  --ss-white: #ffffff;
  --ss-radius: 18px;
  --ss-shadow: 0 12px 32px rgba(29, 34, 36, 0.08);
  --ss-content: 72rem;
  --ss-reading: 47rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ss-ink);
  background: var(--ss-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ss-coral-dark); text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }
a:hover { color: var(--ss-ink); }

button,
input,
textarea,
select { font: inherit; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  left: 1rem;
  padding: 0.7rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
  color: var(--ss-white);
  background: var(--ss-ink);
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1000; padding: 0.7rem 1rem; color: var(--ss-white); background: var(--ss-ink); }

:focus-visible { outline: 3px solid var(--ss-coral); outline-offset: 3px; }

.site-shell { width: min(calc(100% - 2.5rem), var(--ss-content)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 219, 210, 0.9);
  background: rgba(251, 250, 246, 0.96);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; gap: 2rem; }

.site-brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ss-ink); text-decoration: none; }
.site-brand img { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.site-brand__name { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; letter-spacing: 0.02em; }
.site-brand__tagline { display: none; color: var(--ss-muted); font-size: 0.75rem; }

.main-navigation ul { display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.main-navigation a { color: var(--ss-ink); font-size: 0.92rem; text-decoration: none; }
.main-navigation a:hover { color: var(--ss-coral-dark); }
.menu-toggle { display: none; border: 1px solid var(--ss-line); border-radius: 999px; padding: 0.55rem 0.85rem; color: var(--ss-ink); background: transparent; cursor: pointer; }

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--ss-coral);
  border-radius: 999px;
  color: var(--ss-white);
  background: var(--ss-coral);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.button:hover,
.wp-block-button__link:hover { border-color: var(--ss-coral-dark); color: var(--ss-white); background: var(--ss-coral-dark); transform: translateY(-1px); }
.button--quiet { border-color: var(--ss-line); color: var(--ss-ink); background: transparent; }
.button--quiet:hover { border-color: var(--ss-ink); color: var(--ss-white); background: var(--ss-ink); }

.hero { padding: clamp(4.5rem, 11vw, 9rem) 0 5rem; }
.hero__eyebrow, .section-heading__eyebrow { margin: 0 0 0.8rem; color: var(--ss-coral-dark); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.hero h1 { max-width: 48rem; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 400; letter-spacing: -0.045em; line-height: 0.98; }
.hero__copy { max-width: 38rem; margin: 1.5rem 0 0; color: var(--ss-muted); font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.section { padding: 4rem 0; }
.section--tint { background: var(--ss-surface); }
.landing-hero { padding: 5rem 0 3.5rem; }
.landing-hero h1 { max-width: 52rem; margin: 0.4rem 0 1.2rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 400; letter-spacing: -0.045em; line-height: 1; }
.landing-hero__intro { max-width: 43rem; color: var(--ss-muted); font-size: 1.08rem; }
.landing-hero__intro p:last-child { margin-bottom: 0; }
.landing-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.landing-card { min-height: 14rem; padding: 1.5rem; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); background: var(--ss-white); }
.landing-card h2 { margin: 0.35rem 0 0.65rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 400; line-height: 1.1; }
.landing-card p { margin: 0; color: var(--ss-muted); }
.landing-card__link { display: inline-flex; margin-top: 1.2rem; font-weight: 650; }
.page-intro { max-width: var(--ss-reading); margin: 0 auto 2.5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.08; }
.section-heading p { max-width: 30rem; margin: 0; color: var(--ss-muted); }

.guide-grid,
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.guide-card { display: flex; min-height: 16rem; flex-direction: column; justify-content: space-between; padding: 1.5rem; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); color: var(--ss-ink); background: var(--ss-white); text-decoration: none; box-shadow: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.guide-card:hover { color: var(--ss-ink); transform: translateY(-3px); box-shadow: var(--ss-shadow); }
.guide-card__number { color: var(--ss-coral-dark); font-size: 0.8rem; font-weight: 750; letter-spacing: 0.1em; }
.guide-card h3 { margin: 2.5rem 0 0.45rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 400; line-height: 1.1; }
.guide-card p { margin: 0; color: var(--ss-muted); }
.guide-card__arrow { align-self: end; color: var(--ss-coral-dark); font-size: 1.4rem; }

.post-card { overflow: hidden; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); background: var(--ss-white); }
.post-card__image { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ss-surface); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.post-card:hover .post-card__image img { transform: scale(1.03); }
.post-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--ss-sage); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.post-card__body { padding: 1.25rem; }
.post-card__meta, .entry-meta { color: var(--ss-muted); font-size: 0.78rem; }
.entry-byline { color: var(--ss-muted); font-size: 0.86rem; margin: 0.6rem 0 0; }
.post-card h3 { margin: 0.5rem 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 400; line-height: 1.15; }
.post-card h3 a { color: var(--ss-ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--ss-coral-dark); }
.post-card__excerpt { margin: 0; color: var(--ss-muted); font-size: 0.94rem; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--ss-line); background: var(--ss-line); }
.principle { min-height: 11rem; padding: 1.5rem; background: var(--ss-paper); }
.principle strong { display: block; margin-bottom: 0.7rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 400; }
.principle p { margin: 0; color: var(--ss-muted); }

.about-strip { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: clamp(2rem, 8vw, 7rem); }
.about-strip__mark { display: grid; min-height: 20rem; place-items: center; overflow: hidden; border-radius: var(--ss-radius); color: var(--ss-white); background: var(--ss-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(4rem, 9vw, 8rem); letter-spacing: -0.08em; }
.about-strip__portrait { width: 100%; height: 100%; min-height: 20rem; object-fit: cover; object-position: center 24%; }
.about-strip h2 { margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1; }
.about-strip p { max-width: 36rem; color: var(--ss-muted); }

.content-area { padding: 4rem 0 6rem; }
.archive-header { max-width: var(--ss-reading); margin-bottom: 2rem; }
.archive-header h1, .entry-header h1 { margin: 0.4rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 400; letter-spacing: -0.045em; line-height: 1; }
.archive-description { color: var(--ss-muted); }
.author-intro { display: grid; grid-template-columns: 9rem 1fr; align-items: center; gap: 1.5rem; }
.author-intro__portrait { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; object-position: center 24%; }
.entry { max-width: var(--ss-reading); margin: 0 auto; }
.entry-header { margin-bottom: 2rem; }
.entry-featured { margin: 2rem 0; border-radius: var(--ss-radius); }
.entry-content { font-size: 1.08rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { margin-top: 2.4rem; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.15; }
.entry-content h2 { font-size: 2.1rem; }
.entry-content h3 { font-size: 1.55rem; }
.entry-content blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--ss-coral); color: var(--ss-sage); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 0.7rem; border-bottom: 1px solid var(--ss-line); text-align: left; }
.entry-content .product-card { margin: 2rem 0; padding: 1.35rem; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); background: var(--ss-surface); }
.entry-content .product-card h3 { margin-top: 0; }
.entry-content .verdict { color: var(--ss-coral-dark); font-weight: 750; }
.soulsweet-related { margin: 3.5rem 0 1rem; padding: 1.6rem; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); background: var(--ss-surface); }
.soulsweet-related__eyebrow { margin: 0 0 0.45rem; color: var(--ss-coral-dark); font-size: 0.75rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.soulsweet-related h2 { margin: 0 0 1rem; font-size: 1.7rem; }
.soulsweet-related ul { margin: 0; padding-left: 1.2rem; }
.soulsweet-related li + li { margin-top: 0.45rem; }
.soulsweet-related__method { margin: 1rem 0 0; color: var(--ss-muted); font-size: 0.82rem; }
.soulsweet-editor-portrait { max-width: 24rem; margin: 0 0 2rem; }
.soulsweet-editor-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 24%; border-radius: var(--ss-radius); }
.soulsweet-editor-portrait figcaption { margin-top: 0.55rem; color: var(--ss-muted); font-size: 0.78rem; }
.page-template-page-about .soulsweet-editor-portrait { display: none; }
.post-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ss-line); }

.pagination { display: flex; gap: 0.5rem; margin-top: 2rem; }
.pagination .page-numbers { display: inline-flex; min-width: 2.5rem; min-height: 2.5rem; align-items: center; justify-content: center; border: 1px solid var(--ss-line); border-radius: 999px; text-decoration: none; }
.pagination .current { color: var(--ss-white); background: var(--ss-ink); }

.search-form { display: flex; max-width: 34rem; gap: 0.5rem; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 2.9rem; padding: 0.65rem 0.85rem; border: 1px solid var(--ss-line); border-radius: 999px; background: var(--ss-white); }
.search-submit { border: 0; cursor: pointer; }

.site-footer { padding: 3rem 0 1.5rem; border-top: 1px solid var(--ss-line); background: var(--ss-ink); color: var(--ss-white); }
.site-footer a { color: #f5c2b8; }
.site-footer a:hover { color: var(--ss-white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-title { margin: 0 0 0.65rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 400; }
.footer-copy { max-width: 23rem; color: #c7ccca; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 0.35rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.18); color: #c7ccca; font-size: 0.82rem; }

.comments-area { max-width: var(--ss-reading); margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--ss-line); }
.comment-list { padding-left: 1.2rem; }
.comment-form-comment textarea { width: 100%; }

@media (max-width: 760px) {
  .site-shell { width: min(calc(100% - 1.5rem), var(--ss-content)); }
  .header-inner { min-height: 4.25rem; }
  .menu-toggle { display: inline-flex; }
  .main-navigation { position: relative; }
  .main-navigation ul { display: none; position: absolute; right: 0; top: calc(100% + 0.75rem); width: min(17rem, calc(100vw - 2rem)); padding: 0.65rem; border: 1px solid var(--ss-line); border-radius: 1rem; background: var(--ss-paper); box-shadow: var(--ss-shadow); }
  .main-navigation.is-open ul { display: block; }
  .main-navigation li + li { margin-top: 0.2rem; }
  .main-navigation a { display: block; padding: 0.65rem 0.75rem; }
  .guide-grid, .post-grid, .principles, .about-strip, .footer-grid, .landing-card-grid, .author-intro { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .hero h1 { font-size: clamp(2.9rem, 15vw, 4.6rem); }
  .section-heading { display: block; }
  .section-heading p { margin-top: 0.75rem; }
  .footer-bottom { display: block; }
  .footer-bottom span + span { display: block; margin-top: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
