@charset "utf-8";
/* ==========================================================================
   FamilyResource.com — design system
   --------------------------------------------------------------------------
   Text-first by design: only ~10% of the 1,302 articles carry any image, so
   typography does the work here, not photography. The palette evolves the
   original 2006 brand (warm paper, teal, brown) rather than replacing it —
   this is a family/parenting site and it should read warm and human — but
   every colour below is contrast-checked, and the layout is mobile-first
   rather than the old fixed 953px.

   No build step, no webfonts, no JS dependency. One file, cached hard.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  /* Palette. Contrast measured against --page (#faf7f0) and white.
     The original brand teal (#44909e) only reached 3.43:1 and failed WCAG AA
     for body text; --accent below is the same hue corrected to 5.58:1. */
  --ink:        #23201c;   /* 15.2:1 — body text                              */
  --ink-muted:  #5c5750;   /*  6.7:1 — bylines, meta, captions                */
  --brown:      #6b4a2f;   /*  7.4:1 — headings                               */
  --accent:     #2b6c78;   /*  5.6:1 — links, interactive                     */
  --accent-dark:#245e69;   /*  6.8:1 — hover/active                           */
  --sage:       #5f6b45;   /*  5.3:1 — secondary accents                      */

  --page:       #faf7f0;   /* warm paper                                      */
  --surface:    #ffffff;
  --surface-alt:#f3eee3;   /* subtle fill for asides / ad wells               */
  --line:       #e3dccd;   /* hairlines                                       */
  --line-strong:#cfc5b0;

  /* Fluid type — scales between 360px and 1200px viewports. */
  --step--1: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --step-0:  clamp(1.0625rem, 1.03rem + 0.16vw, 1.125rem);   /* body         */
  --step-1:  clamp(1.1875rem, 1.12rem + 0.32vw, 1.375rem);
  --step-2:  clamp(1.375rem, 1.25rem + 0.55vw, 1.75rem);
  --step-3:  clamp(1.625rem, 1.4rem + 1vw, 2.25rem);
  --step-4:  clamp(1.875rem, 1.5rem + 1.7vw, 2.875rem);      /* page titles  */

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 68ch;         /* comfortable line length for long-form reading   */
  --wrap: 1200px;
  --gap: 1.5rem;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(35,32,28,.06), 0 4px 12px rgba(35,32,28,.05);
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: var(--step-0)/1.7 var(--sans);
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .16em; }
a:hover, a:focus { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--brown); line-height: 1.25; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 40rem) { .wrap { padding-inline: 1.5rem; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- header -- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .875rem;
}
.brand {
  font-family: var(--serif); font-size: var(--step-2); font-style: italic;
  color: var(--brown); text-decoration: none; letter-spacing: -.01em; line-height: 1;
  white-space: nowrap;
}
.brand span { color: var(--ink-muted); font-style: normal; font-size: .7em; }
.brand:hover { color: var(--brown); }

/* Search — compact on mobile, inline on desktop. */
.search { display: flex; gap: .375rem; flex: 0 1 22rem; }
.search input[type="search"] {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: var(--step--1);
  padding: .5rem .75rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--page); color: var(--ink);
}
.search input[type="search"]::placeholder { color: var(--ink-muted); opacity: 1; }
.search button {
  font: inherit; font-size: var(--step--1); font-weight: 600;
  padding: .5rem .9rem; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: #fff;
}
.search button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
@media (max-width: 47.99rem) { .search { display: none; } .search.is-mobile { display: flex; flex: 1 1 auto; padding-bottom: .875rem; } }
@media (min-width: 48rem) { .search.is-mobile { display: none; } }

/* Category nav — scrolls horizontally on narrow screens rather than wrapping
   into an unpredictable stack or hiding behind a hamburger. Six items is few
   enough that they stay reachable with one thumb swipe. */
.site-nav { background: var(--surface); border-bottom: 2px solid var(--brown); }
.site-nav ul {
  display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a {
  display: block; padding: .8rem .9rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--ink); border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--accent-dark); background: var(--surface-alt); }
.site-nav a[aria-current="page"], .site-nav a.is-active {
  color: var(--brown); border-bottom-color: var(--brown);
}
/* Active-section highlighting. Sigma has no conditionals, so the current
   section is emitted once as a body class and matched here rather than
   duplicating nav markup across every template. */
