:root {
  --canvas: #f5f4ef;
  --ink: #20211f;
  --muted: #62645c;
  --line: #cecec5;
  --white: #fff;
  --yellow: #eee94a;
  --soft: #e3e5dc;
  --dark: #272925;
  --sans: "Apple SD Gothic Neo", AppleGothic, -apple-system, BlinkMacSystemFont, "Malgun Gothic", system-ui, sans-serif;
  --display: "Space Grotesk", var(--sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, h1, h2, p { margin: 0; }
button { border: 0; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
button:active:not(:disabled), a:active { opacity: .72; }
::selection { background: var(--ink); color: var(--canvas); }
.page-shell { width: calc(100% - 112px); max-width: 1280px; margin: 0 auto; }
.site-header { min-height: 88px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ink); }
.brand { font: 700 31px/1 var(--display); letter-spacing: 0; display: inline-flex; align-items: center; min-height: 44px; }
.brand-dot { margin-left: 1px; }
.site-header nav { display: flex; gap: 32px; font-size: 14px; font-weight: 600; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 16px; }
.site-header nav a:hover, .footer-bottom a:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { padding-top: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--ink); }
.eyebrow { font: 500 12px/1.4 var(--display); letter-spacing: 0; }
.wordmark { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 24px 0 32px -7px; font: 700 clamp(72px,19vw,245px)/.82 var(--display); letter-spacing: 0; }
.wordmark > span:first-child { white-space: nowrap; }
.asterisk { align-self: flex-start; font: 400 clamp(50px,9.2vw,126px)/.8 var(--sans); letter-spacing: 0; margin-top: 4px; }
.hero-bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding-top: 12px; }
.hero-copy { min-width: 0; padding: 8px 0 16px; }
h1 { font-size: clamp(36px,4vw,56px); line-height: 1.25; font-weight: 650; letter-spacing: 0; word-break: keep-all; }
.period { margin-left: .015em; }
.hero-copy p { max-width: 36em; margin-top: 20px; color: var(--muted); font-size: 16px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 48px; font-size: 14px; font-weight: 650; margin-top: 24px; border-bottom: 1px solid var(--ink); }
.text-link > span { font-size: 25px; font-weight: 400; transition: transform 180ms ease; }
.text-link:hover > span { transform: translate(3px,3px); }
.hero-art { position: relative; display: block; background: var(--dark); padding: 20px 24px 16px; text-align: left; color: var(--canvas); width: 100%; height: 288px; overflow: hidden; }
.paper { display: flex; flex-direction: column; justify-content: center; position: absolute; width: 64%; max-width: 306px; height: 216px; top: 24px; left: 18%; background: var(--yellow); color: var(--ink); padding: 18px 20px; transform: rotate(-8deg); box-shadow: 8px 10px 0 rgba(0,0,0,.08); transition: transform 180ms ease; }
.hero-art:hover .paper { transform: rotate(-4deg) translateY(-4px); }
.paper strong { position: relative; font-size: 54px; font-weight: 750; line-height: 1.06; letter-spacing: 0; }
.paper-star { position: absolute; top: 0; right: 4px; font-size: 40px; font-weight: 500; }
.hero-art-caption { position: absolute; left: 24px; right: 24px; bottom: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.art-sample { font-size: 12px; color: var(--soft); margin-left: 6px; }
.section { padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
h2 { font-size: 36px; line-height: 1.25; font-weight: 600; letter-spacing: 0; }
.section-heading h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
.filters button { background: transparent; min-height: 44px; padding: 8px 16px; border-radius: 9999px; font-size: 15px; font-weight: 500; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--canvas); }
.filters button[aria-pressed="false"]:hover { background: var(--soft); }
/* Keep notes easy to scan: one reading column, with compact category art. */
.project-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--ink); }
.project { min-width: 0; border-bottom: 1px solid var(--line); }
.project[hidden] { display: none; }
.project-button { display: grid; grid-template-columns: minmax(0,1fr) 112px; align-items: center; gap: 40px; padding: 28px 0; background: transparent; width: 100%; text-align: left; }
.project-copy { display: block; min-width: 0; }
.project-info { display: grid; gap: 8px; }
.project-label { font-size: 13px; color: var(--muted); }
.project-info strong { max-width: 30em; font-size: 25px; line-height: 1.4; font-weight: 650; word-break: keep-all; overflow-wrap: anywhere; }
.project-description { display: block; max-width: 36em; margin-top: 8px; font-size: 16px; line-height: 1.75; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.project-button:hover .project-info strong, .project-button:focus-visible .project-info strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.project-art { position: relative; display: block; width: 112px; aspect-ratio: 1; overflow: hidden; }
.note-art-guide { background: var(--yellow); }
.note-art-guide::before, .note-art-guide::after, .note-art-guide > span { position: absolute; content: ""; border: 1px solid var(--ink); border-radius: 50%; width: 62%; height: 62%; }
.note-art-guide::before { top: 10%; left: 10%; }
.note-art-guide::after { top: 28%; left: 28%; }
.note-art-guide > span { top: 19%; left: 19%; }
.note-art-service { background: var(--soft); }
.note-art-service::before, .note-art-service::after, .note-art-service > span { position: absolute; content: ""; width: 52%; height: 52%; border: 1px solid var(--ink); background: var(--canvas); }
.note-art-service::before { left: 15%; top: 15%; }
.note-art-service > span { left: 24%; top: 24%; }
.note-art-service::after { left: 33%; top: 33%; background: var(--yellow); }
.note-art-onchain { background: var(--dark); }
.note-art-onchain::before, .note-art-onchain::after { position: absolute; content: ""; width: 51%; height: 51%; border: 1px solid var(--yellow); border-radius: 50%; }
.note-art-onchain::before { left: 13%; top: 13%; }
.note-art-onchain::after { right: 13%; bottom: 13%; }
.note-art-onchain > span { position: absolute; width: 52%; height: 1px; left: 24%; top: 50%; background: var(--yellow); transform: rotate(45deg); }
.notes { display: grid; grid-template-columns: .85fr 1.6fr; gap: 64px; }
.notes-intro h2 { margin: 0; }
.notes-intro > p:not(.eyebrow) { max-width: 36em; color: var(--muted); font-size: 16px; line-height: 1.75; margin-top: 24px; word-break: keep-all; overflow-wrap: anywhere; }
.small-note { display: block; color: var(--muted); font-size: 13px; margin-top: 24px; }
.note-list { border-top: 1px solid var(--ink); }
.note-row { display: flex; align-items: center; gap: 24px; background: transparent; width: 100%; padding: 28px 0; text-align: left; border-bottom: 1px solid var(--line); }
.note-row:last-child { border-bottom: 0; }
.note-body { min-width: 0; display: grid; gap: 8px; word-break: keep-all; overflow-wrap: anywhere; }
.note-body strong { font-size: 20px; line-height: 1.4; letter-spacing: 0; font-weight: 550; }
.note-summary { max-width: 36em; font-size: 16px; line-height: 1.75; color: var(--muted); }
.note-arrow { flex-shrink: 0; margin-left: auto; padding-left: 8px; font-size: 23px; }
.note-row:hover .note-body strong { text-decoration: underline; text-underline-offset: 5px; }
.about { display: grid; grid-template-columns: .85fr 1.6fr; gap: 64px; border-bottom-color: var(--ink); }
.about-label { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.about-profile { display: block; width: 216px; max-width: 100%; height: auto; aspect-ratio: 1; border: 1px solid var(--line); }
.about-symbol { display: block; font-size: 92px; line-height: 1; }
.about-copy h2 { font-size: clamp(29px,3.1vw,42px); line-height: 1.3; letter-spacing: 0; }
.about-copy p { max-width: 36em; font-size: 16px; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; color: var(--muted); margin-top: 24px; }
.contact-state { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.contact-state > a { display: inline-flex; align-items: center; gap: 24px; background: transparent; border: 1px solid var(--ink); padding: 12px 20px; min-height: 48px; color: var(--ink); font-size: 14px; }
.contact-state > a:hover { background: var(--soft); }
.site-footer { padding: 40px 0 24px; }
.footer-brand { display: inline-flex; gap: 20px; align-items: center; font: 600 40px/1.2 var(--display); letter-spacing: 0; min-height: 48px; }
.footer-brand > span { font-size: 31px; font-weight: 400; }
.footer-bottom { display: flex; justify-content: flex-end; gap: 20px; align-items: center; margin-top: 24px; color: var(--muted); font-size: 13px; }
.footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; gap: 20px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 5; background: var(--ink); color: var(--canvas); padding: 12px 16px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* The dialog itself scrolls, so its close control stays available throughout a note. */
dialog { width: min(760px,calc(100% - 40px)); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 0; border: 1px solid var(--ink); background: var(--canvas); color: var(--ink); }
dialog::backdrop { background: rgba(20,21,18,.62); }
body.dialog-open { overflow: hidden; }
.dialog-top { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 12px 32px; background: var(--canvas); }
.dialog-close { flex-shrink: 0; min-height: 44px; background: transparent; padding: 0 0 0 16px; display: flex; align-items: center; gap: 16px; font-size: 14px; }
.dialog-close > span { font-size: 28px; line-height: 1; font-weight: 300; }
.dialog-content { max-width: 40rem; margin: 0 auto; padding: 40px 28px; word-break: keep-all; overflow-wrap: anywhere; }
.detail-badge { display: inline-block; border: 1px solid var(--line); padding: 2px 8px; font-size: 13px; margin-bottom: 20px; }
.dialog-content h2 { font-size: 34px; line-height: 1.4; }
.dialog-lead { font-size: 18px; line-height: 1.8; margin-top: 20px; color: var(--muted); }
.dialog-body { margin-top: 32px; color: var(--ink); font-size: 18px; line-height: 1.85; }
.dialog-body p + p { margin-top: 24px; }
.dialog-notice { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 32px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.secondary-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.secondary-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.referral-list { border-top: 1px solid var(--ink); }
.referral-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.referral-item:last-child { border-bottom: 0; padding-bottom: 0; }
.referral-summary { min-width: 0; }
.referral-category { color: var(--muted); font-size: 13px; }
.referral-content h3 { margin: 8px 0; font-size: 24px; font-weight: 600; line-height: 1.3; }
.referral-description { max-width: 36em; color: var(--muted); font-size: 16px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.referral-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.referral-benefit { color: var(--muted); font-size: 13px; word-break: keep-all; overflow-wrap: anywhere; }
.referral-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ink); background: transparent; font-size: 14px; word-break: keep-all; overflow-wrap: anywhere; }
.referral-button:hover { background: var(--ink); color: var(--canvas); }
.dialog-related, .dialog-referral { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.dialog-related[hidden], .dialog-referral[hidden] { display: none; }
.dialog-related p, .referral-disclosure { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 16px; }
.referral-pending { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 14px; }
@media (max-width: 1100px) {
  .page-shell { width: calc(100% - 64px); }
  .hero-bottom { gap: 40px; }
  .hero-art { height: 268px; }
  .paper { height: 198px; width: 70%; left: 16%; padding: 14px 18px; }
  .paper strong { font-size: 48px; }
  .paper-star { font-size: 35px; }
  .notes, .about { gap: 40px; grid-template-columns: minmax(0,.9fr) minmax(0,1.5fr); }
  h2 { font-size: 32px; }
  .note-row { gap: 16px; }
}
@media (max-width: 800px) and (min-width: 701px) {
  .hero-art { height: 256px; }
  .paper { width: 75%; left: 13%; height: 182px; padding: 12px; }
  .paper strong { font-size: 42px; }
  .paper-star { font-size: 28px; }
}
@media (max-width: 700px) {
  .page-shell { width: calc(100% - 40px); }
  .site-header { min-height: 80px; flex-wrap: wrap; padding: 16px 0 8px; }
  .brand { font-size: 27px; }
  .site-header nav { gap: 12px; font-size: 13px; flex-basis: 100%; justify-content: space-between; }
  .site-header nav a { gap: 8px; }
  .hero { padding-top: 20px; }
  .wordmark { margin: 24px 0 28px -3px; gap: 8px; font-size: 19vw; }
  .asterisk { font-size: 8vw; margin-top: 2px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; padding-top: 0; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(34px,7vw,46px); }
  .hero-copy p { margin-top: 16px; }
  .text-link { margin-top: 16px; }
  .hero-art { height: 232px; }
  .paper { width: 62%; max-width: 250px; left: 20%; height: 166px; top: 18px; padding: 12px 16px; }
  .paper strong { font-size: 40px; }
  .paper-star { font-size: 32px; }
  .section { padding: 48px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  h2 { font-size: 29px; }
  .section-heading h2 { margin: 0; }
  .filters { gap: 2px; }
  .filters button { padding: 8px 10px; }
  .project-grid { margin-top: 24px; }
  .project-button { grid-template-columns: minmax(0,1fr) 64px; gap: 24px; padding: 24px 0; }
  .project-art { width: 64px; align-self: start; margin-top: 28px; }
  .project-info strong { font-size: 22px; }
  .notes, .about { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .notes-intro > p:not(.eyebrow) { margin-top: 16px; }
  .small-note { margin-top: 12px; }
  .note-row { padding: 24px 0; gap: 16px; }
  .note-body strong { font-size: 20px; }
  .note-arrow { padding-left: 0; font-size: 21px; }
  .about-label { flex-direction: row; align-items: center; gap: 24px; }
  .about-profile { width: 96px; flex: 0 0 96px; }
  .about-symbol { font-size: 48px; margin: 0; }
  .about-copy h2 { font-size: 30px; }
  .contact-state { gap: 12px; margin-top: 24px; }
  .footer-brand { font-size: 36px; }
  .footer-bottom { flex-wrap: wrap; gap: 4px 16px; }
  .footer-bottom a { margin-left: 0; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .dialog-top { padding: 8px 20px; }
  .dialog-content { padding: 28px 24px; }
  .dialog-content h2 { font-size: 28px; }
  .dialog-lead, .dialog-body { font-size: 17px; }
  .hero-actions { gap: 16px; }
  .hero-actions .text-link { gap: 20px; }
  .secondary-link { margin-top: 16px; }
  .referral-item { padding: 24px 0; }
  .referral-content h3 { font-size: 22px; }
  .referral-meta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .project-button { grid-template-columns: minmax(0,1fr); }
  .project-art { display: none; }
  .dialog-top { padding-inline: 16px; }
  .dialog-content { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

[hidden] { display: none !important; }
.content-state { padding: 32px 0; color: var(--muted); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.content-state button { margin: 8px 0 0 12px; }
.dialog-body p { white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-body .detail-benefit { color: var(--ink); font-weight: 600; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.project-info strong, .referral-content h3, .referral-description, .hero-art-caption > span:first-child { overflow-wrap: anywhere; }
.hero-art-caption > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Public writing and channels use ordinary links, including without JavaScript. */
.project-button { grid-template-columns: minmax(0,1fr) auto; }
.project-button .note-arrow { align-self: center; }
.section-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 15px; }
.section-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.channel-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 40px; margin-top: 32px; }
.channel-list > a { display: flex; align-items: center; gap: 20px; min-height: 80px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 550; }
.channel-list > a:hover { background: var(--soft); }
.channel-icon { width: 26px; height: 26px; flex: 0 0 26px; display: inline-flex; justify-content: center; align-items: center; font: 700 23px/1 var(--sans); }
.channel-arrow { margin-left: auto; font-size: 22px; font-weight: 400; }
.about-copy > p:first-child { margin-top: 0; }
.about-copy h3 { font-size: 24px; line-height: 1.4; margin: 32px 0 0; }
.about-copy h3 + p { margin-top: 12px; }
.article-page { width: calc(100% - 40px); max-width: 760px; margin: 0 auto; }
.article-header { padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(30px,4vw,44px); line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.article-meta { display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 20px; }
.article-summary { color: var(--muted); font-size: 19px; line-height: 1.75; margin-top: 20px; word-break: keep-all; overflow-wrap: anywhere; }
.article-body { padding: 32px 0; font-size: 18px; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }
.article-body p + p { margin-top: 24px; }
.article-body a, .article-related a { text-decoration: underline; text-underline-offset: 5px; }
.article-related { padding: 24px 0; border-top: 1px solid var(--line); }
.article-related .referral-button { margin-top: 16px; text-decoration: none; }
.article-page .site-footer { border-top: 1px solid var(--line); }
.public-status { margin: 24px 0; color: var(--muted); }
.referral-list { list-style: none; padding: 0; margin: 0; }
.referral-list .referral-item { display: block; }
.referral-copy { display: grid; gap: 8px; }
.referral-copy strong { font-size: 24px; line-height: 1.4; font-weight: 600; }
.referral-item:hover strong { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 700px) {
  .channel-list { gap: 0 24px; }
  .channel-list > a { font-size: 16px; gap: 12px; }
  .article-header { padding-top: 32px; }
  .article-summary, .article-body { font-size: 17px; }
  .article-meta { font-size: 13px; }
}
@media (max-width: 420px) {
  .channel-list { grid-template-columns: minmax(0,1fr); }
  .channel-list > a { min-height: 72px; }
}

.site-header { gap: 28px; }
.site-header > nav { margin-left: auto; }
.language-switch { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font: 500 14px/1 var(--display); color: var(--muted); border-bottom: 2px solid transparent; }
.language-switch a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }
.language-switch a:hover { color: var(--ink); background: var(--soft); }
.original-language, .content-language { display: block; margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.65; }
html[lang="en"] .paper strong { font-size: 46px; }
html[lang="en"] .paper-star { top: -20px; right: -8px; font-size: 28px; }
@media (max-width: 700px) {
  .site-header { column-gap: 16px; row-gap: 0; }
  .site-header > .brand { order: 1; }
  .site-header > .language-switch { order: 2; margin-left: auto; }
  .site-header > nav { order: 3; margin-left: 0; }
  html[lang="en"] .paper strong { font-size: 34px; }
  html[lang="en"] .paper-star { top: -16px; right: -4px; font-size: 24px; }
}
