:root {
  --rose: #D96C8A;
  --coral: #F2B6A0;
  --berry: #2F2730;
  --paper: #FFF9F6;
  --wash: #F8ECE8;
  --ink: #342F33;
  --muted: #786E73;
  --accent: #C94F72;
  --white: #ffffff;
  --line: rgba(47, 39, 48, .12);
  --line-strong: rgba(47, 39, 48, .2);
  --shadow-sm: 0 10px 26px rgba(47, 39, 48, .07);
  --shadow-md: 0 18px 48px rgba(47, 39, 48, .11);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --max: 1180px;
  --text-max: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: rgba(217, 108, 138, .22); }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--berry);
  color: var(--white);
  border-radius: 10px;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(47, 39, 48, .08);
  border-radius: 22px;
  background: rgba(255, 249, 246, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(47, 39, 48, .05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 12px;
  z-index: 30;
}
.brand-row { display: flex; align-items: center; gap: 16px; }
.brand-mark { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark img { width: 48px; height: 48px; border-radius: 16px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand-mark span { display: grid; line-height: 1.2; gap: 4px; }
.brand-mark strong { color: var(--berry); font-size: 1.04rem; letter-spacing: .02em; }
.brand-mark small { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { color: var(--muted); padding: 9px 13px; border-radius: 12px; font-size: .94rem; transition: background .2s ease, color .2s ease; }
.site-nav a:hover { color: var(--berry); background: var(--wash); }
.site-nav a[aria-current="page"] { color: var(--berry); background: rgba(217, 108, 138, .12); font-weight: 700; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 8px 12px; cursor: pointer; }

main { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.hero-section {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding: 72px 0 48px;
}
.hero-copy { padding-left: clamp(0px, 2vw, 24px); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero-copy h1, .page-intro h1, .topic-hero h1, .not-found h1 {
  margin: 0;
  color: var(--berry);
  font-size: clamp(2.45rem, 5.4vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  max-width: 12ch;
}
.hero-lead { max-width: 760px; margin: 26px 0 0; color: #554c51; font-size: clamp(1rem, 1.35vw, 1.16rem); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border-radius: 999px; padding: 0 20px; font-weight: 750; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--accent); color: var(--white); box-shadow: 0 10px 24px rgba(201, 79, 114, .2); }
.button--primary:hover { color: var(--white); box-shadow: 0 14px 30px rgba(201, 79, 114, .26); }
.button--secondary { background: var(--berry); color: var(--white); }
.button--secondary:hover { color: var(--white); }
.button--quiet { background: var(--white); border-color: var(--line); color: var(--berry); }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: .9rem; }
.hero-points li { position: relative; padding-left: 16px; }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); position: absolute; left: 0; top: .72em; }
.hero-visual { margin: 0; position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -18px 22px 20px -20px; border-radius: 42px; background: var(--wash); z-index: -1; }
.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 38px; box-shadow: var(--shadow-md); }
.hero-visual figcaption { position: absolute; left: 18px; bottom: 18px; padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.88); color: var(--berry); font-size: .82rem; backdrop-filter: blur(10px); }

.section { padding: 74px 0; border-top: 1px solid var(--line); }
.section--dense { padding-top: 82px; }
.section-heading { margin-bottom: 28px; max-width: 840px; }
.section-heading h2, .split-story h2, .utility-band h2, .film-teaser h2, .prose-section h2, .topic-article h2, .media-links h2, .film-links h2, .app-visual h2 {
  margin: 0;
  color: var(--berry);
  font-size: clamp(1.75rem, 3.25vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -.025em;
}
.section-heading p:last-child { color: var(--muted); margin: 14px 0 0; }
.section-heading--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; max-width: none; align-items: end; }
.section-heading--split > p { margin: 0 0 4px; max-width: 520px; }

.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: stretch; }
.content-card { grid-column: span 4; overflow: hidden; border-radius: 24px; background: var(--white); border: 1px solid rgba(47, 39, 48, .08); min-width: 0; box-shadow: 0 8px 24px rgba(47,39,48,.04); transition: transform .2s ease, box-shadow .2s ease; }
.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.content-card--lead { grid-column: span 8; display: grid; grid-template-columns: 1.12fr .88fr; }
.content-card__media { overflow: hidden; background: var(--wash); }
.content-card__media img { width: 100%; height: 230px; object-fit: cover; transition: transform .35s ease; }
.content-card:hover .content-card__media img { transform: scale(1.018); }
.content-card--lead .content-card__media img { height: 100%; min-height: 340px; }
.content-card__body { padding: 20px 20px 22px; }
.content-card--lead .content-card__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 4vw, 46px); }
.content-card h3 { margin: 0; color: var(--berry); font-size: 1.16rem; line-height: 1.35; }
.content-card--lead h3 { font-size: clamp(1.55rem, 2.4vw, 2.5rem); }
.content-card p { margin: 10px 0 0; color: var(--muted); font-size: .94rem; }
.content-card--lead p { font-size: 1rem; }

