/* 1rhino2 portfolio — dark, technical, no template purple sludge */

:root {
  --bg: #06060b;
  --bg2: #0c0e14;
  --edge: #252b3d;
  --text: #e8eaf2;
  --muted: #8b93a8;
  --ion: #5dffce;
  --ion-dim: rgba(93, 255, 206, 0.14);
  --violet: #a78bfa;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > *:not(.grain) {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--edge);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--ion), var(--violet));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.9;
}

.logo-text {
  font-size: 1.15rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ion);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--edge);
  padding: 0.55rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg2);
    border-bottom: 1px solid var(--edge);
    gap: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header {
    position: relative;
    flex-wrap: wrap;
  }
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-accent {
  color: var(--ion);
  text-shadow: 0 0 40px var(--ion-dim);
}

.hero-lead {
  max-width: 38rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--edge);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn.primary {
  background: var(--ion);
  color: var(--bg);
  border-color: var(--ion);
}

.btn.primary:hover {
  box-shadow: 0 0 24px var(--ion-dim);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--ion);
  color: var(--ion);
}

.band {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.band-tight {
  padding-top: 1rem;
}

.section-title {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 1.5rem;
}

.lead-center {
  text-align: center;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 1.15rem 1.2rem;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: rgba(93, 255, 206, 0.35);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.note {
  margin-top: 1.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: var(--muted);
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.project-list li + li {
  margin-top: 0.65rem;
}

.project-link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--bg2);
  border: 1px solid var(--edge);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.project-link:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: #10121a;
}

.project-name {
  font-weight: 600;
  color: var(--text);
  grid-column: 1;
}

.project-desc {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: var(--muted);
}

.project-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--ion);
  font-size: 1.25rem;
}

.cta .payment-note {
  max-width: 36rem;
  margin: 2rem auto 0;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--edge);
  border-radius: 6px;
  background: rgba(12, 14, 20, 0.8);
}

.payment-note p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.inline-link {
  color: var(--ion);
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.discord-id {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--ion);
  background: rgba(93, 255, 206, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--edge);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
