@charset "UTF-8";

/* Clear themes and visible actions keep the playful illustrations easy to explore. */
:root {
  --section-nav-height: 54px;
  --theme-parenting: #ad392f;
  --theme-learning: #456a45;
  --theme-money: #805c16;
  --theme-living: #31667a;
}

html { scroll-padding-top: calc(var(--section-nav-height) + 12px); }
.home-section { scroll-margin-top: 0; }

/* This navigation is a sibling of the header so it stays available down the page. */
.journal-nav.section-navigation {
  position: sticky;
  top: 0;
  right: auto;
  z-index: 65;
  padding: 0;
  background: #fffdf9;
  border-top: 1px solid #eee7db;
  border-bottom: 1px solid #ded9cb;
  box-shadow: 0 3px 8px #554d3810;
}
.journal-nav.section-navigation > .wrap {
  width: calc(100% - 96px);
  display: flex;
  justify-content: center;
  gap: 40px;
}
.journal-nav.section-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: var(--section-nav-height);
  padding: 8px 17px;
  border: 0;
  color: #56594c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.journal-nav.section-navigation a::after,
.journal-nav.section-navigation a:first-child::after {
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 4px;
  background: transparent;
}
.section-navigation a[data-section-link="relatable"] { --nav-accent: var(--theme-parenting); --nav-paper: #fff0e9; }
.section-navigation a[data-section-link="learn"] { --nav-accent: var(--theme-learning); --nav-paper: #eff5e8; }
.section-navigation a[data-section-link="money"] { --nav-accent: var(--theme-money); --nav-paper: #fff3cb; }
.section-navigation a[data-section-link="living"] { --nav-accent: var(--theme-living); --nav-paper: #eaf4fa; }
.journal-nav.section-navigation a:hover,
.journal-nav.section-navigation a[aria-current="location"] {
  color: var(--nav-accent);
  background: var(--nav-paper);
}
.journal-nav.section-navigation a:hover::after,
.journal-nav.section-navigation a[aria-current="location"]::after {
  background: var(--nav-accent);
}
.site-header .masthead { gap: 18px; }
.site-header .header-actions { gap: 6px; }
.site-header .header-actions button[data-open="search"] {
  flex-direction: row;
  gap: 5px;
  min-height: 44px;
  padding-inline: 11px;
  border-radius: 23px;
  background: #fff4cf;
}
.site-header .header-actions button[data-open="search"] > span {
  display: inline;
  font-size: 13px;
  font-weight: 700;
}
.site-header .header-actions button[data-open="search"] > svg { width: 19px; height: 19px; }
.site-header .header-actions button[data-open="saved"] { min-width: 44px; min-height: 44px; }

/* The slide controls precede the large image instead of living below the whole story. */
.relatable-carousel .carousel-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 18px;
  min-height: 58px;
  padding-block: 5px;
}
.relatable-carousel .swipe-hint {
  grid-column: auto;
  grid-row: auto;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  color: #575a4d;
}
.relatable-carousel .carousel-pagination {
  grid-column: auto;
  grid-row: auto;
  justify-self: center;
}
.relatable-carousel .carousel-count { margin-left: 9px; font-size: 11px; }
.relatable-carousel .carousel-arrows {
  grid-column: auto;
  grid-row: auto;
  gap: 8px;
}
.relatable-carousel .carousel-arrows button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 73px;
  height: auto;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 25px 22px 26px 20px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}
.relatable-carousel .carousel-arrows button svg { width: 18px; height: 18px; }
.relatable-carousel .carousel-arrows button[data-carousel-prev] { flex-direction: row-reverse; }
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 15px;
  background: #fff5cb;
  border: 1.5px solid #785b2e;
  border-radius: 24px 20px 25px 18px;
  color: #3c3528;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  box-shadow: 2px 3px 0 #77634529;
}
.rel-feature .feature-photo .image-origin {
  left: 11px;
  right: auto;
  bottom: 13px;
  max-width: calc(100% - 175px);
}
.bridge-label { min-height: 72px; font-size: 19px; padding: 8px 12px; }

/* The short theme guide is an entry point, followed by three visibly different sections. */
.home-guide { padding-block: 36px 42px; }
.home-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.home-guide-head h2 { font-size: 28px; font-weight: 900; line-height: 1.5; letter-spacing: -.04em; }
.guide-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid #a8ad9a;
  border-radius: 24px 19px 25px 20px;
  background: white;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.guide-search:hover { background: #fff6d9; border-color: #837751; }
.guide-search svg { width: 19px; height: 19px; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; }
.guide-link {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 116px;
  padding: 19px 21px;
  border-radius: 29px 42px 26px 34px;
}
.guide-link:nth-child(2) { border-radius: 36px 25px 40px 26px; }
.guide-link:nth-child(3) { border-radius: 28px 39px 24px 36px; }
.guide-parenting { color: var(--theme-parenting); background: #ffede6; }
.guide-learning { color: var(--theme-learning); background: #edf4e7; }
.guide-money { color: var(--theme-money); background: #fff2c8; }
.guide-living { color: var(--theme-living); background: #eaf4fa; }
.guide-symbol { display: grid; place-items: center; }
.guide-symbol svg { width: 43px; height: 43px; }
.guide-link strong { display: block; font-size: 20px; font-weight: 900; line-height: 1.55; }
.guide-link small { display: block; margin-top: 5px; color: #4f5748; font-size: 12px; line-height: 1.75; }
.guide-link > svg { width: 20px; height: 20px; }
.guide-link:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.home-section {
  padding-block: 39px 44px;
  border-top: 2px dashed var(--section-edge);
  background: var(--section-paper);
}
.section-parenting { --section-ink: var(--theme-parenting); --section-paper: #fff3ed; --section-edge: #efc5b5; }
.section-learning { --section-ink: var(--theme-learning); --section-paper: #f0f6ea; --section-edge: #c4d5b5; }
.section-money { --section-ink: var(--theme-money); --section-paper: #fff8df; --section-edge: #e6d18f; }
.section-living { --section-ink: var(--theme-living); --section-paper: #edf6fa; --section-edge: #b8d6e1; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading-row .rel-section-heading { display: block; margin: 0; }
.section-heading-row .rel-section-heading h2 { color: var(--section-ink); font-size: 34px; line-height: 1.5; padding-bottom: 5px; }
.section-heading-row .rel-section-heading h2::after { background: var(--section-edge); }
.section-heading-row .rel-section-heading p { margin-top: 11px; font-size: 13px; }
.section-more { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding-bottom: 2px; }
.section-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--section-edge);
  border-radius: 23px 18px 25px 20px;
  background: #ffffffd9;
  color: var(--section-ink);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}
.section-all svg { width: 17px; height: 17px; }
.section-all:hover { border-color: var(--section-ink); }
.section-topics { display: flex; flex-wrap: wrap; gap: 9px 11px; padding-bottom: 23px; }
.section-topics a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px dashed var(--section-edge);
  border-radius: 21px 25px 19px 24px;
  background: #ffffffad;
  color: var(--section-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.section-topics a:nth-child(even) { border-radius: 25px 19px 23px 17px; }
.section-topics a:hover { border-color: var(--section-ink); background: white; }
.home-section .rel-story-pair { gap: 36px; }
.home-section .story-grid.two { max-width: none; gap: 34px; }
.home-section .card-image, .home-section .rel-story-photo { background: white; }
.home-section .card-bottom { border-color: var(--section-edge); }
.home-section .card-read { color: var(--section-ink); }

@media (max-width: 1120px) {
  .guide-link { padding-inline: 16px; gap: 9px; grid-template-columns: 34px minmax(0, 1fr) 18px; }
  .guide-symbol svg { width: 34px; height: 34px; }
  .guide-link strong { font-size: 18px; }
}
@media (max-width: 900px) {
  .journal-nav.section-navigation > .wrap { width: calc(100% - 48px); gap: 16px; }
  .journal-nav.section-navigation a { min-height: var(--section-nav-height); font-size: 13px; }
  .bridge-label { grid-column: auto; grid-row: auto; min-height: 68px; font-size: 17px; }
  .bridge-link { grid-column: auto; justify-self: auto; padding-inline: 14px; }
  .guide-grid { gap: 13px; }
  .guide-link { grid-template-columns: minmax(0, 1fr) 18px; padding: 18px 17px; }
  .guide-symbol { display: none; }
  .guide-link strong { font-size: 19px; }
  .section-heading-row .rel-section-heading h2 { font-size: 31px; }
}
@media (max-width: 700px) {
  :root { --section-nav-height: 50px; }
  .site-header .masthead { min-height: 78px; gap: 8px; }
  .site-header .brand > span { font-size: 24px; }
  .site-header .header-actions { gap: 3px; }
  .site-header .header-actions button[data-open="search"] { padding-inline: 9px; gap: 4px; }
  .site-header .header-actions button[data-open="search"] > span { font-size: 12px; }
  .site-header .header-actions button[data-open="saved"] { min-width: 39px; padding-inline: 7px; }
  .journal-nav.section-navigation > .wrap { width: calc(100% - 24px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .journal-nav.section-navigation a { padding-inline: 3px; min-height: var(--section-nav-height); font-size: 12px; }
  .journal-nav.section-navigation a::after,
  .journal-nav.section-navigation a:first-child::after { left: 6px; right: 6px; bottom: 5px; height: 3px; }
  .relatable-carousel .carousel-controls { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 54px; gap: 8px; padding-block: 4px; }
  .relatable-carousel .swipe-hint { font-size: 12px; grid-column: auto; grid-row: auto; }
  .relatable-carousel .carousel-pagination { grid-column: auto; grid-row: auto; }
  .relatable-carousel .carousel-dot { display: none; }
  .relatable-carousel .carousel-count { margin-left: 0; font-size: 10px; }
  .relatable-carousel .carousel-count b { margin-right: 2px; font-size: 13px; }
  .relatable-carousel .carousel-arrows { grid-column: auto; grid-row: auto; gap: 6px; }
  .relatable-carousel .carousel-arrows button { min-width: 65px; min-height: 44px; padding: 8px 9px; gap: 4px; font-size: 12px; }
  .relatable-carousel .carousel-arrows button svg { width: 16px; height: 16px; }
  .rel-feature .feature-photo .image-origin { left: 9px; right: auto; bottom: 13px; max-width: calc(100% - 151px); font-size: 8px; padding-inline: 5px; }
  .rel-feature .feature-copy { padding-block: 16px 13px; }
  .rel-feature .feature-copy h2 { margin-bottom: 0; }
  .rel-feature .feature-description { display: none; }
  .home-guide { padding-block: 27px 32px; }
  .home-guide-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 17px; }
  .home-guide-head h2 { font-size: 25px; }
  .guide-search { min-height: 44px; padding: 8px 14px; font-size: 12px; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .guide-link { grid-template-columns: 36px minmax(0, 1fr) 19px; gap: 13px; min-height: 88px; padding: 14px 19px; }
  .guide-symbol { display: grid; }
  .guide-symbol svg { width: 36px; height: 36px; }
  .guide-link strong { font-size: 20px; }
  .guide-link small { margin-top: 2px; font-size: 12px; }
  .home-section { padding-block: 30px 34px; }
  .section-heading-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 15px; }
  .section-heading-row .rel-section-heading h2 { font-size: 28px; margin-bottom: 0; }
  .section-heading-row .rel-section-heading p { margin-top: 8px; font-size: 12px; }
  .section-more { gap: 8px; padding: 0; }
  .section-all { min-height: 44px; font-size: 12px; padding-inline: 12px; }
  .section-topics { gap: 7px; padding-bottom: 22px; }
  .section-topics a { font-size: 12px; min-height: 44px; padding-inline: 12px; }
  .home-section .rel-story-pair { gap: 29px; }
  .home-section .story-grid.two { gap: 28px; }
}
@media (max-width: 360px) {
  .site-header .masthead { min-height: 75px; }
  .site-header .brand > span { font-size: 20px; }
  .site-header .brand small { font-size: 7px; letter-spacing: .01em; }
  .site-header .header-actions { gap: 1px; }
  .site-header .header-actions button[data-open="search"] { gap: 3px; padding-inline: 7px; }
  .site-header .header-actions button[data-open="search"] > svg { width: 17px; height: 17px; }
  .site-header .header-actions button[data-open="saved"] { min-width: 36px; padding-inline: 6px; }
  .journal-nav.section-navigation a { font-size: 11px; }
  .relatable-carousel .swipe-hint { font-size: 11px; }
  .relatable-carousel .carousel-controls { gap: 6px; }
  .relatable-carousel .carousel-arrows { gap: 5px; }
  .relatable-carousel .carousel-arrows button { min-width: 62px; padding-inline: 7px; }
  .home-guide-head h2 { font-size: 23px; }
  .guide-link { padding-inline: 15px; gap: 10px; }
  .guide-link strong { font-size: 19px; }
  .section-heading-row .rel-section-heading h2 { font-size: 26px; }
}
@media print {
  .section-navigation, .home-guide, .section-more, .section-topics, .feature-article-link { display: none !important; }
  .home-section { background: white; border-top: 1px solid #aaa; }
  .rel-feature .feature-description { display: block; }
}

/* Place the article action below the artwork so it never hides the story's faces or shoes. */
.rel-feature .feature-photo { aspect-ratio: auto; overflow: visible; border-radius: 0; }
.rel-feature .feature-photo img { display: block; height: auto; aspect-ratio: 1; border-radius: 26px 35px 22px 29px; }

/* Keep the single reading action visible without cropping the illustration. */
@media (min-width: 701px) {
  .rel-feature .feature-photo img { height: min(52svh, 440px); aspect-ratio: auto; object-fit: contain; }
  .rel-feature .feature-copy h2 { font-size: clamp(34px, 3vw, 48px); }
}

.feature-article-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 460px; min-height: 64px; padding: 12px 14px; margin: 10px 0 19px; background: #fff5ec; border: 1px solid #e5ba9d; border-left: 4px solid #b6382f; border-radius: 7px 19px 7px 14px; color: #7b3026; }
.feature-article-link small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 400; line-height: 1.4; }
.feature-article-link b { display: block; font-size: 16px; font-weight: 700; line-height: 1.65; text-decoration: underline; text-underline-offset: 4px; }
.feature-article-link > svg { flex-shrink: 0; width: 23px; height: 23px; }
.feature-article-link:hover { background: #ffe8d9; color: #a42c24; }
.image-category.living, .category.living { color: #31667a; background: #eaf4fa; }
.product-secondary { margin: 12px 0 0; font-size: 12px; line-height: 1.8; color: #586650; }
.product-secondary a { color: #345c38; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 701px) and (max-width: 1100px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .feature-article-link { margin-block: 12px 0; padding: 10px 12px; min-height: 60px; } .feature-article-link b { font-size: 14px; } }
@media (max-width: 370px) { .journal-nav.section-navigation a { font-size: 11px; padding-inline: 2px; } .rel-feature .feature-photo img { height: min(36svh, 290px); aspect-ratio: auto; object-fit: contain; } }
