:root {
  color-scheme: dark;
  --background: #17191a; --panel: #202324; --text: #eeeae2; --body: #c6c8c5;
  --muted: #a1a8a3; --line: #3c4240; --accent: #d4dda8; --width: 1424px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: 12px; left: 20px; z-index: 10; padding: 10px 16px; background: var(--accent); color: var(--background); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header, .edition, .hero, .topic-catalog, .reading-layout, .site-footer { max-width: var(--width); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.site-header { min-height: 92px; display: flex; align-items: center; gap: 36px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; font-size: .95rem; font-weight: 700; letter-spacing: .16em; }
.brand-mark { padding-right: 13px; border-right: 1px solid var(--muted); font-family: Georgia, 'Times New Roman', serif; font-size: 2rem; font-weight: 400; line-height: 1; letter-spacing: -.08em; }
.header-note { max-width: 210px; font-size: .74rem; line-height: 1.5; color: var(--muted); }
.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 28px; }
.nav a { padding: 12px 0; border-bottom: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: .85rem; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); border-color: var(--accent); }
.edition { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: .66rem; }
.edition span:last-child { color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 60px; align-items: center; padding-top: 36px; padding-bottom: 44px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 650px; margin: 0 0 22px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.2rem,3.4vw,3.5rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.08; }
.lead { max-width: 540px; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.read-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 48px; margin-top: 26px; padding-bottom: 7px; border-bottom: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-size: .83rem; }
.read-link:hover { color: var(--text); }
.hero img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.topic-catalog { padding-top: 24px; padding-bottom: 46px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: .95rem; font-weight: 400; }
.section-heading > span { color: var(--muted); font-size: .72rem; }
.topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.topic-card { display: grid; grid-template-columns: 31% minmax(0,1fr); text-decoration: none; background: var(--panel); transition: background .15s ease; }
.topic-card:hover { background: #2b302c; }
.topic-card > img { width: 100%; height: 100%; min-height: 184px; object-fit: cover; }
.topic-copy { padding: 16px 18px; }
.topic-copy small { color: var(--accent); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.topic-copy h3 { margin: 5px 0 7px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.17rem; line-height: 1.2; font-weight: 400; }
.topic-copy p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.card-action { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-size: .65rem; color: var(--text); }
.card-action span { margin-left: auto; color: var(--accent); }
.reading-layout { display: grid; grid-template-columns: 190px minmax(0,1fr) 258px; gap: 38px; align-items: start; padding-top: 34px; padding-bottom: 60px; border-top: 1px solid var(--line); }
.contents, .article, .reading-aside { min-width: 0; }
.sticky-panel { position: sticky; top: 26px; }
.contents, .reading-aside { align-self: stretch; }
.side-label { margin: 0 0 18px; color: var(--muted); font-size: .63rem; line-height: 1.45; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.toc { display: grid; gap: 8px; }
.toc a { display: grid; grid-template-columns: 21px 1fr; gap: 9px; padding: 6px 0; text-decoration: none; font-size: .76rem; line-height: 1.45; color: var(--body); }
.toc a span { color: var(--muted); font-size: .63rem; padding-top: 2px; }
.toc a:hover, .toc a:hover span { color: var(--accent); }
.reading-meta { display: grid; gap: 4px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .67rem; color: var(--muted); }
.back-top { display: flex; justify-content: space-between; margin-top: 28px; max-width: 120px; font-size: .72rem; text-decoration: none; }
.article-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.article-toolbar > h2 { margin: 0; font-size: .94rem; font-weight: 400; }
.section-controls { display: flex; flex-wrap: wrap; gap: 14px; }
.section-controls button { padding: 4px 0; border: 0; background: none; color: var(--muted); font-size: .65rem; text-decoration: underline; text-underline-offset: 4px; }
.section-controls button:hover { color: var(--accent); }
.reading-hint { margin: 8px 0 24px; color: var(--muted); font-size: .72rem; }
.article-section { border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.article-section:last-of-type { border-bottom: 1px solid var(--line); }
.article-section > summary { display: flex; align-items: center; gap: 16px; padding: 24px 0; list-style: none; }
.article-section > summary::-webkit-details-marker { display: none; }
.article-section summary:hover h2 { color: var(--accent); }
.section-number { align-self: flex-start; padding-top: 5px; color: var(--accent); font-size: .65rem; }
.article-section h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.55rem; line-height: 1.25; font-weight: 400; letter-spacing: -.02em; }
.section-toggle { display: inline-block; width: 17px; min-width: 17px; height: 17px; margin-left: auto; position: relative; }
.section-toggle::before, .section-toggle::after { content: ''; position: absolute; background: var(--muted); width: 13px; height: 1px; top: 8px; left: 2px; }
.section-toggle::after { transform: rotate(90deg); }
.article-section[open] .section-toggle::after { display: none; }
.section-body { padding: 0 0 10px 30px; }
.section-body p { margin: 0 0 20px; color: var(--body); font-size: .98rem; line-height: 1.8; }
.section-body a { color: var(--text); text-decoration-color: var(--muted); text-underline-offset: 4px; }
.section-body a:hover { color: var(--accent); }
.article-end { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; font-size: .67rem; color: var(--muted); }
.article-end a { text-decoration: none; white-space: nowrap; }
.brief { background: var(--panel); padding: 22px; }
.brief .side-label { color: var(--accent); }
.brief ul { list-style: none; padding: 0; margin: 0; counter-reset: points; }
.brief li { position: relative; padding-left: 22px; color: var(--body); font-size: .76rem; line-height: 1.55; counter-increment: points; }
.brief li + li { margin-top: 16px; }
.brief li::before { content: '0' counter(points); position: absolute; left: 0; top: 2px; font-size: .55rem; color: var(--muted); }
.small-step { padding: 21px 0; border-bottom: 1px solid var(--line); }
.small-step .side-label { margin-bottom: 8px; }
.small-step > p:not(.side-label) { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.12rem; line-height: 1.45; }
.small-step > span { display: block; margin-top: 10px; color: var(--accent); }
.next-reading { padding-top: 22px; }
.next-reading h2 { margin: 0 0 14px; font-size: .75rem; font-weight: 400; }
.next-card { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.next-card > img { width: 54px; height: 60px; object-fit: cover; }
.next-card > span:nth-child(2) { display: grid; gap: 3px; font-size: .77rem; }
.next-card small { font-size: .57rem; color: var(--muted); }
.next-card > span:last-child { margin-left: auto; color: var(--accent); font-size: .8rem; }
.next-card:hover > span:nth-child(2) { color: var(--accent); }
.site-footer { display: flex; align-items: center; gap: 24px; padding-top: 25px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .67rem; }
.site-footer a { text-decoration: none; }
.footer-brand { color: var(--text); font-size: 1rem; letter-spacing: .12em; }
.site-footer p { margin: 0; }
.site-footer > a:last-child { margin-left: auto; white-space: nowrap; }
@media (min-width: 1700px) {
  :root { --width: 1550px; }
  .reading-layout { grid-template-columns: 210px minmax(0,1fr) 290px; gap: 48px; }
}
@media (max-width: 1150px) {
  .header-note { display: none; }
  .hero { gap: 32px; }
  .reading-layout { grid-template-columns: 160px minmax(0,1fr) 210px; gap: 24px; }
  .brief { padding: 18px; }
  .topic-card { grid-template-columns: 1fr; }
  .topic-card > img { aspect-ratio: 2.4/1; min-height: 0; height: auto; }
  .topic-copy h3 { min-height: 2.4em; }
}
@media (max-width: 960px) {
  .site-header, .edition, .hero, .topic-catalog, .reading-layout, .site-footer { padding-left: 28px; padding-right: 28px; }
  .reading-layout { grid-template-columns: 165px minmax(0,1fr); gap: 28px; }
  .reading-aside { grid-column: 2; }
  .reading-aside > .sticky-panel { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .next-reading { grid-column: 1/-1; padding-top: 0; }
  .small-step { padding-top: 0; }
  .next-card > img { width: 64px; }
  .hero { padding-top: 30px; }
  h1 { font-size: 2.5rem; }
  .hero img { aspect-ratio: 4/5; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 16px; }
  .site-header, .edition, .hero, .topic-catalog, .reading-layout, .site-footer { padding-left: 22px; padding-right: 22px; }
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 22px; padding-bottom: 14px; }
  .nav { margin: 0; gap: 24px; width: 100%; }
  .nav a { padding: 4px 0; font-size: .76rem; }
  .edition { padding-top: 19px; font-size: .56rem; }
  .edition span:last-child { display: none; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 26px; padding-bottom: 30px; }
  h1 { max-width: 580px; font-size: 2.5rem; }
  .eyebrow { font-size: .65rem; margin-bottom: 12px; }
  .lead { font-size: .9rem; }
  .read-link { margin-top: 20px; }
  .hero img { aspect-ratio: 3/2; }
  .section-heading > span { display: none; }
  .topic-grid { grid-template-columns: 1fr; gap: 12px; }
  .topic-card { grid-template-columns: 102px minmax(0,1fr); }
  .topic-card > img { height: 100%; min-height: 157px; aspect-ratio: auto; }
  .topic-copy { padding: 15px 18px; }
  .topic-copy h3 { min-height: 0; font-size: 1.2rem; }
  .topic-copy p { font-size: .73rem; }
  .topic-catalog { padding-bottom: 30px; }
  .reading-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; padding-bottom: 36px; }
  .contents, .reading-aside { grid-column: 1; }
  .contents .sticky-panel { position: static; }
  .contents .side-label { margin-bottom: 12px; }
  .toc { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
  .toc a { font-size: .71rem; grid-template-columns: 17px 1fr; gap: 5px; }
  .reading-meta { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; }
  .back-top { display: none; }
  .article-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .section-controls button { padding: 7px 0; font-size: .7rem; }
  .reading-hint { margin-top: 4px; }
  .article-section > summary { gap: 12px; padding: 21px 0; }
  .article-section h2 { font-size: 1.4rem; }
  .section-number { padding-top: 4px; }
  .section-body { padding-left: 0; }
  .section-body p { font-size: .95rem; line-height: 1.8; }
  .reading-aside > .sticky-panel { grid-template-columns: 1fr; gap: 24px; }
  .brief li { font-size: .74rem; }
  .small-step > p:not(.side-label) { font-size: 1.07rem; }
  .site-footer { flex-wrap: wrap; gap: 12px 20px; }
  .site-footer p { flex-basis: 100%; order: 3; }
}
@media (max-width: 380px) {
  h1 { font-size: 2.15rem; }
  .nav { gap: 17px; }
  .reading-aside > .sticky-panel { grid-template-columns: 1fr; }
  .small-step { padding-top: 0; }
  .topic-card { grid-template-columns: 85px minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  :root { color-scheme: light; --background: white; --text: black; --body: #222; --muted: #444; --line: #aaa; --accent: black; }
  .nav, .header-note, .edition, .read-link, .topic-catalog, .contents, .reading-aside, .section-controls, .reading-hint, .article-end, .site-footer > a:last-child { display: none !important; }
  .hero { grid-template-columns: 1fr 1fr; padding: 24px 0; }
  h1 { font-size: 25pt; }
  .reading-layout { display: block; padding: 24px 0; }
  .section-body { padding-left: 0; }
  .article-section > summary { break-after: avoid; }
  .section-toggle { display: none; }
  .site-header, .site-footer { padding-left: 0; padding-right: 0; }
}

/* The article footer keeps only its return link. */
.article-end { justify-content: flex-end; }

/* Thumbnail framing for the young audience photo series. */
.next-card img[src$="habit-routine.jpg"] { object-position: 74% center; }
.topic-card img[src$="face-care.jpg"], .next-card img[src$="face-care.jpg"] { object-position: 42% center; }
.article-toolbar { padding-bottom: 18px; }
