/* The original Moms Typewriter, Arial and Japanese font families are preserved. */
:root { color-scheme: dark; --bg: #101215; --panel: #15181b; --line: #303437; --text: #d4d5cf; --muted: #9a9f9c; --accent: #d77d79; --signal: #b5c6b2; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.7; background-image: radial-gradient(ellipse at 80% 10%, #29302c33, transparent 50%); }
a { color: var(--signal); text-underline-offset: 5px; }
a:hover { color: #f1e4d6; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #85504e; color: #fff; }
.site-shell { max-width: 1240px; padding: 0 56px; margin: auto; }
.site-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 94px; border-bottom: 1px solid var(--line); font-family: 'Moms Typewriter', monospace; }
.site-identity { font-size: 17px; color: var(--text); }
.identity-cursor { color: var(--accent); }
.site-bar nav { display: flex; gap: 30px; font-size: 14px; }
.site-bar nav a { color: var(--muted); }
.site-bar nav a:hover, .site-bar nav a[aria-current] { color: var(--accent); }
.main-content { max-width: none; margin: 0; padding: 0; font-size: 16px; min-height: 65vh; }
.main-content h1, .main-content h2, .main-content h3, .main-content h4 { color: var(--text); }
.wired-hero { position: relative; padding: 35px 0 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-coordinate, .eyebrow, .section-heading, .directory-card, .social-links, .wired-footer, .hero-link, .wire-label, .wire-mark, .recent-record time { font-family: 'Moms Typewriter', monospace; }
.hero-coordinate { font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.hero-copy { position: relative; z-index: 1; padding: 60px 0 68px; width: 60%; }
.main-content .eyebrow { color: var(--signal); font-size: 13px; margin-bottom: 25px; }
.status-light { display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px #b5c6b250; }
.main-content .project-name { font-size: clamp(36px, 5.2vw, 67px); line-height: 1.16; letter-spacing: -2.5px; margin: 0 0 23px; color: #e2dfd4; font-weight: normal; }
.title-so { color: var(--accent); }
.main-content .project-tagline { font-size: 20px; color: var(--accent); opacity: 1; margin: 0 0 18px; }
.hero-description { font-size: 14px; line-height: 1.9; color: var(--muted); }
.hero-link { display: inline-flex; align-items: center; gap: 25px; font-size: 12px; margin-top: 16px; padding-bottom: 6px; border-bottom: 1px solid #626960; }
.wire-art { position: absolute; width: 420px; height: 460px; right: 0; top: 75px; overflow: hidden; isolation: isolate; border: 1px solid #64766366; border-radius: 10px; background: radial-gradient(ellipse at center, #263d2a66, #0c110f 75%); box-shadow: inset 0 0 55px #000, 0 0 25px #8ca98508; }
.wire-art::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 2px, #0006 2px 4px); box-shadow: inset 0 0 35px #0009; }
.signal-caption { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; gap: 12px; font-family: 'Moms Typewriter', monospace; font-size: 10px; letter-spacing: 1px; color: var(--signal); border-bottom: 1px solid #64766366; padding-bottom: 12px; }
.signal-caption span:last-child { color: var(--accent); }
.wire-orbit { position: absolute; border: 1px solid #697d6e66; border-radius: 50%; inset: 45px; transform: rotate(-35deg) scaleX(.48); }
.orbit-two { transform: rotate(35deg) scaleX(.48); }
.orbit-three { transform: rotate(90deg) scaleX(.48); }
.wire-axis { position: absolute; width: 100%; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, #6a7b6b77, transparent); transform: rotate(-35deg); }
.axis-two { transform: rotate(55deg); }
.wire-node { width: 6px; height: 6px; background: var(--accent); position: absolute; box-shadow: 0 0 15px #d77d7966; }
.node-one { top: 96px; left: 135px; }.node-two { top: 330px; left: 310px; }.node-three { top: 230px; left: 229px; background: var(--signal); }
.wire-label { position: absolute; top: 395px; left: 115px; color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.wire-mark { position: absolute; left: 205px; top: 190px; font-size: 19px; color: var(--signal); }
.directory, .recent-records, .connections { padding-top: 47px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.main-content .section-heading h2 { margin: 0; font-size: 19px; }.section-heading h2 span { color: var(--accent); margin-right: 14px; font-size: 12px; }
.section-heading > a, .section-note { font-size: 11px; color: var(--muted); }
.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.directory-card { position: relative; display: flex; gap: 20px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.directory-card:hover { background: #242b25; text-decoration: none; }.card-index { color: #858d83; font-size: 10px; padding-top: 4px; }.card-content { display: flex; flex-direction: column; min-width: 0; }.card-title { font-size: 19px; color: #d8dcd2; }.card-japanese { color: var(--muted); font-size: 11px; margin-top: 3px; }.card-description { color: var(--muted); font-size: 11px; margin-top: 14px; }.card-arrow { margin-left: auto; color: var(--accent); transition: transform .2s; }.directory-card:hover .card-arrow { transform: translate(2px,-2px); }
.recent-record { display: grid; grid-template-columns: 110px 1fr 20px; align-items: baseline; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 15px; }.recent-record:last-child { border-bottom: 1px solid var(--line); }.recent-record time { color: var(--muted); font-size: 11px; }.record-arrow { color: var(--accent); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }.social-connection { display: inline-flex; align-items: center; gap: 18px; border: 1px solid var(--line); padding: 10px 13px; font-size: 11px; color: var(--muted); }.social-connection:hover { border-color: #7e8e7b; text-decoration: none; }.social-connection span { color: var(--accent); }
.wired-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); margin-top: 65px; padding: 25px 0 32px; font-size: 11px; color: var(--muted); }.footer-address { width: 100%; font-size: 9px; opacity: .75; }
#skip-to-content:focus { z-index: 10; background: var(--bg); outline-color: var(--accent); color: white; padding: 12px; }
.reading-layout { max-width: 780px; margin: 64px auto; line-height: 1.9; }.main-content > h1 { margin-top: 55px; font-family: 'Moms Typewriter', monospace; }.main-content h1 { font-size: clamp(27px, 4vw, 38px); line-height: 1.4; }.post-header { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 35px; }.post-meta, .meta, .post-tags { color: var(--muted); font-size: 12px; }.article-item { padding: 24px 0; border-bottom: 1px solid var(--line); }.main-content .article-item h3 { margin: 0 0 12px; font-size: 20px; }.article-item hr { display: none; }.article-item .meta { margin: 6px 0; }.main-content hr { background: var(--line); height: 1px; }.main-content blockquote { border-color: #657361; color: var(--muted); }.main-content img { height: auto; }.main-content table th, .main-content table td { border-color: var(--line); }
@media (max-width: 760px) { .site-shell { padding: 0 24px; }.site-bar { min-height: 82px; gap: 15px; }.site-identity { font-size: 14px; }.site-bar nav { gap: 16px; font-size: 12px; }.hero-copy { padding: 48px 0; width: 100%; }.wire-art { position: relative; right: auto; top: auto; width: 100%; max-width: 420px; height: 340px; margin: 0 auto 32px; } .wire-orbit { inset: 30px; } .wire-label { top: auto; bottom: 18px; left: 20px; } .wire-mark { top: 145px; left: calc(50% - 27px); } .node-three { top: 185px; left: 50%; }.hero-copy > * { position: relative; }.main-content .project-name { font-size: clamp(35px, 7.5vw, 55px); }.directory-card { padding: 20px 16px; gap: 12px; }.card-title { font-size: 16px; }.card-description { line-height: 1.7; }.section-heading { gap: 12px; }.main-content .section-heading h2 { font-size: 16px; }.section-heading h2 span { margin-right: 8px; }.reading-layout { margin: 40px auto; } }
@media (max-width: 500px) { .site-shell { padding: 0 20px; }.site-bar { flex-wrap: wrap; align-content: center; gap: 8px; padding: 18px 0; }.site-identity { width: 100%; }.site-bar nav { gap: 24px; }.hero-coordinate { font-size: 9px; }.hero-link { font-size: 10px; gap: 15px; }.directory-grid { grid-template-columns: 1fr; }.directory-card { padding: 22px 18px; }.card-title { font-size: 19px; }.card-description { margin-top: 10px; }.section-heading > a { white-space: nowrap; }.section-note { display: none; }.recent-record { grid-template-columns: 1fr 20px; gap: 8px; }.recent-record time { grid-column: 1 / -1; }.hero-description { font-size: 12px; }.main-content .project-tagline { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

.social-icon { flex: 0 0 16px; width: 16px; height: 16px; object-fit: contain; filter: brightness(0) invert(1); opacity: .8; }
.social-icon-drawing { filter: none; }

@media (min-width: 761px) and (max-width: 1050px) { .wire-art { width: 34%; height: 400px; top: 90px; } .wire-label { left: 20px; top: auto; bottom: 20px; font-size: 9px; } .wire-mark { left: calc(50% - 27px); } .signal-caption { font-size: 8px; letter-spacing: 0; } }

/* A short signal acquisition effect stays inside the activated link. */
.directory-card, .social-connection, .recent-record { position: relative; isolation: isolate; }
.directory-card::after, .social-connection::after, .recent-record::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(transparent 0 3px, #b5c6b230 3px 4px);
  border: 1px solid var(--signal);
}
@media (prefers-reduced-motion: no-preference) {
  .signal-active { animation: signal-lock 280ms ease-out both; }
  .signal-active::after { animation: signal-sweep 280ms ease-out both; }
  .signal-active .card-title { animation: signal-split 280ms steps(1, end) both; }
}
@keyframes signal-lock {
  0% { background-color: #344336; box-shadow: inset 3px 0 var(--accent); }
  45% { background-color: #253229; box-shadow: inset 3px 0 var(--signal); }
  100% { background-color: #1d2820; box-shadow: inset 1px 0 var(--signal); }
}
@keyframes signal-sweep {
  0% { opacity: .7; clip-path: inset(0 0 95% 0); }
  70% { opacity: .45; clip-path: inset(0 0 0 0); }
  100% { opacity: 0; clip-path: inset(95% 0 0 0); }
}
@keyframes signal-split {
  0% { transform: translateX(-2px); text-shadow: 2px 0 #d77d79, -2px 0 #b5c6b2; }
  30% { transform: translateX(2px); text-shadow: -2px 0 #d77d79; }
  65%, 100% { transform: none; text-shadow: none; }
}

/* Hover acquires a signal; click keeps its separate, faster transmission effect. */
:is(.directory-card, .social-connection, .recent-record)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(transparent 38%, #b5c6b21c 49%, #b5c6b255 50%, transparent 53%);
  background-size: 100% 250%;
}
@media (hover: hover) and (pointer: fine) {
  :is(.directory-card, .social-connection, .recent-record):is(:hover, :focus-visible) {
    background-color: #202b24;
    box-shadow: inset 2px 0 var(--accent), 0 0 20px #b5c6b20a;
    text-decoration: none;
  }
  .directory-card:is(:hover, :focus-visible) .card-index { color: var(--accent); }
  .directory-card:is(:hover, :focus-visible) .card-arrow { color: var(--signal); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.directory-card, .social-connection, .recent-record):is(:hover, :focus-visible):not(.signal-active)::before {
    animation: hover-scan 2.8s linear infinite;
  }
  :is(.directory-card, .social-connection, .recent-record):is(:hover, :focus-visible):not(.signal-active)::after {
    opacity: .28;
    animation: hover-tracking 1.8s linear infinite;
  }
  .directory-card:is(:hover, :focus-visible):not(.signal-active) .card-title {
    animation: hover-glitch 450ms steps(1, end) both;
  }
}
@keyframes hover-scan {
  0% { opacity: 0; background-position: 0 100%; }
  12%, 80% { opacity: .8; }
  100% { opacity: 0; background-position: 0 0; }
}
@keyframes hover-tracking {
  from { background-position: 0 0; }
  to { background-position: 0 12px; }
}
@keyframes hover-glitch {
  0%, 28%, 60%, 100% { transform: none; text-shadow: none; }
  12% { transform: translateX(-1px); text-shadow: 2px 0 #d77d7980, -2px 0 #b5c6b280; }
  42% { transform: translateX(1px); text-shadow: -2px 0 #d77d7980, 2px 0 #b5c6b280; }
}
