/*
 Theme Name: Astra Slumber Child
 Theme URI: https://slumberstudio.co
 Description: Custom child theme for Slumber Studio built on Astra.
 Author: Slumber Studio
 Template: astra
 Version: 1.0.0
*/

/* -----------------------------------
   BRAND TOKENS
----------------------------------- */
:root {
  --ss-navy: #0B1524;
  --ss-cream: #FBF5E7;
  --ss-gold: #D1B37A;
}

/* -----------------------------------
   HEADER POLISH (Astra)
----------------------------------- */

.site-logo-img img {
  max-height: 46px;
  width: auto;
  height: auto;
}

.site-title,
.site-title a {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ss-navy);
}
.ast-primary-header-bar {
  padding-top: 12px;
  padding-bottom: 12px;
}



/* -----------------------------------
   GLOBAL TYPOGRAPHY
----------------------------------- */

/* Base body text: DM Sans */
body {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Helvetica Neue", Arial, sans-serif !important;
  color: #111827;
  background-color: #ffffff;
}

/* Make sure paragraphs, lists, etc. follow DM Sans */
p,
li,
button,
input,
textarea,
select {
  font-family: inherit;
}

/* Headings: force serif Playfair Display everywhere it matters */
h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.ast-title,
.ast-page-title,
.ss-hero h1,
.ss-hero-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* -----------------------------------
   ASTRA WRAPPER TWEAK
----------------------------------- */

/* Remove extra top padding Astra adds around the content wrapper */
.ss-home #primary {
  padding-top: 0;
}

/* -----------------------------------
   HERO SECTION
----------------------------------- */

.ss-hero {
  background-color: var(--ss-cream);
  border-bottom: 1px solid #e5e7eb;
  padding: 5rem 1.5rem 4rem;
}

.ss-container {
  max-width: 960px;
  margin: 0 auto;
}

.ss-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ss-gold);
  margin-bottom: 1.25rem;
}

.ss-hero-title {
  font-size: clamp(2.75rem, 3vw + 1.4rem, 3.4rem);
  font-weight: 600;
  color: var(--ss-navy);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em; /* subtle, premium tightening */
}

.ss-subtitle {
  font-size: 1.05rem; /* slightly stronger hierarchy */
  line-height: 1.6;
  max-width: 34rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.ss-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* -----------------------------------
   BUTTONS
----------------------------------- */

.ss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.ss-btn-primary {
  background-color: var(--ss-navy);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.ss-btn-primary:hover {
  background-color: #020617;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.32);
}

.ss-btn-ghost {
  background-color: transparent;
  color: var(--ss-navy);
  border-color: #e5e7eb;
}

.ss-btn-ghost:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

/* -----------------------------------
   LATEST GUIDES SECTION
----------------------------------- */

.ss-latest {
  padding: 3.5rem 1.5rem 4rem;
}

.ss-latest-header {
  margin-bottom: 1.75rem;
}

.ss-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--ss-navy);
}

.ss-section-subtitle {
  font-size: 0.98rem;
  color: #6b7280;
  max-width: 40rem;
}

/* Post grid */
.ss-post-grid {
  display: grid;
  gap: 1.5rem;
}

/* Each card */
.ss-post-card {
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.4rem 1.5rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.03);
  transition:
    box-shadow 150ms ease,
    transform 150ms ease,
    border-color 150ms ease;
}

.ss-post-card:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.ss-post-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  color: var(--ss-navy);
}

.ss-post-meta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}

.ss-post-excerpt {
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0 0 0.85rem;
}

.ss-read-more {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ss-navy);
  text-decoration: none;
}

.ss-read-more:hover {
  text-decoration: underline;
}

/* -----------------------------------
   RESPONSIVE
----------------------------------- */

@media (max-width: 768px) {
  .ss-hero {
    padding: 3.2rem 1.25rem 3rem;
  }

  .ss-hero-title {
    font-size: clamp(2.1rem, 2.4rem, 2.5rem);
  }

  .ss-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .ss-btn {
    width: 100%;
    justify-content: center;
  }

  .ss-latest {
    padding: 2.75rem 1.25rem 3rem;
  }
}

/* -----------------------------------
   ASTRA LOGO SQUISH FIX
----------------------------------- */

/* Allow the header branding area to size naturally */
.site-branding {
  display: flex;
  align-items: center;
  min-height: unset !important;
}

/* Remove Astra-imposed height constraints */
.site-logo-img,
.custom-logo-link {
  height: auto !important;
  max-height: none !important;
}

/* Control logo size ONLY via max-height */
.site-logo-img img,
.custom-logo {
  max-height: 70px;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

@media (max-width: 768px) {
  .site-logo-img img,
  .custom-logo {
    max-height: 52px;
  }
}

/* -----------------------------------
   SINGLE POST / ARTICLE TYPOGRAPHY POLISH
----------------------------------- */

/* Make the content column a touch more readable */
.single .site-content,
.blog .site-content,
.archive .site-content {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Post/page title: cleaner hierarchy */
.single .entry-title,
.page .entry-title,
.archive .page-title {
  color: var(--ss-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

/* Meta (date/category) lighter + less shouty */
.single .entry-meta,
.single .entry-meta * {
  font-size: 0.9rem;
  color: #6b7280 !important;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Give the intro paragraph ("lede") breathing room */
.single .entry-content > p:first-of-type,
.page .entry-content > p:first-of-type {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #374151;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 70ch;
}

/* Improve paragraph rhythm throughout */
.single .entry-content p,
.page .entry-content p {
  line-height: 1.8;
  margin: 0 0 1.15rem;
  max-width: 70ch;
}

/* Headings inside posts: add spacing + keep editorial feel */
.single .entry-content h2,
.page .entry-content h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--ss-navy);
}

.single .entry-content h3,
.page .entry-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--ss-navy);
}

/* Lists: more readable */
.single .entry-content ul,
.single .entry-content ol,
.page .entry-content ul,
.page .entry-content ol {
  margin: 0 0 1.25rem 1.25rem;
  max-width: 70ch;
}

.single .entry-content li,
.page .entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

/* Images: give breathing room */
.single .entry-content img,
.page .entry-content img {
  margin: 1.5rem 0;
  border-radius: 14px;
}


/* -----------------------------------
   SINGLE POST FINISHING TOUCHES
----------------------------------- */

/* Pull content slightly closer to title */
.single .entry-content {
  margin-top: 1.25rem;
}

/* Strengthen post title presence */
.single .entry-title {
  font-size: clamp(2.2rem, 3vw, 2.6rem);
}

/* Meta line: calmer but more intentional */
.single .entry-meta {
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: #9ca3af !important;
}

/* Visually separate comments from article */
#comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

/* Soften comment typography */
#comments,
#comments p,
#comments label {
  font-size: 0.95rem;
  color: #6b7280;
}


