/* Local design draft. Extends the current pages without replacing their content. */
:root {
  --paper: #f2f3ef; --ink: #1d211e; --ink-soft: #343a35; --muted: #687069;
  --line: #c7ccc6; --accent: #b64b31; --accent-dark: #8f3927;
  --forest: #2d3c32; --wash: #e5e8e3;
  --tone-serif: "Source Han Serif SC", "Noto Serif CJK SC", SimSun, serif;
  --tone-sans: "Microsoft YaHei", "PingFang SC", sans-serif;
}
body.home-tone { background: var(--paper); color: var(--ink); font: 16px/1.8 var(--tone-sans); -webkit-font-smoothing: antialiased; }
body.home-tone::before {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.home-tone :is(main, .site-footer) { position: relative; }
.home-tone :is(h1,h2,h3,.forum-thread-open) { font-family: var(--tone-serif) !important; font-weight: 900; letter-spacing: 0; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.home-tone :is(p,li) { text-wrap: pretty; }
.home-tone :is(.container,.wrap) { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.home-tone :is(.journal-page,.forum-page) { padding-top: var(--header) !important; padding-bottom: 96px; }
.home-tone .tools-main { padding-top: 0; padding-bottom: 96px; }
.home-tone .tone-intro {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 72px;
  align-items: end; padding: 76px 0 52px; margin: 0; border: 0;
}
.home-tone .tone-title { padding-bottom: 2px; }
.home-tone .tone-kicker { color: var(--accent); font: 600 13px/1.6 var(--tone-sans); margin: 0 0 24px; }
.home-tone .tone-intro h1 { margin: 0; font-size: clamp(46px, 5.3vw, 76px); line-height: 1.18; white-space: nowrap; }
.home-tone .tone-intro-copy h2 { font-size: 21px; line-height: 1.7; margin: 0 0 14px; }
.home-tone .tone-intro-copy > p { max-width: 32em; margin: 0; font: 15px/1.85 var(--tone-sans); color: var(--muted); }
.home-tone .tone-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.home-tone :is(.tone-button,.primary-button) {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 22px; border: 1px solid var(--accent); border-radius: 6px;
  background: var(--accent); color: #fbfcf8 !important; font: 600 14px/1.5 var(--tone-sans) !important;
  box-shadow: 0 12px 24px rgba(107,55,36,.09); cursor: pointer; transition: background .2s, transform .2s;
}
.home-tone :is(.tone-button,.primary-button):hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.home-tone :is(.tone-text-link,.line-link,.channel-more) { color: var(--ink-soft); font: 600 14px/1.65 var(--tone-sans); text-decoration: none; }
.home-tone .tone-text-link { padding: 8px 0; border-bottom: 1px solid #899189; }
.home-tone .tone-text-link span { color: var(--accent); padding-left: 5px; }
.home-tone a:hover { color: var(--accent-dark); }
.home-tone :focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

/* Publication: open editorial sections, with a quiet lead story. */
.home-tone .journal-contents { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-block: 1px solid var(--line); margin: 0; }
.home-tone .journal-contents a { font: 600 15px/1.8 var(--tone-serif) !important; padding: 4px 0; }
.home-tone .journal-feature { grid-template-columns: 260px minmax(0,1fr); gap: 70px; padding-block: 56px; border-bottom: 1px solid var(--line); }
.home-tone #daily { background: #e6eae4; border: 0; border-radius: 6px; padding: 44px; margin: 36px 0 8px; grid-template-columns: 216px minmax(0,1fr); }
.home-tone .journal-channel .kicker { color: var(--accent); font: 600 12px/1.7 var(--tone-sans); margin-bottom: 18px; }
.home-tone .journal-channel h2 { font-size: 26px; line-height: 1.4; margin-bottom: 14px; }
.home-tone .journal-channel > p:not(.kicker) { font: 14px/1.8 var(--tone-sans); color: var(--muted); }
.home-tone .journal-channel .channel-more { display: inline-flex; margin-top: 18px; }
.home-tone .journal-meta { color: var(--muted); font: 12px/1.8 var(--tone-sans) !important; letter-spacing: .02em; margin-bottom: 18px; }
.home-tone .journal-article h3 { font-size: 38px; margin: 0 0 20px; line-height: 1.35; }
.home-tone #daily .journal-article h3 { font-size: 52px; }
.home-tone .journal-article > p:not(.journal-meta) { max-width: 36em; color: var(--ink-soft); font: 18px/1.95 var(--tone-serif) !important; margin: 0 0 24px; }
.home-tone .journal-news-row { padding: 22px 0; }
.home-tone .journal-news-row:first-child { padding-top: 0; }
.home-tone .journal-news-row h3 { font-size: 23px; line-height: 1.6; }
.home-tone .journal-film-link { border: 0; border-radius: 6px; overflow: hidden; background: #e6eae4; }
.home-tone .journal-film-link > div { padding: 26px 30px 30px; }
.home-tone .journal-film-link h3 { font-size: 34px; }

/* Forum: keep scan-friendly metadata, give the discussion titles room. */
.home-tone .forum-toolbar { gap: 24px; padding: 18px 0; }
.home-tone :is(.forum-tab,.forum-search input) { font: 14px/1.6 var(--tone-sans); }
.home-tone .forum-tabs { gap: 24px; }
.home-tone .forum-search { width: 260px; }
.home-tone .forum-layout { grid-template-columns: 250px minmax(0,1fr); gap: 80px; margin-top: 44px; }
.home-tone .forum-rail { border-top: 1px solid var(--ink); }
.home-tone .forum-rail-head { padding: 22px 0; gap: 10px; }
.home-tone .forum-rail-head strong { font: 900 23px/1.5 var(--tone-serif); }
.home-tone .forum-note { padding: 24px 0; color: var(--muted); font: 14px/1.9 var(--tone-sans); }
.home-tone .forum-feed-head { border-top: 1px solid var(--ink); padding-top: 22px; margin-bottom: 0; }
.home-tone .forum-feed-head > span { font: 900 23px/1.5 var(--tone-serif); }
.home-tone .forum-thread { padding: 32px 0; gap: 28px; }
.home-tone .forum-thread-open { font-size: 25px; font-weight: 900; line-height: 1.55; }
.home-tone .forum-thread h2 { margin: 14px 0 12px; }
.home-tone .forum-thread-excerpt { font: 15px/1.85 var(--tone-sans); max-width: 48em; margin-bottom: 18px; }
.home-tone :is(.forum-thread-meta,.forum-thread-foot) { font: 12px/1.7 var(--tone-sans); gap: 8px 14px; }
.home-tone .forum-thread-tag { color: var(--accent); font-weight: 600; }
.home-tone .forum-thread-status { padding: 0 0 0 12px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 12px; }
.home-tone .forum-avatar { background: #e0e6df; color: var(--forest); }
.home-tone .forum-dialog { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.home-tone .forum-dialog h2 { font-size: 28px; }

/* Tools: product introduction followed by its existing interactive example. */
.home-tone .tool-entry { padding: 0; border-top: 1px solid var(--line); }
.home-tone .tone-tool-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; padding: 44px 0; align-items: start; }
.home-tone .tool-entry-heading { justify-content: flex-start; gap: 24px; flex-wrap: wrap; }
.home-tone .tool-name { gap: 18px; }
.home-tone .tool-name > img { width: 56px; height: 56px; flex-basis: 56px; }
.home-tone .tool-name h2 { font-size: 34px; }
.home-tone .tool-name p { font: 14px/1.8 var(--tone-sans); margin-top: 6px; }
.home-tone .tool-version { font: 12px/1.7 var(--tone-sans); }
.home-tone .tool-summary { font: 18px/1.85 var(--tone-serif); color: var(--ink-soft); margin-top: 0; }
.home-tone .tool-actions { gap: 20px; margin-top: 24px; }
.home-tone .case-showcase { margin-top: 8px; padding: 40px; background: #e6eae4; border: 0; border-radius: 6px; }
.home-tone .case-heading { align-items: end; gap: 30px; margin-bottom: 30px; }
.home-tone .case-heading h2 { font-size: 34px; max-width: 22em; line-height: 1.5; }
.home-tone .case-heading .section-label { color: var(--accent); margin-bottom: 16px; }
.home-tone .case-disclosure { font: 12px/1.8 var(--tone-sans); }
.home-tone .case-surface { background: #f6f7f3; box-shadow: none; border: 1px solid #c7ccc6; border-radius: 4px; }
.home-tone .case-question h3 { font-size: 26px; }
.home-tone .case-statement { font: 15px/1.85 var(--tone-sans); }
.home-tone :is(.journal-feature,.forum-layout,#case,#councli-title) { scroll-margin-top: calc(var(--header) + 28px); }

/* The desktop hero copy has enough room for a single editorial line. */
@media (min-width: 821px) {
  .home-tone .tone-intro-copy h2 br { display: none; }
}

@media (max-width: 1080px) {
  .home-tone .tone-intro { gap: 40px; grid-template-columns: 1fr 1fr; }
  .home-tone .tone-intro h1 { font-size: 54px; }
  .home-tone .tone-actions { gap: 14px; }
  .home-tone .forum-toolbar { flex-wrap: wrap; }
  .home-tone .forum-layout { grid-template-columns: 220px minmax(0,1fr); gap: 40px; }
  .home-tone .journal-feature { grid-template-columns: 210px minmax(0,1fr); gap: 40px; }
  .home-tone #daily { grid-template-columns: 166px minmax(0,1fr); gap: 40px; }
}
@media (max-width: 820px) {
  .home-tone :is(.container,.wrap) { width: calc(100% - 32px); max-width: 100%; }
  .home-tone .tone-intro { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 30px 0 26px; width: 100%; }
  .home-tone .tone-kicker { margin-bottom: 16px; font-size: 12px; }
  .home-tone .tone-intro h1 { font-size: clamp(40px, 11vw, 48px); line-height: 1.18; white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
  .home-tone .tone-intro-copy { min-width: 0; }
  .home-tone .tone-intro-copy h2 { font-size: clamp(18px, 5.2vw, 21px); line-height: 1.55; margin-bottom: 10px; max-width: 100%; }
  .home-tone .tone-intro-copy > p { font-size: 14px; line-height: 1.78; max-width: 100%; }
  .home-tone .tone-actions { margin-top: 22px; gap: 18px; }
  .home-tone .tone-button { padding: 12px 16px; }
  .home-tone .tone-text-link { font-size: 13px; }
  .home-tone .journal-contents { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; padding: 18px 0; }
  .home-tone .journal-feature,.home-tone #daily { grid-template-columns: 1fr; gap: 26px; padding: 32px 0; }
  .home-tone #daily { padding: 24px; margin-top: 24px; }
  .home-tone .journal-channel { display: block; }
  .home-tone .journal-channel .kicker { margin-bottom: 10px; }
  .home-tone .journal-channel h2 { font-size: 23px; margin-bottom: 8px; }
  .home-tone .journal-channel .channel-more { margin-top: 8px; font-size: 13px; }
  .home-tone .journal-article h3 { font-size: 30px; }
  .home-tone #daily .journal-article h3 { font-size: 40px; }
  .home-tone .journal-article > p:not(.journal-meta) { font-size: 17px !important; line-height: 1.9 !important; }
  .home-tone .journal-news-row h3 { font-size: 21px; }
  .home-tone .journal-film-link > div { padding: 22px; }
  .home-tone .forum-toolbar { display: block; padding: 12px 0 18px; }
  .home-tone .forum-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 8px 20px; margin-bottom: 16px; scrollbar-width: none; }
  .home-tone .forum-tabs::-webkit-scrollbar { display:none; }
  .home-tone .forum-actions,.home-tone .forum-search { width: 100%; }
  .home-tone .forum-layout { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .home-tone .forum-rail { display: none; }
  .home-tone .forum-thread { gap: 16px; padding: 30px 0 32px; }
  .home-tone .forum-thread-open { font-size: 22px; line-height: 1.55; }
  .home-tone .forum-thread-excerpt { font-size: 14px; line-height: 1.9; margin-bottom: 20px; }
  .home-tone .forum-thread-foot { row-gap: 12px; }
  .home-tone .forum-thread-side { min-width: 28px; }
  .home-tone .tone-tool-overview { grid-template-columns: 1fr; gap: 26px; padding: 32px 0; }
  .home-tone .tool-name h2 { font-size: 28px; }
  .home-tone .tool-summary { font-size: 17px; }
  .home-tone .tool-actions { gap: 16px; }
  .home-tone .case-showcase { padding: 24px 16px; }
  .home-tone .case-heading { display: block; }
  .home-tone .case-heading h2 { font-size: 26px; }
  .home-tone .case-disclosure { margin-top: 16px; }
  .home-tone .case-question h3 { font-size: 21px; }
  .home-tone .case-margin { padding: 24px 20px; }
  .home-tone .case-margin h4 { font-size: 25px; line-height: 1.5; word-break: keep-all; overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .home-tone :is(.tone-button,.primary-button) { transition: none; }
}
.home-tone .tone-actions { display: none; }

/* 2026-09-21 forum density: keep the discussion page's opening content in view. */
.home-tone .forum-page { padding-top: 34px !important; padding-bottom: 72px; }
.home-tone .forum-page .tone-intro { padding: 38px 0 38px; }
.home-tone .forum-page .forum-demo-notice { margin-bottom: 26px; padding: 14px 0 16px; }
.home-tone .forum-page .forum-layout { margin-top: 34px; }

@media (max-width: 820px) {
  .home-tone .forum-page { padding-top: 18px !important; padding-bottom: 56px; }
  .home-tone .forum-page .tone-intro { padding: 22px 0 20px; }
  .home-tone .forum-page .forum-demo-notice { margin-bottom: 22px; padding: 14px 0 15px; }
  .home-tone .forum-page .forum-toolbar { padding-top: 10px; padding-bottom: 15px; }
  .home-tone .forum-page .forum-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; }
  .home-tone .forum-page .forum-search { flex: 1 1 auto; min-width: 0; width: auto; }
  .home-tone .forum-page .forum-compose { flex: 0 0 auto; }
  .home-tone .forum-page .forum-layout { margin-top: 22px; }
}

@media (max-width: 420px) {
  .home-tone .forum-page .forum-actions { grid-template-columns: 1fr; align-items: stretch; }
  .home-tone .forum-page .forum-compose { width: 100%; }
}

/* Mobile section mastheads: balance the short title and two-line introduction
   around the centre; the reading and product content below stays left aligned. */
@media (max-width: 600px) {
  .home-tone .tone-intro { text-align: center; gap: 18px; padding-block: 30px 28px; }
  .home-tone .tone-kicker { margin-bottom: 12px; }
  .home-tone .tone-intro-copy h2 { margin-inline: auto; line-height: 1.6; }
  .home-tone .tone-intro-copy > p { max-width: 24em; margin-inline: auto; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
  .home-tone :is(input, select, textarea) { font-size: 16px; }
  .home-tone .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .home-tone .forum-thread-side span { font-size: 12px; }
  .home-tone .forum-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .home-tone .forum-tabs::-webkit-scrollbar { display: none; }
}
