/* digicore site styles.
   The brand's neon lives only in the banner and small accents; reading areas stay neutral.
   Light and dark follow the visitor's system setting. */

@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Press Start 2P"; src: url("fonts/press-start-2p.woff2") format("woff2"); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #1b1b20;
  --surface: #232329;
  --surface-2: #2b2b32;
  --border: #35353e;
  --text: #ececf1;
  --muted: #aeaeb8;
  --faint: #8a8a95;
  --accent: #f28de9;        /* link text: soft pink, readable on dark */
  --accent-bg: #c42fb5;     /* button fill, white text on it */
  --accent-bg-hover: #d63ec7;
  --rm: #41e82b;            /* reMOGGed green: accents on its page */
  --rm-text: #6ef25d;
  --rm-on: #0b0b0b;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --pixel: "Press Start 2P", ui-monospace, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f7f9;
    --surface: #ffffff;
    --surface-2: #f1f1f4;
    --border: #e2e2e8;
    --text: #18181c;
    --muted: #55555f;
    --faint: #75757f;
    --accent: #a01994;
    --accent-bg: #a8199b;
    --accent-bg-hover: #8f1484;
    --rm: #2fc41c;
    --rm-text: #1b7a10;
    --shadow: 0 1px 2px rgba(20,20,30,.06), 0 8px 24px rgba(20,20,30,.06);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav ul a:hover { color: var(--text); background: var(--surface-2); }

/* Banner: the one place the brand neon shows. Always dark, in both themes. */
.banner { position: relative; overflow: hidden; background: #0a0610; color: #fff; }
.banner canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
                 background: linear-gradient(90deg, rgba(10,6,16,.85) 0%, rgba(10,6,16,.35) 55%, rgba(10,6,16,0) 100%); }
.banner-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(16px, 3vw, 28px);
                padding: clamp(48px, 9vw, 88px) 16px; max-width: 1000px; margin: 0 auto; }
.banner-mascot { width: clamp(88px, 14vw, 132px); height: auto; aspect-ratio: 1; border-radius: 50%; flex: none;
                 filter: drop-shadow(0 0 18px rgba(255,61,242,.35)); }
.banner h1 { margin: 0 0 10px; font-family: var(--pixel); font-weight: 400; font-size: clamp(24px, 5.6vw, 48px);
             letter-spacing: 1px; line-height: 1.15; text-shadow: 0 0 14px rgba(255,61,242,.55); }
.banner p { margin: 0; color: #d9cfe0; font-size: clamp(16px, 2vw, 19px); }

/* Occasional, brief glitch on the wordmark */
.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; text-shadow: none; }
.glitch::before { color: #ff5af4; animation: slice1 9s steps(1) infinite; }
.glitch::after  { color: #7ef3ff; opacity: .6; animation: slice2 9s steps(1) infinite; }
@keyframes slice1 { 0%, 94%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  95% { clip-path: inset(20% 0 60% 0); transform: translateX(-4px); } 96.5% { clip-path: inset(58% 0 18% 0); transform: translateX(5px); } }
@keyframes slice2 { 0%, 95%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  95.8% { clip-path: inset(66% 0 10% 0); transform: translateX(5px); } 97% { clip-path: inset(12% 0 70% 0); transform: translateX(-6px); } }

/* Sections */
section { padding: 72px 0; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h2 { margin: 0 0 16px; font-size: clamp(26px, 3.4vw, 32px); line-height: 1.2; letter-spacing: -.01em; }
h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--faint); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .split { grid-template-columns: 1.1fr .9fr; } }

/* Project card */
.project { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; text-decoration: none; color: inherit;
           transition: transform .15s, box-shadow .15s, border-color .15s; }
@media (min-width: 720px) { .project { grid-template-columns: 1fr 1fr; } }
.project:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--rm) 50%, var(--border)); }
.project-art { background: #121215; display: grid; place-items: center; padding: 40px 32px; }
.project-art img { width: min(380px, 100%); }
.project-body { padding: 28px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.project-body p { color: var(--muted); }
.more { font-weight: 600; color: var(--rm-text); }

.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; border-radius: 999px; padding: 3px 10px;
       margin-left: 8px; vertical-align: 3px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.tag.rm { background: color-mix(in srgb, var(--rm) 16%, transparent); color: var(--rm-text); border-color: color-mix(in srgb, var(--rm) 35%, transparent); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 16px;
       text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.3; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent-bg); color: #fff; }
.btn-primary:hover { background: var(--accent-bg-hover); }
.btn-rm { background: var(--rm); color: var(--rm-on); }
.btn-rm:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--faint); border-color: var(--border); cursor: default; pointer-events: none; filter: none; }

.discord-widget iframe { width: 100%; height: 400px; border: 0; border-radius: var(--radius); display: block; }

/* reMOGGed page */
.p-hero { padding: 64px 0 48px; text-align: center; border-bottom: 1px solid var(--border); }
.p-hero .logo-tile { display: inline-block; background: #121215; border-radius: 18px; padding: 28px 32px; margin-bottom: 28px; }
.p-hero .logo-tile img { width: min(460px, 78vw); }
.p-hero .lead { max-width: 620px; margin: 0 auto 20px; }
.p-hero .btns { justify-content: center; }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { padding: 22px; }
.feature .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
               background: color-mix(in srgb, var(--rm) 14%, transparent); color: var(--rm-text); }
.feature .ic svg { width: 20px; height: 20px; }
.feature p { color: var(--muted); font-size: 16px; margin: 0; }
ol.steps { margin: 0; padding-left: 22px; color: var(--muted); }
ol.steps li { margin: 8px 0; padding-left: 4px; }
ol.steps b { color: var(--text); font-weight: 600; }
.callout { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
           color: var(--muted); font-size: 15px; }
.callout b { color: var(--text); }

.notes { display: flex; flex-direction: column; gap: 14px; }
.release h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 4px; }
.release time { color: var(--faint); font-size: 14px; font-weight: 400; }
.release .body { color: var(--muted); font-size: 16px; }
.release .body ul { margin: 8px 0; padding-left: 20px; }
.release .body p { margin: 8px 0; }
.release .body strong { color: var(--text); }

/* Plain text pages */
.prose h2 { margin-top: 40px; font-size: 22px; }
.prose ul { padding-left: 20px; color: var(--muted); }
.prose li { margin: 6px 0; }
.prose p { color: var(--muted); }

footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-direction: column; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }

hr.sep { border: 0; border-top: 1px solid var(--border); margin: 0; }

@media (max-width: 560px) {
  .nav ul a { padding: 8px; font-size: 14px; }
  .brand span { display: none; }
  section { padding: 56px 0; }
  .banner-inner { flex-direction: column; text-align: center; }
  .banner::after { background: rgba(10,6,16,.55); }
}
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { animation: none; display: none; }
  html { scroll-behavior: auto; }
  .project, .project:hover { transition: none; transform: none; }
}
