:root {
  color-scheme: light;
  --paper: #f4faff;
  --ink: #203d5b;
  --muted: #526b82;
  --line: #d3e4ed;
  --accent: #087b86;
  --tint: #e7f6f8;
  --yellow: #ffe576;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.home-page { background: radial-gradient(ellipse at 88% 30%, #e1f4ff, transparent 65%), #f4faff; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, .table-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip { position: absolute; top: -6rem; left: 1rem; z-index: 10; padding: .5rem 1rem; background: white; }
.skip:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); background: #ffffff80; }
.header-inner, .footer-inner, main { max-width: 1240px; margin: auto; padding-inline: 48px; }
.header-inner { min-height: 104px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 750; letter-spacing: -.04em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-dot { width: 16px; height: 16px; flex-shrink: 0; background: #18b4be; border-radius: 6px; box-shadow: 5px -5px 0 var(--yellow); }
.brand-credit { display: block; font-size: 10px; font-weight: 500; letter-spacing: .08em; color: var(--muted); margin-top: -5px; }
nav { display: flex; gap: 24px; flex-wrap: wrap; }
nav a { font-size: 13px; color: var(--muted); }
.site-header nav a { text-decoration: none; padding: 8px 0; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--accent); text-decoration: underline; }
main { min-height: 65vh; padding-bottom: 88px; }
.home-page main { padding-bottom: 20px; }
.draft-note { margin-top: 20px; border: 1px solid #eadba5; border-radius: 10px; background: #fff8e1; padding: 9px 16px; font-size: 12px; color: #6a5629; }
h1, h2, h3 { line-height: 1.5; }
h1 { font-size: clamp(30px, 4.8vw, 54px); letter-spacing: -.04em; font-weight: 650; margin: 0 0 24px; }
.coming-soon { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 48px 0 56px; text-align: center; }
.coming-soon h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -.045em; line-height: 1.2; margin: 0; color: var(--accent); }
.character-art { width: min(100%, 440px); margin: 0; }
.character-art img { display: block; width: 100%; height: auto; border-radius: 36px; box-shadow: 0 24px 64px -36px #32649b80; }
.document-heading { padding: 44px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.back { font-size: 13px; }
.document-heading h1 { font-size: clamp(28px, 4vw, 40px); margin: 24px 0 8px; }
.document-heading p { margin: 0; font-size: 14px; color: var(--muted); }
.document-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 24px; font-size: 13px; }
.toc details { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.toc summary { font-weight: 600; cursor: pointer; margin-bottom: 12px; }
.toc nav { display: flex; flex-direction: column; gap: 12px; }
.toc a { font-size: 12px; text-decoration: none; line-height: 1.6; }
.toc a:hover { text-decoration: underline; }
.prose { min-width: 0; font-size: 15px; line-height: 2; }
.prose > p:first-child { margin-top: 0; color: var(--muted); font-size: 14px; }
.prose h2 { font-size: 21px; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 42px; }
.prose h2:first-of-type { border-top: 0; margin-top: 26px; padding-top: 0; }
.prose h3 { font-size: 17px; margin-top: 28px; }
.prose ol, .prose ul { padding-left: 1.5em; }
.prose li { padding-left: .3em; margin-bottom: 16px; }
.prose li > p { margin-top: 0; }
.table-scroll { overflow-x: auto; margin: 22px 0; }
table { border-collapse: collapse; font-size: 13px; min-width: 480px; width: 100%; line-height: 1.8; }
th, td { padding: 13px 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--tint); font-weight: 600; }
td { background: #fff; }
mark { background: #fff0ba; color: #62450d; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: .1em .15em; }
.support-panel { max-width: 740px; padding: 32px; background: white; border: 1px solid var(--line); border-radius: 20px; }
.support-panel h2 { margin-top: 0; font-size: 22px; }
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 13px 24px; border-radius: 100px; margin-top: 16px; font-size: 15px; }
.button:hover { background: #07626b; }
.small { font-size: 12px; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 12px; background: #ffffff60; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.footer-inner > p { margin: 0; }
footer nav { gap: 10px 22px; }
footer nav a { font-size: 12px; }
footer .copyright { font-size: 10px; letter-spacing: .03em; }
.intro { padding-block: 70px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; color: var(--accent); }
@media (max-width: 900px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 22px; }
  .document-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
}
@media (max-width: 640px) {
  .header-inner, .footer-inner, main { padding-inline: 24px; }
  .site-header nav { gap: 8px 18px; }
  .site-header nav a { font-size: 11px; }
  .brand { font-size: 21px; }
  .coming-soon { gap: 26px; padding-block: 32px 40px; }
  .character-art img { border-radius: 26px; }
  .toc nav { grid-template-columns: 1fr; }
  .support-panel { padding: 24px; }
  .prose { font-size: 14px; }
  .prose h2 { font-size: 19px; }
  .draft-note { font-size: 11px; padding: 8px 12px; }
  main { padding-bottom: 56px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
