/*
Theme Name: Stellanote
Description: A rose-paper editorial naming desk for independent founders, creators and storytellers.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Author: Stellanote
License: GPL-2.0-or-later
Text Domain: stellanote
Tags: full-site-editing, blog, custom-colors, editor-style
*/

:root {
  --paper: #fcf7f7;
  --surface: #fff;
  --ink: #30272b;
  --rose: #8b334d;
  --muted: #6c5a60;
  --rule: #d8c7cd;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > .wp-block-template-part { margin: 0; }
main, header, footer, section, article, aside, nav, form, .wp-block-group { min-width: 0; }
[hidden] { display: none !important; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; text-wrap: pretty; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.02em; }
p { overflow-wrap: anywhere; }
a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: .23em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:active { color: var(--ink); }
button, input, select, textarea, summary, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
::selection { background: var(--rose); color: var(--surface); }
button, input, select, textarea { font: inherit; }
button, .wp-element-button { min-height: 44px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:active:not(:disabled) { transform: translateY(1px); }
code { font: .88em/1.5 ui-monospace, monospace; overflow-wrap: anywhere; background: rgba(139,51,77,.07); padding: .12em .3em; border-radius: 3px; }
.site-header, .editorial-toolkit, .site-footer, .single-note, .archive-page, .static-page {
  width: min(calc(100% - var(--gutter) * 2), 1240px);
  max-width: 1240px;
  margin-inline: auto;
}
.site-header { padding-block: 1.4rem; border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.skip-link { position: absolute; z-index: 99; top: -120px; left: 1rem; padding: .8rem 1rem; background: var(--surface); border: 2px solid var(--rose); }
.skip-link:focus { top: .6rem; }
.wordmark { display: inline-flex; flex-direction: column; width: fit-content; color: var(--ink); text-decoration: none; line-height: 1; padding-block: .4rem; min-height: 44px; }
.wordmark:hover { color: var(--rose); text-decoration: none; }
.wordmark-name { font: 400 2rem/1.1 var(--serif); letter-spacing: -.075em; }
.wordmark-period { color: var(--rose); }
.wordmark-caption { font: 600 .59rem/1 var(--sans); letter-spacing: .21em; margin-top: .5rem; padding-left: 2px; }
.primary-nav { display: flex; flex-wrap: wrap; gap: .2rem clamp(1rem, 2.5vw, 2.2rem); align-items: center; margin: 0; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: .55rem; color: var(--ink); font-size: .875rem; text-decoration: none; }
.primary-nav a:hover { color: var(--rose); text-decoration: underline; }
.eyebrow, .tool-kicker { color: var(--rose); font: 650 .7rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 1rem; }
.editorial-toolkit > *, .directory > * { margin-block-start: 0; }
.editorial-lead { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2rem, 4.5vw, 4rem); border-bottom: 3px solid var(--rose); }
.intro h1 { max-width: 20ch; margin: .8rem 0 1.2rem; font-size: clamp(2.5rem, 4.3vw, 3.5rem); }
.intro-copy { max-width: 47ch; font-size: clamp(.98rem, 1.2vw, 1.1rem); color: var(--muted); margin: 0 0 1.5rem; }
.local-line, .workspace-badge { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .75rem; }
.local-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
.guides { padding-top: .2rem; }
.guides h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); margin: .7rem 0 1.3rem; line-height: 1.25; }
.lead-steps { list-style: none; padding: 0; margin: 0; }
.lead-steps li { display: flex; gap: 1rem; padding-block: .8rem; border-top: 1px solid var(--rule); }
.lead-steps li > span { color: var(--rose); font: italic .875rem/1.6 var(--serif); }
.lead-steps strong { font-size: .82rem; font-weight: 600; }
.lead-steps p { margin: .15rem 0 0; color: var(--muted); font-size: .78rem; }
.workspace { max-width: 960px; margin: clamp(2rem, 4vw, 3.5rem) auto 0; scroll-margin-top: 1.5rem; }
.workspace-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.workspace-heading h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.workspace-heading .eyebrow { margin-bottom: .55rem; }
.workspace-badge { margin: 0 0 .25rem; }
.tool-switcher { padding: 1rem 1.15rem .8rem; background: rgba(139,51,77,.045); border: 1px solid var(--rule); border-radius: 10px 10px 0 0; }
.switcher-label { display: block; color: var(--muted); font-size: .72rem; margin-bottom: .6rem; }
.tool-tabs { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .35rem; }
.tool-tabs a { display: flex; align-items: center; justify-content: space-between; gap: .35rem; min-height: 46px; padding: .55rem .65rem; color: var(--muted); font-size: .75rem; line-height: 1.35; border: 1px solid transparent; border-radius: 6px; text-decoration: none; }
.tool-tabs a > span { font-size: .9rem; }
.tool-tabs a:hover { color: var(--rose); background: var(--surface); border-color: var(--rule); }
.tool-tabs a[aria-selected="true"] { color: var(--rose); background: var(--surface); border-color: var(--rule); font-weight: 650; box-shadow: 0 2px 3px rgba(48,39,43,.03); }
.tool-tabs a[aria-selected="true"] > span { transform: rotate(45deg); }
.tool-panel { padding: clamp(1.1rem, 3vw, 2rem); margin: 0 0 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 10px 10px; scroll-margin-top: 1rem; }
.tool-panel + .tool-panel { border-top: 1px solid var(--rule); border-radius: 10px; }
.workspace.is-tabbed .tool-panel { border-top: 0; border-radius: 0 0 10px 10px; }
.tool-intro { border-bottom: 1px solid var(--rule); padding-bottom: 1.2rem; margin-bottom: 1.5rem; }
.tool-kicker { font-size: .65rem; margin-bottom: .55rem; }
.tool-intro h3 { margin: 0 0 .65rem; font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.tool-intro > p:last-child { font-size: .85rem; color: var(--muted); max-width: 72ch; margin-bottom: 0; }
/* The trusted tool markup remains intact; only its presentation is enhanced. */
.stellanote-site .autosite-tool {
  --ast-accent: var(--rose); --ast-border: var(--rule);
  margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--surface); font-family: var(--sans);
}
.autosite-tool > h2 { font: 400 1.4rem/1.2 var(--serif); margin: 0 0 1rem; }
.autosite-tool.is-presented > h2, .autosite-tool.is-presented > .ast-note, .autosite-tool.is-presented > .ast-limits { display: none; }
.autosite-tool .ast-note, .autosite-tool .ast-limits { color: var(--muted); font-size: .75rem; }
.tool-workbench { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.panel-label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 0 1rem; color: var(--muted); font: 650 .65rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .11em; }
.panel-label > span:first-child { color: var(--rose); }
.autosite-tool .ast-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem .75rem; margin: 0; }
.ast-form > div { min-width: 0; }
.ast-form > .field-keyword, .ast-form > .field-seed { grid-column: 1 / -1; }
.autosite-tool label { display: block; font: 550 .75rem/1.5 var(--sans); margin-bottom: .35rem; color: var(--ink); }
.autosite-tool input:not([type="checkbox"]), .autosite-tool select, .autosite-tool textarea { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 44px; padding: .65rem .7rem; border: 1px solid var(--rule); border-radius: 5px; font: .82rem/1.35 var(--sans); background: var(--surface); color: var(--ink); }
.autosite-tool select { padding-right: 1.5rem; }
.autosite-tool input:hover, .autosite-tool select:hover { border-color: var(--muted); }
.autosite-tool input:focus, .autosite-tool select:focus { border-color: var(--rose); }
.autosite-tool input:disabled, .autosite-tool select:disabled { background: var(--paper); color: var(--muted); cursor: not-allowed; }
.autosite-tool input[aria-invalid="true"], .autosite-tool input:user-invalid { border: 2px solid var(--rose); }
.ast-form > .field-digits { display: flex; flex-direction: row-reverse; align-items: center; justify-content: end; gap: .5rem; min-height: 44px; }
.ast-form > .field-digits label { flex: 1; margin: 0; display: flex; align-items: center; min-height: 44px; }
.autosite-tool input[type="checkbox"] { width: 22px; height: 22px; margin: 0; accent-color: var(--rose); }
.seed-hint { margin: 0; grid-column: 1 / -1; color: var(--muted); font-size: .7rem; line-height: 1.6; }
.input-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .15rem; }
.autosite-tool button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .65rem .85rem; margin: 0; border: 1px solid var(--rule); border-radius: 5px; background: var(--surface); color: var(--ink); font: 550 .75rem/1.4 var(--sans); }
.autosite-tool button:hover:not(:disabled) { border-color: var(--rose); background: var(--paper); color: var(--rose); box-shadow: none; }
.autosite-tool button[type="submit"] { flex: 1; background: var(--rose); color: var(--surface); border-color: var(--rose); }
.autosite-tool button[type="submit"]:hover:not(:disabled) { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.autosite-tool button:disabled { color: var(--muted); background: var(--paper); opacity: .65; }
.autosite-tool button[type="submit"]:disabled { background: var(--muted); color: var(--surface); }
.results-panel { display: flex; flex-direction: column; min-width: 0; }
.autosite-tool .ast-result { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font: 400 1.15rem/2 var(--serif); color: var(--ink); width: 100%; min-width: 0; min-height: 290px; max-height: 430px; overflow: auto; margin: 0; padding: 1.1rem 1.25rem; border: 1px solid var(--rule); border-radius: 7px; background: var(--paper); }
.result-stage { position: relative; min-width: 0; }
.empty-output { position: absolute; top: 1.25rem; left: 1.25rem; right: 1.25rem; margin: 0; max-width: 25ch; font: 400 1rem/1.8 var(--serif); color: var(--muted); pointer-events: none; }
.autosite-tool .ast-status { min-height: 3em; margin: .65rem 0; font: .72rem/1.5 var(--sans); color: var(--muted); }
.autosite-tool .ast-status[data-state="error"] { color: var(--rose); border-left: 3px solid var(--rose); padding-left: .7rem; }
.autosite-tool .ast-status[data-state="error"]::before { content: "Action needed. "; font-weight: 650; }
.output-actions, .autosite-tool .ast-downloads { display: flex; flex-wrap: wrap; gap: .5rem; }
.autosite-tool .ast-downloads:empty { display: none; }
.results-hint { font-size: .68rem; color: var(--muted); margin: .75rem 0 0; }
.tool-help { margin-top: 1.5rem; border-top: 1px solid var(--rule); }
.input-example { font-size: .75rem; color: var(--muted); margin: 1rem 0; line-height: 1.75; }
.input-example strong { color: var(--rose); margin-right: .35rem; font-weight: 600; }
.tool-faqs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
details { min-width: 0; border-top: 1px solid var(--rule); }
summary { min-height: 44px; padding: .75rem .2rem .75rem 0; font-size: .75rem; font-weight: 550; cursor: pointer; }
summary:hover { color: var(--rose); }
summary:active { background: var(--paper); }
details[open] summary { color: var(--rose); }
details p { margin: 0 0 1rem; font-size: .75rem; color: var(--muted); }
.desk-footnote { font-size: .72rem; color: var(--muted); text-align: center; padding-inline: .6rem; margin: 1.2rem 0 0; }
.runtime-fallback { padding: .8rem 1rem; font-size: .8rem; color: var(--rose); border-left: 3px solid var(--rose); background: var(--paper); }
.directory { padding-top: clamp(3rem, 7vw, 6rem); }
.usecases { border-top: 1px solid var(--rule); padding-top: 2rem; }
.usecases > h2 { margin: .7rem 0 2rem; }
.usecase-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.usecase-grid article { padding-top: 1.2rem; border-top: 2px solid var(--rose); }
.usecase-number { font-size: .63rem; letter-spacing: .09em; color: var(--muted); }
.usecase-grid h3 { margin: .8rem 0; }
.usecase-grid p { color: var(--muted); font-size: .85rem; margin: 0 0 1rem; max-width: 40ch; }
.text-links { display: flex; flex-direction: column; align-items: start; }
.text-links a { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding-block: .5rem; font-size: .8rem; text-decoration: none; }
.text-links a:hover { text-decoration: underline; }
.latest-notes { margin-top: clamp(3rem, 7vw, 6rem); padding-top: 2rem; border-top: 1px solid var(--rule); scroll-margin-top: 2rem; }
.notes-heading h2 { margin: .7rem 0; }
.notes-heading > p:last-child { color: var(--muted); font-size: .9rem; margin: 0; }
.topic-links { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.4rem; margin: 1.4rem 0 1.8rem; }
.topic-links > span { color: var(--muted); font-size: .7rem; }
.topic-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 0; font-size: .75rem; text-decoration: none; }
.topic-links a:hover, .topic-links a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.notes-grid, .wp-block-post-template.notes-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem 2rem; padding: 0; margin: 0; list-style: none; }
.note-card { border-top: 1px solid var(--rule); padding-top: 1rem; display: flex; flex-direction: column; align-items: start; min-width: 0; }
.note-category, .note-card .wp-block-post-terms { display: inline-flex; align-items: center; min-height: 44px; margin: -.25rem 0 .5rem; color: var(--rose); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; text-decoration: none; }
.note-card .wp-block-post-terms a { min-height: 44px; display: inline-flex; align-items: center; }
.note-card h3, .note-card h2 { font-size: 1.55rem; margin: 0 0 .8rem; }
.note-card h3 a, .note-card h2 a { display: block; min-height: 44px; color: var(--ink); text-decoration: none; }
.note-card h3 a:hover, .note-card h2 a:hover { color: var(--rose); text-decoration: underline; }
.note-card > p, .note-card .wp-block-post-excerpt { font-size: .83rem; color: var(--muted); margin: 0 0 1.3rem; }
.note-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; width: 100%; margin-top: auto; font-size: .68rem; color: var(--muted); }
.note-meta a, .wp-block-post-excerpt__more-link { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.note-meta a:hover { text-decoration: underline; }
.empty-notes { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--rule); border-radius: 10px; background: rgba(139,51,77,.025); }
.empty-notes h3, .empty-notes h2 { margin: .4rem 0 .7rem; font-size: 1.65rem; }
.empty-notes p:not(.eyebrow) { font-size: .88rem; color: var(--muted); max-width: 65ch; }
.desk-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; padding-block: .6rem; font-size: .8rem; text-decoration: none; }
.desk-link:hover { text-decoration: underline; }
.approach { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; border-top: 1px solid var(--rule); margin-top: clamp(3rem, 7vw, 6rem); padding-block: clamp(2.5rem, 5vw, 4rem); }
.approach-mark { color: var(--rose); text-align: center; font: italic clamp(4rem, 11vw, 9rem)/1 var(--serif); letter-spacing: -.08em; }
.approach h2 { margin: .8rem 0 1.3rem; }
.approach-copy > p:not(.eyebrow) { color: var(--muted); font-size: .88rem; max-width: 64ch; }
.site-footer { padding-block: 2.2rem 1.2rem; border-top: 3px solid var(--rose); }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.footer-top { align-items: start; padding-bottom: 2rem; }
.footer-thought { margin: 0; color: var(--muted); font: italic 1.1rem/1.55 var(--serif); }
.footer-bottom { border-top: 1px solid var(--rule); padding-top: .8rem; align-items: center; font-size: .7rem; color: var(--muted); }
.footer-bottom > p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.3rem; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--rose); text-decoration: underline; }
/* Published notes and static information have their own readable layouts. */
.single-note, .archive-page, .static-page { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.article-grid { display: grid; grid-template-columns: minmax(0, 72ch) minmax(180px, 230px); justify-content: space-between; gap: 2rem clamp(2rem, 6vw, 5rem); }
.article-heading { grid-column: 1 / -1; max-width: 900px; padding-bottom: 1.8rem; border-bottom: 1px solid var(--rule); }
.article-heading h1 { font-size: clamp(2.2rem, 4.5vw, 3.7rem); margin: .7rem 0 1.3rem; max-width: 24ch; }
.article-categories { font-size: .75rem; }
.article-categories a { display: inline-flex; align-items: center; min-height: 44px; }
.note-date { color: var(--muted); font-size: .75rem; }
.article-body { grid-column: 1; grid-row: 2; max-width: 72ch; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.85; }
.article-body > :first-child { margin-top: 0; }
.article-body p, .static-page .wp-block-post-content p { max-width: 72ch; }
.article-body h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin: 2.5rem 0 1rem; scroll-margin-top: 1.5rem; }
.article-body h3 { margin-top: 1.8rem; scroll-margin-top: 1.5rem; }
.article-body li { margin-bottom: .55rem; }
.article-body pre, .static-page pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; border-left: 3px solid var(--rose); padding: 1rem; background: rgba(139,51,77,.04); }
.article-body blockquote { margin-inline: 0; border-left: 3px solid var(--rose); padding-left: 1.5rem; color: var(--muted); font-family: var(--serif); }
.article-body figure, .article-body table { max-width: 100%; margin-inline: 0; }
.article-body .wp-block-table { overflow-x: auto; }
.article-body table { border-collapse: collapse; font-size: .85rem; }
.article-body td, .article-body th { border: 1px solid var(--rule); padding: .6rem; overflow-wrap: anywhere; }
.article-toc { grid-column: 2; grid-row: 2; align-self: start; position: sticky; top: 1.5rem; font-size: .75rem; }
.article-toc nav { border-top: 2px solid var(--rose); padding-top: 1rem; }
.article-toc ol { margin: 0 0 1rem; padding: 0; list-style: none; }
.article-toc li { border-bottom: 1px solid var(--rule); }
.article-toc .toc-subheading { padding-left: .85rem; }
.article-toc a { display: flex; align-items: center; min-height: 44px; padding-block: .55rem; line-height: 1.5; text-decoration: none; }
.article-toc a:hover, .article-toc a[aria-current] { text-decoration: underline; }
.related-notes { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); padding-top: 2rem; }
.related-notes > h2 { margin: .7rem 0 2rem; }
.static-page { max-width: 780px; min-height: 50vh; }
.static-page > h1 { margin: .7rem 0 2rem; }
.static-page .wp-block-post-content { line-height: 1.85; }
.static-page h2 { margin-top: 2rem; font-size: 1.75rem; }
.archive-page > h1 { font-size: clamp(2.3rem, 4vw, 3.5rem); margin: .7rem 0 1rem; }
.archive-page .wp-block-term-description { color: var(--muted); max-width: 68ch; }
.archive-query { margin-top: 2rem; }
.archive-query .wp-block-post-template > li { min-width: 0; }
.wp-block-query-pagination { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 2.5rem; }
.wp-block-query-pagination a, .wp-block-query-pagination-numbers .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .4rem; }
.wp-block-query-pagination-numbers .current { border-bottom: 2px solid var(--rose); }
@media (max-width: 1023px) {
  .tool-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .editorial-lead { gap: 2rem; }
  .article-grid { grid-template-columns: minmax(0, 1fr) 200px; gap: 2rem; }
  .usecase-grid { gap: 1.5rem; }
}
@media (max-width: 899px) {
  .tool-workbench { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 767px) {
  .header-inner { gap: .8rem; }
  .primary-nav { width: 100%; gap: .2rem 1.5rem; }
  .site-header { padding-block: 1rem .5rem; }
  .wordmark-name { font-size: 1.8rem; }
  .editorial-lead { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 2rem; }
  .intro h1 { font-size: clamp(2.5rem, 9vw, 3.7rem); max-width: 20ch; }
  .intro-copy { max-width: 54ch; }
  .guides { display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem 1.5rem; }
  .guides > .eyebrow { grid-column: 1; margin: 0; }
  .guides > h2 { grid-column: 1; margin: 0; font-size: 1.5rem; }
  .guides > .lead-steps { grid-column: 2; grid-row: 1 / 3; }
  .workspace-heading { gap: .75rem; }
  .tool-workbench { grid-template-columns: 1fr; gap: 1.5rem; }
  .autosite-tool .ast-result { min-height: 240px; }
  .tool-faqs { grid-template-columns: 1fr; }
  .usecase-grid, .notes-grid, .wp-block-post-template.notes-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .usecase-grid p { max-width: 60ch; }
  .text-links { flex-direction: row; flex-wrap: wrap; gap: .2rem 1.5rem; }
  .approach { grid-template-columns: 1fr; gap: 1.5rem; }
  .approach-mark { text-align: left; font-size: 5rem; }
  .footer-top, .footer-bottom { align-items: start; flex-direction: column; }
  .footer-top { gap: 1rem; }
  .footer-links { gap: 0 1.2rem; }
  .article-grid { display: flex; flex-direction: column; gap: 1.5rem; }
  .article-heading { order: 0; width: 100%; }
  .article-toc { position: static; order: 1; width: 100%; }
  .article-body { order: 2; width: 100%; }
  .article-toc ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1.5rem; }
}
@media (max-width: 389px) {
  .primary-nav { gap: .2rem 1rem; }
  .primary-nav a { font-size: .8rem; }
  .guides { display: block; }
  .guides h2 { margin-block: .6rem 1rem; }
  .tool-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tool-switcher { padding-inline: .65rem; }
  .tool-panel { padding: 1rem; }
  .autosite-tool .ast-form { grid-template-columns: 1fr; }
  .ast-form > * { grid-column: 1 !important; }
  .input-actions > button { flex: 1 1 auto; }
  .autosite-tool .ast-result { padding: .9rem; }
  .article-toc ol { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .local-dot { background: CanvasText; }
  .tool-tabs a[aria-selected="true"], .autosite-tool button[type="submit"] { border: 2px solid Highlight; }
}
@media print {
  body { background: #fff; color: #000; }
  .primary-nav, .tool-switcher, .article-toc, .related-notes, .footer-links, .input-actions, .output-actions, .skip-link { display: none !important; }
  .site-header, .editorial-toolkit, .single-note, .static-page, .site-footer { width: 100%; }
  .article-grid, .tool-workbench { display: block; }
  .autosite-tool .ast-result { max-height: none; overflow: visible; }
  .tool-panel, .note-card, pre { break-inside: avoid; }
}
