:root {
  --bg: #07060d;
  --bg2: #120c22;
  --text: #ece8f6;
  --muted: #9a93b3;
  --line: rgba(255,255,255,.09);
  --glass: rgba(22,16,40,.55);
  --accent: #c45cff;
  --accent2: #ff4d8d;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 16px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 80% -10%, #2a1150 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 110%, #3a0d2c 0%, transparent 55%),
              linear-gradient(var(--bg), var(--bg2));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.wrap {
  position: relative; z-index: 1;
  max-width: 980px; margin: 0 auto;
  padding: max(56px, env(safe-area-inset-top)) 20px max(40px, env(safe-area-inset-bottom));
  min-height: 100vh; display: flex; flex-direction: column;
}
.wrap.narrow { max-width: 720px; }

.hero { text-align: center; margin: 4vh 0 48px; }
.hero--left { text-align: left; margin: 24px 0 28px; }
.kicker { margin: 0 0 8px; color: var(--muted); letter-spacing: .25em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3, .title { font-family: Unbounded, Manrope, system-ui, sans-serif; font-weight: 700; }
h1 { margin: 0; font-size: clamp(32px, 7vw, 64px); line-height: 1.05; letter-spacing: -.02em; }
h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { margin: 12px 0 0; color: var(--muted); }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tile {
  --glow: var(--accent);
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 26px 24px; min-height: 140px; justify-content: flex-end;
  border-radius: 22px; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: inherit; text-decoration: none; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tile::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
  opacity: .22; transition: opacity .25s ease;
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--glow) 55%, transparent);
  box-shadow: 0 18px 50px -18px var(--glow);
  outline: none;
}
.tile:hover::before { opacity: .45; }
.tile--anime { --glow: #ff4d8d; }
.tile--about { --glow: #c45cff; }
.tile--log   { --glow: #5cc8ff; }
.tile--retro { --glow: #ffc46b; }
.tile--mc    { --glow: #6ee07a; }
.icon { font-size: 34px; line-height: 1; margin-bottom: auto; }
.title { font-size: 22px; }
.desc { color: var(--muted); font-size: 14px; }

footer { margin-top: auto; padding-top: 48px; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .05em; }

/* about */
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--text); }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); margin-bottom: 18px;
  box-shadow: 0 10px 40px -10px var(--accent);
}
.card {
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin-bottom: 16px;
}
.card h2 { margin: 0 0 12px; font-size: 18px; }
.card p { margin: 0; }
code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; font-size: .9em; overflow-wrap: anywhere; }
.facts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14px; }
.facts span { margin-right: 4px; }
.note { padding: 14px 0; border-top: 1px solid var(--line); }
.note:first-of-type { border-top: 0; padding-top: 0; }
.note time { color: var(--accent); font-size: 12px; letter-spacing: .1em; }
.note h3 { margin: 2px 0 4px; font-size: 16px; }
.note p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }

.card--link { display: block; color: inherit; text-decoration: none; transition: border-color .25s ease, transform .25s ease; }
.card--link:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-2px); }
.card--link p { color: var(--muted); }

/* log */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filters button {
  font: inherit; font-size: 14px; color: var(--muted); cursor: pointer;
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px;
}
.filters button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--accent2), transparent); opacity: .5; }
.entry { position: relative; margin-bottom: 16px; }
.entry::before {
  content: ""; position: absolute; left: -25px; top: 30px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--glow, var(--accent)); box-shadow: 0 0 12px var(--glow, var(--accent));
}
.entry[data-tag="change"]  { --glow: #5cc8ff; }
.entry[data-tag="problem"] { --glow: #ff4d8d; }
.status { border-radius: 999px; padding: 0 8px; }
.status--fixed { color: #6ee7a8; background: rgba(110,231,168,.12); }
.status--open  { color: #ffc46b; background: rgba(255,196,107,.12); }
.entry .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; font-size: 12px; letter-spacing: .08em; }
.entry time { color: var(--muted); }
.tag { color: var(--glow); border: 1px solid color-mix(in srgb, var(--glow) 45%, transparent); border-radius: 999px; padding: 0 8px; }
.entry h3 { margin: 0 0 6px; font-size: 17px; }
.entry p, .entry li { color: var(--muted); }
.entry ul { margin: 6px 0 0; padding-left: 18px; }
[hidden] { display: none !important; }
