/* Static public pages share the main site's semantic palette and component names. */
:root {
  color-scheme: light;
  --color-bg: #f8f5ec;
  --color-bg-subtle: #f4f0e7;
  --color-surface: #fffdf8;
  --color-fg: #1f211d;
  --color-muted: #3f433c;
  --color-subtle: #62665e;
  --color-primary: #8f312b;
  --color-primary-hover: #732722;
  --color-primary-fg: #fffdf8;
  --color-border: rgb(93 79 50 / 20%);
  --color-border-strong: rgb(93 79 50 / 34%);
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-sm: 8px;
  --radius-xl: 24px;
  --shadow-border: 0 0 0 1px var(--color-border);
}
:root[data-theme="ink-night"] {
  color-scheme: dark;
  --color-bg: #161512;
  --color-bg-subtle: #1c1b16;
  --color-surface: #23221c;
  --color-fg: #efe8d8;
  --color-muted: #c4bba8;
  --color-subtle: #9a9283;
  --color-primary: #c45a52;
  --color-primary-hover: #d46a62;
  --color-primary-fg: #fffdf8;
  --color-border: rgb(239 232 216 / 12%);
  --color-border-strong: rgb(239 232 216 / 22%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --color-bg: #161512;
    --color-bg-subtle: #1c1b16;
    --color-surface: #23221c;
    --color-fg: #efe8d8;
    --color-muted: #c4bba8;
    --color-subtle: #9a9283;
    --color-primary: #c45a52;
    --color-primary-hover: #d46a62;
    --color-primary-fg: #fffdf8;
    --color-border: rgb(239 232 216 / 12%);
    --color-border-strong: rgb(239 232 216 / 22%);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--color-bg); color: var(--color-fg); font-family: var(--font-sans); line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--color-primary); text-decoration-color: var(--color-border-strong); text-underline-offset: .2em; }