.section-parenting     .nav-parenting,
.section-pregnancy     .nav-pregnancy,
.section-relationships .nav-relationships,
.section-health        .nav-health,
.section-finance       .nav-finance,
.section-lifestyles    .nav-lifestyles,
.section-babynames     .nav-babynames,
.section-blog          .nav-blog {
  color: var(--brown); border-bottom-color: var(--brown);
}

/* --------------------------------------------------------------- layout -- */
.layout { display: block; padding-block: 2rem 3rem; }
@media (min-width: 64rem) {
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
    align-items: start;
  }
}
.content { min-width: 0; }

/* ----------------------------------------------------------- breadcrumb -- */
.breadcrumb { font-size: var(--step--1); color: var(--ink-muted); margin-bottom: .75rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--line-strong); }

/* ------------------------------------------------------ article / prose -- */
.page-title { font-size: var(--step-4); margin: 0 0 .5rem; }
.page-intro { font-size: var(--step-1); color: var(--ink-muted); max-width: var(--measure); margin: 0 0 2rem; }

.byline {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem;
  font-size: var(--step--1); color: var(--ink-muted);
  padding-bottom: 1.25rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.byline a { font-weight: 600; }
.byline .sep { color: var(--line-strong); }

/* The prose block is the product. Everything here is tuned for reading
   1,000-word text articles: 68ch measure, 1.75 leading, generous space
   between blocks, and headings that separate without shouting. */
.prose { max-width: var(--measure); font-size: var(--step-0); line-height: 1.75; }
.prose > * + * { margin-top: 1.25em; }
.prose p { margin: 0; }
.prose h2 { font-size: var(--step-2); margin-top: 2.25em; margin-bottom: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 1.75em; margin-bottom: 0; }
.prose h4 { font-size: var(--step-0); margin-top: 1.5em; margin-bottom: 0; letter-spacing: .01em; }
.prose ul, .prose ol { margin-left: 0; padding-left: 1.35em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--sage); }
.prose blockquote {
  margin-left: 0; margin-right: 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--sage);
  color: var(--ink-muted); font-style: italic;
}
.prose blockquote p + p { margin-top: 1em; }
.prose img { border-radius: var(--radius); display: block; }
.prose a { font-weight: 500; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose code { font-size: .9em; background: var(--surface-alt); padding: .1em .35em; border-radius: 3px; }
/* Only 13 articles use tables, but those that do are wide — let them scroll
   inside their own box instead of forcing the whole page sideways. */
.prose .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .65rem; text-align: left; }
.prose th { background: var(--surface-alt); font-weight: 700; }

/* ----------------------------------------------------------- ad slots ---- */
/* Every slot reserves its height up front. Ads that arrive late and shove
   content down wreck Cumulative Layout Shift, and CLS is a ranking signal —
   so the space is held whether or not a unit fills. Slots are labelled
   because unlabelled ads that mimic content are both an AdSense policy
   problem and a trust problem with readers. */
.ad {
  margin-block: 2rem;
  text-align: center;
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: .5rem;
}
.ad::before {
  content: "Advertisement";
  display: block;
  font-size: .625rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-muted); opacity: .75; margin-bottom: .375rem;
}
.ad ins { display: block; }
.ad--leaderboard { min-height: 114px; margin-block: 1.25rem; }
.ad--in-content  { min-height: 300px; }
.ad--footer      { min-height: 300px; }
.ad--sidebar     { min-height: 620px; }
@media (min-width: 64rem) {
  .ad--leaderboard { min-height: 134px; }
}
/* Sticky sidebar unit: viewability is what AdSense pays for, and a unit that
   stays on screen through a long article is worth substantially more than one
   scrolled past in two seconds. */
@media (min-width: 64rem) {
  .sidebar-sticky { position: sticky; top: 1.5rem; }
}

/* --------------------------------------------------------------- cards --- */
.card-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.card h2, .card h3 { margin: 0 0 .4rem; font-size: var(--step-1); }
.card h2 a, .card h3 a { text-decoration: none; color: var(--brown); }
.card h2 a:hover, .card h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
.card p { margin: 0; color: var(--ink-muted); font-size: var(--step--1); line-height: 1.65; }
.card .meta { margin-top: .6rem; font-size: var(--step--1); color: var(--ink-muted); }