.split-story { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.split-story__media { position: relative; }
.split-story__media::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 44%; height: 44%; border: 1px solid rgba(217,108,138,.28); border-radius: 26px; z-index: -1; }
.split-story__media img { border-radius: 32px; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.split-story__copy p:not(.eyebrow) { color: var(--muted); margin: 18px 0 0; }
.text-link { display: inline-flex; margin-top: 18px; color: var(--accent); font-weight: 800; align-items: center; gap: 8px; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.media-bridge { padding-left: clamp(0px, 3vw, 34px); padding-right: clamp(0px, 3vw, 34px); }
.compact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.compact-list article { padding: 24px; border-radius: 20px; background: var(--wash); border: 1px solid rgba(47,39,48,.05); }
.compact-list h3 { margin: 0; color: var(--berry); font-size: 1.04rem; line-height: 1.42; }
.compact-list p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

.utility-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.utility-band__intro p:last-child { color: var(--muted); }
.utility-band__links { display: grid; gap: 12px; }
.utility-band__links a { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.62); }
.utility-band__links strong { color: var(--berry); }
.utility-band__links span { color: var(--muted); font-size: .9rem; text-align: right; }
.utility-band__links a:hover { border-color: rgba(201,79,114,.28); background: var(--white); }

.film-teaser { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.film-teaser p:not(.eyebrow) { color: var(--muted); }
.film-teaser img { border-radius: 28px; width: 100%; aspect-ratio: 19/13; object-fit: cover; }

.inner-main { padding-top: 28px; }
.breadcrumb { padding: 18px 0 8px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 8px; color: var(--muted); font-size: .86rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: rgba(120,110,115,.55); }
.breadcrumb a:hover { color: var(--accent); }

.page-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); gap: clamp(34px, 5vw, 70px); align-items: center; padding: 54px 0 74px; }
.page-intro h1 { font-size: clamp(2.25rem, 4.5vw, 4.35rem); max-width: 14ch; }
.page-intro p:last-child { color: var(--muted); max-width: 700px; margin: 22px 0 0; font-size: 1.02rem; }
.page-intro img { width: 100%; aspect-ratio: 19/13; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-sm); }
.page-intro--media img { box-shadow: 20px 20px 0 var(--wash); }
.page-intro--community img { box-shadow: -18px 18px 0 rgba(242,182,160,.3); }
.page-intro--film img { box-shadow: 18px 18px 0 rgba(217,108,138,.12); }

.prose-section { max-width: 960px; margin: 0 auto; padding: 64px 0; border-top: 1px solid var(--line); }
.prose-section--tinted { max-width: none; margin: 10px 0; padding: 54px clamp(24px, 5vw, 64px); border: 0; background: var(--wash); border-radius: 30px; }
.prose-section h2 { max-width: 760px; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.prose-section > p { max-width: var(--text-max); color: var(--muted); margin: 18px 0 0; font-size: 1rem; }
.two-col-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 24px; }
.two-col-copy p { margin: 0; color: var(--muted); }
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.format-grid article { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.format-grid h3 { margin: 0; color: var(--berry); }
.format-grid p { color: var(--muted); margin: 10px 0 0; font-size: .94rem; }

.link-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.link-tiles a { display: flex; flex-direction: column; gap: 7px; padding: 22px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); color: var(--berry); font-weight: 800; }
.link-tiles span { color: var(--muted); font-size: .87rem; font-weight: 500; }
.link-tiles a:hover { border-color: rgba(201,79,114,.32); box-shadow: var(--shadow-sm); }
.media-links, .film-links { margin-top: 34px; }

