/* Growchart (My Tots Travel). Tokens first; every color below comes from here. */
@font-face { font-family: "Caprasimo"; src: url(../fonts/caprasimo.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lexend"; src: url(../fonts/lexend-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
	--mint: #E9F5EF;      /* page */
	--mint-2: #D3E6DC;    /* lines, off bands */
	--paper: #FFFFFF;
	--rind: #173A33;      /* ink */
	--rind-2: #2E6B4F;
	--muted: #4A635A;
	--melon: #E94F64;     /* accent */
	--melon-dk: #B8283F;  /* accent as text */
	--sky: #8FD0F0;       /* baby */
	--sky-lt: #DDF0FA;
	--sun: #FFD166;       /* toddler */
	--blush: #F7A1AB;     /* preschool */
	--leaf: #7CC08A;      /* little kids */
	--display: "Caprasimo", "Cooper Black", Georgia, serif;
	--text: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
	--r: 20px;
	--wrap: 1180px;
	--gut: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mint); color: var(--rind); font: 400 17px/1.65 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rind); text-decoration-color: var(--melon); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--melon-dk); }
:focus-visible { outline: 3px solid var(--melon); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--rind); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 9; }
.skip:focus { left: 8px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }

/* ---------- top bar ---------- */
.topbar { background: var(--paper); border-bottom: 2px solid var(--mint-2); }
.topbar__in { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gut) 6px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--rind); }
.brand__mark { width: 34px; height: 34px; color: var(--rind); flex: none; }
.brand__name { font: 400 1.6rem/1 var(--display); letter-spacing: .005em; }
.brand__name em { font-style: normal; color: var(--melon); }
.topbar__tag { margin: 0; font-size: .85rem; color: var(--muted); max-width: 22rem; text-align: right; display: none; }
.sections { max-width: var(--wrap); margin: 0 auto; padding: 4px var(--gut) 12px; }
.sections ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sections ul::-webkit-scrollbar { display: none; }
.sections a { display: block; white-space: nowrap; padding: 6px 13px; border-radius: 999px; background: var(--mint); font-size: .88rem; font-weight: 500; text-decoration: none; }
.sections a:hover { background: var(--sun); color: var(--rind); }
.sections a[aria-current="page"] { background: var(--rind); color: #fff; }

.main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) 56px; }

/* ---------- search form ---------- */
.finder { display: flex; gap: 8px; max-width: 520px; margin-top: 20px; }
.finder input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 11px 14px; border: 2px solid var(--rind); border-radius: 14px; background: var(--paper); color: var(--rind); }
.finder button { font: 600 1rem var(--text); padding: 11px 18px; border: 0; border-radius: 14px; background: var(--rind); color: #fff; cursor: pointer; }
.finder button:hover { background: var(--melon-dk); }

/* ---------- the growth chart (signature) ---------- */
.chart__bands { list-style: none; margin: 0; padding: 0; }
.chart__band { --band: var(--mint-2); }
.chart__band--baby { --band: var(--sky); }
.chart__band--toddler { --band: var(--sun); }
.chart__band--preschool { --band: var(--blush); }
.chart__band--little-kids { --band: var(--leaf); }
.chart__name { font-family: var(--display); }
.chart__age, .chart__count { font-size: .8rem; color: var(--muted); }

/* nav mode: the door-frame ruler on the home page and age pages */
.chart--nav { position: relative; background: var(--paper); border: 3px solid var(--rind); border-radius: 26px; padding: 14px 54px 14px 14px; }
.chart--nav::after { /* tick marks down the right edge */
	content: ""; position: absolute; top: 18px; bottom: 18px; right: 12px; width: 26px;
	background:
		repeating-linear-gradient(to bottom, var(--rind) 0 2px, transparent 2px 60px) right / 26px 100% no-repeat,
		repeating-linear-gradient(to bottom, var(--rind) 0 2px, transparent 2px 12px) right / 14px 100% no-repeat;
}
.chart--nav .chart__bands { display: flex; flex-direction: column-reverse; gap: 8px; }
.chart--nav .chart__band a, .chart--nav .chart__band > .chart__name { text-decoration: none; }
.chart--nav .chart__band > a, .chart--nav .chart__band:not(:has(a)) { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 10px; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--band); color: var(--rind); }
.chart--nav .chart__band:not(:has(a)) { opacity: .55; }
.chart--nav .chart__name { font-size: 1.35rem; grid-row: span 2; align-self: center; }
.chart--nav .chart__age, .chart--nav .chart__count { color: var(--rind); text-align: right; }
.chart--nav .chart__count { font-weight: 600; }
.chart--nav .chart__band > a:hover { transform: translateX(4px); box-shadow: inset 0 0 0 2px var(--rind); }
.chart--nav .chart__band.is-here > a { box-shadow: inset 0 0 0 3px var(--rind); }
.chart--nav .chart__band > a { transition: transform .15s ease; }