a:hover { color: var(--color-primary-hover); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 5px; border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--color-fg); text-wrap: balance; }
h1, h2 { font-family: var(--font-serif); }
h1 { margin: .65rem 0 1.1rem; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; line-height: 1.35; letter-spacing: .035em; }
h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 600; line-height: 1.5; }
h3 { margin: 1.5rem 0 .55rem; font-size: 1.08rem; font-weight: 600; line-height: 1.6; }
p { margin: .8rem 0; }
ul, ol { padding-left: 1.5rem; }
li { margin: .45rem 0; }
strong { color: var(--color-fg); }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 2.5rem 0; }
.wt-skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .5rem 1rem; background: var(--color-surface); border: 1px solid var(--color-primary); }
.wt-skip-link:focus { top: .5rem; }
.wt-site-header { border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.wt-header-inner { display: flex; align-items: center; gap: 2rem; max-width: 1160px; margin: auto; padding: 1.15rem 1.5rem; }
.wt-brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: .6rem; color: var(--color-fg); text-decoration: none; font-family: var(--font-serif); font-size: 1.4rem; letter-spacing: .08em; font-weight: 600; }
.wt-brand-seal { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid var(--color-primary); border-radius: 3px; color: var(--color-primary); font-size: 1.05rem; }
.wt-brand-ai { margin-left: .15rem; font-family: var(--font-sans); font-size: .75em; letter-spacing: .02em; }
.wt-primary-nav { display: flex; flex: 1; justify-content: center; gap: 1.2rem; }
.wt-primary-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-muted); font-size: .88rem; white-space: nowrap; text-decoration: none; }
.wt-primary-nav a:hover { color: var(--color-primary); }
.wt-btn-accent, .wt-btn-secondary, .wt-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .6rem 1.2rem; border: 1px solid var(--color-primary); border-radius: var(--radius-sm); background: var(--color-primary); color: var(--color-primary-fg); font-weight: 600; font-size: .94rem; text-decoration: none; }
.wt-btn-accent:hover, .wt-button:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: var(--color-primary-fg); }
.wt-btn-small { min-height: 44px; padding: .4rem .95rem; white-space: nowrap; font-size: .85rem; }
.wt-btn-secondary { background: transparent; color: var(--color-primary); border-color: var(--color-border-strong); }
.wt-btn-secondary:hover { background: var(--color-bg-subtle); color: var(--color-primary-hover); }
.wt-page-shell { width: min(100% - 3rem, 1000px); margin: 0 auto; padding: 1.5rem 0 4.5rem; }
.wt-breadcrumbs { color: var(--color-subtle); font-size: .8rem; }
.wt-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .65rem; padding: 0; margin: 0; list-style: none; }
.wt-breadcrumbs li { margin: 0; }
.wt-breadcrumbs li + li::before { content: "/"; margin-right: .65rem; color: var(--color-border-strong); }
.wt-breadcrumbs a { display: inline-block; min-height: 44px; padding-block: .65rem; color: var(--color-muted); text-decoration: none; }
.wt-page-heading { padding: 2.5rem 0 2.3rem; border-bottom: 1px solid var(--color-border); margin-bottom: 2rem; }
.wt-eyebrow { margin: 0; color: var(--color-primary); font-size: .75rem; font-weight: 600; letter-spacing: .15em; }
.wt-lead { max-width: 48rem; color: var(--color-muted); font-size: 1.03rem; line-height: 1.95; }
.wt-page-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 1.4rem 0 0; color: var(--color-subtle); font-size: .78rem; }
.wt-prose { color: var(--color-muted); font-size: 1rem; }
.wt-prose > p, .wt-prose > ul, .wt-prose > ol { max-width: 52rem; }
.wt-prose li::marker { color: var(--color-primary); }
.wt-section { margin: 3rem 0; }
.wt-section > h2:first-child { margin-top: 0; }
.wt-section > .wt-eyebrow + h2 { margin-top: .4rem; }
.wt-toc { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.4rem; padding: .8rem 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); font-size: .86rem; }
.wt-toc strong { font-weight: 600; }
.wt-toc ol, .wt-toc ul { display: flex; flex-wrap: wrap; gap: .25rem 1.3rem; list-style: none; margin: 0; padding: 0; }
.wt-toc li { margin: 0; }
.wt-toc a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-muted); text-decoration: none; }
.wt-toc a:hover { color: var(--color-primary); }
.wt-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.wt-card { display: flex; flex-direction: column; min-width: 0; padding: 1.55rem; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); }
.wt-card h2, .wt-card h3 { margin-top: .45rem; margin-bottom: .55rem; font-family: var(--font-serif); font-size: 1.2rem; }
.wt-card p { margin: .35rem 0 .9rem; color: var(--color-muted); font-size: .92rem; line-height: 1.85; }
.wt-card a { text-decoration: none; }
.wt-card[href] { color: var(--color-fg); text-decoration: none; }
.wt-card[href]:hover { border-color: var(--color-primary); }
.wt-card > strong { font-family: var(--font-serif); font-size: 1.2rem; }
.wt-card > span:not(.wt-card-tag) { color: var(--color-muted); font-size: .9rem; }
.wt-card > a:last-child { display: flex; align-items: center; min-height: 44px; margin-top: auto; font-weight: 600; font-size: .86rem; }
.wt-card-tag { color: var(--color-primary); font-size: .72rem; letter-spacing: .1em; }
.wt-callout, .wt-note, .note { padding: 1.15rem 1.35rem; margin: 1.5rem 0; border-left: 3px solid var(--color-primary); background: var(--color-bg-subtle); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--color-muted); }
.wt-callout h3 { margin-top: 0; }
.wt-callout p:first-child, .wt-note p:first-child { margin-top: 0; }
.wt-callout p:last-child, .wt-note p:last-child { margin-bottom: 0; }
.wt-example { border: 1px dashed var(--color-border-strong); border-radius: var(--radius-xl); background: var(--color-surface); padding: 1.5rem; margin: 1.7rem 0; }
.wt-example-label { display: inline-block; margin: 0 0 .75rem; color: var(--color-primary); font-size: .75rem; font-weight: 600; letter-spacing: .08em; }
.wt-example h3 { margin-top: .2rem; }
.wt-pillar-demo { display: grid; grid-template-columns: repeat(4, 1fr); margin: 1rem 0; gap: .6rem; }
.wt-pillar-demo > div { padding: .8rem .3rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); text-align: center; background: var(--color-bg); }
.wt-pillar-demo span, .wt-pillar-demo strong { display: block; }
.wt-pillar-demo span { font-size: .78rem; color: var(--color-subtle); }
.wt-pillar-demo strong { margin: .5rem 0; font-family: var(--font-serif); font-size: 1.25rem; }
.wt-table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin: 1.2rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; line-height: 1.8; }
th, td { border-bottom: 1px solid var(--color-border); padding: .9rem 1rem; vertical-align: top; }
th { color: var(--color-fg); font-weight: 600; background: var(--color-bg-subtle); }
td { color: var(--color-muted); background: var(--color-surface); }
tbody tr:last-child td { border-bottom: 0; }
.wt-calendar-pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; margin: 1.4rem 0; }
.wt-calendar-pager a { display: inline-flex; align-items: center; min-height: 44px; }
.wt-calendar-table { table-layout: fixed; }
.wt-calendar-table caption { padding: .8rem 1rem; color: var(--color-muted); text-align: left; }
.wt-calendar-table th, .wt-calendar-table td { overflow-wrap: anywhere; }
.wt-calendar-table th:first-child, .wt-calendar-table td:first-child { width: 26%; }
.wt-calendar-table th:nth-child(2), .wt-calendar-table td:nth-child(2) { width: 16%; }
.wt-calendar-table th:nth-child(3), .wt-calendar-table td:nth-child(3) { width: 32%; }
.wt-calendar-table th:nth-child(4), .wt-calendar-table td:nth-child(4) { width: 26%; }
.wt-steps { counter-reset: wt-step; list-style: none; padding: 0; margin: 1.25rem 0; }
.wt-steps > li { position: relative; padding: .2rem 0 1.2rem 3.1rem; }
.wt-steps > li::before { counter-increment: wt-step; content: "0" counter(wt-step); position: absolute; left: 0; top: .25rem; color: var(--color-primary); font-family: var(--font-serif); font-size: 1.25rem; }
.wt-steps h3 { margin: 0 0 .3rem; }
.wt-steps p { margin: .3rem 0; }
.wt-cta { padding: 1.8rem; margin: 2.5rem 0; background: var(--color-bg-subtle); border: 1px solid var(--color-border); border-radius: var(--radius-xl); }
.wt-cta h2 { margin: .4rem 0 .65rem; }
.wt-cta p { color: var(--color-muted); }
.wt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1rem 0 0; }
.wt-faq { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.wt-faq-item { border-bottom: 1px solid var(--color-border); }
.wt-faq-item summary { min-height: 44px; padding: 1.1rem 1.8rem 1.1rem 0; color: var(--color-fg); cursor: pointer; font-size: .98rem; }
.wt-faq-item summary::marker { color: var(--color-primary); }
.wt-faq-item p { margin: 0 0 1.2rem; max-width: 52rem; color: var(--color-muted); font-size: .94rem; }
.wt-related { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.wt-related-links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; margin: 1rem 0; padding: 0; }
.wt-related-links li { margin: 0; }
.wt-related-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; padding: .65rem 0; border-bottom: 1px solid var(--color-border); text-decoration: none; font-size: .92rem; }
.wt-related-links span { color: var(--color-subtle); }
.wt-site-footer { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.wt-footer-inner { max-width: 1160px; padding: 2.2rem 1.5rem; margin: auto; }
.wt-footer-brand { font-family: var(--font-serif); font-size: 1.2rem; color: var(--color-fg); }
.wt-footer-brand span { display: inline-block; margin-left: 1rem; color: var(--color-muted); font-family: var(--font-sans); font-size: .84rem; }
.wt-footer-inner nav { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: .5rem 0; }
.wt-footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .83rem; color: var(--color-muted); text-decoration: none; }
.wt-footer-note { max-width: 54rem; color: var(--color-subtle); font-size: .78rem; }
@media (min-width: 1000px) { .wt-card-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .wt-header-inner { flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .85rem 1.1rem; }
  .wt-primary-nav { order: 3; justify-content: flex-start; width: 100%; gap: 1.2rem; }
  .wt-primary-nav a { font-size: .82rem; }
  .wt-page-shell { width: min(100% - 2.2rem, 1000px); padding-top: .8rem; }
  .wt-page-heading { padding: 1.65rem 0 1.8rem; }
  .wt-lead { font-size: .96rem; }
  .wt-card-grid, .wt-related-links { grid-template-columns: 1fr; }
  .wt-card { padding: 1.25rem; }
  .wt-example, .wt-cta { padding: 1.2rem; }
  .wt-prose { font-size: .96rem; }
  th, td { padding: .7rem .7rem; font-size: .83rem; }
  .wt-calendar-table th, .wt-calendar-table td { padding: .65rem .45rem; font-size: .78rem; }
  .wt-footer-brand span { display: block; margin: .5rem 0 0; }
  .wt-footer-inner { padding: 1.7rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .wt-site-header, .wt-site-footer, .wt-skip-link, .wt-actions { display: none; }
  .wt-page-shell { width: 100%; padding: 0; }
  h2, h3 { break-after: avoid; }
  .wt-card, tr { break-inside: avoid; }
}
