/* ==========================================================================
   ggbabyhome.com — homepage styles (2026 refresh)
   Lightweight, mobile-first, no external fonts or frameworks.
   ========================================================================== */

:root {
    --brand: #ec5f7a;
    --brand-dark: #cf4761;
    --brand-soft: #fdeef2;
    --blue: #5aa9e6;
    --ink: #1f2329;
    --ink-soft: #3a3f47;
    --muted: #6b7280;
    --line: #ece8ea;
    --bg: #ffffff;
    --soft: #faf7f8;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(31, 35, 41, .08);
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--brand);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(90, 169, 230, .65);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(180%) blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.brand img { width: 180px; height: auto; }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav a {
    display: block;
    padding: 9px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
    border-radius: 999px;
    transition: background .18s ease, color .18s ease;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
    font: inherit;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 40px;
    padding-top: 36px;
    padding-bottom: 12px;
}

.hero-main { min-width: 0; }

.hero-media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--brand-soft);
    aspect-ratio: 16 / 10;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.hero-main:hover .hero-media img { transform: scale(1.03); }

.hero-body { padding-top: 18px; }

.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-dark);
    background: var(--brand-soft);
    padding: 5px 12px;
    border-radius: 999px;
}
.tag-soft { background: #f2f7fc; color: #2d6f9f; }

.hero-body h1 {
    margin: 14px 0 10px;
    font-family: var(--font-head);
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.16;
    letter-spacing: -.01em;
}
.hero-body h1 a:hover { color: var(--brand-dark); }

.hero-desc {
    color: var(--muted);
    font-size: 17px;
    max-width: 60ch;
}

.meta {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}

/* Rail */
.hero-rail {
    min-width: 0;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px 8px;
    align-self: start;
}

.rail-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
}
.rail-head h2 {
    font-size: 14px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-dark);
    white-space: nowrap;
}
.rail-line { flex: 1; height: 1px; background: var(--line); }

.rail-list li + li { border-top: 1px solid var(--line); }

.rail-item a {
    display: block;
    padding: 14px 0 14px 18px;
    position: relative;
}
.rail-item a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 21px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}
.rail-content { display: block; min-width: 0; }
.rail-cat {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue);
}
.rail-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin: 2px 0 4px;
}
.rail-item a:hover .rail-title { color: var(--brand-dark); }
.rail-content time { font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Topic tiles
   -------------------------------------------------------------------------- */
.topics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-top: 26px;
    padding-bottom: 20px;
}

.topic-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.topic-card:nth-child(2) { background: linear-gradient(180deg, #fff 0%, #f2f7fc 100%); }
.topic-card:nth-child(3) { background: linear-gradient(180deg, #fff 0%, #fdf6ee 100%); }
.topic-card:nth-child(4) { background: linear-gradient(180deg, #fff 0%, #f4f3fb 100%); }
.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #f3d7de;
}
.topic-name {
    font-family: var(--font-head);
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
}
.topic-blurb {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
}
.topic-more {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark);
}

/* --------------------------------------------------------------------------
   Category sections
   -------------------------------------------------------------------------- */
.section-block {
    padding-top: 34px;
    padding-bottom: 10px;
}

.section-head {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 22px;
}
.section-head h2 {
    font-family: var(--font-head);
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.2;
}
.section-head h2 a:hover { color: var(--brand-dark); }
.section-blurb {
    flex: 1 1 320px;
    font-size: 14px;
    color: var(--muted);
    max-width: 62ch;
}
.section-more {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-dark);
    white-space: nowrap;
}
.section-more::after { content: " \2192"; }
.section-more:hover { text-decoration: underline; }

.section-body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.lead-media,
.mini-media,
.pick-media {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: var(--brand-soft);
    aspect-ratio: 16 / 10;
}
.lead-media img,
.mini-media img,
.pick-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.lead-card:hover img,
.mini-card:hover img,
.pick-card:hover img { transform: scale(1.04); }

.lead-body { padding-top: 14px; }
.lead-body h3,
.mini-card h3,
.pick-body h3 {
    font-family: var(--font-head);
    line-height: 1.28;
    letter-spacing: -.005em;
}
.lead-body h3 { font-size: clamp(21px, 2vw, 27px); margin: 10px 0 8px; }
.lead-body p { color: var(--muted); font-size: 15px; }

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
}
.mini-card h3 {
    font-size: 16.5px;
    margin-top: 10px;
}
.mini-card h3 a:hover,
.lead-body h3 a:hover,
.pick-body h3 a:hover { color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   Editor's picks
   -------------------------------------------------------------------------- */
.picks { padding-top: 34px; padding-bottom: 8px; }

.pick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.pick-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pick-cat {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue);
}
.pick-body h3 { font-size: 17px; margin-top: 4px; }
.pick-body { padding-top: 2px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    margin-top: 56px;
    background: #241f21;
    color: #e9e3e5;
    padding: 46px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.footer-brand img {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: .95;
}
.footer-brand p {
    margin-top: 14px;
    font-size: 14px;
    color: #b9aeb2;
    max-width: 40ch;
}

.footer-col h3 {
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #cebfc4;
    margin-bottom: 12px;
}
.footer-col li + li { margin-top: 8px; }
.footer-col a {
    font-size: 14px;
    color: #e9e3e5;
    transition: color .18s ease;
}
.footer-col a:hover { color: #ff9db1; }

.footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 30px;
    font-size: 12.5px;
    color: #a99ea2;
}
.footer-bottom .disclaimer { max-width: 72ch; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; gap: 26px; }
    .hero-rail { padding-bottom: 14px; }
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-body { grid-template-columns: 1fr; }
    .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 12px 20px 18px;
        box-shadow: 0 18px 24px rgba(31, 35, 41, .08);
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .site-nav a { padding: 12px 8px; border-radius: 8px; font-size: 16px; }
    .header-inner { position: relative; }
}

@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .hero { padding-top: 22px; }
    .hero-desc { font-size: 15.5px; }
    .topics { grid-template-columns: 1fr; gap: 12px; }
    .mini-grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
    .mini-card h3 { font-size: 15px; }
    .mini-card .meta { display: none; }
    .pick-grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .site-footer { padding-top: 34px; }
}