/* post mode: horizontal strip with a ruler edge */
.chart--post { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 18px; }
.chart__label { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); flex: none; }
.chart--post .chart__bands { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding-bottom: 10px;
	background: repeating-linear-gradient(to right, var(--rind) 0 2px, transparent 2px 10px) bottom / 100% 6px no-repeat; }
.chart--post .chart__band { border-radius: 10px; padding: 6px 8px; text-align: center; line-height: 1.2; }
.chart--post .chart__band.is-on { background: var(--band); }
.chart--post .chart__band.is-off { background: transparent; border: 2px dashed var(--mint-2); color: #7E968C; }
.chart--post .chart__name { display: block; font-size: .92rem; line-height: 1.1; }
.chart--post .chart__age { display: block; font-size: .7rem; color: inherit; }

/* small age marks on cards */
.agemarks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.agemark { font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--mint-2); }
.agemark a { text-decoration: none; }
.agemark--baby { background: var(--sky); }
.agemark--toddler { background: var(--sun); }
.agemark--preschool { background: var(--blush); }
.agemark--little-kids { background: var(--leaf); }

/* ---------- home ---------- */
.hello { display: grid; gap: 28px; padding: 34px 0 36px; }
.hello__kicker, .roomhead__kicker { margin: 0 0 10px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--melon-dk); }
.hello__title { font: 400 clamp(2.3rem, 7.4vw, 4.1rem)/1.04 var(--display); letter-spacing: -.005em; }
.hello__title span { background: linear-gradient(transparent 62%, var(--sun) 62% 92%, transparent 92%); padding: 0 .06em; }
.hello__lede { font-size: 1.08rem; color: var(--muted); max-width: 36rem; margin: 18px 0 0; }
.hello__chartlabel { margin: 0 0 10px; font: 400 1.25rem var(--display); }

.lead { display: grid; background: var(--paper); border-radius: 26px; overflow: hidden; margin-bottom: 44px; }
.lead__cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.lead__body { padding: 22px 22px 26px; display: flex; flex-direction: column; justify-content: center; }
.lead__flag { margin: 0 0 8px; font-size: .82rem; font-weight: 600; color: var(--melon-dk); }
.lead__flag span { color: var(--muted); font-weight: 500; }
.lead__title { font: 400 clamp(1.6rem, 4.6vw, 2.3rem)/1.12 var(--display); }
.lead__title a { text-decoration: none; }
.lead__title a:hover { color: var(--rind-2); }
.lead__dek { color: var(--muted); margin: 12px 0 16px; }
.lead__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: .82rem; color: var(--muted); }

.shelf { margin: 0 0 44px; }
.shelf__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; padding-bottom: 12px;
	background: repeating-linear-gradient(to right, var(--rind) 0 2px, transparent 2px 9px) bottom left / 100% 6px no-repeat; }
.shelf__title { font: 400 clamp(1.5rem, 4vw, 1.95rem)/1.1 var(--display); }
.shelf__all { font-size: .9rem; font-weight: 500; }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.guidecard { background: var(--paper); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.guidecard__cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.guidecard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.guidecard__sec { margin: 0 0 6px; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--rind-2); }
.guidecard__title { font: 600 1.12rem/1.3 var(--text); letter-spacing: -.01em; }
.guidecard__title a { text-decoration: none; }
.guidecard__title a:hover { text-decoration: underline; text-decoration-color: var(--melon); }
.guidecard__dek { font-size: .9rem; color: var(--muted); margin: 8px 0 14px; }
.guidecard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.guidecard__min { font-size: .78rem; color: var(--muted); flex: none; }

.promise { background: var(--paper); border-radius: 26px; padding: 26px 22px; }
.promise__title { font: 400 1.6rem var(--display); margin-bottom: 14px; }
.promise__list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 12px; }
.promise__list li { padding-left: 34px; position: relative; }
.promise__list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 7px; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23173A33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.promise p { margin: 0; }

