:root {
  color-scheme: light;
  --paper: #f5f4ee;
  --ink: #24332c;
  --muted: #56655c;
  --line: #d4d9cf;
  --green: #345a46;
  --mint: #e5ebdf;
  --white: #fffef9;
  --surface-page: var(--paper);
  --surface-guide: var(--white);
  --surface-section: var(--mint);
  --surface-detail: #eff1e9;
  --font-body: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --font-display: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --leading-copy: 1.85;
  --leading-heading: 1.45;
  --leading-label: 1.45;
  --radius-panel: 24px;
  --section-space: clamp(64px, 8vw, 104px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--surface-page); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: var(--leading-copy); word-break: normal; line-break: strict; overflow-wrap: break-word; }
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, .button, .text-link, .site-footer a { min-block-size: 44px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #1c7152; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: -6rem; padding: .7rem 1rem; background: var(--white); z-index: 30; }
.skip:focus { top: 1rem; }
.site-header { position: sticky; top: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; margin-block: 16px 0; padding: 10px 24px; background: var(--surface-guide); border-radius: 22px; box-shadow: 0 8px 32px #24332c0d; }
.brand { min-inline-size: 0; min-block-size: 44px; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 14px; font-weight: 700; line-height: var(--leading-label); }
.brand-mark { flex-shrink: 0; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid #345a4680; border-radius: 2px; font-family: var(--font-display); font-size: 23px; font-weight: 400; line-height: 1; }
nav, .site-footer>div { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; font-size: 13px; line-height: var(--leading-label); }
nav a { display: inline-flex; align-items: center; min-block-size: 44px; text-decoration: none; padding: 8px 2px; }
nav a:hover, .site-footer a:hover { color: var(--green); text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; padding-block: 100px 76px; align-items: center; }
.edition { font-size: 12px; line-height: var(--leading-label); margin: 0 0 26px; color: var(--muted); }
.edition span { margin-left: 12px; border-left: 1px solid var(--line); padding-left: 12px; white-space: nowrap; }
h1 { font-size: clamp(32px, 3.7vw, 50px); line-height: 1.5; letter-spacing: -.025em; font-weight: 700; margin: 0 0 26px; max-inline-size: 14ic; }
.phrase { display: inline-block; max-inline-size: 100%; }
.lead { font-size: 15px; line-height: 1.95; max-inline-size: 34ic; color: var(--muted); margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 15px 24px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.5; border: 1px solid transparent; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #254633; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.5; text-decoration: underline; padding-block: 8px; }
.hero-note { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 20px 0 0; }
.specimen { background: var(--mint); border-radius: var(--radius-panel); padding: 26px 28px 22px; min-width: 0; }
.specimen-top, .specimen-bottom { display: flex; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; font-size: 10px; line-height: 1.5; color: #405546; }
.specimen-top { padding-bottom: 18px; border-bottom: 1px solid #bbc8b5; }
.specimen-top span:last-child { white-space: nowrap; }
.specimen-title { font-family: var(--font-display); font-size: clamp(27px, 2.8vw, 38px); font-weight: 500; line-height: 1.85; margin: 50px 0 46px; letter-spacing: .015em; }
.specimen-bottom { border-top: 1px solid #bbc8b5; padding-top: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 22px; align-items: center; }
.facts p { margin: 0; padding-inline: 20px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.facts p:first-child { padding-left: 0; }
.facts p:last-child { text-align: end; }
.facts strong { font-family: Georgia, serif; font-size: 28px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-right: 6px; }
.comparison, .guide, .scope { padding-block: var(--section-space); }
.section-heading { margin-bottom: 36px; max-inline-size: 43rem; }
.eyebrow { font-size: 12px; line-height: 1.5; color: var(--green); margin: 0 0 14px; }
h2 { font-size: clamp(24px, 2.5vw, 32px); line-height: var(--leading-heading); letter-spacing: -.015em; margin: 0 0 18px; font-weight: 700; }
.section-heading>p:last-child { color: var(--muted); font-size: 14px; line-height: 1.85; margin: 0; max-inline-size: 42ic; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.example { background: #ebece5; padding: 30px 36px 24px; border-radius: var(--radius-panel); min-width: 0; }
.after-example { background: var(--surface-guide); }
.example-label { font-size: 12px; line-height: 1.5; margin: 0 0 30px; color: var(--muted); }
.after-example .example-label { color: var(--green); font-weight: 700; }
.sample { max-width: 370px; min-height: 230px; }
.sample-title { font-size: clamp(24px, 2.7vw, 34px); font-weight: 700; margin: 0 0 24px; }
.sample-body { font-size: 14px; margin: 0; }
.before .sample-title { line-height: 1.05; letter-spacing: -.06em; }
.before .sample-body { line-height: 1.3; letter-spacing: .08em; }
.after .sample-title { line-height: 1.45; letter-spacing: normal; }
.after .sample-body { line-height: 1.8; letter-spacing: normal; }
.sample-meta { font-size: 11px; line-height: 1.6; margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.comparison-note { font-size: 12px; line-height: 1.75; color: var(--muted); margin: 20px 0 0; max-inline-size: 68ic; }
.comparison-note a { display: inline; }
.guide { background: var(--surface-guide); }
.guide-controls { margin-block: 32px; }
.search-label { display: block; font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.search-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
input[type=search] { flex: 1; min-width: 0; appearance: none; background: var(--white); border: 1px solid #a9b5a8; padding: 13px 16px; border-radius: 12px; color: var(--ink); font-size: 16px; line-height: 1.5; }
.reset { border: 0; background: none; color: var(--muted); font-size: 12px; line-height: 1.5; padding: 12px 5px; text-decoration: underline; text-underline-offset: 4px; }
.filters { display: flex; gap: 4px 8px; flex-wrap: wrap; }
.filter { background: transparent; border: 1px solid transparent; color: var(--muted); padding: 10px 13px; font-size: 12px; line-height: 1.5; border-radius: 999px; }
.filter.active { background: var(--green); color: white; }
.filter:hover:not(.active) { background: var(--surface-detail); color: var(--green); }
.result-count { margin: 20px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.rule { border-bottom: 1px solid var(--line); scroll-margin-top: 7rem; }
.rule:first-child { border-top: 1px solid var(--line); }
.rule summary { display: flex; align-items: baseline; gap: 20px; list-style: none; cursor: pointer; padding: 22px 8px; }
.rule summary::-webkit-details-marker { display: none; }
.rule-id { font-family: ui-monospace, monospace; color: var(--green); font-size: 12px; min-width: 32px; }
.rule-title { font-weight: 700; font-size: 15px; line-height: 1.7; }
.rule-mark { margin-left: auto; font-weight: 400; color: var(--muted); flex-shrink: 0; }
.rule[open] { background: var(--surface-detail); }
.rule[open] .rule-mark { transform: rotate(45deg); }
.rule-body { padding: 0 60px 30px; max-inline-size: 57rem; font-size: 14px; line-height: 1.85; }
.rule-body p { margin: 0 0 18px; }
.rule-body .basis { display: inline-block; font-size: 11px; line-height: 1.5; background: #dce4d6; border-radius: 4px; padding: 4px 8px; margin-bottom: 16px; }
.rule-body .when { color: var(--muted); font-size: 13px; line-height: 1.75; }
.rule-body dl { display: grid; grid-template-columns: 6em 1fr; gap: 14px 18px; margin: 26px 0; }
.rule-body dt { font-size: 12px; color: var(--green); padding-top: 2px; }
.rule-body dd { margin: 0; min-width: 0; }
.rule-body .sources { font-size: 11px; color: var(--muted); line-height: 1.75; }
.permalink { font-size: 11px; color: var(--muted); }
.use-section { background: var(--surface-section); padding-block: var(--section-space); }
.use-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.use-grid>div { min-width: 0; }
.use-grid h2 { max-inline-size: 12ic; }
.use-grid>div>p:not(.eyebrow) { color: #45584a; font-size: 14px; max-inline-size: 28ic; }
.install-panel { background: var(--white); padding: 30px; border-radius: var(--radius-panel); }
.panel-label { margin: 0 0 16px; font-size: 12px; line-height: 1.5; color: var(--muted); }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; font-size: 13px; }
pre code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }
.copy-button { background: var(--green); color: white; border: 1px solid var(--green); border-radius: 999px; padding: 11px 17px; font-size: 12px; line-height: 1.5; margin-top: 20px; }
.copy-button:hover { background: #254633; }
.install-alternative { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; line-height: 1.5; margin: 20px 0 28px; }
.install-alternative a { display: inline-flex; align-items: center; min-block-size: 44px; }
.prompt-label { padding-top: 28px; border-top: 1px solid var(--line); }
.prompt { font-size: 12px; line-height: 1.8; }
.prompt code { font-family: inherit; }
.secondary-copy { color: var(--green); background: transparent; }
.secondary-copy:hover { color: white; }
.copy-status { font-size: 12px; min-height: 1.75em; line-height: 1.75; margin: 16px 0 0; }
.basis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.basis-grid article { border-top: 1px solid #b8c3b1; padding-top: 20px; }
.basis-grid span { color: var(--green); font-size: 12px; line-height: 1.5; }
.basis-grid h3 { font-size: 16px; line-height: 1.6; margin: 12px 0; }
.basis-grid p { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 0; }
.scope-note { margin-top: 32px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 28px; border-top: 1px solid var(--line); padding-block: 28px 40px; }
.site-footer .brand { font-size: 12px; }
.site-footer a { display: inline-flex; align-items: center; }
.site-footer>div { font-size: 12px; gap: 20px; }
.site-footer>div>span { color: var(--muted); }
.resource-page { padding-block: var(--section-space); max-inline-size: 48rem; }
.resource-page h1 { font-size: clamp(30px, 4vw, 44px); }
.resource-list { padding: 0; margin: 36px 0; list-style: none; }
.resource-list li { padding-block: 24px; border-top: 1px solid var(--line); }
.resource-list a { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 700; }
.resource-list p { margin: 8px 0 0; font-size: 14px; }
@media (max-width: 1000px) {
  .hero { gap: 32px; grid-template-columns: 1.5fr 1fr; padding-top: 72px; }
  .specimen { padding: 24px; }
  .use-grid { gap: 36px; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 1.5rem; }
  .site-header { position: relative; top: auto; }
  .rule { scroll-margin-top: 1.5rem; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { align-items: center; gap: 4px 12px; padding: 12px 16px; border-radius: 18px; }
  .brand { font-size: 12px; gap: 9px; }
  .brand-mark { width: 30px; height: 30px; font-size: 21px; }
  nav { gap: 12px; font-size: 12px; }
  nav a { padding-inline: 0; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 48px; }
  h1 { font-size: clamp(30px, 7.7vw, 42px); line-height: 1.5; letter-spacing: -.02em; }
  .edition { font-size: 11px; margin-bottom: 20px; }
  .edition span { margin-left: 8px; padding-left: 8px; }
  .phrase { display: inline-block; max-inline-size: 100%; }
.lead { font-size: 14px; line-height: 1.85; }
  .hero-actions { gap: 12px 20px; }
  .button { padding: 13px 21px; font-size: 13px; gap: 28px; }
  .hero-actions .text-link { font-size: 12px; }
  .specimen { width: 100%; }
  .specimen-title { font-size: clamp(25px, 7.7vw, 34px); margin-block: 38px; }
  .facts { grid-template-columns: repeat(3, 1fr); padding-block: 20px; }
  .facts p { font-size: 10px; padding-inline: 8px; }
  .facts strong { display: block; font-size: 26px; margin: 0 0 6px; }
  .facts p:last-child { grid-column: 1/-1; padding: 18px 0 0; text-align: start; }
  .section-heading { margin-bottom: 28px; }
  .comparison-grid, .use-grid, .basis-grid { grid-template-columns: 1fr; }
  .comparison-grid { gap: 16px; }
  .example { padding: 26px; }
  .sample { min-height: 190px; }
  .sample-title { font-size: 29px; }
  .rule summary { gap: 10px; padding: 20px 2px; }
  .rule-title { font-size: 14px; }
  .rule-body { padding: 0 14px 28px; }
  .rule-body dl { grid-template-columns: 1fr; gap: 6px; }
  .rule-body dd { margin-bottom: 12px; }
  .search-row { gap: 10px; align-items: stretch; flex-wrap: wrap; }
  .search-row input { flex-basis: 100%; }
  .reset { padding-left: 0; padding-block: 4px; }
  .filter { font-size: 11px; padding: 10px; }
  .install-panel { padding: 24px; }
  .site-footer { padding-block: 24px 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
