/* ============================================
   Design tokens — Rachel Living brand system
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,400..500&family=Lora:ital,wght@0,400..600;1,400..500&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --color-heading: #3B4632;    /* deep sage-charcoal for headings & title */
  --color-text: #3F4438;       /* body copy */
  --color-sage: #7D8C6A;       /* brand sage green — nav, footer, accents */
  --color-sage-line: #C0DD97;  /* light sage rule/border */
  --color-link: #7D8C6A;       /* CTA / link color, replaces Bootstrap blue */
  --color-link-hover: #5C6B4C;
  --color-muted: #8a9482;      /* secondary/quiet text — captions, store names */
  --color-cream: #F4F3EC;      /* soft background block — Shop CTA card */

  --font-display: 'Fraunces', serif;   /* site title, headings */
  --font-body: 'Lora', serif;          /* article body copy */
  --font-ui: 'Work Sans', sans-serif;  /* nav, tags, buttons, footer meta */

  --radius: 4px;  /* shared corner rounding — images, buttons */
}

/* Hide Quarto's default navbar */
#quarto-header {
  display: none;
}

/* ============================================
   Masthead & navigation (used by _header.html)
   ============================================ */
.site-masthead {
  text-align: center;
  padding: 30px 0 15px 0;
  background-color: #ffffff;
}

.site-title-link {
  text-decoration: none;
}

.site-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 52px;
  color: var(--color-heading);
  line-height: 1;
}

.site-nav {
  text-align: center;
  padding: 14px 0;
  background-color: #ffffff;
  border-top: 0.5px solid var(--color-sage-line);
  border-bottom: 1px solid var(--color-sage-line);
  margin-bottom: 40px;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--color-heading);
  text-decoration: none;
  margin: 0 14px;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--color-sage);
}

/* ============================================
   Footer (used by page-footer in _quarto.yml)
   ============================================ */
.footer-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--color-sage);
}

.footer-links,
.footer-meta {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--color-sage);
}

.footer-links {
  letter-spacing: 2px;
}

.footer-meta {
  letter-spacing: 0.5px;
}

.footer-links a,
.footer-meta a {
  color: var(--color-sage);
  text-decoration: none;
}

.footer-links a:hover,
.footer-meta a:hover {
  text-decoration: underline;
}

.nav-footer {
  border-top: 0.5px solid var(--color-sage-line);
  padding: 20px 0;
  text-align: center;
}

/* ============================================
   Typography — headings & body
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
}

body,
article p,
article li {
  font-family: var(--font-body);
  color: var(--color-text);
}

/* Left-align article body text */
article p,
article li {
  text-align: left;
}

/* Improve readability */
article p {
  line-height: 1.7;
}

/* ============================================
   Links — brand sage green instead of Bootstrap blue
   ============================================ */
a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration-thickness: 2px;
}

/* ============================================
   Layout
   ============================================ */

/* Constrain content width for readability — widened from 960px
   so the homepage image grid isn't squeezed */
#quarto-content {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

/* center figure captions */
figure > figcaption {
  text-align: center;
}

.grid-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: -0.8rem;
}

/* ============================================
   Listing grids (homepage "Latest Posts",
   category pages, Shop the Feed)
   ============================================ */

/* Remove Bootstrap's card border/shadow for a clean,
   editorial look — image sits directly on the page */
.quarto-grid-item.card {
  border: none;
  box-shadow: none;
  background-color: transparent;
}

.quarto-grid-item .card-body {
  padding-left: 0;
  padding-right: 0;
}

/* Fill column width, crop to fixed height instead of
   overflowing it. !important is used deliberately here to
   override Quarto's inline style="height: ..." (set via each
   listing's image-height option), which otherwise always wins
   over external CSS regardless of specificity. */
.quarto-grid-item img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  display: block;
  border-radius: var(--radius);
}

/* ============================================
   Article images
   ============================================ */

/* Safety-net fallback: if an image has no manual width="" set,
   this stops it from overflowing the page. No !important, so any
   image with a manual width="" attribute always wins as expected —
   this rule only fills the gap for images that don't set one. */
article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: var(--radius);
}

/* Two-image side-by-side layout. Use:
     ::: {.photo-pair}
     ![](a.webp)
     ![](b.webp)
     :::
   Each image fills its half of the row. */
.photo-pair {
  display: flex;
  gap: 16px;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.photo-pair p {
  flex: 1 1 0;
  min-width: 220px;
  margin: 0;
}

.photo-pair img {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: var(--radius);
}

@media (max-width: 600px) {
  .photo-pair {
    flex-direction: column;
  }
}

/* ============================================
   Shop the Feed — intro, disclosure, product links
   ============================================ */
.shop-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.shop-disclosure {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--color-sage);
  margin-top: 1rem;
}

.shop-list ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.shop-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-sage-line);
}

.shop-list li:last-child {
  border-bottom: none;
}

.shop-link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-heading);
  text-decoration: none;
  border-bottom: 2px solid var(--color-sage);
  padding-bottom: 1px;
}

.shop-link:hover {
  color: var(--color-sage);
}

.shop-link::after {
  content: " →";
  color: var(--color-sage);
}

.shop-store {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--color-muted);
  margin-top: 2px;
}

/* ============================================
   Homepage — Shop the Feed CTA block
   ============================================ */
.shop-cta {
  background-color: var(--color-cream);
  border: 1px solid var(--color-sage-line);
  border-radius: 8px;
  padding: 2rem 2rem 2.2rem 2rem;
  margin: 2.5rem 0 3rem 0;
  text-align: center;
}

.shop-cta h2 {
  margin-top: 0;
}

.shop-cta p {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Homepage hero — botanical line-art accent
   ============================================ */
.hero {
  position: relative;
  margin: 0 0 3rem 0;
  padding: 2rem 0 1rem 0;
  overflow: hidden;
}

.hero-botanical {
  position: absolute;
  top: -20px;
  right: -40px;
  width: 320px;
  height: auto;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.hero p {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .hero-botanical {
    width: 180px;
    opacity: 0.35;
  }
}

/* ============================================
   Contact button (About page, Shop the Feed CTA,
   and reusable anywhere else you want a branded
   CTA button)
   ============================================ */
.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  color: #ffffff;
  background-color: var(--color-sage);
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  margin-top: 0.5rem;
}

.contact-button:hover {
  background-color: var(--color-link-hover);
  color: #ffffff;
}

/* ============================================
   Social links (About page "Find Me On")
   ============================================ */
.social-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 14px;
}

.social-links a {
  color: var(--color-sage);
  text-decoration: none;
}

.social-links a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* ============================================
   About page — illustrated avatar
   ============================================ */
.about-avatar svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Listing grid — card layout: date + reading time
   share one row directly under the title; description
   comes last. Uses CSS Grid (not flex) so two separate
   sibling elements — reading time and date — can sit
   side by side without needing a shared wrapper.
   ============================================ */
.quarto-grid-item .card-body.post-contents {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "title title"
    "date  time"
    "desc  desc";
  column-gap: 0.5rem;
  row-gap: 0.25rem;
  align-items: baseline;
}

.quarto-grid-item .card-title {
  grid-area: title;
}

.quarto-grid-item .card-attribution.end {
  grid-area: date;
  margin: 0;
  padding-top: 0;
}

.quarto-grid-item .listing-reading-time {
  grid-area: time;
  margin: 0;
  padding-bottom: 0;
}

.quarto-grid-item .listing-reading-time::before {
  content: "· ";
  color: var(--color-muted);
}

.quarto-grid-item .card-text.listing-description {
  grid-area: desc;
  margin-top: 0.25rem;
}