/* NYXLESS — editorial personal index, inspired by Ryoku's paper-and-ink visual language */
:root {
  color-scheme: dark;
  --ink: #09090b;
  --ink-soft: #101013;
  --paper: #e9e5dc;
  --paper-muted: #b2ada4;
  --paper-dim: #77736d;
  --grey: #77736d;
  --grey-dark: #64645f;
  --rule: rgba(233, 229, 220, .17);
  --rule-strong: rgba(233, 229, 220, .29);
  --purple: #b69be7;
  --purple-dim: #8c73b7;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
  --jp: "Noto Serif JP", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 35px; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 11%, rgba(103, 76, 140, .10), transparent 37%),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
::selection { color: var(--ink); background: var(--purple); }

.reading-progress {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: 2px;
  background: transparent;
}
.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--purple);
  box-shadow: 0 0 12px rgba(182,155,231,.5);
}
.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}
.site-wrap { width: min(100% - 76px, 1040px); margin: 0 auto; }

.masthead {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  color: var(--paper-muted);
  font: 10px var(--mono);
  letter-spacing: .13em;
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand-symbol { color: var(--paper); font: 600 22px var(--serif); letter-spacing: -.12em; }
.brand-symbol span { color: var(--purple); }
.brand-name { font-size: 9px; letter-spacing: .2em; }
.masthead-center { justify-self: center; white-space: nowrap; color: var(--paper-dim); }
.masthead-center span { color: inherit; padding: 0 4px; }
.masthead-link { justify-self: end; color: var(--paper); font-size: 9px; transition: color .2s ease; }
.masthead-nav { justify-self: end; display: flex; align-items: center; gap: 22px; }
.masthead-link span { color: var(--purple); font-size: 15px; margin-left: 6px; }
.masthead-link:hover, .back-top:hover { color: var(--purple); }

.hero {
  min-height: 340px;
  padding: 30px 0 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--paper-dim);
  font: 9px var(--mono);
  letter-spacing: .14em;
}
.hero-meta > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 12px rgba(182,155,231,.65); }
.meta-jp { color: var(--purple); font: 11px var(--jp); letter-spacing: .12em; }
.hero-title {
  margin: 18px 0 0;
  color: var(--paper);
  font: 500 clamp(76px, 12vw, 132px)/.98 var(--serif);
  letter-spacing: -.075em;
  text-wrap: balance;
}
.hero-title span { color: var(--purple); }
.hero-japanese { margin: 16px 0 0; color: var(--purple); font: 15px var(--jp); letter-spacing: .14em; }
.hero-description { max-width: 420px; margin: 18px 0 0; color: var(--paper-muted); font-size: 13px; line-height: 1.9; font-weight: 400; text-wrap: balance; }
.hero-bottom {
  width: 100%;
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr minmax(40px, 80px) 1fr;
  align-items: center;
  gap: 12px;
  color: var(--paper-dim);
  font: 9px var(--mono);
  letter-spacing: .14em;
}
.hero-bottom span:first-child { text-align: left; }
.hero-bottom span:last-child { text-align: right; }
.hero-bottom:hover, .hero-bottom:focus-visible { color: var(--paper-muted); }
.hero-bottom:hover .scroll-line::after, .hero-bottom:focus-visible .scroll-line::after { background: var(--paper); }
.scroll-line { position: relative; height: 1px; background: var(--rule); overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 34%; background: var(--purple); animation: scan 2.7s ease-in-out infinite; }

.content-section, .about-section { border-top: 1px solid var(--rule-strong); padding: 36px 0 78px; }
.section-kicker { display: flex; align-items: center; gap: 13px; color: var(--paper-dim); font: 9px var(--mono); letter-spacing: .15em; }
.section-number { color: var(--purple); font-size: 11px; }
.section-rule { height: 1px; width: 36px; background: var(--rule-strong); }
.section-kicker b { color: var(--purple-dim); font-weight: 400; }
.section-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 35px;
  align-items: end;
  margin: 34px 0 26px;
}
.section-intro h2, .about-copy h2 {
  margin: 0;
  color: var(--paper);
  font: 400 clamp(42px, 6vw, 62px)/.98 var(--serif);
  letter-spacing: -.055em;
}
.section-intro h2 em, .about-copy h2 em { color: var(--purple); font-style: italic; }
.section-intro p {
  max-width: 280px;
  margin: 0 0 5px;
  color: var(--paper-muted);
  font-size: 12px;
  line-height: 1.85;
}

