:root {
  color-scheme: dark;
  --ink: #fbf8f4;
  --muted: #dbdce5;
  --accent: #ffc18c;
  --line: rgba(255, 255, 255, .2);
  --glass: rgba(7, 10, 20, .43);
  --radius: 26px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 35px; }
body { margin: 0; background: #101426; color: var(--ink); font: 16px/1.85 "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #ffca97; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.room-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #101426; }
.room-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.room-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,5,15,.58), rgba(3,5,15,.68)); }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.header, .home-panel, .page-panel, .footer { background: var(--glass); border: 1px solid rgba(255,255,255,.22); border-top-color: rgba(255,255,255,.38); border-radius: var(--radius); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 0 rgba(255,255,255,.04), 0 18px 55px rgba(0,0,0,.24); backdrop-filter: blur(9px) saturate(115%); -webkit-backdrop-filter: blur(9px) saturate(115%); }
.header { width: min(1160px, calc(100% - 80px)); margin: 28px auto 0; border-radius: 20px; background: rgba(7,10,20,.36); }
.header-inner { width: auto; min-height: 88px; margin: 0; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; line-height: 1.4; }
.brand img { width: 42px; filter: drop-shadow(0 0 12px #ff791b40); }
.brand strong { display: block; font-size: 21px; letter-spacing: .015em; }
.brand small { display: block; font-size: 11px; letter-spacing: .08em; color: #d5d5e1; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { color: #f0edf1; text-decoration: none; }
.nav a:hover { color: var(--accent); }
.skip { position: absolute; top: -100px; background: #151823; padding: 10px; z-index: 20; }
.skip:focus { top: 0; }
.home-panel { width: min(1160px, calc(100% - 80px)); margin: 28px auto; padding: 0 48px; overflow: hidden; }
.home-panel .wrap { width: 100%; }
.hero { min-height: 440px; display: flex; align-items: center; padding: 50px 0; }
.hero > div { max-width: 650px; }
.hero h1 { font-size: clamp(34px, 3.8vw, 51px); line-height: 1.5; letter-spacing: -.035em; font-weight: 800; margin: 18px 0 24px; text-shadow: 0 2px 22px #0004; }
.hero p { color: #eeedf4; font-size: 15px; line-height: 2.1; margin: 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #ffd0a4; }
.hero-kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ffa358; box-shadow: 0 0 13px #ff843c; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 10px; border: 1px solid #ffd0a4; background: linear-gradient(145deg, #ffb77e, #ff944b); color: #231005; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: inset 0 1px 0 #ffe5cd, 0 5px 22px #ff761e25; transition: box-shadow .2s; }
.button:hover { box-shadow: inset 0 1px 0 #ffe5cd, 0 5px 28px #ff761e50; text-decoration: none; }
.button.secondary { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); color: #ffe1c3; box-shadow: inset 0 1px 0 #ffffff15; }
.hero .button { margin-top: 26px; }
.section { padding: 42px 0; }
.section-tint { background: none; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { font-size: 24px; margin: 0; }
.section-heading p { font-size: 13px; color: var(--muted); margin: 0; }
.feature { display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid rgba(255,255,255,.2); border-top-color: rgba(255,255,255,.3); background: rgba(9,12,24,.25); border-radius: 18px; overflow: hidden; box-shadow: inset 0 1px 0 #ffffff08; }
.feature-image { display: flex; align-items: center; padding: 22px; background: rgba(255,255,255,.035); border-right: 1px solid #ffffff12; }
.feature-image img { border-radius: 12px; }
.feature-body { padding: 28px; }
.feature h3 { font-size: 23px; line-height: 1.65; margin: 14px 0; }
.feature h3 a { color: var(--ink); text-decoration: none; }
.feature h3 a:hover { color: var(--accent); }
.feature p { font-size: 14px; color: var(--muted); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; color: #ffdbb6; font-size: 12px; background: #ff9b5919; border: 1px solid #ffbc8545; }
.meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 18px 0; font-size: 12px; color: var(--muted); }
.text-link { font-size: 14px; font-weight: 600; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.principles h3 { font-size: 18px; margin: 10px 0; }
.principles p { font-size: 14px; color: var(--muted); }
.principle-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #ffffff0c; border: 1px solid #ffffff25; box-shadow: inset 0 1px 0 #ffffff20; color: var(--accent); font-size: 21px; }
.about-strip { display: flex; align-items: center; gap: 26px; padding: 30px 0 38px; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; border: 1px solid #ffc18c50; background: #ff9b5915; color: var(--accent); font: 36px Georgia,serif; box-shadow: inset 0 1px 0 #ffffff20; }
.about-strip h2 { font-size: 17px; margin: 0; }
.about-strip p { font-size: 14px; color: var(--muted); margin: 3px 0; }
.footer { width: min(1160px, calc(100% - 80px)); margin: 0 auto 28px; padding: 24px 28px; border-radius: 18px; font-size: 12px; color: var(--muted); }
.footer-inner { width: 100%; display: flex; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a { color: #e1dfe7; }
.page-panel { padding: 0 44px 40px; margin-block: 28px; background: rgba(6,9,18,.57); backdrop-filter: blur(12px) saturate(115%); -webkit-backdrop-filter: blur(12px) saturate(115%); }
.breadcrumb { font-size: 12px; padding-top: 28px; color: var(--muted); }
.article-header { max-width: 850px; padding: 28px 0; }
.article-header h1 { font-size: clamp(28px,3.4vw,40px); line-height: 1.65; margin: 18px 0; letter-spacing: .01em; }
.article-header .lede { color: #e1dfe7; max-width: 700px; font-size: 16px; }
.article-cover { max-width: 760px; margin: 0 0 40px; }
.article-cover img { width: 100%; max-height: 390px; object-fit: cover; border-radius: 14px; border: 1px solid #ffffff25; }
.article-cover figcaption { font-size: 11px; color: var(--muted); margin-top: 8px; }
.article-grid { display: grid; grid-template-columns: minmax(0,1fr) 225px; gap: 38px; align-items: start; }
.prose { min-width: 0; width: 100%; max-width: 100%; overflow-wrap: anywhere; font-size: 16px; line-height: 2; color: #eeedf3; }
.prose p { margin: 1.25em 0; }
.prose h2 { font-size: 25px; line-height: 1.6; margin: 2.6em 0 .9em; padding-bottom: 12px; border-bottom: 1px solid #ffc18c50; color: #fff; }
.prose h3 { font-size: 19px; margin: 2em 0 .8em; color: #fff; }
.prose ul,.prose ol { padding-left: 1.5em; }
.prose li { margin: .45em 0; }
.prose pre { background: rgba(3,6,15,.46); border: 1px solid #ffffff25; padding: 23px; border-radius: 12px; overflow: auto; position: relative; font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: inset 0 1px 0 #ffffff0b; }
.prose code { font: .9em ui-monospace,SFMono-Regular,Consolas,monospace; background: #ffffff0c; padding: .13em .35em; border-radius: 4px; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose blockquote { margin: 24px 0; padding: 4px 22px; border-left: 3px solid #ffb77e; background: #ff9b5910; color: #e3dee8; }
.table-wrap { overflow-x: auto; max-width: 100%; margin: 24px 0; }
.prose table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 14px; }
.prose th,.prose td { border: 1px solid var(--line); padding: 12px 15px; vertical-align: top; text-align: left; }
.prose th { background: #ffffff10; }
.prose td { background: #00000013; }
.toc { position: sticky; top: 24px; padding: 20px; border: 1px solid #ffffff26; background: #ffffff07; border-radius: 16px; font-size: 12px; box-shadow: inset 0 1px 0 #ffffff14; }
.toc summary { font-size: 14px; font-weight: 700; cursor: pointer; }
.toc ol { padding-left: 17px; }
.toc li { margin: 12px 0; line-height: 1.65; }
.toc a { color: #e0dce7; text-decoration: none; }
.toc a:hover { color: var(--accent); }
.download-box { background: #ff9b590c; border: 1px solid #ffc18c35; border-radius: 16px; padding: 26px; margin: 36px 0; box-shadow: inset 0 1px 0 #ffffff0e; }
.download-box h2 { margin: 0 0 12px; padding: 0; border: none; font-size: 20px; }
.download-box p { font-size: 13px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.author { margin-top: 45px; border-top: 1px solid var(--line); padding-top: 24px; display: flex; gap: 20px; align-items: center; }
.author p { font-size: 13px; margin: 3px 0; }
.read-end { margin-top: 40px; font-size: 14px; }
.copy { float: right; border: 1px solid #ffffff35; border-radius: 6px; color: #ffe1c3; background: #ffffff0c; padding: 3px 10px; font-size: 11px; margin: 0 0 10px 12px; cursor: pointer; }
.simple-page { max-width: 760px; padding: 38px 0 30px; min-height: 65vh; }
.simple-page h1 { font-size: 34px; }
.simple-page h2 { font-size: 22px; margin-top: 42px; }
.simple-page p,.simple-page li { line-height: 2; }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) { .header,.home-panel,.page-panel,.footer { background: rgba(7,10,20,.78); } }
@media(max-width:1000px) {
  .wrap,.header,.home-panel,.footer { width: calc(100% - 48px); }
  .home-panel { padding-inline: 32px; }
  .page-panel { padding-inline: 30px; }
  .header-inner { width: auto; }
  .footer-inner { width: 100%; }
  .article-grid { grid-template-columns: minmax(0,1fr) 205px; gap: 24px; }
  .feature-body { padding: 23px; }
  .nav { gap: 18px; }
}
@media(max-width:760px) {
  .wrap,.header,.home-panel,.footer { width: calc(100% - 28px); }
  .header { margin-top: 14px; border-radius: 17px; }
  .header-inner { width: auto; min-height: 0; flex-direction: column; align-items: flex-start; padding: 18px; gap: 16px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 10px; }
  .brand img { width: 33px; }
  .nav { width: 100%; gap: 24px; font-size: 12px; }
  .nav a { white-space: nowrap; }
  .nav .nav-policy { display: none; }
  .home-panel { margin-block: 18px; padding-inline: 24px; border-radius: 22px; }
  .hero { padding: 34px 0; min-height: 390px; }
  .hero h1 { font-size: clamp(25px,7.3vw,35px); margin: 16px 0 20px; }
  .hero p { font-size: 13px; }
  .hero-kicker { font-size: 11px; }
  .section { padding: 30px 0; }
  .section-heading { flex-direction: column; gap: 4px; margin-bottom: 22px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading p { font-size: 12px; }
  .feature { grid-template-columns: 1fr; }
  .feature-image { padding: 14px; border-right: 0; border-bottom: 1px solid #ffffff18; }
  .feature-image img { width: 100%; max-height: 230px; object-fit: cover; }
  .feature-body { padding: 20px; }
  .feature h3 { font-size: 20px; }
  .principles { grid-template-columns: 1fr; gap: 20px; }
  .principles > div { display: grid; grid-template-columns: 42px 1fr; gap: 0 16px; }
  .principles h3 { margin: 0; }
  .principles p { grid-column: 2; margin: 5px 0; }
  .about-strip { align-items: flex-start; gap: 16px; }
  .avatar { width: 48px; height: 48px; font-size: 29px; }
  .footer { padding: 22px; margin-bottom: 18px; }
  .footer-inner { width: 100%; flex-direction: column; }
  .footer-links { gap: 14px; }
  .page-panel { padding: 0 22px 28px; margin-block: 18px; border-radius: 22px; }
  .article-header { padding: 22px 0; }
  .article-header h1 { font-size: 26px; }
  .article-header .lede { font-size: 14px; }
  .article-cover { margin-bottom: 25px; }
  .article-grid { display: flex; flex-direction: column; gap: 24px; }
  .toc { position: static; order: -1; width: 100%; padding: 18px; }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 22px; }
  .prose pre { padding: 16px; }
  .simple-page { padding-top: 20px; }
  .simple-page h1 { font-size: 27px; }
  .download-box { padding: 20px; }
  .room-backdrop img { object-position: 59% center; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; }.button { transition: none; } }
.article-header h1, .simple-page h1 { text-wrap: balance; }
/* Amori's supplied profile image and social links. */
.brand img { border-radius: 50%; object-fit: cover; border: 1px solid #ffffff50; filter: none; }
.avatar { object-fit: cover; padding: 0; display: block; background: #101426; }
.social-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; text-decoration: none; color: #ffdab5; }
.social-link:hover { text-decoration: underline; }
.social-link span { font-size: 12px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 8px; font-size: 13px; }
.profile-heading { display: flex; align-items: center; gap: 22px; margin: 26px 0; }
.profile-heading .avatar { width: 80px; height: 80px; }
@media(max-width:1000px) { .nav { gap: 16px; }.nav .social-link span { display: none; } }
@media(max-width:760px) { .nav { gap: 20px; }.nav .social-link { margin-left: auto; }.profile-heading .avatar { width: 64px; height: 64px; } }