/* --------------------------------------------------------------- aside --- */
.sidebar { min-width: 0; }
.widget { margin-bottom: 2rem; }
.widget-title {
  font-family: var(--sans); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted);
  margin: 0 0 .65rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { display: block; padding: .5rem .25rem; text-decoration: none; font-size: var(--step--1); }
.widget a:hover { background: var(--surface-alt); color: var(--accent-dark); }
.widget a.is-active { font-weight: 700; color: var(--brown); }

/* ---------------------------------------------------------- baby names --- */
/* A directory, not prose — so it gets a dense multi-column grid that stays
   scannable from a phone all the way up to a wide desktop. */
.letter-nav {
  display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1.75rem; padding: 0; list-style: none;
}
.letter-nav a {
  display: grid; place-items: center;
  min-width: 2.35rem; min-height: 2.35rem; padding: 0 .4rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); text-decoration: none; font-weight: 700;
  text-transform: uppercase;
}
.letter-nav a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.letter-nav a.is-active { background: var(--brown); border-color: var(--brown); color: #fff; }

.name-grid {
  columns: 2 9rem; column-gap: 1.5rem;
  margin: 0; padding: 0; list-style: none;
}
.name-grid li {
  break-inside: avoid;
  padding: .4rem .25rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-0);
}
.name-count { font-size: var(--step--1); color: var(--ink-muted); margin-bottom: 1rem; }

/* --------------------------------------------------------------- review -- */
/* Book reviews are the site's existing affiliate surface — 75 of them, every
   one with an Amazon ASIN. The buy box is deliberately a distinct, obvious
   block rather than a link buried in prose. */
.review-buy {
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius); padding: 1.25rem; margin: 0 0 1.75rem;
}
.review-buy img { border-radius: 4px; box-shadow: var(--shadow); flex: 0 0 auto; max-width: 120px; }
.review-buy-body { flex: 1 1 12rem; min-width: 0; }
.review-buy h2 { margin: 0 0 .25rem; font-size: var(--step-1); }
.review-buy .meta { font-size: var(--step--1); color: var(--ink-muted); margin: 0 0 .9rem; }
.btn {
  display: inline-block; padding: .6rem 1.15rem;
  background: var(--accent); color: #fff; text-decoration: none;
  border-radius: var(--radius); font-weight: 600; font-size: var(--step--1);
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.affiliate-note { font-size: .75rem; color: var(--ink-muted); margin: .6rem 0 0; }

/* ------------------------------------------------------------ pagination - */
.pagination {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.pagination a {
  font-weight: 600; text-decoration: none; font-size: var(--step--1);
  padding: .55rem 1rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--surface);
}
.pagination a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ------------------------------------------------------------- related --- */
.related { margin-top: 3rem; padding-top: 1.75rem; border-top: 2px solid var(--line); }
.related h2 { font-size: var(--step-2); margin: 0 0 1rem; }
.related ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem; }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: block; padding: .65rem .25rem; text-decoration: none; font-weight: 500; }
.related a:hover { background: var(--surface-alt); }

/* --------------------------------------------------------------- footer -- */
.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--brown);
  margin-top: 3rem; padding-block: 2.5rem;
  font-size: var(--step--1);
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer h2 {
  font-family: var(--sans); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 .75rem;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.colophon {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}
.colophon p { margin: 0; }

/* ---------------------------------------------------------------- forms -- */
.form-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.form-row input[type="search"], .form-row input[type="text"], .form-row input[type="email"] {
  flex: 1 1 16rem; min-width: 0; font: inherit;
  padding: .65rem .85rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.notice {
  background: var(--surface-alt); border-left: 4px solid var(--sage);
  padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem;
}
.notice p { margin: 0; }

/* ---------------------------------------------------------------- print -- */
@media print {
  .site-nav, .search, .ad, .sidebar, .site-footer, .skip, .pagination, .related, .breadcrumb { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .layout { display: block; padding: 0; }
  .prose { max-width: none; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; word-break: break-all; }
}