.link-list { border-top: 1px solid var(--rule); }
.link-row {
  min-height: 94px;
  display: grid;
  grid-template-columns: 150px 1fr 38px 20px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: padding .25s ease, background .25s ease;
}
.link-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--purple);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .25s ease;
}
.link-row:hover, .link-row:focus-visible { padding-left: 13px; background: linear-gradient(90deg, rgba(182,155,231,.055), transparent 55%); }
.link-row:focus-visible { outline-offset: -2px; }
.link-row:hover::before, .link-row:focus-visible::before { transform: scaleY(1); }
.link-index { color: var(--paper-dim); font: 9px var(--mono); letter-spacing: .1em; }
.link-index span { color: var(--purple-dim); }
.link-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.link-title { color: var(--paper); font: 500 25px/1.05 var(--serif); letter-spacing: -.025em; transition: color .2s ease; }
.link-description { color: var(--paper-dim); font-size: 10px; line-height: 1.45; }
.link-glyph {
  width: 35px; height: 35px;
  display: grid; place-items: center;
  color: var(--paper-muted);
  border: 1px solid var(--rule);
  border-radius: 50%;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.link-glyph svg { width: 15px; height: 15px; fill: currentColor; }
.link-arrow { color: var(--purple-dim); font-size: 17px; transition: transform .2s ease, color .2s ease; }
.link-row:hover .link-title, .link-row:hover .link-glyph, .link-row:hover .link-arrow,
.link-row:focus-visible .link-title, .link-row:focus-visible .link-glyph, .link-row:focus-visible .link-arrow { color: var(--purple); }
.link-row:hover .link-glyph, .link-row:focus-visible .link-glyph { border-color: rgba(182,155,231,.45); background: rgba(182,155,231,.08); }
.link-row:hover .link-arrow, .link-row:focus-visible .link-arrow { transform: translate(3px,-3px); }
.links-footnote { margin: 17px 0 0; color: var(--paper-dim); font: 9px var(--mono); letter-spacing: .08em; }
.links-footnote span { color: var(--purple); }

.about-section { padding-bottom: 76px; }
.about-panel {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  padding: 45px 55px 43px;
  border: 1px solid var(--rule);
  background:
    radial-gradient(ellipse at 94% 8%, rgba(138,104,184,.13), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,.025), rgba(255,255,255,0));
}
.about-stamp {
  position: absolute;
  top: 28px;
  right: 35px;
  color: rgba(182,155,231,.12);
  font: 73px var(--jp);
  writing-mode: vertical-rl;
  user-select: none;
}
.about-copy { position: relative; max-width: 650px; }
.about-label { margin: 0 0 15px; color: var(--paper-dim); font: 9px var(--mono); letter-spacing: .16em; }
.about-copy h2 { font-size: clamp(36px, 5.3vw, 54px); }
.about-copy > p:not(.about-label) { max-width: 510px; margin: 22px 0 0; color: var(--paper-muted); font-size: 12px; line-height: 1.95; }
.interest-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.interest-list span { padding: 7px 9px; border: 1px solid var(--rule); color: var(--paper-dim); font: 8px var(--mono); letter-spacing: .1em; }
.about-side-note {
  position: absolute;
  right: 28px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--grey-dark);
  font: 7px var(--mono);
  letter-spacing: 0.08em;
}
.about-side-note span:last-child { color: var(--grey); font: 9px var(--jp); }

