/* Extent of the Jam — shared styles (plain CSS, edit freely) */

:root {
  --bg: #070709;
  --bg-elevated: #101014;
  --border: #2a2a32;
  --text: #e8e8ec;
  --muted: #9b9ba8;
  --link: #6eb0ff;
  --link-hover: #b8d6ff;
  --accent: #3d8cff;
  --accent-hi: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --glow-soft: rgba(0, 212, 255, 0.14);
  --grid-line: rgba(0, 212, 255, 0.045);
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  --max: 52rem;
  /* Home plugin cards + Digits/Slam product page hero — same wordmark height */
  --plugin-logo-height: clamp(3.25rem, 12vw, 10.625rem);
}

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

html {
  scroll-behavior: smooth;
}

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

/* —— Home: high-tech atmosphere (grid + vignette) —— */
body.page-home {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 212, 255, 0.09), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(61, 140, 255, 0.06), transparent 45%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size:
    100% 3px,
    100% 100%,
    100% 100%,
    48px 48px,
    48px 48px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #121218 0%, var(--bg) 100%);
}

.site-header--home {
  border-bottom-color: rgba(0, 212, 255, 0.22);
  box-shadow: 0 1px 0 rgba(0, 212, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 22%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.025) 0 2px, rgba(0, 0, 0, 0.02) 2px 6px),
    linear-gradient(180deg, rgba(28, 31, 41, 0.97) 0%, rgba(8, 8, 10, 0.94) 100%);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1rem;
}

.site-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--link-hover);
  text-decoration: none;
}

.site-header__status {
  margin: 0.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hi);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-header__pulse {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 10px var(--accent-hi);
  animation: header-pulse 2.2s ease-in-out infinite;
}

@keyframes header-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.92);
  }
}

.site-tagline {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 1rem;
}

.nav a {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 35%, rgba(0, 0, 0, 0.26) 100%),
    var(--bg-elevated);
  border: 1px solid #3a3a44;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover {
  border-color: var(--accent);
  color: var(--link-hover);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.main-home {
  padding-top: 1.75rem;
}

/* Framed “console” panels + corner brackets */
.tech-surface {
  position: relative;
  border-radius: 4px;
  border: 1px solid rgba(42, 42, 50, 0.9);
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.02) 0 2px, rgba(0, 0, 0, 0.02) 2px 6px),
    linear-gradient(145deg, var(--accent-dim) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 14%, transparent 38%),
    var(--bg-elevated);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 48px var(--glow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tech-surface::before,
.tech-surface::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 1;
}

.tech-surface::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent-hi);
  border-left: 2px solid var(--accent-hi);
  border-radius: 2px 0 0 0;
}

.tech-surface::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent-hi);
  border-right: 2px solid var(--accent-hi);
  border-radius: 0 0 2px 0;
}

.tech-surface--compact::before,
.tech-surface--compact::after {
  width: 10px;
  height: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .site-header__pulse {
    animation: none;
  }
}

.page-home .btn {
  box-shadow: 0 0 20px rgba(61, 140, 255, 0.25);
  border: 1px solid #5f92d8;
  background:
    linear-gradient(180deg, #6aa8ff 0%, #3d8cff 52%, #2c6fe0 100%);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.page-home .btn:hover {
  background:
    linear-gradient(180deg, #80b7ff 0%, #4c99ff 52%, #3679ea 100%);
}

/* —— Featured Digits card (logo + copy) —— */
.card--digits-featured,
.card--slam-featured {
  grid-column: 1 / -1;
  padding: 1.75rem 1.5rem 1.65rem;
  overflow: hidden;
  text-align: left;
}

.card-digits__grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 28%, black 15%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.card--digits-featured > :not(.card-digits__grid-bg):not(.card__accent) {
  position: relative;
  z-index: 1;
}

.card--digits-featured > .card__accent {
  z-index: 1;
}

.card-digits__logo-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.1rem;
  line-height: 0;
  align-self: flex-start;
  filter: drop-shadow(0 0 28px rgba(0, 212, 255, 0.18));
}

.card-digits__logo-link:hover img {
  filter: brightness(1.06);
}

.card-digits__logo,
.card-slam__logo {
  display: block;
  width: auto;
  height: var(--plugin-logo-height);
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
}

.card-digits__logo {
  border: 1px solid var(--border);
  border-radius: 3px;
}

.card-digits__lede {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40rem;
}

/* Home: Slam card — extracted logo + UI thumbnail */
.card-slam__logo-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.1rem;
  line-height: 0;
  align-self: flex-start;
  filter: drop-shadow(0 0 14px rgba(167, 139, 250, 0.35));
}

.card-slam__logo-link:hover {
  filter: drop-shadow(0 0 18px rgba(167, 139, 250, 0.45)) brightness(1.06);
}

.card-digits__shot-link,
.card-slam__shot-link {
  display: block;
  line-height: 0;
  margin: 0.5rem 0 0.85rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(42, 42, 50, 0.95);
  background: rgba(0, 0, 0, 0.35);
}

.card-digits__shot-link:hover {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.12);
}

.card-slam__shot-link:hover {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.12);
}

.card-digits__shot,
.card-slam__shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: 9.5rem;
  vertical-align: middle;
}

/* Digits: sharp downscale from DigitsBig.png; show full width of UI in strip */
.card-digits__shot {
  object-fit: contain;
  object-position: center;
}

.card-slam__shot {
  object-fit: cover;
  object-position: top center;
}

