/* Final type and color policy. Load after quiet-refinement.css.
   UI emphasis uses neutral --ui-accent. The original --purple stays unchanged;
   --brand-accent refers to that color and is reserved for the primary CTA. */
body {
  --brand-accent:var(--purple);
  --ui-accent:var(--ink);
  --muted:#68645f;
  --surface:#eeebe7;
  color:var(--ink);
  font-size:16px;
  line-height:1.8;
}

/* A consistent hierarchy; device pixels and device dimensions stay untouched. */
body[class] :is(main,footer) :is(h1,h2,h3) {
  font-weight:700;
  color:var(--ink);
}
body[class] main h1 {font-size:clamp(44px,5.2vw,68px);line-height:1.23;letter-spacing:-.05em}
body[class] main h2 {font-size:42px;line-height:1.3;letter-spacing:-.045em}
body[class] main h3 {font-size:24px;line-height:1.4;letter-spacing:-.035em}
body[class] main :is(.v2-section-heading,.story-copy,.hm-intro,.section-heading,.v2-panel-copy,.v2-privacy-block,.v2-cross-story,.fx-closing,.about-writing,.values,.about-invite,.endcap,.help-contact) h2 {
  font-size:42px;line-height:1.3;font-weight:700;color:var(--ink);
}
body[class] main :is(.v2-related-card,.v2-focus-list,.v2-continuity-grid,.journal-card,.hm-tile-copy,.v2-directory-row,.values) h3 {
  font-size:24px;line-height:1.4;font-weight:700;color:var(--ink);
}
body[class] .hero-quiet .hero-copy h1 {font-weight:700;color:var(--ink)}
body[class] .hero-quiet .hero-copy h1 em,
body[class] .hm-intro h2 em,
body[class] .page-intro h1 span,
body[class] .about-intro h1>span {color:var(--ink);font-weight:700}
body[class] main .article-body h2 {font-size:32px;line-height:1.4}
/* Supporting reading prompts retain a smaller scale than page section headings. */
body[class] main .reading-note h2 {font-size:24px;line-height:1.4}
body[class] main .related-stories .section-heading h2 {font-size:30px;line-height:1.4}
body[class] main .dialog-heading h2 {font-size:20px}
body[class] .v2-privacy-heading>p:last-child {font-size:34px;line-height:1.4;font-weight:700;color:var(--ink)}

/* Main reading text is deliberately separated from labels and captions. */
body[class] :is(
  .lede,.heading-side p,.journal-card p,.article-heading>p:not(.kicker),
  .v2-panel-copy>p:not(.kicker),.v2-continuity-grid p,.v2-directory-row p,
  .v2-feature-focus .v2-section-heading>p:not(.kicker),.v2-focus-list p,
  .v2-cross-story>div>p:not(.kicker),.v2-related-card p,
  .v2-privacy-block>div:last-child>p:not(.kicker),.v2-closing p:not(.kicker),
  .hm-tile-copy p,.hm-privacy p:not(.kicker),.endcap>div:last-child>p,
  .values article p,.about-writing>div>p,.about-intro>p:not(.kicker),
  .faq-answer,.article-next-step p,.download-copy>.lede,
  .reading-note p,.v2-feature-intro .lede,.v2-app-intro .lede
) {font-size:16px;line-height:1.85;color:var(--muted)}
body[class] .hero-quiet .hero-copy>p:not(.hero-eyebrow):not(.release-note),
body[class] .hm-intro>p:not(.kicker) {font-size:18px;line-height:1.85;color:var(--muted)}
body[class] .article-body section p {font-size:18px;line-height:1.95;color:var(--muted)}
body[class] .article-body>p.article-lead {font-size:20px;line-height:1.85;color:var(--ink)}