.footer { padding: 25px 0 22px; border-top: 1px solid var(--rule-strong); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.footer-mark { color: var(--paper-muted); font: 9px var(--mono); letter-spacing: .17em; }
.footer-mark span { color: var(--paper); font: 600 19px var(--serif); letter-spacing: -.1em; margin-right: 7px; }
.footer-mantra { justify-self: center; margin: 0; color: var(--purple-dim); font: 10px var(--jp); }
.back-top { justify-self: end; color: var(--paper-muted); font: 8px var(--mono); letter-spacing: .12em; transition: color .2s ease; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 29px; padding-top: 13px; border-top: 1px solid var(--rule); color: var(--paper-dim); font: 8px var(--mono); letter-spacing: .1em; }
.footer-bottom b { color: var(--purple); font-size: 12px; font-weight: 400; margin-left: 4px; }

/* Scroll reveal: content remains visible when reduced motion is requested. */
.reveal { opacity: 0; transform: translateY(15px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* Keep both the reveal and the link-row hover transitions on the same element. */
.link-row.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), padding .25s ease, background .25s ease; }
@keyframes scan { 0%, 100% { transform: translateX(-110%); } 55% { transform: translateX(310%); } }

@media (max-width: 700px) {
  .site-wrap { width: min(100% - 38px, 560px); }
  .masthead { min-height: 65px; grid-template-columns: 1fr auto; }
  .masthead-center { display: none; }
  .brand-symbol { font-size: 21px; }
  .brand-name { font-size: 8px; }
  .masthead-link { font-size: 8px; }
  .masthead-nav { gap: 14px; }
  .hero { min-height: 330px; padding: 28px 0 24px; }
  .hero-meta { font-size: 8px; letter-spacing: .1em; }
  .meta-jp { font-size: 10px; }
  .hero-title { font-size: clamp(70px, 18vw, 108px); }
  .hero-japanese { font-size: 13px; }
  .hero-description { max-width: 340px; font-size: 11px; }
  .hero-bottom { margin-top: 30px; grid-template-columns: 1fr 55px 1fr; font-size: 8px; }
  .content-section, .about-section { padding: 28px 0 59px; }
  .section-intro { grid-template-columns: 1fr; gap: 13px; margin: 27px 0 20px; }
  .section-intro h2 { font-size: clamp(46px, 12vw, 59px); }
  .section-intro p { max-width: 330px; font-size: 11px; }
  .link-row { min-height: 86px; grid-template-columns: 72px 1fr 34px 12px; gap: 11px; }
  .link-index { font-size: 8px; letter-spacing: .04em; }
  .link-title { font-size: 23px; }
  .link-description { font-size: 9px; }
  .link-glyph { width: 32px; height: 32px; }
  .link-glyph svg { width: 14px; height: 14px; }
  .link-arrow { font-size: 15px; }
  .about-panel { margin-top: 25px; padding: 34px 25px 30px; }
  .about-stamp { top: 18px; right: 17px; font-size: 55px; }
  .about-label { font-size: 8px; }
  .about-copy h2 { font-size: clamp(35px, 9.5vw, 48px); }
  .about-copy > p:not(.about-label) { max-width: 100%; margin-top: 17px; font-size: 11px; }
  .interest-list { gap: 6px; margin-top: 19px; }
  .interest-list span { padding: 6px 7px; font-size: 7px; }
  .footer { grid-template-columns: 1fr auto; row-gap: 17px; }
  .footer-mantra { display: none; }
  .back-top { grid-column: 2; grid-row: 1; }
  .footer-bottom { margin-top: 0; }
}
@media (max-width: 390px) {
  .site-wrap { width: calc(100% - 30px); }
  .hero { min-height: 310px; }
  .hero-meta {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }
  .hero-meta > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
    font-size: 7px;
    letter-spacing: .07em;
    white-space: nowrap;
  }
  .live-dot { width: 5px; height: 5px; flex: 0 0 5px; }
  .meta-jp {
    flex: 0 0 auto;
    font-size: 9px;
    letter-spacing: .06em;
  }
  .hero-title { font-size: clamp(64px, 18vw, 82px); }
  .hero-description { font-size: 10px; }
  .masthead-nav { gap: 11px; }
  .section-kicker { gap: 9px; font-size: 8px; letter-spacing: .11em; }
  .section-rule { width: 24px; }
  .link-row { grid-template-columns: 61px minmax(0,1fr) 30px 10px; gap: 8px; }
  .link-index { font-size: 7px; }
  .link-title { font-size: 21px; }
  .link-description { font-size: 8px; }
  .about-panel { padding-inline: 19px; }
  .footer-bottom { font-size: 7px; }
}
@media (hover: none) and (pointer: coarse) {
  .link-row:hover { padding-left: 0; background: transparent; }
  .link-row:hover::before { transform: scaleY(0); }
  .link-row:hover .link-title { color: var(--paper); }
  .link-row:hover .link-glyph { color: var(--paper-muted); border-color: var(--rule); background: transparent; }
  .link-row:hover .link-arrow { color: var(--purple-dim); transform: none; }
  .link-row:active { padding-left: 8px; background: rgba(182,155,231,.06); }
  .link-row:active::before { transform: scaleY(1); }
  .link-row:active .link-title, .link-row:active .link-glyph, .link-row:active .link-arrow { color: var(--purple); }
  .link-row:active .link-glyph { border-color: rgba(182,155,231,.45); background: rgba(182,155,231,.08); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

