:root {
  --ink: #1d1c19;
  --paper: #fbfaf7;
  --white: #fff;
  --line: #e4e0d7;
  --muted: #77736b;
  --gold: #b98723;
  --red: #ba1d26;
  --black: #20201e;
  --site-max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 Arial, Helvetica, sans-serif; }
a { color: var(--ink); }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-nav, .page-width, .hero-inner, .site-footer-inner { width: min(100%, var(--site-max)); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.site-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand, .site-brand:visited { flex: 0 0 auto; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: .09em; text-decoration: none; }
.site-brand b { color: var(--red); }
.site-menu { display: flex; align-items: center; gap: 24px; }
.site-menu a, .site-menu a:visited { padding: 7px 0 5px; color: var(--ink); font-size: 14px; text-decoration: none; white-space: nowrap; }
.site-menu a:hover, .site-menu a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-menu a.is-active { border-bottom: 2px solid var(--gold); }
.hero { background: var(--black); color: #fff; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 270px; padding-top: 45px; padding-bottom: 45px; }
.eyebrow { color: #d5b15e; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; }
h1 { max-width: 760px; margin: 12px 0; font-size: clamp(40px, 5vw, 66px); line-height: 1.08; }
.hero-copy { margin: 0; color: #c9c6c0; }
.kanji { color: #fff; font: 170px/1 serif; opacity: .13; }
main.page-width { padding-top: 48px; padding-bottom: 74px; }
.lead { max-width: 780px; margin: 0; font: 25px/1.5 Georgia, serif; }
.notice { margin: 32px 0; padding: 18px 21px; border-left: 3px solid var(--gold); background: var(--white); color: var(--muted); }
.section { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 12px; font-size: 32px; }
.section p, .section li { color: var(--muted); }
.section li { margin: 8px 0; }
.section strong { color: var(--ink); }
blockquote { margin: 30px 0; padding: 23px 27px; border-left: 3px solid var(--gold); background: var(--white); font: 25px/1.4 Georgia, serif; }
.site-footer { background: var(--black); color: #d4d1cb; }
.site-footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 38px; padding-bottom: 30px; }
.site-footer h2 { margin: 0 0 8px; color: #fff; font-size: 17px; letter-spacing: .08em; }
.site-footer p { max-width: 330px; margin: 0; color: #a9a69f; font-size: 13px; }
.site-footer h3 { margin: 0 0 9px; color: #d5b15e; font: 700 11px/1.4 Arial, sans-serif; letter-spacing: .13em; }
.site-footer a, .site-footer a:visited { display: block; width: fit-content; margin: 5px 0; color: #d4d1cb; font-size: 13px; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #484641; }
.footer-bottom .site-footer-inner { display: block; padding-top: 14px; padding-bottom: 16px; color: #a9a69f; font-size: 12px; }

/* Dictionary */
.dictionary-intro { display: flex; justify-content: space-between; gap: 22px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.dictionary-intro p { max-width: 760px; margin: 0; color: var(--muted); }
.dictionary-intro strong { color: var(--ink); }
.total { align-self: center; color: var(--red); font-size: 13px; font-weight: 700; white-space: nowrap; }
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 48px; }
.jump-links a { padding: 9px 12px; border: 1px solid var(--line); background: var(--white); font-size: 13px; text-decoration: none; }
.jump-links a:hover { border-color: var(--gold); }
.category-section { margin-bottom: 64px; scroll-margin-top: 20px; }
.category-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--gold); }
.category-number { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.category-head h2 { margin: 6px 0 0; font-size: 32px; }
.category-jp { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.category-description { max-width: 370px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.term-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.term-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.term-copy { padding: 14px; font-size: 15px; line-height: 1.4; }
.term-native { display: flex; gap: 7px; overflow: hidden; white-space: nowrap; }
.term-romaji, .term-jp, .term-en { overflow: hidden; font-size: inherit; text-overflow: ellipsis; white-space: nowrap; }
.term-romaji { color: var(--muted); }
.term-jp { color: var(--red); }
.term-en { margin-top: 4px; color: var(--ink); }
.term-list { margin-top: 18px; overflow-x: auto; }
.term-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.term-table td { padding: 16px 10px 16px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.term-table tr:last-child td { border-bottom: 1px solid var(--line); }
.term-table td:nth-child(1), .term-table td:nth-child(2), .term-table td:nth-child(3) { white-space: nowrap; }
.term-table .term-summary { width: 100%; padding-right: 0; color: var(--muted); }
.image-frame { position: relative; display: grid; aspect-ratio: 1; place-items: center; overflow: hidden; background: #f1efe9; }
.image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-frame img[data-lightbox] { cursor: zoom-in; }
.image-frame img[data-lightbox]:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.image-lightbox { width: auto; max-width: none; height: auto; max-height: none; padding: 0; overflow: visible; border: 0; background: transparent; }
.image-lightbox::backdrop { background: rgba(0, 0, 0, .84); }
.image-lightbox-inner { position: relative; display: grid; place-items: center; }
.image-lightbox-image { display: block; width: auto; max-width: calc(100vw - 40px); height: auto; max-height: calc(100vh - 40px); object-fit: contain; box-shadow: 0 12px 50px rgba(0, 0, 0, .45); }
.image-lightbox-close { position: absolute; top: 8px; right: 8px; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .72); color: #fff; font: 32px/1 Arial, sans-serif; cursor: pointer; }
.image-lightbox-close:hover { background: #000; }
.image-lightbox-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
body.lightbox-open { overflow: hidden; }
.placeholder { display: none; padding: 18px; color: var(--muted); text-align: center; }
.image-frame.missing .placeholder { display: block; }
.placeholder-summary { margin: 0; font-size: 16px; line-height: 1.55; }
.loading { padding: 50px 0; color: var(--muted); }

/* Rules */
.rule-grid { display: grid; gap: 12px; margin-top: 28px; }
.rule { display: grid; grid-template-columns: 160px 1fr 360px; gap: 24px; align-items: start; padding: 25px; border: 1px solid var(--line); background: var(--white); }
.tag { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.rule h2 { margin: 0 0 8px; font-size: 29px; }
.rule p { margin: 0; color: var(--muted); }
.rule-figure { margin: 0 0 20px; }
.rule-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.rule-figure figcaption { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding-left: 22px; border-left: 1px solid var(--line); font-size: 13px; }
.facts span { color: var(--muted); }
.facts b { display: block; color: var(--ink); font-weight: 400; }

/* Contact and Coming soon */
.contact-form, .message-box, .coming-soon { padding: 28px; border-top: 3px solid var(--gold); background: var(--white); box-shadow: 0 7px 18px rgba(0,0,0,.05); }
.field { margin-bottom: 22px; }.field label { display: block; margin-bottom: 7px; font-weight: 700; }
.field select, .field input, .field textarea { width: 100%; padding: 12px; border: 1px solid #cfcac0; background: var(--white); color: var(--ink); font: inherit; }
.field textarea { min-height: 180px; resize: vertical; }.field.error select, .field.error input, .field.error textarea { border: 2px solid var(--red); background: #fff8f8; }
.error-text { margin: 6px 0 0; color: var(--red); font-size: 14px; }.form-error { margin: 0 0 20px; padding: 12px; background: #fff1f1; color: var(--red); }
.button-row { display: flex; justify-content: flex-end; gap: 12px; }.button { padding: 13px 20px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }.button.secondary { background: var(--white); color: var(--ink); }
.review { margin: 0 0 24px; }.review dt { margin-top: 16px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.review dd { margin: 3px 0; white-space: pre-wrap; }
.honeypot { position: absolute; left: -9999px; }.success { border-top-color: #3f7c4b; }.failed { border-top-color: var(--red); }
.coming-soon { max-width: 680px; }.coming-soon h2 { margin: 0 0 10px; font-size: 34px; }.coming-soon p { margin: 0; color: var(--muted); }.coming-soon .eyebrow { margin-bottom: 14px; color: var(--red); }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }.home-card { display: block; min-height: 220px; padding: 24px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; }.home-card:hover { border-color: var(--gold); }.home-card .eyebrow { color: var(--red); }.home-card h2 { margin: 30px 0 9px; font-size: 29px; }.home-card p { margin: 0; color: var(--muted); }

/* Styles */
.styles-hero .hero-copy { max-width: 690px; }
.styles-page { overflow: hidden; }
.styles-page .eyebrow { color: var(--red); }
.styles-intro { display: grid; grid-template-columns: .75fr 1.6fr; gap: 70px; align-items: start; }
.styles-intro h2, .section-heading h2, .roots-section h2, .choose-heading h2, .terms-strip h2 { margin: 9px 0 0; font-size: clamp(32px, 4vw, 47px); line-height: 1.15; }
.styles-intro .lead { margin-bottom: 18px; font-size: 23px; }
.styles-intro p:not(.lead) { margin: 0; color: var(--muted); }
.style-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 46px 0 72px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.style-jump span { align-self: center; margin-right: 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.style-jump a { padding: 7px 11px; border: 1px solid var(--line); background: var(--white); font-size: 13px; text-decoration: none; }
.style-jump a:hover, .style-jump a:focus-visible { border-color: var(--gold); }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 26px; }
.section-heading > p { max-width: 380px; margin: 0 0 4px; color: var(--muted); font-size: 14px; text-align: right; }
.style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.style-card { min-width: 0; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); scroll-margin-top: 20px; }
.style-card-head { display: flex; justify-content: space-between; align-items: start; }
.style-number { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.style-kanji { color: var(--gold); font: 24px/1.2 Georgia, serif; }
.style-card h3 { margin: 26px 0 2px; font-size: 37px; line-height: 1.1; }
.style-origin { margin: 0 0 21px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.style-card > p:not(.style-origin) { min-height: 80px; margin: 0; color: var(--muted); }
.style-facts { margin: 27px 0 0; border-top: 1px solid var(--line); }
.style-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.style-facts dt { color: var(--muted); font-size: 12px; }
.style-facts dd { margin: 0; font-size: 13px; font-weight: 700; }
.style-compare, .other-styles { margin-top: 90px; }
.style-table-wrap { overflow-x: auto; border-top: 3px solid var(--gold); background: var(--white); }
.style-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.style-table th, .style-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.style-table thead th { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.style-table tbody th { font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.style-table tbody td { color: var(--muted); font-size: 14px; }
.table-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.roots-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: center; margin-top: 90px; padding: 55px; background: var(--black); color: #fff; }
.roots-copy p { color: #bbb8b1; }
.lineage { text-align: center; }
.lineage-top, .lineage-bottom { padding: 17px; border: 1px solid #68655e; background: #292926; font-family: Georgia, serif; }
.lineage span { display: block; margin-top: 2px; color: #d5b15e; font: 13px/1.4 Arial, sans-serif; }
.lineage-branches { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 38px 0; }
.lineage-branches::before, .lineage-branches::after { position: absolute; left: 50%; width: 1px; height: 38px; background: #68655e; content: ""; }
.lineage-branches::before { top: 0; }.lineage-branches::after { bottom: 0; }
.lineage-branches div { position: relative; z-index: 1; padding: 14px 8px; border: 1px solid #68655e; background: var(--black); font-size: 13px; }
.lineage-branches b { font-weight: 400; }
.other-style-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.other-style-list > div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.other-style-list span { float: right; color: var(--gold); }
.other-style-list h3 { margin: 3px 0 5px; font-size: 22px; }
.other-style-list p { margin: 0; color: var(--muted); font-size: 13px; }
.choosing-section { display: grid; grid-template-columns: .85fr 1.4fr; gap: 70px; margin-top: 90px; padding-top: 45px; border-top: 2px solid var(--gold); }
.choose-heading p { color: var(--muted); }
.choose-list { margin: 0; padding: 0; list-style: none; }
.choose-list li { display: grid; grid-template-columns: 55px 1fr; gap: 17px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.choose-list li:first-child { padding-top: 0; }
.choose-list li > span { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.choose-list h3 { margin: -4px 0 3px; font-size: 21px; }
.choose-list p { margin: 0; color: var(--muted); font-size: 14px; }
.terms-strip { display: grid; grid-template-columns: .8fr 1.7fr; gap: 50px; margin-top: 90px; padding: 34px; background: #eeeae2; }
.terms-strip h2 { font-size: 30px; }
.terms-strip dl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 0; }
.terms-strip dt { font-family: Georgia, serif; font-size: 17px; }
.terms-strip dt span { display: block; color: var(--red); font: 12px/1.5 Arial, sans-serif; }
.terms-strip dd { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

@media (max-width: 900px) { .site-menu { gap: 15px; }.term-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.category-description { display: none; }.rule { grid-template-columns: 120px 1fr; }.facts { grid-column: 2; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; } }
@media (max-width: 900px) { .styles-intro, .roots-section, .choosing-section { gap: 36px; }.roots-section { padding: 40px 30px; }.terms-strip { grid-template-columns: 1fr; }.terms-strip dl { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 700px) { .site-nav, .page-width, .hero-inner, .site-footer-inner { padding-left: 18px; padding-right: 18px; }.site-nav { min-height: 60px; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 12px; }.site-menu { display: flex; flex: 0 0 100%; flex-wrap: wrap; gap: 4px 18px; max-width: none; overflow: visible; }.site-menu a, .site-menu a:visited { padding-top: 5px; padding-bottom: 5px; }.hero-inner { min-height: 235px; padding-top: 38px; padding-bottom: 38px; }.kanji { display: none; }.site-footer-inner { grid-template-columns: 1fr 1fr; }.site-footer-inner > :first-child { grid-column: 1 / -1; }.rule { grid-template-columns: 1fr; gap: 10px; }.facts { grid-column: auto; }.button-row { flex-direction: column-reverse; }.button { width: 100%; } }
@media (max-width: 700px) { .styles-intro, .roots-section, .choosing-section { grid-template-columns: 1fr; }.style-grid { grid-template-columns: 1fr; }.style-card > p:not(.style-origin) { min-height: 0; }.section-heading { display: block; }.section-heading > p { margin-top: 10px; text-align: left; }.other-style-list { grid-template-columns: repeat(2, 1fr); }.roots-section { margin-right: -18px; margin-left: -18px; padding: 42px 18px; }.terms-strip { margin-right: -18px; margin-left: -18px; padding: 30px 18px; }.terms-strip dl { grid-template-columns: repeat(2, 1fr); }.style-compare, .other-styles, .roots-section, .choosing-section, .terms-strip { margin-top: 68px; } }
@media (max-width: 600px) { .dictionary-intro { display: block; }.total { display: block; margin-top: 12px; }.term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.category-section { margin-bottom: 50px; }.category-head h2 { font-size: 28px; }.lead { font-size: 21px; }.term-table { min-width: 720px; } }
@media (max-width: 600px) { .image-lightbox-image { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }.image-lightbox-close { top: 6px; right: 6px; } }
@media (max-width: 700px) { .home-grid { grid-template-columns: 1fr; } }

/* Styles: three-group editorial framework */
.viewpoint { display: grid; grid-template-columns: .8fr 1.55fr; gap: 72px; align-items: start; }
.viewpoint h2, .group-identity h2, .organisation-intro h2, .classification-close > p { margin: 9px 0 0; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.1; }
.viewpoint-copy .lead { margin-bottom: 20px; font-size: 24px; }
.viewpoint-copy > p:not(.lead) { margin: 0 0 14px; color: var(--muted); }
.editorial-note { display: grid; grid-template-columns: 70px 1fr; gap: 22px; align-items: center; margin: 46px 0 0; padding: 28px 34px; border-top: 3px solid var(--gold); background: var(--white); }
.note-mark { height: 58px; color: var(--gold); font: 80px/.95 Georgia, serif; }
.editorial-note strong { font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.editorial-note p { margin: 4px 0 0; color: var(--muted); }
.group-section { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.55fr); margin-top: 88px; border: 1px solid var(--line); background: var(--white); scroll-margin-top: 20px; }
.group-identity { position: relative; overflow: hidden; padding: 42px 38px; background: var(--black); color: #fff; }
.group-identity::after { position: absolute; right: -22px; bottom: -75px; color: rgba(255,255,255,.035); font: 220px/1 Georgia, serif; content: "03"; }
.group-okinawa .group-identity::after { content: "01"; }.group-traditional .group-identity::after { content: "02"; }
.group-number { display: block; color: #d5b15e; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.group-japanese { display: block; min-height: 54px; margin-top: 16px; color: #d5b15e; font: 20px/1.3 Georgia, serif; }
.group-identity .eyebrow { color: #aaa69e; }
.group-identity h2 { position: relative; z-index: 1; margin-top: 14px; }
.group-summary { position: relative; z-index: 1; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid #55524d; color: #c8c5be; font-size: 14px; }
.group-content { padding: 42px; }
.group-content > p { margin: 0 0 16px; color: var(--muted); }
.group-content > p:first-child { color: var(--ink); font: 20px/1.55 Georgia, serif; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-list > div { min-width: 0; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-list span { display: block; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.feature-list b { display: block; margin-top: 12px; font-family: Georgia, serif; font-size: 17px; font-weight: 400; }
.feature-list small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.representative-styles { display: flex; gap: 22px; align-items: center; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.representative-styles > span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.representative-styles ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.representative-styles li { padding: 8px 11px; background: #f1eee7; font-size: 13px; }
.representative-styles li b { font-weight: 400; }.representative-styles li small { margin-left: 6px; color: var(--red); }
.group-comparison { margin-top: 90px; }
.organisation-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 58px; margin-top: 90px; padding: 55px; background: var(--black); color: #fff; }
.organisation-intro p { color: #bbb8b1; }
.diagram-note { margin-top: 28px !important; padding: 16px 18px; border-left: 2px solid #d5b15e; background: #292926; font-size: 12px; }
.diagram-note strong { color: #fff; }
.organisation-map { min-width: 0; }
.tree-root, .tree-primary { padding: 18px 20px; border: 1px solid #68655e; background: #292926; text-align: center; }
.tree-kicker { display: block; margin-bottom: 6px; color: #d5b15e; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.tree-root b, .tree-primary b { display: block; font: 700 22px/1.3 Georgia, serif; }
.tree-root small, .tree-primary small, .tree-related small { display: block; margin-top: 2px; color: #d5b15e; font-size: 11px; }
.tree-trunk { width: 1px; height: 22px; margin: 0 auto; background: #68655e; }
.tree-group { padding: 18px; border: 1px solid #68655e; }
.tree-primary { border: 0; background: #363633; }
.tree-children { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.tree-children span { padding: 9px 6px; background: #292926; color: #cfccc5; font-size: 10px; text-align: center; }
.tree-children b { display: block; color: #fff; font: 700 13px/1.3 Georgia, serif; }
.tree-children small { display: block; margin-top: 4px; color: #d5b15e; font-size: 11px; line-height: 1.4; }
.tree-related-title { margin: 25px 0 9px; color: #aaa69e; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-align: center; }
.tree-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tree-related > div { min-width: 0; padding: 12px 8px; border: 1px solid #55524d; text-align: center; }
.tree-related b { display: block; font: 700 13px/1.3 Georgia, serif; }
.tree-related em { display: block; margin-top: 6px; color: #aaa69e; font-size: 9px; font-style: normal; }
.tree-related em strong { color: #cfccc5; font-weight: 700; }
.classification-close { margin-top: 90px; padding: 45px; border-top: 3px solid var(--gold); background: var(--white); text-align: center; }
.classification-close > p { max-width: 900px; margin: 14px auto 25px; font-size: clamp(25px, 3.3vw, 39px); }
.classification-close a { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid var(--gold); font-size: 13px; font-weight: 700; text-decoration: none; }
.classification-close a span { margin-left: 8px; color: var(--red); }

@media (max-width: 900px) {
  .viewpoint { gap: 38px; }
  .group-section { grid-template-columns: minmax(240px, .7fr) minmax(0, 1.4fr); }
  .group-identity, .group-content { padding: 30px; }
  .feature-list { grid-template-columns: 1fr; }
  .organisation-section { grid-template-columns: 1fr; padding: 40px 30px; }
}
@media (max-width: 700px) {
  .viewpoint, .group-section { grid-template-columns: 1fr; }
  .editorial-note { grid-template-columns: 42px 1fr; padding: 24px 20px; }
  .note-mark { font-size: 58px; }
  .group-section { margin-top: 64px; }
  .group-japanese { min-height: 0; }
  .group-identity, .group-content { padding: 28px 22px; }
  .representative-styles { display: block; }
  .representative-styles ul { margin-top: 10px; }
  .organisation-section, .classification-close { margin-right: -18px; margin-left: -18px; }
  .organisation-section { margin-top: 68px; padding: 38px 18px; }
  .tree-children, .tree-related { grid-template-columns: repeat(2, 1fr); }
  .classification-close { margin-top: 68px; padding: 38px 18px; }
}
@media (max-width: 430px) {
  .tree-children, .tree-related { grid-template-columns: 1fr; }
}

/* Home */
.home-hero .hero-copy { max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 28px; }
.hero-actions a { color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.hero-primary { padding: 12px 18px; background: var(--red); }
.hero-primary:hover, .hero-primary:focus-visible { background: #d12630; }
.hero-secondary { padding-bottom: 3px; border-bottom: 1px solid #d5b15e; }
.hero-secondary span { margin-left: 7px; color: #d5b15e; }
.home-page .eyebrow { color: var(--red); }
.home-introduction { display: grid; grid-template-columns: .85fr 1.45fr; gap: 70px; align-items: start; }
.home-introduction h2, .learning-path h2, .home-styles h2, .rules-feature h2, .home-discover h2 { margin: 9px 0 0; font-size: clamp(33px, 4.2vw, 49px); line-height: 1.13; }
.home-introduction .lead { margin-bottom: 18px; font-size: 23px; }
.home-introduction p:not(.lead) { margin: 0; color: var(--muted); }
.learning-path, .home-discover { margin-top: 88px; }
.learning-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.learning-card { position: relative; min-width: 0; min-height: 350px; overflow: hidden; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); text-decoration: none; }
.learning-card:hover, .learning-card:focus-visible { z-index: 1; outline: 2px solid var(--gold); outline-offset: -2px; }
.learning-card.featured { background: var(--black); color: #fff; }
.learning-number { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.learning-card.featured .learning-number, .learning-card.featured .eyebrow { color: #d5b15e; }
.learning-kanji { position: absolute; top: 14px; right: 22px; color: var(--gold); font: 54px/1 Georgia, serif; opacity: .22; }
.learning-card .eyebrow { margin-top: 65px; }
.learning-card h3 { margin: 10px 0; font-size: 34px; }
.learning-card p { margin: 0; color: var(--muted); font-size: 14px; }
.learning-card.featured p { color: #bbb8b1; }
.learning-card strong { position: absolute; right: 30px; bottom: 28px; left: 30px; font-size: 12px; }
.learning-card strong span { float: right; color: var(--red); }
.home-styles { display: grid; grid-template-columns: .8fr 1.55fr; gap: 55px; margin-top: 90px; padding: 52px; background: var(--black); color: #fff; }
.home-styles-intro p { color: #bbb8b1; }
.home-styles-intro > a, .rules-feature a { display: inline-block; margin-top: 12px; padding-bottom: 3px; border-bottom: 1px solid #d5b15e; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.home-styles-intro > a span, .rules-feature a span { margin-left: 7px; color: #d5b15e; }
.home-style-groups { border-top: 1px solid #55524d; }
.home-style-groups a { position: relative; display: grid; grid-template-columns: 40px 1fr; padding: 22px 0; border-bottom: 1px solid #55524d; color: #fff; text-decoration: none; }
.home-style-groups a:hover h3, .home-style-groups a:focus-visible h3 { color: #d5b15e; }
.home-style-groups a > span { grid-row: 1 / 4; color: #d5b15e; font-size: 11px; font-weight: 700; }
.home-style-groups small { color: #d5b15e; font-size: 11px; }
.home-style-groups h3 { margin: 2px 0 3px; font-size: 24px; }
.home-style-groups p { margin: 0; color: #aaa69e; font-size: 12px; }
.rules-feature { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; overflow: hidden; margin-top: 90px; padding: 45px 0; border-top: 2px solid var(--gold); border-bottom: 1px solid var(--line); }
.rules-feature > div:not(.rules-feature-number) { position: relative; z-index: 1; }
.rules-feature p { margin: 0; color: var(--muted); }
.rules-feature a { color: var(--ink); }
.rules-feature-number { position: absolute; right: 0; bottom: -70px; color: #eeeae2; font: 190px/1 Georgia, serif; }
.discover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.discover-grid a { min-height: 220px; padding: 25px; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.discover-grid a:hover, .discover-grid a:focus-visible { border-color: var(--gold); }
.discover-status { color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.discover-grid h3 { margin: 45px 0 7px; font-size: 27px; }
.discover-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.home-closing { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-top: 88px; padding: 30px 36px; background: #eeeae2; }
.home-closing > span { color: var(--gold); font: 55px/1 Georgia, serif; }
.home-closing p { max-width: 780px; margin: 5px 0 0; font: 22px/1.4 Georgia, serif; }

@media (max-width: 900px) {
  .home-introduction, .home-styles, .rules-feature { gap: 36px; }
  .home-styles { padding: 40px 30px; }
  .learning-card { padding: 24px; }
  .learning-card strong { right: 24px; left: 24px; }
}
@media (max-width: 700px) {
  .home-introduction, .home-styles, .rules-feature { grid-template-columns: 1fr; }
  .learning-grid, .discover-grid { grid-template-columns: 1fr; }
  .learning-card { min-height: 295px; }
  .home-styles { margin-right: -18px; margin-left: -18px; padding: 40px 18px; }
  .learning-path, .home-styles, .rules-feature, .home-discover, .home-closing { margin-top: 68px; }
  .rules-feature { gap: 22px; }
  .home-closing { margin-right: -18px; margin-left: -18px; padding: 28px 18px; }
}

/* 2026 visual refinement */
:root {
  --ink: #181815;
  --paper: #f8f6f1;
  --line: #ded9ce;
  --muted: #6f6b63;
  --gold: #b58a35;
  --red: #b51f2a;
  --black: #191917;
  --shadow-soft: 0 18px 45px rgba(32, 28, 20, .08);
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(181, 138, 53, .035), transparent 24rem),
    var(--paper);
  font-family: Inter, "Aptos", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -.025em; }
p { text-wrap: pretty; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(181, 138, 53, .65); outline-offset: 4px; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom-color: rgba(222, 217, 206, .85);
  background: rgba(248, 246, 241, .94);
  box-shadow: 0 6px 24px rgba(30, 28, 23, .04);
  backdrop-filter: blur(14px);
}
.site-nav { min-height: 78px; }
.site-brand, .site-brand:visited { font-size: 17px; letter-spacing: .13em; }
.site-menu a, .site-menu a:visited { position: relative; color: #4e4b45; font-weight: 600; }
.site-menu a.is-active { border-bottom: 0; color: var(--ink); }
.site-menu a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
}

.hero { position: relative; overflow: hidden; background: linear-gradient(118deg, #171715 0%, #22221f 100%); }
.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(181, 31, 42, .15) 0 2px, transparent 2px) 10% 0 / 1px 100% no-repeat,
    radial-gradient(circle at 80% 45%, rgba(181, 138, 53, .11), transparent 28%);
  content: "";
  pointer-events: none;
}
.hero-inner { position: relative; min-height: 440px; padding-top: 70px; padding-bottom: 70px; }
.hero .eyebrow { color: #dfbc70; }
.hero-copy { max-width: 710px; color: #d0cdc6; font-size: 17px; line-height: 1.75; }
.kanji { transform: translateX(3%); color: #d8bd7a; font-size: clamp(145px, 16vw, 230px); opacity: .095; }
.hero-primary {
  padding: 14px 20px;
  border: 1px solid var(--red);
  box-shadow: 0 9px 24px rgba(181, 31, 42, .22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero-primary:hover, .hero-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(181, 31, 42, .3); }

main.page-width { padding-top: 68px; padding-bottom: 96px; }
.home-introduction { padding-bottom: 22px; }
.section-heading { align-items: end; }
.learning-path, .home-discover { margin-top: 110px; }

.learning-grid, .discover-grid { gap: 16px; border: 0; }
.learning-card, .discover-grid a {
  border: 1px solid rgba(222, 217, 206, .9);
  box-shadow: 0 8px 26px rgba(32, 28, 20, .045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.learning-card:hover, .learning-card:focus-visible,
.discover-grid a:hover, .discover-grid a:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(181, 138, 53, .75);
  box-shadow: var(--shadow-soft);
  outline: 0;
}
.learning-card.featured { border-color: var(--black); box-shadow: 0 18px 40px rgba(25, 25, 23, .18); }
.learning-number, .discover-status { letter-spacing: .18em; }

.home-styles {
  position: relative;
  overflow: hidden;
  margin-top: 110px;
  padding: 64px;
  box-shadow: 0 24px 55px rgba(25, 25, 23, .14);
}
.home-styles::after {
  position: absolute;
  right: -60px;
  bottom: -135px;
  color: rgba(213, 177, 94, .035);
  font: 280px/1 Georgia, serif;
  content: "流";
  pointer-events: none;
}
.home-styles > * { position: relative; z-index: 1; }
.home-style-groups a { transition: padding-left .2s ease, background .2s ease; }
.home-style-groups a:hover, .home-style-groups a:focus-visible { padding-left: 10px; background: rgba(255,255,255,.025); outline: 0; }

.rules-feature { margin-top: 110px; padding: 60px 0; }
.home-closing { border-left: 3px solid var(--gold); }
.site-footer { background: #161614; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 900px) {
  .site-menu { gap: 18px; }
  .hero-inner { min-height: 380px; }
  .home-styles { padding: 46px 36px; }
}

@media (max-width: 700px) {
  .site-header { position: relative; }
  .site-nav { min-height: 0; padding-top: 16px; padding-bottom: 14px; }
  .site-menu { flex-wrap: nowrap; gap: 20px; margin: 3px -18px -4px; padding: 0 18px 5px; overflow-x: auto; scrollbar-width: none; }
  .site-menu::-webkit-scrollbar { display: none; }
  .site-menu a, .site-menu a:visited { flex: 0 0 auto; }
  .hero-inner { min-height: 390px; padding-top: 54px; padding-bottom: 54px; }
  .hero-copy { font-size: 16px; }
  main.page-width { padding-top: 52px; padding-bottom: 72px; }
  .learning-path, .home-styles, .rules-feature, .home-discover, .home-closing { margin-top: 76px; }
  .learning-grid, .discover-grid { gap: 12px; }
  .learning-card:hover, .learning-card:focus-visible, .discover-grid a:hover, .discover-grid a:focus-visible { transform: none; }
  .home-styles { padding: 44px 18px; box-shadow: none; }
}