.comparison-table { margin-top: 28px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.comparison-table > div { display: grid; grid-template-columns: .7fr 1.15fr 1.15fr; }
.comparison-table > div + div { border-top: 1px solid var(--line); }
.comparison-table strong, .comparison-table span { padding: 16px 18px; }
.comparison-table strong { background: var(--berry); color: var(--white); }
.comparison-table span { background: var(--white); color: var(--muted); }
.comparison-table span + span, .comparison-table strong + strong { border-left: 1px solid var(--line); }

.app-visual { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.app-visual img { border-radius: 28px; aspect-ratio: 19/13; object-fit: cover; }
.app-visual p:not(.eyebrow) { color: var(--muted); }

.topic-hero { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(32px, 6vw, 76px); align-items: center; padding: 46px 0 68px; }
.topic-hero h1 { font-size: clamp(2.25rem, 4.6vw, 4.5rem); }
.topic-hero p:last-child { color: var(--muted); margin: 22px 0 0; font-size: 1.04rem; max-width: 720px; }
.topic-hero img { border-radius: 30px; width: 100%; aspect-ratio: 41/28; object-fit: cover; }
.topic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 70px; align-items: start; padding-bottom: 76px; }
.topic-article { max-width: 800px; }
.topic-article section { padding: 34px 0; border-top: 1px solid var(--line); }
.topic-article h2 { font-size: clamp(1.45rem, 2.5vw, 2.2rem); }
.topic-article p { color: var(--muted); margin: 15px 0 0; }
.topic-aside { position: sticky; top: 110px; display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.62); }
.topic-aside h2 { margin: 0 0 8px; font-size: .9rem; color: var(--berry); }
.topic-aside a { padding: 9px 10px; border-radius: 10px; color: var(--muted); font-size: .9rem; }
.topic-aside a:hover { background: var(--wash); color: var(--berry); }

.not-found { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 800px; }
.not-found h1 { max-width: 14ch; font-size: clamp(2.6rem, 6vw, 5.5rem); }
.not-found > p:not(.eyebrow) { color: var(--muted); max-width: 620px; font-size: 1.05rem; }