/* Labels are neutral; accent text is never used as hierarchy. */
body[class] :is(.kicker,.hero-eyebrow,.hm-tile-copy .kicker,.story-top .kicker,.story-copy .kicker,.v2-privacy-block .kicker,.hm-privacy .kicker) {
  font-size:12px;line-height:1.5;color:var(--muted);font-weight:700;
}
body[class] .hero-quiet .hero-eyebrow {font-size:12px;color:var(--muted)}
body[class] :is(.v2-sequence-number,.v2-directory-row>span:first-child,.v2-focus-list article>span,.v2-related-card>span:first-child,.v2-card-arrow,.fx-tab-index,.story-controls button>span) {
  font-size:12px;color:var(--muted);
}
body[class] :is(.text-link,.quiet-link,.fx-back,.v2-directory-row,.nav-shell nav a,.footer a) {color:var(--ink)}
body[class] :is(.text-link,.quiet-link,.fx-back,.v2-directory-row,.nav-shell nav a,.footer a):hover {color:var(--ink)}
body[class] .hm-tile:hover .hm-tile-copy h3 {color:var(--ink)}
body[class] :is(.fx-app-tab,.v2-app-tabs .fx-app-tab,.story-controls button,.story-controls button[aria-pressed=true],.help-categories button) {color:var(--muted)}
body[class] .v2-app-tabs .fx-app-tab[aria-selected=true] {color:var(--ink);background:#fff;font-weight:700}
body[class] .fx-app-tab[aria-selected=true] {color:var(--ink);border-bottom-color:var(--ink)}
body[class] .story-controls button[aria-pressed=true] {color:var(--ink);font-weight:700}
body[class] .hero-quiet .deck-controls button:hover {color:var(--ink);background:var(--surface)}
body[class] .help-categories button[aria-pressed=true] {color:#fff;background:var(--ink)}
body[class] .filter-pills button[aria-pressed=true] {color:#fff;background:var(--ink);border-color:var(--ink)}
body[class] .page-progress,
body[class] .story-controls button>i,
body[class] .v2-status-note>span {background:var(--ink)}
body[class] :is(button,a,input,summary):focus-visible,
body[class] :is(.v2-app-panel,.fx-explorer-panel):focus-visible {outline-color:var(--ink)}

/* Caption legibility includes the small second line under an app capture. */
body[class] :is(
  .v2-capture-caption,.v2-capture-caption>span,
  .v2-capture-compact .v2-capture-caption,.v2-capture-compact .v2-capture-caption>span,
  .v2-scroll .v2-capture-caption,.hm-tile .v2-capture-caption,
  .hero-quiet .hero-caption,.hero-quiet .release-note,
  .v2-status-note,.v2-feature-intro .v2-status-note,.hm-preview-note,
  .story-source,.story-scroll-hint,.journal-meta,.article-byline,
  .fx-source-note,.fx-media-note,.result-count,.help-count,.status-label
) {font-size:12px;line-height:1.65;color:var(--muted)}
body[class] :is(.pill-button,.text-link,.quiet-link,.filter-pills button,.help-categories button,.v2-app-tabs .fx-app-tab) {font-size:15px;line-height:1.55}
body[class] .v2-scroll .story-controls button {font-size:13px;line-height:1.5}
body[class] .hero-quiet .deck-controls>span {font-size:13px;color:var(--ink)}
body[class] .hero-quiet .deck-controls small {font-size:11px;color:var(--muted)}
body[class] .footer h2 {font-size:13px;font-weight:700}
body[class] .footer-top>div:not(:first-child)>a {font-size:13px;color:var(--muted)}
body[class] .footer-brand p {font-size:14px;line-height:1.8;color:var(--muted)}
body[class] .footer-bottom {font-size:11px;line-height:1.75;color:var(--muted)}

/* Quiet warm surfaces replace the widespread purple panels and gradients. */
body[class] :is(.v2-app-panel,.v2-panel-response,.v2-panel-together,.v2-panel-journey,.v2-related-card,.v2-feature-hero>.v2-app-capture,.v2-cross-story>.v2-app-capture,.endcap,.about-invite,.status-label) {
  background:var(--surface);border-color:var(--line);
}
body[class] .v2-scroll :is(.story-visual,.story-visual-response,.story-visual-journey) {background:var(--surface);border-color:var(--line)}
body[class] :is(.v2-related-card:hover,.v2-directory-row:hover,.pill-button.outline:hover) {background:#e5e1db;color:var(--ink)}
body[class] :is(.v2-app-tabs,.v2-continuity-grid article,.v2-privacy-block,.v2-directory-row,.v2-feature-focus,.v2-focus-list article) {border-color:var(--line)}
body[class] .hm-lock {background:#e1ddd7;color:var(--ink)}
body[class] .hero-atmosphere {background:radial-gradient(ellipse at 50% 52%,#e5e1da60,transparent 62%)}
body[class] .hm-tile-art:after {background:linear-gradient(180deg,#f2eeea14,#ded9d33b 55%,#f1ede6b0)}
body[class] .hm-tile .v2-capture-caption {background:#f8f5f0eb;color:var(--muted)}

/* One meaningful purple action. All text on a filled action remains white. */
body[class] .pill-button.purple {background:var(--ink);color:#fff}
body[class] :is(.pill-button.dark,.nav-cta) {color:#fff;background:var(--ink)}
body[class] .hero-quiet .hero-actions .pill-button.purple {
  background:var(--brand-accent);color:#fff;box-shadow:none;font-size:15px;
}
body[class] .hero-quiet .hero-actions .pill-button.purple:hover {background:var(--brand-accent);color:#fff}
body[class] .hero-quiet .hero-actions .text-link {color:var(--ink);font-size:15px}

@media(max-width:760px) {
  body {font-size:15px;line-height:1.8}
  body[class] main h1 {font-size:40px;line-height:1.25}
  body[class] main h2,
  body[class] main :is(.v2-section-heading,.story-copy,.hm-intro,.section-heading,.v2-panel-copy,.v2-privacy-block,.v2-cross-story,.fx-closing,.about-writing,.values,.about-invite,.endcap,.help-contact) h2 {font-size:31px;line-height:1.35}
  body[class] main h3,
  body[class] main :is(.v2-related-card,.v2-focus-list,.v2-continuity-grid,.journal-card,.hm-tile-copy,.v2-directory-row,.values) h3 {font-size:22px;line-height:1.45}
  body[class] main .article-body h2 {font-size:28px}
  body[class] main .reading-note h2 {font-size:22px;line-height:1.5}
  body[class] main .related-stories .section-heading h2 {font-size:28px;line-height:1.4}
  body[class] .v2-privacy-heading>p:last-child {font-size:29px}
  body[class] :is(
    .lede,.heading-side p,.journal-card p,.article-heading>p:not(.kicker),
    .v2-panel-copy>p:not(.kicker),.v2-continuity-grid p,.v2-directory-row p,
    .v2-feature-focus .v2-section-heading>p:not(.kicker),.v2-focus-list p,
    .v2-cross-story>div>p:not(.kicker),.v2-related-card p,
    .v2-privacy-block>div:last-child>p:not(.kicker),.v2-closing p:not(.kicker),
    .hm-tile-copy p,.hm-privacy p:not(.kicker),.endcap>div:last-child>p,
    .values article p,.about-writing>div>p,.about-intro>p:not(.kicker),
    .faq-answer,.article-next-step p,.download-copy>.lede,
    .reading-note p,.v2-feature-intro .lede,.v2-app-intro .lede
  ) {font-size:15px;line-height:1.85}
  body[class] .hero-quiet .hero-copy>p:not(.hero-eyebrow):not(.release-note),
  body[class] .hm-intro>p:not(.kicker),
  body[class] .article-body section p {font-size:16px;line-height:1.9}
  body[class] .article-body>p.article-lead {font-size:18px}
  body[class] :is(.kicker,.hero-eyebrow,.hm-tile-copy .kicker,.story-top .kicker,.story-copy .kicker,.v2-privacy-block .kicker,.hm-privacy .kicker),
  body[class] .hero-quiet .hero-eyebrow {font-size:11px}
  body[class] :is(
    .v2-capture-caption,.v2-capture-caption>span,
    .v2-capture-compact .v2-capture-caption,.v2-capture-compact .v2-capture-caption>span,
    .v2-scroll .v2-capture-caption,.hm-tile .v2-capture-caption,
    .hero-quiet .hero-caption,.hero-quiet .release-note,
    .v2-status-note,.v2-feature-intro .v2-status-note,.hm-preview-note,
    .story-source,.story-scroll-hint,.journal-meta,.article-byline,
    .fx-source-note,.fx-media-note,.result-count,.help-count,.status-label
  ) {font-size:12px;line-height:1.65}
  body[class] :is(.v2-sequence-number,.v2-directory-row>span:first-child,.v2-focus-list article>span,.v2-related-card>span:first-child,.v2-card-arrow,.fx-tab-index,.story-controls button>span) {font-size:11px}
  body[class] :is(.pill-button,.text-link,.quiet-link,.filter-pills button,.help-categories button,.v2-app-tabs .fx-app-tab) {font-size:14px}
  body[class] .hero-quiet .hero-actions .pill-button.purple,
  body[class] .hero-quiet .hero-actions .text-link {font-size:14px}
  body[class] .v2-app-tabs .fx-app-tab {font-size:12px}
  body[class] .v2-scroll .story-controls button {font-size:11px}
  body[class] .story-copy>p:not(.kicker):not(.story-source) {font-size:15px;line-height:1.85}
  body[class] .footer-brand p {font-size:13px}
}

body[class] main .screen-preview-heading h2{font-size:18px;line-height:1.4;letter-spacing:-.025em}

/* The showcase uses open space; photography supplies the visual change of pace. */
body[class] .hero-quiet .hero-copy h1{font-size:clamp(58px,5.4vw,78px);line-height:1.18}
body[class] .v2-scroll :is(.story-visual,.story-visual-response,.story-visual-journey){background:transparent;border:0}
body[class] main .hm-privacy h2{font-size:26px;line-height:1.4}
@media(max-width:760px){
 body[class] .hero-quiet .hero-copy h1{font-size:46px;line-height:1.23}
 body[class] main .hm-privacy h2{font-size:24px;line-height:1.4}
 body[class] .hero-quiet .hero-caption{font-size:12px}
}
@media(max-width:370px){body[class] .hero-quiet .hero-copy h1{font-size:39px}}
