:root {
  color-scheme: light;
  --paper: #fff;
  --surface: #f7f6f8;
  --ink: #292830;
  --muted: #625f69;
  --line: #eceaef;
  --accent: #c52f3b;
  --accent-soft: #fff1f3;
  --gutter: clamp(16px, 4vw, 40px);
  font-family: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1, h2, h3, p, figure { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.wrap { width: calc(100% - var(--gutter) - var(--gutter)); max-width: 1120px; min-width: 0; margin-inline: auto; }
.screen-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { position: sticky; z-index: 20; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 1.2rem; font-weight: 800; letter-spacing: -.045em; }
.brand img { flex: none; }
.app-link { display: inline-flex; min-width: 0; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-size: .84rem; font-weight: 600; text-decoration: none; }
.app-link:hover, .back-link:hover { text-decoration: underline; }

.journal-intro { padding-block: clamp(23px, 4vw, 44px) 17px; }
.journal-intro h1, .article-heading h1 {
  font-size: clamp(1.9rem, 4vw, 2.875rem);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 700;
}
.journal-intro p { max-width: 58ch; margin-top: 9px; color: var(--muted); font-size: .98rem; }

.journal-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(156px, .68fr));
  gap: 10px;
  align-items: end;
  padding-block: 2px 18px;
}
.journal-filters input, .filter-trigger {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
}
.filter { position: relative; min-width: 0; }
.filter-name { display: block; margin-bottom: 4px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.filter-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.filter-trigger[aria-expanded="true"] { border-color: #e3b8be; background: var(--accent-soft); }
.filter-chevron {
  flex: none; width: 8px; height: 8px; margin: 0 2px 4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.filter-trigger[aria-expanded="true"] .filter-chevron { margin-block: 4px 0; transform: rotate(225deg); }
.filter-options {
  display: none;
  position: absolute;
  z-index: 5;
  inset-block-start: calc(100% + 6px);
  inset-inline: 0;
  gap: 1px;
  padding: 4px;
  max-height: min(285px, 58dvh);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 8px 24px #2928301c;
}
.filter[data-open] .filter-options { display: grid; }
.filter-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: .9rem;
  text-align: left;
}
.filter-options button:hover { background: var(--surface); }
.filter-options button[aria-pressed="true"] { color: #a42232; background: var(--accent-soft); font-weight: 650; }
.filter-options button[aria-pressed="true"]::after { content: '✓'; content: '✓' / ''; }
.filter-options button:focus-visible { outline-offset: -2px; }
.filter-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; }
.filter-feedback p { color: var(--muted); font-size: .85rem; }
.filter-feedback button { min-height: 44px; border: 0; background: none; padding: 0 8px; color: var(--accent); }
.no-results { margin: 24px 0 44px; padding: 18px; background: var(--surface); border-radius: 8px; color: var(--muted); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  padding: clamp(12px, 2vw, 20px);
  background: linear-gradient(110deg, #fff0e6, #faf2e9);
  border: 1px solid #eadfd6;
  border-radius: 12px;
}
.feature-copy { display: grid; justify-items: start; gap: 12px; padding: 2px 5px 2px 0; min-width: 0; }
.article-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: .78rem; }
.topic {
  display: inline-block;
  color: var(--muted);
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--surface);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.45;
}
.age-label { display: inline-block; color: #a42232; font-weight: 650; text-decoration: none; }
a.age-label:hover { text-decoration: underline; }
a.topic { text-decoration: none; }
a.topic:hover { color: var(--accent); text-decoration: underline; }
.feature h2 { font-size: clamp(1.4rem, 2.75vw, 2.125rem); line-height: 1.16; letter-spacing: -.035em; }
.feature-summary { max-width: 43ch; font-size: .94rem; line-height: 1.5; color: var(--muted); }
.editor-byline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.editor-byline img { flex: none; background: var(--accent-soft); padding: 4px; border-radius: 50%; }
.editor-byline strong { display: block; font-size: .8rem; line-height: 1.3; font-weight: 650; }
.editor-byline p { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 650;
}
.button:hover { background: #ab2530; }
.feature-image { width: 100%; height: auto; border-radius: 7px; background: var(--surface); }
.feature-care { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
.feature-care .feature-copy { padding: 6px; }
.feature-care .feature-copy > h2 { text-wrap: balance; }
.feature-care .editorial-photo { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 3; }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.feature-urgent { display: inline-flex; align-items: center; min-height: 44px; color: #a42232; font-size: .84rem; font-weight: 650; }

.publication-section { margin-top: 30px; }
.publication-section > h2 { font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 14px; }
.publication-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.publication-card { align-self: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.publication-card > a { display: block; height: 100%; text-decoration: none; }
.publication-card > a:focus-visible { outline-offset: -3px; }
.card-art { height: clamp(116px, 15vw, 176px); display: grid; place-items: center; padding: 10px; }
.card-art img { height: 100%; width: 100%; min-height: 0; object-fit: contain; }
.card-art-photo { background: #fff0ec; }
.card-art-family { background: #f5f0f7; }
.card-art-print { background: #f5f2ec; }
.card-art-voice { background: #fff3e7; }
.card-art-stories { background: #f0f3ea; }
.card-copy { padding: 13px 14px 16px; }
.card-copy h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 650; letter-spacing: -.015em; }
.card-copy h3 { margin-top: 8px; }
.publication-card a:hover h3 { color: var(--accent); }
.card-copy p { color: var(--muted); font-size: .875rem; margin-top: 6px; }
.publication-card.is-guide > a { display: block; }
.publication-card.is-guide .card-copy { padding: 14px 15px 16px; }
.editorial-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: var(--photo-position, center); background: #f4eee9; }
.feature-care .editorial-photo, .story-cover .editorial-photo { border-radius: 10px; }
.publication-card .editorial-photo { border-bottom: 1px solid var(--line); }
.guide-alert { padding: 14px 16px; border: 1px solid #efcdd1; border-left: 3px solid #a42232; border-radius: 8px; background: var(--accent-soft); }
.guide-alert ul { margin: 8px 0 0; padding-inline-start: 1.1em; }
.guide-alert li + li { margin-top: 8px; }
.guide-alert li::marker { color: #a42232; }
.guide-alert a { font-weight: 700; white-space: nowrap; }

.article-wrap { max-width: 944px; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.article-wrap.parent-guide { max-width: 656px; overflow-wrap: anywhere; }
.parent-guide .article-heading { padding-block: 5px 18px; }
.parent-guide .breadcrumbs { margin-bottom: 6px; }
.parent-guide .article-heading h1 { max-width: none; font-size: clamp(1.65rem, 5.65vw, 2.4rem); line-height: 1.19; letter-spacing: -.025em; text-wrap: balance; }
.parent-guide .article-deck { font-size: 1.0625rem; line-height: 1.58; }
.article-heading { padding-block: 14px 24px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 15px; color: var(--muted); font-size: .83rem; }
.back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; text-decoration: none; }
.article-heading h1 { max-width: 22ch; margin: 7px 0 10px; font-weight: 650; }
.article-deck { max-width: 56ch; color: var(--muted); font-size: clamp(.98rem, 2vw, 1.125rem); }
.article-heading .article-labels { margin-bottom: 8px; }
.article-heading .editor-byline { margin-top: 13px; }
.article-cover img { width: auto; height: auto; max-height: 490px; margin-inline: auto; border-radius: 8px; background: var(--surface); }
.article-layout { display: grid; grid-template-columns: minmax(144px, 1fr) minmax(0, 43rem); align-items: start; gap: clamp(22px, 5vw, 52px); margin-block: 28px 46px; }
.parent-guide .article-layout { display: block; margin-block: 0 36px; }
.parent-guide .article-body { font-size: 1.125rem; line-height: 1.66; }
.parent-guide .article-body h2 { font-size: clamp(1.25rem, 4vw, 1.5rem); line-height: 1.3; }
.parent-guide .story-cover { margin-bottom: 17px; }
.parent-guide .guide-alert + .story-cover { margin-top: 16px; }
.parent-guide .article-body > .guide-alert { margin-top: 0; font-size: 1rem; line-height: 1.55; }
.parent-guide .guide-alert h2 { font-size: 1.125rem; }
.parent-guide .contents { position: static; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 8px; padding-inline: 12px; }
.parent-guide .contents nav { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 8px; }
.parent-guide .contents:not([open]) nav { display: none; }
.parent-guide .contents a { min-height: 44px; }
.parent-guide .guide-step { margin-top: 23px; }
.article-layout-short { display: block; max-width: 660px; margin-inline: auto; }
.guide-cover { height: clamp(155px, 30vw, 225px); margin-bottom: 20px; border-radius: 8px; }
.contents { position: sticky; top: 84px; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.contents summary { min-height: 44px; padding: 8px 0; font-size: .9rem; font-weight: 700; cursor: pointer; }
.contents nav { display: grid; }
.contents a { display: flex; align-items: center; min-height: 40px; color: var(--muted); font-size: .86rem; text-decoration: none; }
.contents a:hover, .breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.article-body { min-width: 0; font-size: 1rem; line-height: 1.7; }
.article-body > p + p { margin-top: 12px; }
.article-body > section { margin-top: 26px; scroll-margin: 78px; }
.article-body h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.3; font-weight: 650; letter-spacing: -.015em; }
.article-body p + p { margin-top: .75em; }
.frame-list { list-style-type: decimal-leading-zero; margin: 9px 0 0; padding-inline-start: 2rem; }
.frame-list li { padding: 10px 0 12px 4px; border-bottom: 1px solid var(--line); }
.frame-list li::marker { color: var(--accent); font-size: .85rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.frame-list h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.frame-list p { margin-top: 4px; }
.article-ending p, .article-cta p, .guide-step p { margin-top: 8px; }
.guide-step ul { margin: 8px 0 0; padding-inline-start: 1.4rem; }
.guide-step li + li { margin-top: 5px; }
.guide-example { padding: 12px 15px; background: #fbf4eb; border-radius: 8px; }
.related-articles { border-top: 1px solid var(--line); padding-top: 16px; }
.related-articles ul { list-style: none; padding: 0; margin: 8px 0 0; }
.related-articles li + li { border-top: 1px solid var(--line); }
.related-articles a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 46px; padding-block: 8px; font-size: 1rem; font-weight: 550; line-height: 1.45; text-decoration: none; }
.related-articles a::after { content: '→'; content: '→' / ''; color: var(--accent); }
.related-articles a:hover { color: var(--accent); text-decoration: underline; }
.article-cta { margin-top: 25px; padding: 18px; background: var(--accent-soft); border-radius: 8px; }
.article-cta .button { margin-top: 12px; }
.share-link { margin-top: 24px; }
.share-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share-link button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 8px 13px; font-size: .875rem; font-weight: 600; }
.share-link button:hover { background: var(--surface); }
.share-link .share-native, .share-native[hidden] + [data-copy-link] { border-color: #ead1d3; background: var(--accent-soft); color: #a42232; }
.share-link .share-native:hover, .share-native[hidden] + [data-copy-link]:hover { background: #f9e4e7; }
.share-link input { width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 1rem; }
.share-link [role="status"] { color: var(--muted); font-size: .85rem; }
.share-link [role="status"]:not(:empty) { margin-top: 6px; }

.footer { min-height: 60px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
main + .footer { margin-top: 32px; }
.footer a { color: var(--ink); }

@media (max-width: 910px) {
  .publication-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .journal-intro { padding-block: 20px 12px; }
  .journal-intro p { font-size: .92rem; }
  .journal-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .journal-filters input { grid-column: 1 / -1; }
  .filter-trigger { font-size: .94rem; }
  .feature { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 10px; padding: 9px; }
  .feature-care .editorial-photo { grid-column: 1; grid-row: 1; aspect-ratio: 2 / 1; }
  .feature-image { aspect-ratio: 16 / 9; object-fit: cover; object-position: center 60%; }
  .feature-copy { gap: 8px; padding: 5px 5px 7px; }
  .feature h2 { font-size: 1.45rem; }
  .feature-summary { font-size: .88rem; }
  .publication-section { margin-top: 23px; }
  .publication-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .publication-card > a { display: grid; grid-template-columns: clamp(88px, 27%, 132px) minmax(0, 1fr); }
  .publication-card.is-guide > a { display: grid; grid-template-columns: clamp(78px, 26%, 112px) minmax(0, 1fr); }
  .publication-card.is-guide .editorial-photo { height: 100%; min-height: 104px; aspect-ratio: auto; border-bottom: 0; }
  .publication-card.is-guide .card-copy { padding: 11px; }
  .card-art { height: auto; min-height: 100%; padding: 5px; }
  .card-copy h3 { font-size: .97rem; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contents { position: static; border: 1px solid var(--line); border-radius: 8px; padding-inline: 10px; }
  .contents nav { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0 8px; padding-bottom: 8px; }
  .header-inner { min-height: 54px; gap: 8px; }
  .parent-guide .story-cover .editorial-photo { aspect-ratio: 2 / 1; }
  .parent-guide .article-body { font-size: 1.0625rem; }
}

@media (max-width: 355px) {
  .brand img { width: 26px; height: 26px; }
  .brand { font-size: 1.05rem; }
  .app-link { font-size: .78rem; }
}