.site-footer { margin: 40px auto 0; padding: 58px max(22px, calc((100vw - var(--max))/2)); background: var(--berry); color: rgba(255,255,255,.76); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 50px; }
.footer-grid strong { color: var(--white); font-size: 1.2rem; }
.footer-grid p { max-width: 460px; font-size: .9rem; }
.footer-grid h2 { color: var(--white); font-size: .86rem; margin: 0 0 12px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { font-size: .9rem; }
.footer-grid a:hover { color: var(--coral); }
.copyright { margin: 44px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

/* Responsive refinements */
@media (max-width: 1040px) {
  .hero-section { grid-template-columns: 1fr 420px; min-height: 620px; gap: 40px; }
  .content-card { grid-column: span 6; }
  .content-card--lead { grid-column: span 12; }
  .compact-list { grid-template-columns: 1fr 1fr; }
  .compact-list article:last-child { grid-column: span 2; }
  .page-intro { grid-template-columns: 1fr 380px; }
  .topic-layout { gap: 42px; grid-template-columns: minmax(0,1fr) 240px; }
}

@media (max-width: 860px) {
  .site-shell { align-items: flex-start; flex-direction: column; gap: 10px; }
  .brand-row { width: 100%; justify-content: space-between; }
  .site-nav { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .hero-section, .page-intro, .topic-hero { grid-template-columns: 1fr; }
  .hero-section { padding-top: 52px; min-height: 0; }
  .hero-copy h1 { max-width: 13ch; }
  .hero-visual { max-width: 680px; }
  .section-heading--split, .split-story, .utility-band, .film-teaser, .app-visual { grid-template-columns: 1fr; }
  .section-heading--split { gap: 18px; }
  .split-story__media { max-width: 620px; }
  .utility-band { gap: 28px; }
  .film-teaser img, .app-visual img { max-width: 680px; }
  .page-intro img, .topic-hero img { max-width: 640px; }
  .format-grid, .link-tiles { grid-template-columns: 1fr 1fr; }
  .format-grid article:last-child, .link-tiles a:last-child { grid-column: span 2; }
  .topic-layout { grid-template-columns: 1fr; }
  .topic-aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .topic-aside h2 { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --radius-lg: 24px; }
  body { line-height: 1.66; }
  .site-shell { width: min(calc(100% - 20px), var(--max)); margin-top: 10px; top: 8px; border-radius: 18px; padding: 11px 12px; }
  .brand-mark img { width: 42px; height: 42px; border-radius: 13px; }
  .brand-mark small { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; overflow: visible; }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; }
  main { width: min(calc(100% - 24px), var(--max)); }
  .hero-section { padding: 40px 0 30px; gap: 30px; }
  .hero-copy h1, .page-intro h1, .topic-hero h1, .not-found h1 { font-size: clamp(2.2rem, 12vw, 3.55rem); max-width: none; }
  .hero-lead { font-size: .98rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1 1 180px; }
  .hero-points { display: grid; gap: 7px; }
  .hero-visual::before { inset: -10px 16px 18px -10px; border-radius: 28px; }
  .hero-visual img { border-radius: 26px; }
  .hero-visual figcaption { left: 12px; bottom: 12px; font-size: .75rem; }
  .section { padding: 54px 0; }
  .section-heading h2, .split-story h2, .utility-band h2, .film-teaser h2, .prose-section h2, .topic-article h2, .media-links h2, .film-links h2, .app-visual h2 { font-size: clamp(1.65rem, 8vw, 2.5rem); }
  .feature-grid { gap: 14px; }
  .content-card, .content-card--lead { grid-column: span 12; display: block; border-radius: 20px; }
  .content-card__media img, .content-card--lead .content-card__media img { height: auto; aspect-ratio: 8/5; min-height: 0; }
  .content-card__body, .content-card--lead .content-card__body { padding: 18px; }
  .compact-list { grid-template-columns: 1fr; }
  .compact-list article:last-child { grid-column: auto; }
  .utility-band__links a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .utility-band__links span { text-align: left; }
  .breadcrumb { padding-top: 12px; }
  .page-intro { padding: 34px 0 54px; gap: 28px; }
  .page-intro img, .topic-hero img { border-radius: 24px; }
  .prose-section { padding: 48px 0; }
  .prose-section--tinted { padding: 34px 20px; border-radius: 22px; }
  .two-col-copy, .format-grid, .link-tiles { grid-template-columns: 1fr; gap: 14px; }
  .format-grid article:last-child, .link-tiles a:last-child { grid-column: auto; }
  .comparison-table { overflow-x: auto; border-radius: 16px; }
  .comparison-table > div { min-width: 650px; }
  .topic-hero { padding: 30px 0 46px; gap: 28px; }
  .topic-layout { padding-bottom: 46px; }
  .topic-aside { grid-template-columns: 1fr; }
  .topic-aside h2 { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .site-footer { padding-top: 42px; padding-bottom: 38px; }
}

@media (max-width: 420px) {
  .brand-mark strong { font-size: .96rem; }
  .nav-toggle { padding: 7px 10px; font-size: .86rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { flex-basis: auto; width: 100%; }
  .content-card h3 { font-size: 1.08rem; }
  .compact-list article { padding: 20px; }
  .link-tiles a { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-shell, .site-footer, .hero-actions, .topic-aside { display: none !important; }
  body { background: #fff; color: #111; }
  main { width: 100%; }
  a { text-decoration: underline; }
  .section, .prose-section, .topic-article section { break-inside: avoid; }
}

/* Page-specific visual cadence */
.media-page .page-intro { position: relative; }
.media-page .page-intro::after { content: ""; position: absolute; left: -8vw; top: 20%; width: 18vw; height: 18vw; max-width: 220px; max-height: 220px; border-radius: 50%; background: rgba(242,182,160,.17); z-index: -1; }
.community-page .page-intro { position: relative; }
.community-page .page-intro::before { content: ""; position: absolute; right: -7vw; bottom: 0; width: 24vw; height: 24vw; max-width: 280px; max-height: 280px; border-radius: 40% 60% 58% 42%; background: rgba(217,108,138,.08); z-index: -1; }
.film-page .prose-section--tinted { background: linear-gradient(135deg, rgba(248,236,232,.88), rgba(255,249,246,.95)); }
.topic-page .topic-hero { border-bottom: 1px solid var(--line); }
.home-page .section--dense { position: relative; }
.home-page .section--dense::before { content: ""; position: absolute; inset: 28px -999px auto; height: 1px; background: var(--line); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(201, 79, 114, .38);
  outline-offset: 3px;
}

/* Progressive image loading polish */
img[loading="lazy"] { background: var(--wash); }

/* Utility spacing and typography guards */
.content-card__body p, .compact-list p, .prose-section p, .topic-article p, .footer-grid p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.hero-copy, .section-heading, .page-intro > div, .topic-hero > div, .split-story__copy, .utility-band__intro, .film-teaser > div, .app-visual > div { min-width: 0; }

/* Ensure anchors are not hidden under sticky header */
[id] { scroll-margin-top: 120px; }

/* Fine-tuned wide layouts */
@media (min-width: 1181px) {
  .hero-section { padding-left: 18px; padding-right: 18px; }
  .section--dense { padding-left: 18px; padding-right: 18px; }
  .media-bridge { margin-left: -18px; margin-right: -18px; border-radius: 30px; }
}

@media (min-width: 1440px) {
  .hero-copy h1 { font-size: 5rem; }
  .hero-section { min-height: 720px; }
  .content-card__media img { height: 250px; }
  .content-card--lead .content-card__media img { min-height: 370px; }
}

/* Robust layout behavior for long Chinese and Latin text */
.brand-mark, .site-nav a, .content-card h3, .compact-list h3, .link-tiles a, .topic-aside a {
  overflow-wrap: anywhere;
}

/* Semantic list defaults inside future editorial content */
.prose-section ul, .prose-section ol, .topic-article ul, .topic-article ol {
  max-width: var(--text-max);
  padding-left: 1.3em;
  color: var(--muted);
}
.prose-section li + li, .topic-article li + li { margin-top: .48em; }
.prose-section blockquote, .topic-article blockquote {
  max-width: var(--text-max);
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--coral);
  background: var(--wash);
  border-radius: 0 16px 16px 0;
  color: #5f555b;
}
.prose-section code, .topic-article code {
  padding: .12em .38em;
  border-radius: 6px;
  background: var(--wash);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}

/* Optional inline media patterns supported by the content system */
.inline-media {
  margin: 32px 0;
  display: grid;
  gap: 10px;
}
.inline-media img { border-radius: 22px; width: 100%; }
.inline-media figcaption { color: var(--muted); font-size: .82rem; }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.media-pair img { border-radius: 20px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Compact metadata patterns */
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.meta-line span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }

/* Soft notice component for factual, non-promotional information */
.notice { margin: 28px 0; padding: 18px 20px; border: 1px solid rgba(201,79,114,.16); border-radius: 16px; background: rgba(217,108,138,.06); }
.notice strong { color: var(--berry); }
.notice p { color: var(--muted); margin: 6px 0 0; }

/* Definition groups */
.definition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
.definition-grid > div { padding: 20px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.definition-grid dt { color: var(--berry); font-weight: 800; }
.definition-grid dd { margin: 8px 0 0; color: var(--muted); }

/* Accessible disclosure defaults if editorial expansion is later used */
details { max-width: var(--text-max); border-top: 1px solid var(--line); padding: 15px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; color: var(--berry); font-weight: 750; }
details p { color: var(--muted); }

/* Horizontal topical index */
.topic-index { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.topic-index a { flex: 0 0 auto; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: .86rem; }
.topic-index a:hover { color: var(--berry); border-color: rgba(201,79,114,.26); }

/* CSS-only fallback state when JavaScript is unavailable */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: flex; }

/* Better form defaults in case a server-side search is introduced */
.search-form { display: flex; gap: 10px; max-width: 680px; }
.search-form input[type="search"] { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); padding: 11px 16px; }
.search-form button { border: 0; border-radius: 999px; background: var(--berry); color: var(--white); padding: 10px 18px; cursor: pointer; }
.search-form input[type="search"]::placeholder { color: #9d9297; }

/* Table defaults for future structured informational content */
.data-table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 16px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--white); }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--wash); color: var(--berry); }
.data-table td { color: var(--muted); }
.data-table tr:last-child td { border-bottom: 0; }

/* Loading-safe aspect ratio helpers */
.ratio-16x9 { aspect-ratio: 16 / 9; object-fit: cover; }
.ratio-4x3 { aspect-ratio: 4 / 3; object-fit: cover; }
.ratio-3x2 { aspect-ratio: 3 / 2; object-fit: cover; }

/* Avoid accidental full-width overflow */
pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
iframe, video { max-width: 100%; }

/* Content card alternatives with real semantic uses */
.content-card--text { padding: 24px; }
.content-card--text .content-card__body { padding: 0; }
.content-card--soft { background: var(--wash); box-shadow: none; }
.content-card--outline { background: transparent; box-shadow: none; }

/* Subtle state for external-looking action groups without external links */
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.action-row a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--berry); font-weight: 700; }
.action-row a:hover { border-color: rgba(201,79,114,.28); }

