/* ═══════════════════════════════════════════════
   sobnober.neocities.org — style.css
   palette: SOULSBERRY smash (black · white · crimson)
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Share+Tech+Mono&family=Noto+Sans+JP:wght@300;400;500&display=swap');

/* ── VARIABLES ── */
:root {
  --bg:           #060606;
  --panel:        #0c0c0c;
  --panel-hd:     #131313;
  --border:       #1c1c1c;
  --border-mid:   #282828;
  --red:          #c81528;
  --red-dim:      #580a15;
  --text:         #c4c4c4;
  --text-hi:      #ebebeb;
  --text-mid:     #808080;
  --text-lo:      #424242;
  --ff-dot:       'DotGothic16', monospace;
  --ff-mono:      'Share Tech Mono', monospace;
  --ff-body:      'Noto Sans JP', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
}

/* ── ATMOSPHERE ── */
/* Very subtle bokeh — references the SOULSBERRY smash cover art */
.atmo {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 3% 97%, rgba(200, 21, 40, 0.055) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 97% 3%,  rgba(220, 220, 220, 0.018) 0%, transparent 55%),
    radial-gradient(ellipse 30% 20% at 50% 110%, rgba(200, 21, 40, 0.025) 0%, transparent 50%);
}

/* CRT scanlines */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.055) 3px,
    rgba(0, 0, 0, 0.055) 4px
  );
}

/* ── LAYOUT WRAPPER ── */
.site-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 14px 48px;
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════
   HEADER
   ════════════════════════════════ */
.site-header {
  padding: 20px 0 0;
}

.header-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border-mid);
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-name {
  font-family: var(--ff-dot);
  font-size: 28px;
  color: var(--text-hi);
  letter-spacing: 0.05em;
  line-height: 1;
}

.site-name .r { color: var(--red); }

.site-sub {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--text-lo);
  letter-spacing: 0.18em;
}

.header-right {
  text-align: right;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--text-lo);
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.header-right .clock { color: var(--text-mid); }

/* ── MARQUEE STRIP ── */
.marquee-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 5px 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--text-lo);
  letter-spacing: 0.14em;
  animation: mscroll 50s linear infinite;
}

@keyframes mscroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── PAGE NAV (tracklist-style) ── */
.page-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 11px;
}

.page-nav a {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--text-lo);
  letter-spacing: 0.1em;
  padding-right: 14px;
  transition: color 0.13s;
  white-space: nowrap;
}

.page-nav a .n { color: var(--red); margin-right: 3px; }
.page-nav a:hover { color: var(--text-hi); }
.page-nav a.active { color: var(--text-mid); }

/* ════════════════════════════════
   THREE-COLUMN GRID
   ════════════════════════════════ */
.site-main {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.col-l {
  width: 152px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.col-m {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.col-r {
  width: 188px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ════════════════════════════════
   WIDGET / PANEL CHROME
   ════════════════════════════════ */
.w {
  background: var(--panel);
  border: 1px solid var(--border);
}

.w-hd {
  background: var(--panel-hd);
  border-bottom: 1px solid var(--border);
  padding: 4px 8px 4px 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--text-mid);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Crimson left-bar accent — the "smash" moment */
.w-hd::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
}

.w-hd-sub {
  font-size: 9px;
  color: var(--text-lo);
}

.w-bd { padding: 8px; }
.w-bd-tight { padding: 0; }
.w-bd-sm { padding: 6px 8px; }

/* ════════════════════════════════
   LEFT SIDEBAR — NAV
   ════════════════════════════════ */
.nav-list { list-style: none; }

.nav-list li { border-bottom: 1px solid var(--border); }
.nav-list li:last-child { border-bottom: none; }

.nav-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-lo);
  letter-spacing: 0.04em;
  transition: color 0.12s, background 0.12s;
}

.nav-arr {
  font-size: 8px;
  color: var(--border-mid);
  flex-shrink: 0;
  transition: color 0.12s;
}

.nav-list a:hover {
  color: var(--text-hi);
  background: rgba(200, 21, 40, 0.05);
}

.nav-list a:hover .nav-arr { color: var(--red); }
.nav-list a.active { color: var(--text-hi); }
.nav-list a.active .nav-arr { color: var(--red); }

/* ── STATUS WIDGET ── */
.s-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px rgba(200, 21, 40, 0.65);
  animation: pulse 2.8s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 5px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(200,21,40,0.65); }
  50%       { opacity: 0.35; box-shadow: 0 0 2px rgba(200,21,40,0.2); }
}

.s-line {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--text-mid);
  line-height: 2;
}

/* ── EXTERNAL LINKS ── */
.ext-list { list-style: none; }

