/* Finish schedule: framing (measure), plaster (surface), trim (edges), crown (hierarchy).
   Final shared layer intentionally replaces the retired decorative themes. */
body.ts-body {
  --color-surface-primary: #f4f1e9;
  --color-surface-secondary: #fffdf8;
  --color-text-primary: #243e33;
  --color-text-secondary: #4c5a50;
  --color-text-tertiary: #58675c;
  --color-brand-primary: #286044;
  --color-brand-primary-tint: #e6ece2;
  --color-brand-primary-border: #bdcbbd;
  --color-border-primary: #d8d7cb;
  --color-border: #d8d7cb;
  --finish-ink: #243e33;
  --finish-muted: #4c5a50;
  --finish-paper: #f4f1e9;
  --finish-trim: #d8d7cb;

  background: var(--finish-paper);
  color: var(--finish-ink);
}

.ts-body .ts-main-content { background: var(--finish-paper); color: var(--finish-ink); overflow: visible; }
.ts-body .ts-main-content h1, .ts-body .ts-main-content h2, .ts-body .ts-main-content h3, .ts-body .ts-main-content h4 { color: var(--finish-ink); background: none; -webkit-text-fill-color: currentcolor; text-shadow: none; letter-spacing: -0.025em; line-height: 1.18; text-wrap: balance; }
.ts-body .ts-main-content h1 { font-size: clamp(2.4rem, 4.8vw, 4.8rem); max-width: 23ch; margin-block: 0 1.5rem; }
.ts-body .ts-main-content h2 { font-size: clamp(1.65rem, 2.6vw, 2.6rem); margin-block: 0 1.25rem; }
.ts-body .ts-main-content h3 { font-size: 1.3rem; margin-block: 0 0.85rem; }
.ts-body .ts-main-content p { line-height: 1.8; margin-block: 0 1.25rem; }
.ts-body .ts-main-content :is(p, li) { color: inherit; }
.ts-body .ts-main-content a:focus-visible, .ts-body .ts-main-content button:focus-visible, .ts-body .ts-main-content input:focus-visible, .ts-body .ts-main-content select:focus-visible, .ts-body .ts-main-content textarea:focus-visible { outline: 3px solid #9b682a; outline-offset: 4px; }
.ts-body .ts-main-content :is(a) { text-underline-offset: 0.25em; }
.ts-body .ts-main-content > section { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.ts-body .ts-main-content :is(.container, .mx-auto, .ts-container) { width: min(100%, 76rem); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); box-sizing: border-box; }
.ts-body .ts-main-content .max-w-3xl { max-width: 58rem; }
.ts-body .ts-main-content :is(.prose, .guide-article) { max-width: 72ch; margin-inline: auto; padding-block: 2rem; line-height: 1.8; }
.ts-body .ts-main-content :is(.prose, .guide-article) h2 { margin-top: 2.5rem; }
.ts-body .ts-main-content :is(.prose, .guide-article) li { margin-block: 0.5rem; }

/* Crown: a quiet two-part reveal instead of neon/glass. */
.ts-body .ts-main-content :is(.ts-intro, .about-hero, .hero--compact, .blog-hero, .legal-hero, .build-guide-hero, .build-hero, .portfolio-hero) { background: #173d30; color: #f8f3e8; border: 0; border-bottom: 5px double #b39a67; padding-block: clamp(3.5rem, 7vw, 6.5rem); box-shadow: none; }
.ts-body .ts-main-content :is(.ts-intro, .about-hero, .hero--compact, .blog-hero, .legal-hero, .build-guide-hero, .build-hero, .portfolio-hero) h1, .ts-body .ts-main-content :is(.ts-intro, .about-hero, .hero--compact, .blog-hero, .legal-hero, .build-guide-hero, .build-hero, .portfolio-hero) h2, .ts-body .ts-main-content :is(.ts-intro, .about-hero, .hero--compact, .blog-hero, .legal-hero, .build-guide-hero, .build-hero, .portfolio-hero) p { color: #f8f3e8; }
.ts-body .ts-main-content :is(.ts-intro, .about-hero, .hero--compact, .blog-hero, .legal-hero) h1 { margin-inline: auto; }
.ts-body .ts-main-content :is(.ts-intro, .about-hero, .hero--compact) p { max-width: 65ch; margin-inline: auto; }
.ts-body .ts-main-content :is(.hero__summary, .about-hero__summary, .ts-intro p) { font-size: 1.1rem; opacity: 100%; }
.ts-body .ts-intro__primary { background: #e4cd98; border-color: #e4cd98; color: #183a2b; border-radius: 999px; }
.ts-body .ts-intro__secondary { color: #f8f3e8; border-color: #a5b8a7; border-radius: 999px; }

/* Framing: grids breathe and collapse without fixed card heights. */
.ts-body .ts-main-content :is(.ts-services-grid, .about-grid, .tools-grid, .downloads-grid, .blog-grid, .legal-grid) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.ts-body .ts-main-content .grid { display: grid; gap: 2rem; }
.ts-body .ts-main-content .flex { display: flex; gap: 0.75rem; }
.ts-body .ts-main-content .flex-wrap { flex-wrap: wrap; }
.ts-body .ts-main-content .items-center { align-items: center; }
.ts-body .ts-main-content .items-start { align-items: flex-start; }
.ts-body .ts-main-content .justify-center { justify-content: center; }
.ts-body .ts-main-content .space-y-6 > * + * { margin-top: 1.5rem; }
.ts-body .ts-main-content :is(.mb-12, .mb-16) { margin-bottom: 2.5rem; }
.ts-body .ts-main-content .mb-6 { margin-bottom: 1.5rem; }
.ts-body .ts-main-content .mb-4 { margin-bottom: 1rem; }

/* Trim: shallow shadows and eased corners, with no nested ornamental borders. */
.ts-body .ts-main-content :is(.ts-service-card, .about-card, .about-intro-card, .blog-card, .legal-card, .tool-card, .download-card, .project-card, .portfolio-card, .resource-card, .phase-card, .guide-card, .rounded-xl, .rounded-2xl) { background: #fffdf8; color: #243e33; border: 1px solid #d8d7cb; border-radius: 1.25rem; box-shadow: 0 5px 18px #203b2d08; padding: clamp(1.5rem, 3vw, 2.25rem); height: auto; transform: none; backdrop-filter: none; }
.ts-body .ts-main-content :is(.ts-service-card, .about-card, .blog-card, .legal-card, .tool-card, .download-card) :is(p, li) { color: #4c5a50; }
.ts-body .ts-main-content :is(.ts-service-card, .about-card, .blog-card, .legal-card, .tool-card, .download-card) a { color: #286044; }
.ts-body .ts-main-content :is(.about-card__header, .about-card__body, .blog-card__content) { background: transparent; border: 0; padding: 0; }
.ts-body .ts-main-content :is(.about-card__header) { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.ts-body .ts-main-content :is(.ts-service-card__icon, .about-card__icon, .tool-card__icon, .download-card__icon) { background: #e8eee4; color: #286044; border: 0; border-radius: 50%; box-shadow: none; width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ts-body .ts-main-content :is(.about-stats, .legal-content, .about-content, .blog-section, .resources-section) { background: var(--finish-paper); color: var(--finish-ink); }
.ts-body .ts-main-content :is(.about-stats__label, .about-stats__text) { color: #286044; }
.ts-body .ts-main-content :is(.about-cta, .build-guide-cta, .legal-cta) { background: #e6ece2; color: #243e33; border-block: 1px solid #bdcbbd; }
.ts-body .ts-main-content input:not([type="checkbox"], [type="radio"], [type="range"]), .ts-body .ts-main-content textarea, .ts-body .ts-main-content select { max-width: 100%; background: #fffdf8; color: #243e33; border: 1px solid #a8b5a9; border-radius: 0.6rem; padding: 0.8rem 1rem; min-height: 2.75rem; }
.ts-body .ts-main-content :is(img, video) { max-width: 100%; height: auto; }
.ts-body .ts-main-content table { display: block; max-width: 100%; overflow-x: auto; }
.ts-body .ts-main-content :is(.scroll-fade-in, [data-aos]) { opacity: 100%; transform: none; }
.ts-body .ts-header { border-bottom: 1px solid #728575; box-shadow: none; }
.ts-body .ts-header :is(.ts-nav__link, .ts-nav__button) { box-shadow: none; text-shadow: none; }
.ts-body .ts-main-content :is(.btn, .button) { border-radius: 999px; text-shadow: none; box-shadow: none; }

@media (min-width: 760px) {
  .ts-body .ts-main-content [class~="md:grid-cols-2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-body .ts-main-content [class~="md:grid-cols-3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  .ts-body .ts-main-content :is(.grid, .about-grid, .guide-layout, .about-stats__grid) { grid-template-columns: minmax(0, 1fr); }
  .ts-body .ts-main-content h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .ts-body .ts-main-content :is(.about-hero__content, .hero__content) { width: auto; padding-inline: 0; }
  .ts-body .ts-main-content :is(.ts-intro__actions, .cta-buttons) { gap: 0.75rem; flex-wrap: wrap; }
  .ts-body .ts-main-content :is(.ts-intro__actions a, .cta-buttons a) { max-width: 100%; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .ts-body .ts-main-content *, .ts-body .ts-main-content *::before, .ts-body .ts-main-content *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Small joinery details shared by plain articles and utility-based templates. */
.ts-body .ts-main-content > h1, .ts-body .ts-main-content > h2, .ts-body .ts-main-content > h3, .ts-body .ts-main-content > p, .ts-body .ts-main-content > ul, .ts-body .ts-main-content > ol { width: min(90%, 72ch); margin-inline: auto; }
.ts-body .ts-main-content > h1 { padding-top: 3rem; }
.ts-body .ts-main-content article.rounded-lg { padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid #d8d7cb; border-radius: 1.25rem; background: #fffdf8; }
.ts-body .ts-main-content .default-cta { padding: 2rem 1.25rem; }
.ts-body .ts-main-content .text-center h1 { margin-inline: auto; }
.ts-body .ts-main-content .about-card__title { margin: 0; }
.ts-body .ts-main-content .about-hero__title { font-size: clamp(2.2rem, 4vw, 4rem); max-width: 28ch; }
.ts-body .ts-header__cta-btn { background: #e4cd98; color: #183a2b; border: 1px solid #e4cd98; box-shadow: none; border-radius: 999px; }
.ts-body .ts-header .ts-nav :is(a, button) { box-shadow: none; background: transparent; }
.ts-body .ts-main-content .coming-soon-orb { display: none; }
.ts-body .ts-main-content .coming-soon-grid { display: none; }

/* Continuous plaster across legacy section families. */
.ts-body .ts-main-content section:not(.ts-intro, .about-hero, .hero--compact, .blog-hero, .legal-hero, .build-guide-hero, .build-hero, .portfolio-hero) { background: var(--finish-paper); color: var(--finish-ink); }
.ts-body .ts-main-content .inline-flex { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.75rem; border-radius: 999px; }
.ts-body .ts-main-content :is(.resources-command-bar__label, .resources-command-bar__count, .section-subtitle, .kb-article__excerpt, .project-caption, .project-tags .tag) { color: #4c5a50; }
.ts-body .ts-main-content :is(.resources-command-bar__link, .resources-command-bar__clear, .filter-btn) { background: #e6ece2; color: #243e33; border: 1px solid #bdcbbd; border-radius: 999px; padding: 0.6rem 1rem; }
.ts-body .ts-main-content :is(.resources-command-bar__count, .resources-command-bar__empty) { background: transparent; border: 0; padding: 0.5rem 0; }
.ts-body .ts-main-content :is(.kb-article, .local-resource, .resource-item) { background: #fffdf8; color: #243e33; border: 1px solid #d8d7cb; border-radius: 1.25rem; padding: 1.5rem; }
.ts-body .ts-main-content :is(.hero__eyebrow, .about-hero__eyebrow, .blog-hero__eyebrow) { color: #e4cd98; background: transparent; }
.ts-body .ts-main-content .ts-service-card { display: block; }
.ts-body .ts-main-content .ts-service-card__icon { padding: 0; }
.ts-body .ts-main-content .project-content { background: #fffdf8; padding: 1rem 0; }
.ts-body .ts-main-content [hidden] { display: none !important; }

.ts-body .ts-main-content .cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.ts-body .ts-main-content .btn--ghost { color: #286044; border: 1px solid #8eaa95; background: transparent; }
.ts-body .ts-main-content .btn--primary { background: #286044; color: #fffdf8; border: 1px solid #286044; }
.ts-body .ts-main-content .build-breadcrumb a { color: #e4cd98; }
.ts-body .ts-main-content .build-phase-nav { padding: 1.5rem; }
.ts-body .ts-main-content .rounded-lg:has(> h2, > h3) { padding: 1.75rem; border-radius: 1.25rem; border: 1px solid #d8d7cb; }

/* Legacy important button colors otherwise leave white text on plaster. */
.ts-body .ts-main-content :is(.btn--ghost, .btn--outline-white, .btn--outline-light) { color: #286044 !important; border-color: #8eaa95 !important; background: transparent !important; }
.ts-body .ts-main-content :is(.btn--primary, .btn--white) { color: #fffdf8 !important; background: #286044 !important; border-color: #286044 !important; }
.ts-body .ts-main-content .portfolio-note { background: #e6ece2; color: #243e33; border: 1px solid #bdcbbd; border-radius: 0.75rem; padding: 1.5rem; }
.ts-body .ts-main-content .legal-card { margin-bottom: 2.5rem; }
.ts-body .ts-main-content .project-image img { width: 100%; height: 16rem; object-fit: cover; border-radius: 0.75rem; }
.ts-body .ts-main-content .project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 2rem; }
.ts-body .ts-main-content .project-card { grid-column: auto; grid-row: auto; }

.ts-body .ts-main-content .project-grid { background: transparent; border: 0; padding: 0; }
.ts-body .ts-main-content .project-tags .tag { background: #e6ece2; color: #286044; border: 0; }