/* Larger reading layout */
.reading-column { max-width: 820px; margin: 0 auto; }
.reading-column > * + * { margin-top: 1.1em; }
.reading-column h2 { margin-top: 2.1em; }
.reading-column h3 { margin-top: 1.6em; color: var(--berry); }
.reading-column p { color: var(--muted); }

/* Visually hidden utility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 640px) {
  .media-pair, .definition-grid { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .search-form button { min-height: 44px; }
}

/* Safe defaults for narrow embedded content and system accessibility settings */
svg, canvas, object, embed { max-width: 100%; }
button, a { -webkit-tap-highlight-color: rgba(201,79,114,.12); }
button:disabled, input:disabled { cursor: not-allowed; opacity: .58; }

/* Editorial separator and grouped-content patterns */
.rule { height: 1px; border: 0; background: var(--line); margin: 34px 0; }
.content-group { display: grid; gap: 18px; margin: 28px 0; }
.content-group > article { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); }
.content-group h3 { margin: 0; color: var(--berry); font-size: 1.04rem; }
.content-group p { margin: 9px 0 0; color: var(--muted); }

/* Status labels used only when a page has factual categorical metadata */
.label-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.label { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 999px; background: var(--wash); color: var(--muted); border: 1px solid rgba(47,39,48,.07); font-size: .76rem; }

/* Improve footer wrapping and touch behavior */
.site-footer a { display: inline-flex; min-height: 28px; align-items: center; }
.footer-grid > div { min-width: 0; }

/* Motion is decorative only; core states remain usable without it */
@media (hover: hover) and (pointer: fine) {
  .link-tiles a, .utility-band__links a, .content-card { will-change: transform; }
}

/* Very small screens */
@media (max-width: 360px) {
  main { width: min(calc(100% - 18px), var(--max)); }
  .site-shell { width: min(calc(100% - 14px), var(--max)); }
  .content-card__body, .content-card--lead .content-card__body { padding: 16px; }
  .prose-section--tinted { padding-left: 16px; padding-right: 16px; }
  .comparison-table > div { min-width: 610px; }
}