.ext-list li {
  border-bottom: 1px solid var(--border);
  padding: 3px 0;
}

.ext-list li:last-child { border-bottom: none; }

.ext-list a {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--text-lo);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.12s;
}

.ext-list a::before {
  content: '→';
  color: var(--border-mid);
  transition: color 0.12s;
}

.ext-list a:hover { color: var(--text-hi); }
.ext-list a:hover::before { color: var(--red); }

/* ════════════════════════════════
   MAIN COLUMN — WELCOME
   ════════════════════════════════ */
.welcome-ttl {
  font-family: var(--ff-dot);
  font-size: 15px;
  color: var(--text-hi);
  margin-bottom: 9px;
  letter-spacing: 0.07em;
}

.welcome-body p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 8px;
}

.welcome-body p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--text-lo);
  background: var(--panel-hd);
  border: 1px solid var(--border);
  padding: 1px 6px;
  margin: 2px 2px 2px 0;
  letter-spacing: 0.06em;
}

/* ── ART GRID ── */
.art-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.art-cell {
  aspect-ratio: 1 / 1;
  background: var(--panel-hd);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--text-lo);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  overflow: hidden;
}

.art-cell:hover {
  border-color: var(--red-dim);
  color: var(--text-mid);
}

.art-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── CHANGELOG ── */
.log-list { list-style: none; }

.log-list li {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.5;
  align-items: flex-start;
}

.log-list li:last-child { border-bottom: none; }

.log-date {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--red);
  flex-shrink: 0;
  padding-top: 1px;
  white-space: nowrap;
}

.log-txt { color: var(--text-mid); }
.log-txt strong { color: var(--text); font-weight: 500; }

/* ════════════════════════════════
   RIGHT SIDEBAR
   ════════════════════════════════ */

/* ── NOW ── */
.now-list { list-style: none; }

.now-list li {
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.now-list li:last-child { border-bottom: none; }

.now-lbl {
  display: block;
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.now-val { font-size: 11px; color: var(--text); }

/* ── SYSTEM TABLE ── */
.sys-tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-mono);
  font-size: 10px;
}

.sys-tbl tr { border-bottom: 1px solid var(--border); }
.sys-tbl tr:last-child { border-bottom: none; }

.sys-tbl td { padding: 3px 0; vertical-align: top; }
.sys-tbl td:first-child { color: var(--text-lo); width: 54px; }
.sys-tbl td:last-child  { color: var(--text); padding-left: 8px; }

/* ── DESK / STATIONERY ── */
.desk-list { list-style: none; }

.desk-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--ff-mono);
  font-size: 10px;
}

.desk-list li:last-child { border-bottom: none; }
.desk-cat  { color: var(--text-lo); }
.desk-item { color: var(--text); text-align: right; }

/* ── END OF AOI PROMO ── */
.eoa-box {
  background: #070000;
  border: 1px solid var(--red-dim);
  padding: 11px 10px;
  text-align: center;
}

.eoa-kana {
  font-family: var(--ff-dot);
  font-size: 14px;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.eoa-en {
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--text-lo);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.eoa-desc {
  font-size: 10px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 9px;
}

.eoa-btn {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--red);
  border: 1px solid var(--red-dim);
  padding: 3px 12px;
  letter-spacing: 0.06em;
  transition: background 0.15s, color 0.15s;
}

.eoa-btn:hover {
  background: var(--red);
  color: var(--bg);
}

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
.site-footer {
  margin-top: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-l {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--text-lo);
  letter-spacing: 0.08em;
}

.footer-l .r { color: var(--red); }

.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.footer-links a {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--text-lo);
  transition: color 0.13s;
}

.footer-links a:hover { color: var(--red); }

/* ════════════════════════════════
   UTILITIES
   ════════════════════════════════ */
.blink {
  display: inline-block;
  width: 7px; height: 12px;
  background: var(--red);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.mono { font-family: var(--ff-mono); }
.dot  { font-family: var(--ff-dot); }
.red  { color: var(--red); }
.lo   { color: var(--text-lo); }
.mid  { color: var(--text-mid); }
.hi   { color: var(--text-hi); }

/* ════════════════════════════════
   MOBILE FALLBACK
   ════════════════════════════════ */
@media (max-width: 680px) {
  .site-main   { flex-direction: column; }
  .col-l,
  .col-r       { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 7px; display: flex; }
  .col-l .w,
  .col-r .w,
  .col-r .eoa-box { flex: 1; min-width: 140px; }
  .art-grid    { grid-template-columns: repeat(3, 1fr); }
  .page-nav    { flex-wrap: wrap; gap: 6px; }
}
