/* The International Matsumura Seito Society — public site (docs/specs/imss-site/SPEC-imss-site.md §15).
   Navy, red and paper; Shippori Mincho B1 for display and kanji, Inter Tight for text, JetBrains Mono for labels.
   Buttons are square-cornered, chips are pills. Sections alternate paper / white / navy. */
:root {
  --navy: #0B1A33; --navy-2: #0F2141; --navy-3: #13284D; --navy-line: #22355A; --navy-deep: #071226;
  --red: #C8102E; --red-dark: #9E0B22; --red-text: #B0101F; --red-on-navy: #F0626F;
  --paper: #F6F3EC; --white: #fff; --line: #E2DBCB; --line-2: #EEE8DC; --field: #C9C2B2;
  --ink: #0E1626; --ink-2: #364054; --ink-3: #445066; --muted: #5A6478; --slate: #3B4558;
  --on-navy: #D5DDEB; --on-navy-2: #C9D3E6; --on-navy-3: #AEBBD3;
  --serif: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --pad: 32px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); overflow-wrap: break-word; }
body.dark { background: var(--navy); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--red-text); }
a:hover { color: var(--red-dark); }
.dark a, .sec--navy a, .ftr a { color: var(--red-on-navy); }
.dark a:hover, .sec--navy a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--red-on-navy); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; left: -9999px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: var(--ink) !important; padding: 12px 18px; }
.skip:focus { left: 8px; top: 8px; }
[id] { scroll-margin-top: 96px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sec { padding-top: 96px; padding-bottom: 96px; }
.sec--tight { padding-top: 76px; padding-bottom: 80px; }
.sec--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--navy { background: var(--navy); color: #fff; }

/* type */
.eyebrow, .label { font: 500 12px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { color: var(--red-text); margin-bottom: 14px; }
.eyebrow--wide { letter-spacing: .18em; }
.sec--navy .eyebrow, .dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .profile-hero .eyebrow, .event-hero .eyebrow { color: var(--red-on-navy); }
.label { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.label--red { color: var(--red-text); }
.label--red-on-navy { color: var(--red-on-navy); }
.label--soft { color: #9FB0CC; }
.label--wide { letter-spacing: .22em; color: var(--on-navy-3); font-size: 12px; }
.h1 { font: 800 clamp(2.7rem, 6.4vw, 5.8rem)/1.02 var(--serif); letter-spacing: -.01em; }
.h1--page { font-size: clamp(2.5rem, 5.6vw, 5rem); line-height: 1.04; max-width: 820px; }
.h1--name { font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: .98; }
.accent { color: var(--red-on-navy); }
.h2 { font: 800 clamp(2rem, 3.6vw, 3rem)/1.1 var(--serif); }
.h2--xl { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.08; }
.h2--huge { font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1; }
.h2--sm { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.h2--xs { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.h3 { font: 700 22px/1.25 var(--serif); }
.lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.lede--narrow { max-width: 640px; margin-top: 14px; }
.lede--sm { font-size: 16px; color: var(--ink-3); }
.sec--navy .lede, .dark .lede { color: var(--on-navy-2); }
.soft { color: var(--muted); }
.split { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-end; }
.split > .grow { flex: 1 1 520px; min-width: 0; }
.split > .side { flex: 1 1 360px; min-width: 0; }

/* buttons, chips, tags */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 2px; text-decoration: none; font: 600 15px var(--sans); letter-spacing: .02em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--red, .dark a.btn--red, .sec--navy a.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--ghost, .dark a.btn--ghost, .sec--navy a.btn--ghost { border-color: #7E8FB0; color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn--line { border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--field); background: #fff; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips--sm { gap: 8px; }
.chips--sm .chip { font-size: 13px; padding: 0 16px; }
.chips--dark .chip { background: transparent; border-color: #3A4E74; color: #fff; }
.chips--dark .chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.tag { display: inline-block; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); border: 1px solid var(--navy); padding: 3px 8px; }
.tag--red { background: var(--red); border-color: var(--red); color: #fff; }
.tag--slate { background: var(--slate); border-color: var(--slate); color: #fff; font-size: 10px; vertical-align: middle; }
.card { background: #fff; border: 1px solid var(--line); color: var(--ink); }

/* photos */
.portrait { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; background: var(--navy); }
.portrait--mono { display: flex; align-items: center; justify-content: center; color: #fff; font: 700 clamp(15px, 28cqw, 64px)/1 var(--serif); letter-spacing: .04em; }
.is-gray { filter: grayscale(1); }
.scene { width: 100%; height: 100%; object-fit: cover; }
.scene--blank { display: block; background: linear-gradient(160deg, #16284A, var(--navy-2)); min-height: 200px; }

/* header */
.hdr { background: var(--navy); border-bottom: 3px solid var(--red); position: relative; z-index: 20; }
.hdr--sticky { position: sticky; top: 0; }
.hdr-in { display: flex; gap: 16px 28px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
/* The logo: black and red on white, so it sits on a white tile wherever the ground is navy. */
.mark { flex: none; width: auto; height: 68px; } /* the logo has no background of its own: it sits straight on the page */
.mark--lg { height: 96px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 700 18px/1.2 var(--serif); color: #fff; letter-spacing: .02em; }
.brand-sub { font: 500 11px var(--mono); color: #9FB0CC; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 8px 26px; align-items: center; margin-left: auto; }
.navl { color: #E7ECF5 !important; text-decoration: none; font: 500 14px var(--sans); padding: 12px 0; border-bottom: 2px solid transparent; }
.navl:hover { color: #fff !important; border-bottom-color: #7E8FB0; }
.navl.is-current { border-bottom-color: var(--red); color: #fff !important; }
.hdr-act { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid #3A4E74; border-radius: 2px; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1120px) { .brand-sub { display: none; } }
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-deep); border-bottom: 3px solid var(--red); padding: 8px var(--pad) 18px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .navl { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--navy-line); }
  .navl.is-current { border-bottom-color: var(--red); }
}
@media (max-width: 560px) { .brand-name { font-size: 15px; } .mark { height: 46px; } .mark--lg { height: 80px; } .hdr-act .btn { padding: 0 12px; font-size: 13px; } .brand { gap: 10px; } }
@media (max-width: 400px) { .brand-name { font-size: 13.5px; } }

/* footer */
.ftr { background: var(--navy-deep); color: var(--on-navy-3); border-top: 3px solid var(--red); font-size: 14px; }
.ftr-in { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 56px; padding-bottom: 32px; }
.ftr-brand { flex: 1 1 320px; min-width: 0; display: flex; gap: 16px; align-items: center; }
.ftr-name { font: 700 18px var(--serif); color: #fff; margin-bottom: 4px; }
.ftr-col { flex: 1 1 260px; min-width: 0; }
.ftr-col .label { margin-bottom: 10px; }
.ftr-aff { line-height: 1.8; }
.ftr-aff a, .ftr-links a, .ftr-base a { color: var(--on-navy-3); }
.ftr-links { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ftr-links a { padding: 6px 0; }
.ftr a.ftr-strong { color: #fff; }
.ftr a:hover { color: #fff; }
.ftr-base { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid #1B2B47; font: 500 12px var(--mono); }

/* home: hero */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero-in { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 72px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero-text .eyebrow { margin-bottom: 20px; }
.hero-lede { margin-top: 26px; max-width: 620px; font-size: 19px; line-height: 1.6; color: var(--on-navy); }
.hero-art { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; position: relative; min-height: 520px; }
.hero-disc { position: absolute; width: 460px; height: 460px; max-width: 100%; border-radius: 50%; background: var(--red); top: 10px; right: 0; }
.hero-frame { position: relative; width: 340px; max-width: 78%; height: 460px; margin-top: 60px; border: 6px solid var(--paper); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); background: var(--navy-2); }
.hero-frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(7, 18, 38, .88)); font: 500 10.5px/1.5 var(--mono); letter-spacing: .04em; color: var(--on-navy-2); }
.hero-kanji { position: absolute; left: 0; top: 0; writing-mode: vertical-rl; font: 800 64px/1 var(--serif); color: rgba(255, 255, 255, .92); letter-spacing: .12em; }
.hero-strip { border-top: 1px solid var(--navy-line); }
.hero-strip-in { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 22px; padding-bottom: 22px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-3); }
.sq { display: inline-block; width: 9px; height: 9px; background: #fff; margin-right: 10px; }
.sq--red { background: var(--red-on-navy); }

/* home: about, lineage */
.pillars { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 2px; background: var(--navy); border: 2px solid var(--navy); }
.pillar { background: #fff; padding: 32px 28px; }
.pillar-kanji { font: 800 40px/1.2 var(--serif); color: var(--red); }
.pillar .h3 { margin: 14px 0 10px; }
.pillar p { font-size: 15.5px; color: var(--ink-3); }
.motto { margin-top: 28px; font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.lineage { margin-top: 52px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); border-top: 3px solid var(--navy); row-gap: 28px; }
.lineage-stop { padding: 24px 20px 0 0; }
.lineage-stop::before { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); margin: -34px 0 22px; }
.lineage-stop.is-red::before { background: var(--red); }
.lineage-stop.is-now::before { outline: 4px solid #F3C6CB; }
.lineage-stop h3 { margin: 8px 0 6px; font: 700 19px/1.3 var(--serif); }
.lineage-stop p:last-child { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }

/* home: one mat, many styles */
[data-style-chips] { margin-top: 36px; }
#style-panels { margin-top: 28px; }
.style-panel { display: flex; flex-wrap: wrap; gap: 2px; background: var(--navy); border: 2px solid var(--navy); }
.style-about { flex: 1 1 320px; min-width: 0; background: var(--navy); color: #fff; padding: 36px 32px; }
.style-about .label { font-size: 12px; letter-spacing: .14em; }
.style-name { margin: 12px 0 14px; font: 800 38px/1.1 var(--serif); }
.style-about p { color: var(--on-navy-2); }
.style-about .btn { margin-top: 28px; }
.style-people { flex: 2 1 560px; min-width: 0; background: #fff; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-content: start; }
.mini { display: flex; gap: 14px; align-items: center; padding: 16px 18px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.mini:hover { background: var(--paper); color: var(--ink); }
.mini-pic { flex: none; width: 46px !important; height: 46px !important; border-radius: 50%; font-size: 15px !important; }
.mini-text { display: flex; flex-direction: column; min-width: 0; }
.mini-name { font: 700 15.5px/1.3 var(--sans); }
.mini-rank { font: 500 11.5px var(--mono); color: var(--red-text); margin-top: 3px; }
.mini-where { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* home: gatherings (also the events pages) */
.gather { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 2px; background: var(--navy-line); }
.gather-main { flex: 1 1 560px; min-width: 0; background: var(--navy-2); display: flex; flex-direction: column; }
.gather-photo { height: 320px; }
.gather-body { padding: 32px; }
.gather-title { margin: 10px 0 12px; font: 800 32px/1.1 var(--serif); }
.gather-body > p, .gather-side p, .event-body p { color: var(--on-navy-2); }
.gather-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 28px; font: 500 13px var(--mono); color: #fff !important; }
.gather-meta span:first-child:not(:only-child) { color: var(--on-navy-3); }
.gather-body .btns { margin-top: 26px; }
.gather-sides { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gather-side { background: var(--navy-2); padding: 28px 30px; flex: 1; }
.gather-side .h3 { margin: 8px 0; }
.gather-side p { font-size: 15px; line-height: 1.55; }
.gather-next { margin-top: 10px; font: 500 13px var(--mono); }
.gather-recent { background: var(--navy-3); padding: 22px 30px; font: 500 12.5px/1.6 var(--mono); color: var(--on-navy-3); text-transform: uppercase; letter-spacing: .04em; }
.gather-recent a { color: var(--on-navy-3) !important; text-transform: none; letter-spacing: 0; }
.gather-recent a:hover { color: #fff !important; }

/* home: leadership, teaser, dojos, tribute, contact */
.lead { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.lead-photo { flex: 1 1 460px; min-width: 0; }
.lead-photo .scene { height: auto; max-height: 460px; }
.lead-photo figcaption { margin-top: 10px; font: 500 11px/1.5 var(--mono); color: var(--muted); letter-spacing: .04em; }
.lead-text { flex: 1 1 520px; min-width: 0; }
.lead-text .h2 { margin-bottom: 28px; }
.lead-kai { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.lead-card { border-top: 3px solid var(--navy); padding-top: 14px; }
.lead-card.is-first { border-top-color: var(--red); }
.lead-name { margin-top: 6px; font: 700 20px/1.25 var(--serif); }
.lead-name a, .lead-list a, .dojo-who a { color: inherit; text-decoration-color: var(--field); text-underline-offset: 3px; }
.lead-name a:hover, .lead-list a:hover, .dojo-who a:hover { color: var(--red-text); }
.lead-sub { margin-top: 2px; font-size: 14px; color: var(--muted); }
.lead-label { margin: 26px 0 8px; }
.lead-list { font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.split--end { align-items: flex-end; gap: 20px; }
.teaser { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; }
.teaser-tile { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.teaser-pic { display: block; aspect-ratio: 3 / 4; border-bottom: 4px solid var(--red); container-type: inline-size; overflow: hidden; background: var(--navy); }
.teaser-name { margin-top: 12px; font: 700 16px/1.3 var(--serif); }
.teaser-rank { margin-top: 2px; font: 500 11.5px var(--mono); color: var(--red-text); }
.teaser-tile:hover .teaser-name { color: var(--red-text); }
.dojos { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.dojo { padding: 28px; }
.dojo .h3 { margin: 16px 0 6px; }
.dojo p.dojo-where { font-size: 14.5px; color: var(--muted); margin-bottom: 12px; }
.dojo p:not(.tag) { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.dojo-when { margin-top: 6px; font: 500 12.5px/1.6 var(--mono) !important; color: var(--muted) !important; }
.dojo p.dojo-addr { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.dojo-who { margin-top: 10px; }
.tribute-in { display: flex; flex-wrap: wrap; gap: 0 56px; align-items: stretch; }
.tribute-photo { flex: 0 1 360px; min-width: 260px; min-height: 440px; container-type: inline-size; background: var(--navy-2); }
.tribute-text { flex: 1 1 480px; min-width: 0; padding: 72px 0; }
.tribute-meta { margin-top: 10px; font: 500 14px var(--mono); color: var(--on-navy-3); }
.tribute-lede { margin-top: 24px; max-width: 560px; font-size: 18px; line-height: 1.65; color: var(--on-navy); }
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-text { flex: 1 1 420px; min-width: 0; }
.contact-text .h2 { margin-bottom: 18px; }
.mailing { margin-top: 28px; font: 500 13px/1.8 var(--mono); color: var(--ink-2); }
.form { flex: 1 1 520px; min-width: 0; padding: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.form-wide { grid-column: 1 / -1; }
.form label { display: block; font: 600 13px var(--sans); margin-bottom: 6px; }
.inp { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 2px; background: #fff; font: 400 16px var(--sans); color: var(--ink); }
.inp:focus-visible { outline-color: var(--navy); }
.inp[aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form .btn { margin-top: 20px; border: 0; }
.form-msg { margin-top: 16px; padding: 12px 14px; font-size: 15px; background: var(--paper); border-left: 4px solid var(--navy); }
.form-msg.is-error { border-left-color: var(--red); color: var(--red-text); }
.agreement-text { max-height: 220px; overflow: auto; margin: 8px 0 14px; padding: 14px 16px; border: 1px solid var(--field); background: var(--paper); font-size: 15px; line-height: 1.55; }
.agreement-text p + p { margin-top: 10px; }
.form label.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin-bottom: 14px; }
.agree input { width: 20px; height: 20px; margin-top: 1px; flex: none; }
.form-note { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.form-done { font: 700 24px/1.3 var(--serif); padding: 40px 0 16px; }
.form-after { font-size: 16px; color: var(--ink-2); padding-bottom: 24px; }

.register { display: flex; flex-wrap: wrap; gap: 56px; }
.register-text { flex: 1 1 360px; min-width: 0; }
.register-text .lede { margin-top: 14px; }
.register .form { flex: 1 1 520px; }
.form label .opt { font-weight: 400; color: var(--muted); }

/* page heroes */
.page-hero, .profile-hero, .event-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero-in { position: relative; padding-top: 80px; padding-bottom: 64px; }
.page-disc { position: absolute; right: -80px; top: -60px; width: 420px; height: 420px; border-radius: 50%; background: var(--red); opacity: .9; }
.page-kanji { position: absolute; right: 70px; top: 40px; writing-mode: vertical-rl; font: 800 72px/1 var(--serif); color: #fff; letter-spacing: .1em; }
.page-hero .hero-lede { margin-top: 22px; font-size: 18px; }
.stats { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 2px; max-width: 720px; background: var(--navy-line); }
.stat { flex: 1 1 160px; background: var(--navy-2); padding: 18px 22px; }
.stat-n { font: 800 34px/1.2 var(--serif); }
.stat .label { color: var(--on-navy-3); }
.stats--profile { max-width: 640px; }
.stats--profile .stat-n { font-size: 30px; }
.back { display: inline-block; padding: 28px 0 0; color: var(--on-navy-3) !important; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.back:hover { color: #fff !important; }
.nf .page-hero-in { padding-top: 120px; padding-bottom: 140px; }
@media (max-width: 900px) { .page-disc { width: 260px; height: 260px; right: -110px; top: -90px; } .page-kanji { font-size: 44px; right: 16px; top: 18px; opacity: .9; } .page-hero--registry .h1 { padding-right: 56px; } }

/* registry */
.registry-controls { padding-top: 40px; padding-bottom: 24px; }
.controls-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.search { flex: 0 1 340px; min-width: 220px; }
.search input { width: 100%; min-height: 48px; padding: 0 18px; border: 1px solid var(--field); border-radius: 999px; background: #fff; font: 400 16px var(--sans); color: var(--ink); }
.result { margin-top: 20px; font: 500 12px var(--mono); text-transform: uppercase; color: var(--muted); }
.registry-grid { padding-bottom: 80px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(11, 26, 51, .16); color: var(--ink); }
.tile-pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy); container-type: inline-size; }
.tile-badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; }
.tile-badge.is-memoriam { background: var(--slate); }
.tile-kanji { position: absolute; right: 12px; bottom: 12px; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; font: 800 22px var(--serif); color: var(--navy); }
.belt { height: 6px; background: var(--navy); display: flex; gap: 3px; justify-content: flex-end; padding-right: 10px; }
.belt i { width: 4px; background: var(--red); }
.tile-body { display: flex; flex-direction: column; padding: 16px 16px 18px; }
.tile-rank { font: 500 11px var(--mono); letter-spacing: .08em; color: var(--red-text); }
.tile-name { margin: 4px 0 8px; font: 700 18px/1.2 var(--serif); }
.tile-style { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.tile-where { margin-top: 6px; font-size: 13px; color: var(--muted); }
.empty { padding: 48px 0; text-align: center; font: 500 20px var(--serif); color: var(--ink-2); }
.roll { margin-top: 36px; columns: 4 240px; column-gap: 40px; }
.roll-group { break-inside: avoid; margin-bottom: 26px; }
.roll-head { padding-bottom: 6px; margin-bottom: 4px; border-bottom: 2px solid var(--navy); font-size: 12px; color: var(--navy); }
.roll li { padding: 4px 0; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid #F0EBE0; }

/* profile */
.profile-hero-in { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-top: 36px; }
.profile-head { flex: 1 1 560px; min-width: 0; padding-bottom: 64px; }
.profile-head .hero-lede { margin-top: 22px; }
.profile-art { flex: 0 1 380px; min-width: 260px; position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.profile-disc { position: absolute; width: 340px; height: 340px; max-width: 100%; border-radius: 50%; background: var(--red); top: 0; left: 50%; transform: translateX(-50%); }
.profile-frame { position: relative; display: block; width: 320px; max-width: 100%; height: 460px; border: 6px solid var(--paper); border-bottom: 0; background: var(--navy-2); container-type: inline-size; }
.profile-about { display: flex; flex-wrap: wrap; gap: 48px; }
.about-main { flex: 2 1 560px; min-width: 0; }
.bio { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--ink-2); white-space: pre-line; }
.bio--lead { margin-top: 0; font: 500 24px/1.5 var(--serif); color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.bio + .facts { margin-top: 32px; }
.facts li { padding: 8px 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.home-dojo { flex: 1 1 300px; min-width: 0; background: var(--navy); color: #fff; padding: 30px; align-self: flex-start; }
.home-dojo h2 { margin: 10px 0 6px; font: 800 26px/1.15 var(--serif); }
.home-dojo p { font-size: 15px; line-height: 1.55; color: var(--on-navy-2); }
.home-dojo .home-dojo-meta { margin-top: 16px; font: 500 13px/1.9 var(--mono); color: #fff; }
.home-dojo .btn { margin-top: 20px; }
.table-box { margin-top: 28px; overflow-x: auto; }
.record { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; text-align: left; }
.record thead th { padding: 12px 10px; border-bottom: 2px solid var(--navy); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.record tbody th, .record td { padding: 14px 10px; border-bottom: 1px solid var(--line-2); font-weight: 400; vertical-align: top; }
.record tbody th { font-weight: 700; }
.record .when { font: 500 13px var(--mono); color: var(--muted); white-space: nowrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; background: #8A93A6; }
.dot--dan { background: var(--red); }
.dot--title { background: var(--navy); }
.honors { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px 56px; }
.honors-head { padding-bottom: 8px; border-bottom: 2px solid var(--navy); color: var(--navy); font-size: 12px; }
.honors li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.journey { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.journey-photo { width: 100%; height: 200px; object-fit: cover; margin-bottom: 14px; }
.journey-title { font: 700 18px/1.3 var(--serif); margin-top: 4px; }
.journey-now { background: var(--navy); color: #fff; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; }
.journey-now .journey-title { font-size: 20px; }
.cta { background: var(--red); color: #fff; }
.cta-in, .remembered-in { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.remembered { background: var(--navy); color: var(--on-navy); }
.remembered p { font: 500 22px/1.4 var(--serif); }

/* legacy */
.legacy-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--navy-line); text-align: center; }
.legacy-disc { position: absolute; left: 50%; top: 120px; transform: translateX(-50%); width: 560px; height: 560px; max-width: 120vw; border-radius: 50%; background: var(--red); opacity: .16; }
.legacy-hero-in { position: relative; max-width: 960px; margin: 0 auto; padding: 120px var(--pad) 104px; }
.legacy-hero .h1 { margin: 16px auto 0; }
.legacy-hero .hero-lede { margin: 26px auto 0; max-width: 640px; color: var(--on-navy-2); }
.legacy-kanji { font: 800 64px/1 var(--serif); letter-spacing: .3em; margin-right: -.3em; color: var(--red-on-navy); margin-bottom: 28px; }
.legacy-links { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 4px 28px; justify-content: center; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.legacy-links a { padding: 10px 0; }
.soken { display: flex; flex-wrap: wrap; gap: 56px; }
.soken-text { flex: 1 1 420px; min-width: 0; }
.soken-text .h2 { margin-bottom: 22px; }
.soken-text > p:not(.eyebrow) { font-size: 17px; line-height: 1.7; color: var(--on-navy); margin-bottom: 16px; }
.soken-pics { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.soken-pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.code { flex: 1 1 480px; min-width: 0; background: var(--paper); color: var(--ink); padding: 40px 40px 32px; position: relative; align-self: flex-start; }
.code .eyebrow { color: var(--red-text); margin-bottom: 8px; }
.code-kanji { position: absolute; right: 28px; top: 24px; writing-mode: vertical-rl; font: 800 30px/1 var(--serif); color: var(--red); letter-spacing: .2em; }
.code-title { margin-bottom: 24px; padding-right: 48px; font: 800 30px/1.1 var(--serif); }
.code li { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.code-n { flex: none; width: 30px; font: 800 18px/1.3 var(--serif); color: var(--red); }
.shelton { background: var(--paper); color: var(--ink); }
.shelton a { color: var(--red-text); }
.shelton a:hover { color: var(--red-dark); }
.shelton .eyebrow { color: var(--red-text); }
.shelton-in { display: flex; flex-wrap: wrap; gap: 56px; }
.shelton-pics { flex: 0 1 400px; min-width: 260px; }
.shelton-main { position: relative; }
.shelton-main img { position: relative; width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; object-position: center 20%; }
.shelton-disc { position: absolute; left: -18px; top: -18px; width: 120px; height: 120px; border-radius: 50%; background: var(--red); }
.shelton-thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.shelton-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 20%; }
.shelton-text { flex: 1 1 560px; min-width: 0; }
.shelton-titles { margin-top: 14px; font: 500 14px/1.6 var(--mono); color: var(--ink-2); }
.shelton blockquote { margin: 32px 0; padding-left: 24px; border-left: 4px solid var(--red); font: 500 22px/1.5 var(--serif); }
.shelton-lede { margin-bottom: 32px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.life { border-left: 2px solid var(--navy); padding-left: 26px; display: flex; flex-direction: column; gap: 18px; }
.life li { position: relative; }
.life li::before { content: ""; position: absolute; left: -33px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
.life li.is-red::before { background: var(--red); }
.life .label { font-size: 12px; letter-spacing: .08em; }
.life p:last-child { margin-top: 3px; font-size: 16px; line-height: 1.5; }
.shelton-more { margin-top: 28px; font: 500 13px var(--mono); }
.center-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.center-head .h2 { margin-bottom: 16px; }
.memorial { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 24px; }
.memorial-card { display: flex; flex-direction: column; text-decoration: none; color: #fff !important; border: 1px solid var(--navy-line); background: var(--navy-2); transition: border-color .2s; }
.memorial-card:hover { border-color: #7E8FB0; }
.memorial-pic { display: block; aspect-ratio: 4 / 5; overflow: hidden; container-type: inline-size; background: var(--navy-deep); }
.memorial-body { display: flex; flex-direction: column; padding: 18px 18px 20px; text-align: center; }
.memorial-name { margin: 6px 0; font: 700 19px/1.2 var(--serif); }
.memorial-years { font: 500 12px var(--mono); color: var(--on-navy-3); }
.memorial-note { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--on-navy-2); }
.history { background: var(--navy-deep); border-top: 1px solid var(--navy-line); }
.masonry { margin-top: 40px; columns: 3 300px; column-gap: 12px; }
.g-tile { display: block; width: 100%; padding: 0; margin: 0 0 20px; border: 0; background: none; color: #fff; text-align: left; cursor: zoom-in; break-inside: avoid; font: inherit; }
.g-tile img { width: 100%; filter: grayscale(1); transition: filter .3s; }
.g-tile:hover img, .g-tile:focus-visible img { filter: none; }
.g-tile span { display: block; }
.g-date { margin-top: 10px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red-on-navy); }
.g-cap { margin-top: 2px; font: 600 14.5px/1.4 var(--sans); }
.g-place { font-size: 13px; color: var(--on-navy-3); }
.history-more { margin-top: 24px; font-size: 14px; color: var(--on-navy-3); }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: rgba(4, 10, 22, .96); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.lightbox::backdrop { background: rgba(4, 10, 22, .9); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; min-width: 0; max-height: calc(100dvh - 48px); }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 170px); object-fit: contain; }
.lightbox figcaption { margin-top: 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.lightbox .label { color: var(--red-on-navy); }
.lb-cap { font: 700 20px/1.3 var(--serif); }
.lb-meta { font: 500 12px var(--mono); color: var(--on-navy-3); }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { position: absolute; top: 16px; right: 16px; font-size: 26px; }
@media (max-width: 700px) { .lightbox[open] { grid-template-columns: 1fr 1fr; padding: 12px; } .lightbox figure { grid-column: 1 / -1; grid-row: 1; } .lb-prev { justify-self: end; } }
.letters { margin-top: 28px; border-top: 1px solid var(--navy-line); }
.letters li { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--navy-line); }
.letters .label { color: var(--on-navy-3); }
.letter-title { font: 700 19px/1.3 var(--serif); }
.letters a { font: 500 12px var(--mono); padding: 8px 0; }
@media (max-width: 700px) { .letters li { grid-template-columns: 1fr; gap: 4px; } }

/* events */
.events-upcoming { border-top: 1px solid var(--navy-line); }
.event-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 2px; background: var(--navy-line); }
.event-card { background: var(--navy-2); display: flex; flex-direction: column; }
.event-photo { height: 240px; }
.event-body { padding: 28px 30px 32px; }
.event-body .h3 { margin: 8px 0; font-size: 26px; }
.event-body .h3 a { color: #fff; text-decoration: none; }
.event-body .btn { margin-top: 24px; }
.includes { margin-top: 16px; display: grid; gap: 6px; font-size: 15px; color: var(--on-navy-2); }
.includes li { padding-left: 18px; position: relative; }
.includes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--red-on-navy); }
.includes--light { color: var(--ink-2); font-size: 16px; }
.includes--light li::before { background: var(--red); }
.events-none { margin-top: 36px; background: var(--navy-2); border: 1px solid var(--navy-line); padding: 36px 32px; max-width: 760px; }
.events-none p { font-size: 17px; color: var(--on-navy-2); }
.events-none .btn { margin-top: 24px; }
.past { margin-top: 36px; }
.past-year { display: grid; grid-template-columns: 110px 1fr; gap: 0 24px; border-top: 2px solid var(--navy); padding: 18px 0 10px; }
.past-y { font: 800 26px/1.2 var(--serif); }
.past-year li { border-bottom: 1px solid var(--line); }
.past-year li:last-child { border-bottom: 0; }
.past-year a { display: flex; flex-wrap: wrap; gap: 2px 20px; justify-content: space-between; align-items: baseline; padding: 12px 0; text-decoration: none; color: var(--ink); }
.past-title { font: 700 18px/1.3 var(--serif); }
.past-year a:hover .past-title { color: var(--red-text); }
.past-meta { font: 500 12px/1.5 var(--mono); color: var(--muted); }
@media (max-width: 600px) { .past-year { grid-template-columns: 1fr; } }
.event-hero-in { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; padding-top: 36px; padding-bottom: 64px; }
.event-head { flex: 1 1 520px; min-width: 0; }
.event-head .hero-lede { margin-top: 20px; }
.event-figure { flex: 0 1 520px; min-width: 260px; border: 6px solid var(--paper); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.event-figure img { width: 100%; }
.event-detail { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.event-main { flex: 2 1 520px; min-width: 0; }
.event-sub { margin: 32px 0 12px; font-size: 12px; color: var(--red-text); }
.event-main > .event-sub:first-child { margin-top: 0; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-bottom: 16px; }
.prose .signed { font: 500 13px/1.8 var(--mono); color: var(--ink); }
.promoted { border-top: 2px solid var(--navy); max-width: 620px; }
.promoted li { display: flex; flex-wrap: wrap; gap: 2px 20px; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font: 700 18px/1.3 var(--serif); }
.promoted li a { color: inherit; text-decoration-color: var(--field); text-underline-offset: 3px; }
.promoted li a:hover { color: var(--red-text); }
.promoted li span { font: 500 12px/1.5 var(--mono); color: var(--muted); }
.notice { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--slate); padding: 20px 24px; margin-bottom: 28px; }
.notice .label { color: var(--slate); margin-bottom: 6px; }
.event-facts { flex: 1 1 300px; min-width: 0; padding: 28px; }
.event-facts dl { display: grid; gap: 16px; margin-bottom: 24px; }
.event-facts dd { margin-top: 2px; font-size: 16px; line-height: 1.5; }

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .sec { padding-top: 64px; padding-bottom: 64px; }
  .sec--tight { padding-top: 56px; padding-bottom: 60px; }
  .hero-in { padding-top: 56px; padding-bottom: 48px; gap: 40px; }
  .hero-art { min-height: 440px; flex-basis: 100%; }
  .hero-frame { height: 380px; margin-top: 44px; }
  .hero-kanji { font-size: 44px; }
  .hero-disc { width: 340px; height: 340px; }
  .gather-body, .gather-side, .gather-recent { padding-left: 22px; padding-right: 22px; }
  .gather-photo { height: 220px; }
  .tribute-photo { flex-basis: 100%; min-height: 0; aspect-ratio: 4 / 5; margin: 0 calc(var(--pad) * -1); }
  .tribute-text { padding: 48px 0 64px; }
  .form, .code { padding: 24px 20px; }
  .code-title { font-size: 26px; }
  .profile-head { padding-bottom: 8px; }
  .profile-art { flex-basis: 100%; }
  .profile-frame { height: 400px; }
  .legacy-hero-in { padding-top: 80px; padding-bottom: 72px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile-body { padding: 12px 12px 14px; }
  .tile-name { font-size: 16px; }
  .tile-kanji { width: 40px; height: 40px; font-size: 18px; right: 8px; bottom: 8px; }
  .tile-badge { top: 8px; left: 8px; font-size: 9.5px; }
  .memorial { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-in, .remembered-in { padding-top: 44px; padding-bottom: 44px; }
}
@media (max-width: 700px) {
  .lineage { display: block; border-top: 0; border-left: 3px solid var(--navy); margin-left: 7px; padding-left: 26px; }
  .lineage-stop { padding: 0 0 26px; position: relative; }
  .lineage-stop:last-child { padding-bottom: 0; }
  .lineage-stop::before { position: absolute; left: -36px; top: 2px; margin: 0; }
}
@media (max-width: 380px) { .tiles, .memorial { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tile:hover, .tile:focus-visible { transform: none; }
}

/* Asking to join (/join) and its button in the home page's contact section. */
.join-cta { margin: 0 0 22px; }
.join-note { margin-top: 14px; color: var(--ink-soft, inherit); font-size: 15px; }
.form label .opt { font-weight: 400; opacity: 0.7; }
.join-check { display: flex; gap: 10px; align-items: center; font-weight: 400; cursor: pointer; }
.join-check input { width: 18px; height: 18px; flex: none; }