/* ---------- guide (single + page) ---------- */
.guide { max-width: 760px; margin: 0 auto; }
.guide__head { padding: 22px 0 22px; }
.trail ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .82rem; color: var(--muted); }
.trail li + li::before { content: "›"; margin-right: 4px; color: var(--melon); }
.trail a { text-decoration: none; color: var(--muted); }
.trail a:hover { text-decoration: underline; }
.guide__sec { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--melon); color: #fff; font-size: .8rem; font-weight: 600; text-decoration: none; }
.guide__sec:hover { background: var(--rind); color: #fff; }
.guide__title { font: 400 clamp(2rem, 6.4vw, 3.1rem)/1.08 var(--display); }
.guide__dek { font-size: 1.12rem; color: var(--muted); margin: 14px 0 0; }
.guide__byline { font-size: .86rem; color: var(--muted); margin: 14px 0 0; }
.guide__cover { margin: 0 0 30px; display: none; }
@media (min-width: 720px) { .guide__cover { display: block; } }
.guide__cover img { border-radius: var(--r); width: 100%; }
.guide--page .guide__head { padding-bottom: 8px; }

.guide__text { font-size: 1.04rem; }
.guide__text > * { margin-top: 0; margin-bottom: 1.05em; }
.guide__text h2 { font: 400 clamp(1.5rem, 4.4vw, 1.9rem)/1.15 var(--display); margin: 1.9em 0 .6em; }
.guide__text h3 { font: 600 1.18rem/1.3 var(--text); margin: 1.5em 0 .45em; }
.guide__text ul, .guide__text ol { padding-left: 1.4em; }
.guide__text li { margin-bottom: .45em; }
.guide__text ul li::marker { color: var(--melon); font-size: 1.1em; }
.guide__text ol li::marker { font-weight: 700; color: var(--rind-2); }
.guide__text strong { font-weight: 600; }

/* "Before you go" tick list with real (no-JS) checkboxes */
.ticklist { background: var(--paper); border: 3px solid var(--rind); border-radius: 22px; padding: 18px 20px 12px; margin: 0 0 30px; }
.ticklist__label { font: 400 1.3rem var(--display); margin: 0 0 8px !important; }
.guide__text .ticklist ul { list-style: none; padding: 0; margin: 0; }
.ticklist li { margin: 0; border-top: 2px dotted var(--mint-2); }
.ticklist li:first-child { border-top: 0; }
.ticklist label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.ticklist input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; border: 2px solid var(--rind); border-radius: 7px; background: var(--paper); cursor: pointer; }
.ticklist input:checked { background: var(--melon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: var(--melon); }
.ticklist input:checked + span { text-decoration: line-through; text-decoration-color: var(--melon); color: var(--muted); }

/* When to call your pediatrician */
.callpeds { background: var(--sky-lt); border-radius: 24px; padding: 6px 22px 10px; margin: 2.2em 0 1.4em; }
.guide__text .callpeds h2 { margin-top: .9em; display: flex; align-items: center; gap: 12px; }
.callpeds h2::before { content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23E94F64' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.guide__text .callpeds h3 { display: inline-block; padding: 3px 12px; border-radius: 10px; background: var(--paper); font-size: 1.02rem; }
.guide__text .callpeds h3:first-of-type { background: var(--melon); color: #fff; }
.callpeds ul { background: var(--paper); border-radius: 14px; padding: 12px 14px 4px 34px; }

.guide__fine { font-size: .85rem; color: var(--muted); border-top: 2px solid var(--mint-2); padding-top: 14px; margin-top: 28px; }
.shelf--next { margin-top: 48px; }

/* ---------- archives, search, 404 ---------- */
.roomhead { padding: 26px 0 26px; margin-bottom: 8px; }
.roomhead__title { font: 400 clamp(2.1rem, 6.6vw, 3.3rem)/1.06 var(--display); }
.roomhead__title span { font: 500 .42em var(--text); color: var(--muted); vertical-align: middle; margin-left: .3em; }
.roomhead__desc { max-width: 40rem; color: var(--muted); margin-top: 10px; }
.roomhead__desc p { margin: 0; }
.roomhead__count { font-size: .85rem; font-weight: 600; margin: 12px 0 0; color: var(--rind-2); }
.roomhead--age .chart--nav { margin-top: 18px; max-width: 520px; }
.cards--room { margin-bottom: 30px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; }
.pager a, .pager span { padding: 7px 14px; border-radius: 12px; background: var(--paper); text-decoration: none; font-size: .9rem; }
.pager .current { background: var(--rind); color: #fff; }
.empty { background: var(--paper); border-radius: var(--r); padding: 20px 22px; }
.empty__list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.empty__list a { display: block; padding: 6px 13px; border-radius: 999px; background: var(--sun); text-decoration: none; font-size: .9rem; font-weight: 500; }
.lost { max-width: 640px; margin: 0 auto; padding: 40px 0 20px; text-align: center; }
.lost__pic { width: 120px; height: 120px; margin: 0 auto 10px; }
.lost .finder { margin: 20px auto 0; }
.lost .empty__list { justify-content: center; }

/* ---------- footer ---------- */
.basement { background: var(--rind); color: #E3F1EA; padding: 0 var(--gut) 28px; position: relative; }
.basement::before { content: ""; display: block; height: 14px; margin: 0 calc(var(--gut) * -1);
	background: repeating-linear-gradient(to right, var(--sun) 0 3px, transparent 3px 14px) top left / 100% 14px no-repeat,
		repeating-linear-gradient(to right, var(--sun) 0 3px, transparent 3px 70px) top left / 100% 22px no-repeat; }
.basement a { color: #fff; text-decoration-color: var(--blush); }
.basement a:hover { color: var(--sun); }
.basement__note { max-width: var(--wrap); margin: 24px auto 30px; background: rgba(255,255,255,.07); border-radius: 18px; padding: 16px 18px; font-size: .9rem; }
.basement__note p { margin: 0; }
.basement__grid { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 24px; grid-template-columns: 1fr 1fr; font-size: .9rem; }
.basement__about { grid-column: 1 / -1; }
.basement__brand { font: 400 1.5rem var(--display); color: #fff; margin: 0 0 6px; }
.basement__about p { margin: 0 0 8px; max-width: 30rem; }
.basement__small { font-size: .8rem; opacity: .8; }
.basement__head { margin: 0 0 8px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); }
.basement ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.basement ul span { opacity: .7; font-size: .85em; }
.basement__legal { max-width: var(--wrap); margin: 28px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: .78rem; opacity: .8; }

/* home shelves: section label on the left, guides as horizontal rows */
.cards--rows { grid-template-columns: 1fr; }
@media (min-width: 720px) {
	.cards--rows .guidecard { flex-direction: row; }
	.cards--rows .guidecard__cover { flex: 0 0 42%; }
	.cards--rows .guidecard__cover { align-self: center; padding: 12px 0 12px 12px; }
	.cards--rows .guidecard__cover img { border-radius: 14px; }
	.cards--rows .guidecard__body { padding: 20px 24px; justify-content: center; }
	.cards--rows .guidecard__title { font-size: 1.25rem; }
}
.shelf__desc { margin: 0; font-size: .92rem; color: var(--muted); flex-basis: 100%; order: 3; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
	:root { --gut: 28px; }
	.topbar__tag { display: block; }
	.lead { grid-template-columns: 1.25fr 1fr; }
	.lead__body { padding: 28px 32px; }
	.basement__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
	.basement__about { grid-column: auto; }
}
@media (min-width: 960px) {
	.roomhead--age { display: grid; grid-template-columns: 1fr 440px; column-gap: 56px; align-content: start; }
	.roomhead--age > * { grid-column: 1; }
	.roomhead--age .chart--nav { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; align-self: center; }
	.shelf--home { display: grid; grid-template-columns: 290px 1fr; gap: 36px; align-items: start; }
	.shelf--home .shelf__desc { order: 0; }
	.shelf--home .shelf__head { gap: 10px; flex-direction: column; align-items: flex-start; position: sticky; top: 20px; padding-bottom: 18px; }
	.shelf--home .cards--rows .guidecard__cover { flex-basis: 46%; }
	.chart--post { flex-direction: row; align-items: center; gap: 12px; }
	.hello { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 56px; padding: 56px 0 56px; }
	.sections ul { flex-wrap: wrap; }
	.promise { padding: 34px 40px; }
	.promise__list { grid-template-columns: 1fr 1fr; gap: 16px 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
