:root {
  color-scheme: light;
  --page: #fff9f5;
  --paper: #fffdfa;
  --ink: #343349;
  --muted: #655e74;
  --heading: #694481;
  --border: #e9dfe9;
  --focus: #24537a;
  --teal: #438277;
  --pink: #ae6cb2;
  --shadow: 0 2px 4px #4d355224, 0 1px 9px #51325b0a;
  --display: Cambria, Georgia, serif;
  --body: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse at 55% 35%, #fffdfa, #fff9f5 60%, #faf3f6); font: 1rem/1.55 var(--body); }
a { color: #5b3778; text-underline-offset: .17em; }
a:hover { color: #40235a; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; color: var(--heading); line-height: 1.08; }
h1 { font-size: clamp(2rem, 4vw, 3.45rem); }
h2 { font-size: clamp(1.65rem, 2.6vw, 2.35rem); }
h3 { font-size: clamp(1.23rem, 2vw, 1.9rem); }
p { margin: 0; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
svg { flex: none; width: 1.25em; height: 1.25em; vertical-align: middle; }
.shell { width: min(calc(100% - 28px), 1560px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 5; background: white; padding: .65rem 1rem; }
.sprig { color: #67a79d; width: 1.6em; height: 1.35em; }

.site-header { position: relative; z-index: 1; margin-block: 8px 7px; min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px clamp(12px, 2.1vw, 34px); border: 1px solid #fff; border-radius: 22px; background: #fffbf8; box-shadow: var(--shadow); }
.wordmark { display: flex; align-items: center; gap: .24em; white-space: nowrap; text-decoration: none; font: 700 clamp(1.45rem, 2.75vw, 2.45rem)/1 var(--display); color: #72558d; }
.wordmark .sprig { width: .81em; }
.wordmark .sprig:first-child { transform: scaleX(-1); }
.brand-bear { color: #9c542f; display: inline-flex; }
.primary { display: flex; align-items: center; justify-content: space-evenly; flex: 1; gap: 3px; border-left: 1px solid #e6dce7; padding-left: clamp(5px, 2vw, 24px); }
.primary a { color: #292c51; font-weight: 650; text-decoration: none; white-space: nowrap; padding: .65rem clamp(.45rem, 1.3vw, 1rem); border-radius: 999px; }
.primary a:hover, .primary .current { background: #d4e6f2; }
.search-button, .mobile-menu summary { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid #f2ebef; border-radius: 50%; background: #fffdfc; box-shadow: var(--shadow); color: #536fa8; }
.search-button:hover, .mobile-menu summary:hover { background: #edf3fb; }
.search-button svg, .mobile-menu svg { width: 23px; height: 23px; }
.mobile-menu { display: none; }

.hero { position: relative; border-radius: 22px; isolation: isolate; background: #e4d6e8; }
.hero > img { aspect-ratio: 2.63; object-position: center 49%; border-radius: inherit; }
.welcome { position: absolute; z-index: 1; bottom: -5px; left: 50%; transform: translateX(-50%); width: min(68%, 720px); min-height: 155px; display: grid; place-items: center; padding: 23px clamp(20px, 3vw, 44px) 15px; text-align: center; }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/welcome.svg") center / 100% 100% no-repeat; filter: drop-shadow(0 4px 3px #3b28304d); }
.welcome-stitch { display: grid; width: 100%; grid-template-columns: 37px 1fr 37px; align-items: end; gap: 6px; }
.welcome-stitch > .sprig { width: 37px; height: auto; margin-bottom: 4px; }
.welcome-stitch > .sprig:first-child { transform: scaleX(-1); }
.welcome-stitch div > svg { color: var(--pink); height: 25px; width: 25px; margin-bottom: 4px; }
.welcome h1 { font-size: clamp(1.6rem, 2.9vw, 2.5rem); text-wrap: balance; }
.welcome p { max-width: 48ch; margin: 5px auto 0; line-height: 1.35; }

.blue { --tone: #a6c2e5; --wash: #e8f1f8; --button: #376187; }
.sage { --tone: #a3c5b6; --wash: #e7f0eb; --button: #416c61; }
.rose { --tone: #d7a7d5; --wash: #f5eaf6; --button: #794786; }
.lilac { --tone: #c8b7e5; --wash: #eee9f7; --button: #674d91; }
.home-inset { padding-inline: clamp(6px, 1.35vw, 22px); }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.45vw, 24px); margin-top: 46px; }
.category-card { position: relative; display: flex; flex-direction: column; min-width: 0; text-align: center; background: #fffaf7; border: 1px solid white; border-radius: 22px; box-shadow: var(--shadow); }
.category-card > img { aspect-ratio: 1.6; background: var(--wash); border-radius: 21px 21px 17px 17px; }
.category-card.blue > img { object-position: center 45%; }
.category-card.rose > img { object-position: center 67%; }
.badge { display: inline-grid; flex: none; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--tone, #d6c5eb); color: #342c50; border: 2px solid #fff; }
.badge svg { width: 24px; height: 24px; }
.category-card > .badge { position: absolute; left: 50%; top: 0; transform: translate(-50%, -51%); width: clamp(47px, 5.2vw, 73px); height: auto; aspect-ratio: 1.15; box-shadow: 0 2px 3px #4d355224; }
.category-card > .badge svg { width: 53%; height: 53%; }
.category-copy { display: flex; flex: 1; align-items: center; flex-direction: column; gap: 7px; padding: 8px 11px 14px; }
.category-copy h3 { font-size: clamp(1.22rem, 2.2vw, 2.03rem); }
.category-copy p { max-width: 30ch; margin: 0 auto; line-height: 1.37; }
.pill, .browse-search button { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 44px; padding: 6px 15px; background: var(--button, #654785); color: #fff; text-decoration: none; font-weight: 650; border: 0; border-radius: 999px; }
.pill:hover, .browse-search button:hover { color: #fff; background: #513767; }
.category-copy .pill { margin-top: auto; }

.heart-divider { display: flex; width: min(84%, 1150px); align-items: center; gap: 21px; margin: 19px auto 9px; color: var(--pink); }
.heart-divider::before, .heart-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #cec1d3, #84809e); }
.heart-divider::after { transform: rotate(180deg); }
.heart-divider svg { width: 25px; height: 25px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.section-heading .sprig { margin-right: .3em; }
.more, .text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.mobile-only { display: none; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 24px); }
.feature-card { min-width: 0; overflow: hidden; background: #fffaf7; border: 1px solid white; border-radius: 21px; box-shadow: var(--shadow); }
.feature-card a { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.feature-card a:hover h3 { text-decoration: underline; text-underline-offset: .12em; }
.feature-card a:focus-visible { outline-offset: -4px; }
.feature-card img { aspect-ratio: 3.08; background: var(--wash); object-position: 50% 62%; }
.feature-copy { position: relative; padding: 12px 16px; }
.feature-copy .tag { margin-top: -24px; display: table; position: relative; margin-bottom: 6px; border: 2px solid #fffaf7; text-transform: uppercase; font-size: .74rem; letter-spacing: .035em; }
.tag { display: inline-block; background: var(--tone, #e9ddf2); color: #322b4d; padding: 2px 9px; border-radius: 999px; font-weight: 650; }
.feature-copy h3 { font-size: clamp(1.2rem, 1.85vw, 1.65rem); color: #4e366c; }
.feature-copy p { margin-top: 5px; line-height: 1.36; }
.feature-arrow { display: none; }

.resources { display: grid; grid-template-columns: 29% minmax(0, 1fr) 27%; align-items: stretch; margin-top: 20px; border: 1px solid white; border-radius: 22px; overflow: hidden; background: #faf0f6; box-shadow: var(--shadow); }
.resources img { height: 100%; min-height: 175px; max-height: 218px; }
.resources img:first-child { object-position: 50% 68%; }
.resource-copy { align-self: center; padding: 15px clamp(12px, 2vw, 30px); }
.resource-copy h2 { font-size: clamp(1.45rem, 2.3vw, 2.13rem); }
.resource-copy .badge { width: 40px; height: 40px; margin-right: .25em; vertical-align: middle; }
.resource-copy p { margin-block: 6px 10px; line-height: 1.35; }

.flourish { position: relative; display: grid; place-items: center; min-height: 78px; overflow: hidden; margin-top: 12px; }
.flourish > img { position: absolute; width: 100%; height: 61px; inset: auto 0 0; object-fit: fill; }
.flourish-center { position: relative; z-index: 1; display: flex; gap: 18px; align-items: center; color: #a163a4; padding-bottom: 6px; }
.flourish-center > svg:not(.sprig) { width: 53px; height: 43px; }
.flourish-center .sprig { width: 41px; height: 38px; transform: rotate(-30deg); }
.flourish-center .sprig:last-child { transform: scaleX(-1) rotate(-30deg); }
.flourish-center i { display: inline-block; width: clamp(28px, 8vw, 105px); height: 1px; background: #9e99b0; }
.site-footer { text-align: center; padding: 8px 10px 15px; background: #e4eff5; font-size: .9rem; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 17px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.site-footer p { color: var(--muted); }

.inner { padding: 8px clamp(6px, 1.35vw, 22px) 26px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { padding-block: 6px; }
.category-banner { display: grid; grid-template-columns: 1fr 44%; min-height: 235px; background: var(--wash); border: 1px solid #fff; border-radius: 23px; overflow: hidden; box-shadow: var(--shadow); }
.category-banner > div { align-self: center; padding: 20px clamp(18px, 3.8vw, 58px); }
.category-banner h1 { margin-block: 9px; }
.category-banner p { max-width: 42ch; font-size: 1.1rem; }
.category-banner img { height: 100%; max-height: 330px; object-position: center 60%; }
.listing { margin-top: 23px; padding: clamp(15px, 2.4vw, 31px); border: 1px solid var(--border); background: #fffdf9; border-radius: 20px; }
.listing > p, .listing .feature-grid { margin-top: 10px; }
.queue { margin-block: 12px 3px; padding-left: 1.3rem; }
.queue li { padding-block: 3px; }
.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 14px 0 0; }
.article-list a { height: 100%; min-height: 52px; padding: 10px 14px; display: flex; gap: 10px; justify-content: space-between; align-items: center; border: 1px solid var(--border); border-radius: 13px; background: var(--wash); }
.article-list .tag { display: table; margin-bottom: 4px; font-size: .78rem; }
.narrow { max-width: 950px; padding-top: 26px; min-height: 60vh; }
.narrow h1 + p, .about h2 + p { margin-top: 12px; max-width: 70ch; }
.about h2 { margin-top: 22px; }
.browse-search { margin-block: 20px; }
.browse-search label { display: block; font-weight: 650; }
.browse-search div { display: flex; gap: 8px; margin-top: 5px; }
.browse-search input { min-width: 0; flex: 1; border: 1px solid #9c8eaa; border-radius: 9px; padding: 9px 12px; background: white; color: var(--ink); font: inherit; }
.browse-search button { font: inherit; font-weight: 650; cursor: pointer; }
.facets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.facets section { padding: 12px; border: 1px solid var(--border); border-radius: 13px; }
.facets h2 { font-size: 1.25rem; }
.facets ul { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 6px 0 0; }
.facets a { min-height: 44px; display: inline-flex; align-items: center; }
.facets a[aria-current] { background: #533669; color: #fff; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(275px, 1fr); align-items: start; gap: clamp(15px, 2vw, 32px); }
.article-main { min-width: 0; }
.article-main header { margin: 0 0 17px; }
.eyebrow { color: #614c72; font-size: .82rem; font-weight: 650; letter-spacing: .035em; margin-bottom: 7px; }
.article-main h1 .sprig { float: left; margin-right: .23em; margin-top: .08em; width: 1.15em; height: 1.5em; transform: rotate(-17deg); }
.article-intro { font-size: clamp(1.05rem, 1.7vw, 1.26rem); margin-top: 10px; }
.article-photo { margin: 0; }
.article-photo img { aspect-ratio: 2.12; object-position: 50% 53%; border-radius: 19px; background: #eaddf0; }
.article-photo img[width] { aspect-ratio: auto; }
.article-photo figcaption { font-size: .82rem; color: var(--muted); margin: 4px 3px 0; }
.image-credit { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.article-section .article-photo { margin-block: 1.1rem; }
.article-photo.source-photo img { aspect-ratio: auto; max-height: 620px; object-fit: contain; background: #fff; }
.article-art-pending { aspect-ratio: 2.12; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 15px; border: 1px solid var(--border); border-radius: 19px; background: linear-gradient(130deg, var(--wash), #f8eff8); text-align: center; color: var(--muted); }
.guide-box { display: grid; grid-template-columns: minmax(130px, .39fr) 1fr; align-items: center; gap: 16px; margin-top: 12px; padding: 14px; background: #eaeaf6; border-radius: 21px; }
.guide-box h2 { display: flex; align-items: center; gap: 8px; font-size: clamp(1.25rem, 2.15vw, 1.9rem); }
.guide-box h2 svg { color: #5379ac; width: 1.6em; height: 1.6em; }
.guide-box ul, .article-aside ul { list-style: none; padding: 0; margin: 0; }
.guide-box ul { padding-left: 14px; border-left: 1px solid #a9a2be; }
.guide-box li { display: flex; gap: 7px; align-items: center; }
.guide-box a { padding-block: 3px; }
.guide-box li svg, .quick li svg { border-radius: 50%; padding: 2px; color: #fff; background: #81639a; }
.article-prose { font-size: 1.05rem; line-height: 1.65; }
.article-section { padding: 20px 0; border-bottom: 1px solid #dbcedb; }
.article-section.with-art { display: grid; grid-template-columns: 22% minmax(0, 1fr); align-items: start; gap: clamp(12px, 1.8vw, 24px); }
.article-section > img { border-radius: 15px; aspect-ratio: 1.24; }
.article-section h2 { font-size: clamp(1.43rem, 2.4vw, 2.05rem); }
.article-section p { margin: .75em 0 0; max-width: 72ch; }
.article-section h3 { margin-top: 1em; font-size: clamp(1.22rem, 2vw, 1.6rem); }
.article-table { max-width: 100%; overflow-x: auto; margin: 1em 0; border: 1px solid var(--border); border-radius: 11px; }
.article-table:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.article-table table { width: 100%; min-width: 460px; border-collapse: collapse; text-align: left; }
.article-table th, .article-table td { padding: .55em .7em; vertical-align: top; border-bottom: 1px solid var(--border); }
.article-table th { background: #eee8f5; }
.article-table tr:last-child td { border-bottom: 0; }
.article-section ol { padding-left: 1.6em; }
.article-section li { margin-bottom: .5em; max-width: 72ch; overflow-wrap: anywhere; }
.article-section [id], .article-section { scroll-margin-top: 15px; }
.cite { font-weight: 650; }
.article-aside { display: grid; gap: 17px; }
.aside-card { border: 1px solid white; background: #fffaf7; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.aside-card > img { aspect-ratio: 1.86; object-position: 50% 72%; background: #f1e7f0; }
.aside-card > div { padding: 14px; }
.aside-card h2 { font-size: clamp(1.45rem, 2.35vw, 2.05rem); margin-bottom: 11px; display: flex; gap: 7px; align-items: center; }
.quick h2 svg { color: var(--pink); }
.quick li { display: flex; align-items: center; gap: 9px; padding: 8px; margin-top: 5px; border-radius: 10px; background: #f1e8f3; }
.tip { background: linear-gradient(#fffaf7 40%, #ebedf8); }
.tip .badge { width: 36px; height: 36px; }
.tip .badge svg { width: 20px; height: 20px; }
.related li + li { margin-top: 8px; }
.related a { display: grid; grid-template-columns: 29% 1fr 20px; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border: 1px solid var(--border); border-radius: 13px; font-weight: 650; line-height: 1.3; }
.related a .badge { width: 38px; height: 38px; margin: auto; }
.related img { aspect-ratio: 1.16; border-radius: 9px; background: #e8def1; }
.related small { display: block; color: var(--muted); font-weight: 400; margin-top: 3px; }

@media (max-width: 960px) {
  .site-header { padding-inline: 10px; gap: 8px; }
  .primary { padding-left: 6px; }
  .primary a { font-size: .9rem; }
  .welcome { width: min(77%, 650px); }
}

@media (max-width: 860px) {
  .shell { width: calc(100% - 16px); }
  .site-header { min-height: 54px; border-radius: 17px; margin-block: 5px; }
  .wordmark { margin: auto; }
  .primary { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { cursor: pointer; border-radius: 14px; list-style: none; color: #71548d; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { display: grid; position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 2; padding: 8px; background: #fffaf8; box-shadow: var(--shadow); border: 1px solid var(--border); border-radius: 15px; }
  .mobile-menu nav a { padding: 10px 12px; min-height: 44px; border-radius: 8px; font-weight: 600; }
  .mobile-menu nav .current { background: #e5edf7; }
  .hero { border-radius: 17px; background: none; }
  .hero > img { aspect-ratio: 1.83; object-position: 50% 43%; }
  .welcome { position: relative; left: auto; bottom: auto; transform: none; width: min(95%, 530px); margin: -59px auto 0; min-height: 130px; padding: 17px 6% 11px; }
  .welcome h1 { font-size: clamp(1.4rem, 4.6vw, 2rem); }
  .welcome p { font-size: .94rem; margin-top: 4px; }
  .welcome-stitch { grid-template-columns: 23px 1fr 23px; gap: 2px; }
  .welcome-stitch > .sprig { width: 23px; }
  .welcome-stitch div > svg { width: 19px; height: 19px; margin-bottom: 3px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 31px 10px; margin-top: 29px; }
  .category-card { border-radius: 16px; }
  .category-card > img { border-radius: 15px 15px 13px 13px; }
  .category-copy { gap: 5px; padding: 7px 7px 9px; }
  .category-copy h3 { font-size: clamp(1.12rem, 3.7vw, 1.55rem); }
  .category-copy p { font-size: .92rem; }
  .category-copy .pill { font-size: .84rem; padding-inline: 7px; gap: 4px; width: 100%; }
  .category-copy .pill svg { width: 1em; height: 1em; }
  .desktop-only { display: none; }
  .mobile-only { display: inline; }
  .section-heading h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .section-heading .sprig { margin-right: .16em; width: 1.2em; }
  .more { font-size: .85rem; gap: 3px; }
  .feature-grid { grid-template-columns: 1fr; }
  .home-page .feature-card.secondary { display: none; }
  .feature-card a { display: grid; grid-template-columns: 38% minmax(0, 1fr) 22px; align-items: center; gap: 8px; padding-right: 6px; }
  .feature-card img { min-height: 100%; aspect-ratio: 1; border-radius: 15px; }
  .feature-copy { padding: 8px 0; }
  .feature-copy .tag { margin: 0 0 4px; padding-inline: 4px; border-width: 1px; font-size: .69rem; }
  .feature-copy p { font-size: .88rem; }
  .feature-arrow { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e6daf0; color: #53376b; }
  .feature-arrow svg { width: 14px; }
  .resources { grid-template-columns: 36% minmax(0, 1fr); margin-top: 13px; border-radius: 17px; }
  .resources img:first-child { display: none; }
  .resources img:last-child { grid-area: 1 / 1; min-height: 100%; max-height: 210px; }
  .resource-copy { grid-area: 1 / 2; padding: 9px 8px; }
  .resource-copy h2 { font-size: clamp(1.16rem, 4.1vw, 1.65rem); }
  .resource-copy h2 .badge { display: none; }
  .resource-copy p { font-size: .88rem; }
  .resource-copy .pill { font-size: .85rem; padding-inline: 8px; }
  .category-banner { grid-template-columns: 1fr; }
  .category-banner img { height: 145px; }
  .category-banner p { font-size: 1rem; }
  .article-list { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .article-photo img { aspect-ratio: 1.78; }
  .article-section.with-art { display: block; }
  .article-section.with-art > img { display: none; }
  .article-aside { grid-template-columns: 1fr; }
  .aside-card > img { aspect-ratio: 3.1; }
}

@media (max-width: 390px) {
  .wordmark { font-size: 1.36rem; }
  .welcome { padding-inline: 4%; }
  .category-copy .pill { font-size: .8rem; }
  .guide-box { grid-template-columns: 1fr; gap: 7px; }
  .guide-box ul { padding-left: 0; border-left: 0; }
}

@media (max-width: 360px) {
  .wordmark .sprig, .section-heading .sprig { display: none; }
}
