@import "https://unpkg.com/open-props/easings.min.css";

:root {
  --bg: #0b0b0b;
  --text: #eaeaea;
  --muted: #b7b7b7;
  --accent: #28a745;
  --surface: #151515;
  --border: #242424;
  --shadow: rgba(0,0,0,.25);
  --header-h: 56px;
  --header-backdrop: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
  --nav-bg: var(--bg);
  --button-bg: linear-gradient(to bottom, #1a1a1a, #121212);
  --button-border: var(--border);
  --button-hover-border: #333;
  --tag-private-bg: #7a3838;
  --tag-private-text: #fff;
  --tag-live-bg: #2e7d32;
  --tag-live-text: #d7ffd9;
  --tag-upcoming-bg: #414141;
  --tag-upcoming-text: #f0f0f0;
  --icon-fill: var(--text);
  --icon-fill-hover: #ffffff;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f8;
    --text: #111111;
    --muted: #4a4a4a;
    --accent: #2b7a3f;
    --surface: #ffffff;
    --border: #dcdcdc;
    --shadow: rgba(0,0,0,.07);
    --header-backdrop: linear-gradient(to bottom, rgba(255,255,255,0.92), rgba(255,255,255,0));
    --nav-bg: var(--bg);
    --button-bg: linear-gradient(to bottom, #ffffff, #f2f2f2);
    --button-border: #cfcfcf;
    --button-hover-border: #b5b5b5;
    --tag-private-bg: #d74343;
    --tag-private-text: #ffffff;
    --tag-live-bg: #d3f4da;
    --tag-live-text: #0f5a23;
    --tag-upcoming-bg: #e6e6e6;
    --tag-upcoming-text: #383838;
    --icon-fill: #1f1f1f;
    --icon-fill-hover: #000000;
  }
}

:root[data-theme="light"] {
  --bg: #f7f7f8;
  --text: #111111;
  --muted: #4a4a4a;
  --accent: #2b7a3f;
  --surface: #ffffff;
  --border: #dcdcdc;
  --shadow: rgba(0,0,0,.07);
  --header-backdrop: linear-gradient(to bottom, rgba(255,255,255,0.92), rgba(255,255,255,0));
  --nav-bg: rgba(255,255,255,0.94);
  --button-bg: linear-gradient(to bottom, #ffffff, #f2f2f2);
  --button-border: #cfcfcf;
  --button-hover-border: #b5b5b5;
  --tag-private-bg: #d74343;
  --tag-private-text: #ffffff;
  --tag-live-bg: #d3f4da;
  --tag-live-text: #0f5a23;
  --tag-upcoming-bg: #e6e6e6;
  --tag-upcoming-text: #383838;
  --icon-fill: #1f1f1f;
  --icon-fill-hover: #000000;
}

:root[data-theme="dark"] {
  --bg: #0b0b0b;
  --text: #eaeaea;
  --muted: #b7b7b7;
  --accent: #28a745;
  --surface: #151515;
  --border: #242424;
  --shadow: rgba(0,0,0,.25);
  --header-backdrop: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
  --nav-bg: var(--bg);
  --button-bg: linear-gradient(to bottom, #1a1a1a, #121212);
  --button-border: var(--border);
  --button-hover-border: #333;
  --tag-private-bg: #7a3838;
  --tag-private-text: #fff;
  --tag-live-bg: #2e7d32;
  --tag-live-text: #d7ffd9;
  --tag-upcoming-bg: #414141;
  --tag-upcoming-text: #f0f0f0;
  --icon-fill: var(--text);
  --icon-fill-hover: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

.container { width: min(1100px, 92%); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-backdrop);
  backdrop-filter: blur(2px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { text-decoration: none; color: var(--text); }
.brand-title { font-weight: 700; letter-spacing: 0.2px; }

.header-controls { display: flex; align-items: center; gap: 10px; }

.theme-toggle, .nav-toggle {
  display: inline-flex;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.theme-toggle { position: relative; overflow: hidden; padding: 0; }
.theme-toggle svg { display: block; width: 18px; height: 18px; color: var(--icon-fill); }
.theme-toggle:is(:hover, :focus-visible) svg { color: var(--icon-fill-hover); }
.nav-toggle { display: none; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 3px auto; border-radius: 2px; }

.sun-and-moon > :is(.moon, .sun, .sun-beams) { transform-origin: center; }
.sun-and-moon > :is(.moon, .sun) { fill: currentColor; }
.sun-and-moon > .sun-beams { stroke: currentColor; stroke-width: 2px; }
[data-theme="dark"] .sun-and-moon > .sun { transform: scale(1.75); }
[data-theme="dark"] .sun-and-moon > .sun-beams { opacity: 0; }
[data-theme="dark"] .sun-and-moon > .moon > circle { transform: translateX(-7px); }
@supports (cx: 1) {
  [data-theme="dark"] .sun-and-moon > .moon > circle { cx: 17; transform: translateX(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .sun-and-moon > .sun { transition: transform .5s var(--ease-elastic-3); }
  .sun-and-moon > .sun-beams { transition: transform .5s var(--ease-elastic-4), opacity .5s var(--ease-3); }
  .sun-and-moon .moon > circle { transition: transform .25s var(--ease-out-5); }
  @supports (cx: 1) { .sun-and-moon .moon > circle { transition: cx .25s var(--ease-out-5); } }
  [data-theme="dark"] .sun-and-moon > .sun { transition-timing-function: var(--ease-3); transition-duration: .25s; transform: scale(1.75); }
  [data-theme="dark"] .sun-and-moon > .sun-beams { transition-duration: .15s; transform: rotateZ(-25deg); }
  [data-theme="dark"] .sun-and-moon > .moon > circle { transition-duration: .5s; transition-delay: .25s; }
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  align-items: center;
  min-height: var(--header-h);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  color: var(--text);
  text-decoration: none;
  opacity: 0.92;
}
.site-nav a:hover { opacity: 1; text-decoration: underline; }

.theme-toggle-item { display: flex; align-items: center; }

@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--nav-bg);
    z-index: 60;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px 12px 20px;
    backdrop-filter: blur(8px);
    max-height: calc(100vh - var(--header-h));
    overflow: hidden;
    transform: translateY(-4%);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav ul {
    flex-direction: column;
    padding: 8px 0 24px;
    gap: 10px;
    width: min(420px, 100%);
    align-items: stretch;
  }
  .site-nav li { width: 100%; }
  .site-nav a {
    height: auto;
    padding: 12px 14px;
    border-radius: 10px;
    width: 100%;
    justify-content: center;
  }
  .site-nav a:hover { text-decoration: none; background: rgba(255,255,255,0.06); }
  .theme-toggle-item { width: 100%; justify-content: center; }
  .theme-toggle { margin: 4px auto 0; }
}

.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
}
.hero h1 {
  font-weight: 700;
  margin: 0;
  font-size: clamp(20px, 4vw + 10px, 42px);
}

.hero-compact {
  min-height: auto;
  padding: 36px 0 8px;
}

.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section h2 { margin-top: 0; font-size: 22px; }
.section p { color: var(--muted); max-width: 70ch; }

.data-list {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
}
.data-list > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.data-list dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.data-list dd {
  margin: 6px 0 0;
  font-size: 18px;
  color: var(--text);
}
@media (min-width: 620px) {
  .data-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 6px 24px var(--shadow);
}
.project-title { margin: 0 0 6px; font-size: 18px; }
.project-desc { margin: 0 0 10px; color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 4px;
  vertical-align: middle;
}
.tag-private { background: var(--tag-private-bg); color: var(--tag-private-text); }
.tag-live { background: var(--tag-live-bg); color: var(--tag-live-text); }
.tag-upcoming { background: var(--tag-upcoming-bg); color: var(--tag-upcoming-text); }

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.button {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--button-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  background: var(--button-bg);
}
.button:hover { border-color: var(--button-hover-border); }

.site-footer {
  position: fixed; left: 0; right: 0; bottom: 10px;
  text-align: center;
  color: var(--muted);
  pointer-events: auto; 
}
.footer-inner { display: inline-flex; gap: 10px; align-items: baseline; }
.site-footer .sep { color: #3a3a3a; }
.site-footer a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted #2d2d2d; }
.site-footer a:hover { color: var(--text); border-bottom-color: #444; }

.abuseipdb-badge {
  position: fixed;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  display: inline-block;
  text-decoration: none;
  background: none !important;
  padding: 0;
  box-shadow: none;
  z-index: 40;
}
.abuseipdb-badge img {
  display: block;
  height: auto;
  width: clamp(160px, 32vw, 260px);
  background: #35c246 linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.3) 50%, rgba(0,0,0,.2) 51%, rgba(0,0,0,0));
  padding: 5px;
}

.hero-subtitle {
  margin-top: 10px;
  font-style: italic;
  color: var(--muted);
  font-size: clamp(12px, 1.4vw, 16px);
}