/* Section titles with accent bar */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.section-heading--home {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.section-heading--inset {
  margin-top: 0;
}

.section-heading__mark {
  flex-shrink: 0;
  width: 4px;
  height: 1.35rem;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.45);
}

.section-heading__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: none;
  padding: 0;
}

.card--digits .card__accent {
  background: linear-gradient(90deg, var(--accent-hi), transparent);
}

.card--slam .card__accent {
  background: linear-gradient(90deg, #a78bfa, transparent);
}

.card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}

.card--digits:not(.card--digits-featured),
.card--slam:not(.card--slam-featured) {
  padding-top: 1.5rem;
  overflow: hidden;
}

.card__title {
  margin: 0;
  font-size: 1.15rem;
}

/* Portfolio: tile grid */
.portfolio-panel {
  padding: 1.35rem 1.25rem 1.5rem;
}

.portfolio-panel .portfolio-lede {
  margin-top: 0.35rem;
}

.portfolio-tiles {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.portfolio-tiles a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(42, 42, 50, 0.95);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.portfolio-tiles a:hover {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
  color: var(--link-hover);
  text-decoration: none;
}


.portfolio-tiles__label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hi);
  opacity: 0.9;
}

footer.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Home cards */
.intro {
  margin-bottom: 2rem;
}

.intro h2 {
  margin-top: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

/* Home plugin row: one full-width column so Digits + Slam stack cleanly (no auto-fit quirks) */
.card-grid--home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.card-grid--home > * {
  min-width: 0;
}

/* Home plugin cards: multiple <p>s + screenshot; don’t let flex-grow stretch body copy */
.card-grid--home .card p {
  flex-grow: 0;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* .card comes after .tech-surface in the file; restore panel look when both classes are used */
.card.tech-surface {
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.02) 0 2px, rgba(0, 0, 0, 0.02) 2px 6px),
    linear-gradient(145deg, var(--accent-dim) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 14%, transparent 38%),
    var(--bg-elevated);
  border: 1px solid rgba(42, 42, 50, 0.9);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 48px var(--glow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card h3,
.card__title {
  margin: 0;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  flex-grow: 1;
}

.card .btn {
  align-self: flex-start;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  text-decoration: none !important;
}

.btn:hover {
  filter: brightness(1.08);
  color: #fff !important;
  text-decoration: none !important;
}

.btn--ghost {
  background: transparent;
  color: var(--link) !important;
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--link-hover) !important;
}

/* Typography blocks */
.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

/* Product pages: wordmark replaces text title */
h1.page-hero-logo {
  margin: 0 0 1rem;
  line-height: 0;
  font-size: 0;
  font-weight: 400;
}

.page-hero-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: var(--plugin-logo-height);
  object-fit: contain;
  object-position: left center;
}

.page-hero-logo--digits img {
  border: 1px solid var(--border);
  border-radius: 3px;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
}

.news-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.75rem;
}

.news-banner strong {
  color: var(--text);
}

.section {
  margin-bottom: 2rem;
}

.section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

.section .section-heading__title {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.list-plain {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.list-plain li {
  margin-bottom: 0.35rem;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-list li {
  margin-bottom: 0.65rem;
}

.download-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.icon-dl {
  flex-shrink: 0;
  opacity: 0.85;
}

.soundcloud {
  margin: 1rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
}

.soundcloud iframe {
  display: block;
  width: 100%;
  height: 300px;
}

.figure-link {
  display: inline-block;
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}

.figure-link img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.slam-interface-shot {
  margin-top: 0.5rem;
}

.slam-interface-shot + .caption {
  margin-bottom: 1.25rem;
}

/* Digits page: large screenshot (uses InterfaceSmall.png; links to DigitsBig.png) */
.digits-screen .digits-screen__link {
  display: block;
  max-width: min(100%, 52rem);
}

.digits-screen .digits-screen__link img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.caption {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.details-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.details-block summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.35rem 0;
}

.details-block[open] summary {
  margin-bottom: 0.75rem;
}

.small-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.kvr-disclaimer {
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-top: 1.5rem;
}

.sidebar-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-top: 2rem;
}

.sidebar-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  border: none;
  padding: 0;
}

.section--portfolio {
  margin-top: 3.25rem;
  margin-bottom: 2.25rem;
}

.portfolio-lede,
.plugins-lede {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 1rem;
}

.plugins-lede {
  margin-bottom: 1.25rem;
}

.portfolio-list {
  font-size: 1.05rem;
}

.portfolio-list li {
  margin-bottom: 0.5rem;
}

@media (min-width: 900px) {
  .layout-two-col {
    display: grid;
    grid-template-columns: 1fr 18rem;
    gap: 2rem;
    align-items: start;
  }

  .layout-two-col .sidebar-panel {
    margin-top: 0;
  }
}


/* Legacy project pages pulled from extentofthejam.com */
body.project-page {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

.project-page a {
  color: var(--link);
}

.project-page a:hover {
  color: var(--link-hover);
}

.project-shell {
  max-width: var(--max);
  margin: 1.5rem auto 2rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.project-shell__title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
}

.project-shell__content img {
  max-width: 100%;
  height: auto;
}

.project-shell__content table {
  max-width: 100%;
}

.project-file-list {
  margin: 0;
  padding-left: 1.2rem;
}

.project-file-list li {
  margin: 0.22rem 0;
}

.project-shell__content center {
  display: block;
  text-align: left;
}


.project-back {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
}

.project-back a {
  color: var(--link);
  text-decoration: none;
}

.project-back a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
