:root {
  --ink: #f1f5ff;
  --muted: #b8c2dc;
  --surface: #171b31;
  --surface-raised: #202744;
  --surface-deep: #0d1020;
  --line: #3a456c;
  --blue: #80a8ff;
  --purple: #bc91ff;
  --green: #79dfb3;
  --orange: #ffb56b;
  --rose: #ff7d96;
  --gold: #f8dc72;
  --focus: #f8dc72;
  --shadow: 0 18px 50px rgb(0 0 0 / 0.25);
  --site-background:
    radial-gradient(circle at 78% 9%, rgb(104 85 191 / 0.25), transparent 26rem),
    radial-gradient(circle at 14% 24%, rgb(20 138 127 / 0.2), transparent 24rem),
    linear-gradient(180deg, #0d1020 0%, #11172a 48%, #0d1020 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--site-background);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #131728;
  background: var(--focus);
  border-radius: 0.4rem;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgb(134 155 211 / 0.16);
  background: rgb(13 16 32 / 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell,
.footer-shell,
.hero,
.section {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
}

.wordmark {
  color: var(--ink);
  font-family: Merienda, cursive;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.wordmark span:first-child { color: var(--purple); }
.wordmark span:last-child { color: var(--green); }

.site-nav > ul {
  display: flex;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav > ul > li { position: relative; }

.site-nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
  border-radius: 0.45rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgb(128 168 255 / 0.13);
}

.nav-caret {
  display: inline-block;
  margin-left: 0.15rem;
  font-size: 0.75em;
  transition: transform 150ms ease;
}

.project-submenu {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  width: max-content;
  min-width: 13rem;
  padding: 0.45rem;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.nav-projects:hover .project-submenu,
.nav-projects:focus-within .project-submenu {
  display: grid;
}

.nav-projects:hover .nav-caret,
.nav-projects:focus-within .nav-caret {
  transform: rotate(180deg);
}

.project-submenu a { padding: 0.65rem 0.8rem; }

.nav-toggle { display: none; }

.breadcrumbs {
  width: min(1120px, calc(100% - 3rem));
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgb(184 194 220 / 0.56);
}

.breadcrumbs a {
  color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

#gentleman-body .breadcrumbs {
  color: var(--line);
}
#gentleman-body .breadcrumbs a {
  color: var(--surface-raised);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(17rem, 0.95fr);
  gap: 4rem;
  align-items: start;
  min-height: 34rem;
  padding-block: 5.5rem 4.5rem;
}

.hero-copy { padding-top: 2rem; }

.eyebrow,
.project-kicker {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-content .eyebrow {
  color: var(--green);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Merienda, cursive;
  font-weight: 700;
  line-height: 1.2;
}

h1 { max-width: 12ch; font-size: 4.25rem; letter-spacing: 0; }
h2 { font-size: 2.65rem; letter-spacing: 0; }
h3 { font-size: 1.55rem; letter-spacing: 0; }

.hero-intro,
.lead {
  max-width: 42rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.5rem;
}

.button-primary {
  color: #11172a;
  background: var(--green);
  box-shadow: 0 8px 24px rgb(121 223 179 / 0.22);
}

.button-primary:hover { background: #a0f0cd; }

.button-quiet {
  color: var(--ink);
  border-color: var(--line);
  background: rgb(255 255 255 / 0.035);
}

.button-quiet:hover {
  border-color: var(--blue);
  background: rgb(128 168 255 / 0.1);
}

.button-pro-palette {
  color: #06121b;
  border-color: #73d1ff;
  background: #10a6fc;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.2) inset,
    0 0 24px rgb(16 166 252 / 0.46),
    0 10px 26px rgb(16 166 252 / 0.26);
}

.button-pro-palette:hover {
  color: #020b12;
  background: #4dc4ff;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.28) inset,
    0 0 30px rgb(16 166 252 / 0.62),
    0 12px 30px rgb(16 166 252 / 0.34);
}

.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "logo logo"
    "games extensions"
    "collabs other";
  grid-template-rows: auto minmax(5.8rem, 1fr) minmax(5.8rem, 1fr);
  gap: 0.7rem;
  align-items: stretch;
  align-content: start;
  min-height: 24rem;
  padding-top: 0.4rem;
}

.hero-art::before { content: none; }

.hero-logo {
  grid-area: logo;
  justify-self: center;
  width: min(14rem, 60%);
  margin-bottom: 0.45rem;
  filter: drop-shadow(0 12px 22px rgb(0 0 0 / 0.35));
}

.portfolio-stack { display: contents; }

.mini-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
  min-height: 5.8rem;
  height: 100%;
  padding: 0.6rem;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgb(134 155 211 / 0.28);
  border-radius: 0.45rem;
  background:
    linear-gradient(135deg, rgb(32 39 68 / 0.88), rgb(13 16 32 / 0.9)),
    radial-gradient(circle at 80% 20%, rgb(121 223 179 / 0.18), transparent 8rem);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.12);
  transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.mini-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.mini-panel:hover {
  border-color: rgb(128 168 255 / 0.75);
  background:
    linear-gradient(135deg, rgb(39 48 84 / 0.92), rgb(13 16 32 / 0.94)),
    radial-gradient(circle at 80% 20%, rgb(121 223 179 / 0.2), transparent 8rem);
  transform: translateY(-2px);
}

.mini-panel:nth-child(1) { grid-area: games; }
.mini-panel:nth-child(2) { grid-area: extensions; border-color: rgb(121 223 179 / 0.42); }
.mini-panel:nth-child(3) { grid-area: collabs; border-color: rgb(255 181 107 / 0.42); }
.mini-panel:nth-child(4) { grid-area: other; border-color: rgb(255 125 150 / 0.4); }

.mini-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.95rem;
  aspect-ratio: 1;
  font-weight: 900;
  border-radius: 0.35rem;
  background: var(--blue);
}

.mini-panel:nth-child(2) .mini-icon { background: var(--green); }
.mini-panel:nth-child(3) .mini-icon { background: var(--orange); }
.mini-panel:nth-child(4) .mini-icon { background: var(--rose); }

.mini-panel strong { position: relative; z-index: 1; display: block; }
.mini-panel span { position: relative; z-index: 1; color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.mini-panel span.mini-icon  {  color: #11172a; }

.section { padding-block: 3rem; }
.featured { border-top: 1px solid rgb(134 155 211 / 0.18); }

.section-heading {
  display: grid;
  gap: 0.65rem;
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-heading > p:last-child { color: var(--muted); margin: 0; }

.category-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.category-card,
.detail-card {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid rgb(134 155 211 / 0.24);
  border-radius: 0.5rem;
  background: rgb(23 28 50 / 0.76);
  text-decoration: none;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.12);
}

.category-card:hover,
.detail-card:hover {
  border-color: rgb(128 168 255 / 0.65);
  transform: translateY(-2px);
  transition: 170ms ease;
}

.category-card p,
.detail-card p {
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.category-card .text-link,
.detail-card .text-link { margin-top: auto; padding-top: 1rem; }

.project-list {
  display: grid;
  gap: 1.4rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(13rem, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid rgb(134 155 211 / 0.25);
  border-radius: 0.55rem;
  background: linear-gradient(120deg, rgb(32 39 68 / 0.88), rgb(23 28 50 / 0.88));
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.13);
}

.project-card:hover {
  border-color: rgb(128 168 255 / 0.65);
  transform: translateY(-2px);
  transition: 170ms ease;
}

.project-card.external-card {
  grid-template-columns: minmax(0, 1fr);
  border-style: dashed;
  border-color: rgb(255 181 107 / 0.45);
  background:
    linear-gradient(90deg, rgb(255 181 107 / 0.12), transparent 0.45rem),
    rgb(16 21 39 / 0.74);
}

.project-card.external-card:hover {
  border-color: rgb(255 181 107 / 0.75);
}

.project-card.external-card.external-project-card {
  grid-template-columns: minmax(13rem, 0.8fr) minmax(0, 1fr) minmax(13rem, 0.8fr);
  align-items: stretch;
}

.external-image {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem;
  margin: 0;
  background: rgb(8 13 29 / 0.56);
}

.external-image img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border: 1px solid rgb(255 181 107 / 0.28);
  border-radius: 0.4rem;
  background: #0e1425;
}

.external-image figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.external-image a { display: block; }

.external-image .image-link {
  display: inline;
  color: var(--orange);
}

.external-image .image-link:hover { color: #ffd1a1; }

.small-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.small-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px dashed rgb(255 181 107 / 0.45);
  border-radius: 0.55rem;
  background:
    linear-gradient(180deg, rgb(255 181 107 / 0.1), transparent 0.5rem),
    rgb(16 21 39 / 0.74);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.12);
}

.small-card:hover {
  border-color: rgb(255 181 107 / 0.75);
  transform: translateY(-2px);
  transition: 170ms ease;
}

.small-card img {
  width: 100%;
  height: 11rem;
  object-fit: contain;
  background: #0e1425;
}

.small-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
}

.small-card-content p:not(.project-kicker) {
  color: var(--muted);
  margin: 0.75rem 0 1rem;
}

.small-card-content .text-link {
  margin-top: auto;
  color: var(--orange);
}

.contain {
  object-fit: contain;
  background: #0e1425;
}

.project-image {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
  background: #252d4d;
}

.project-image.contain {
  object-fit: contain;
  padding: 1rem;
  background: #0e1425;
}

/*.project-image-chart { object-position: 15% 50%; }*/

.project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.project-content p:not(.project-kicker) {
  color: var(--muted);
  margin: 1rem 0 1.25rem;
  font-size: small;
}

.project-content .meta-row {
  margin-top: 1rem;
}

.project-kicker { color: var(--purple); }
.external-card .project-kicker { color: var(--orange); }

.text-link {
  color: var(--green);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.text-link:hover { color: #b4f8d8; }
.external-card .text-link { color: var(--orange); }
.external-card .text-link:hover { color: #ffd1a1; }

.card-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
  width: 100%;
}

.card-link-row .text-link-pro {
  margin-left: auto;
  color: #10a6fc;
}

.card-link-row .text-link-pro:hover { color: #73d1ff; }

.extension-banner img.contain {
  object-fit: contain;
  background: #0e1425;
}

.section-link { margin-top: 2rem; }

.callout {
  max-width: 1120px;
  margin-bottom: 5rem;
  padding: clamp(2rem, 6vw, 4.2rem);
  border: 1px solid rgb(255 181 107 / 0.4);
  border-radius: 0.55rem;
  background: linear-gradient(135deg, rgb(56 38 73 / 0.72), rgb(20 48 54 / 0.86));
}

.callout h2 { max-width: 24ch; }

.callout > p:last-child {
  max-width: 46rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.site-footer { border-top: 1px solid rgb(134 155 211 / 0.18); }

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-shell p { margin: 0; }

.page-heading {
  max-width: 55rem;
  padding-block: 5rem 3rem;
}

.page-heading h1 { max-width: 15ch; }

.page-heading p:last-child {
  max-width: 46rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.13rem;
}

.purchase-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: 2rem;
  align-items: center;
  padding-block: 3.5rem 2rem;
}

.purchase-hero img {
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
  border: 1px solid rgb(134 155 211 / 0.25);
  border-radius: 0.55rem;
  background: #0e1425;
  box-shadow: var(--shadow);
}

.page-content {
  max-width: 52rem;
  padding-bottom: 6rem;
}

.page-content h2 {
  margin-top: 2.5rem;
  font-size: 2rem;
}

.page-content p,
.page-content li { color: var(--muted); }
.page-content ul { padding-left: 1.25rem; }

.page-content ol { padding-left: 1.25rem; }

.legal-note {
  padding: 1.25rem;
  border: 1px solid rgb(134 155 211 / 0.24);
  border-radius: 0.55rem;
  background: rgb(23 28 50 / 0.76);
}

.purchase-layout {
  align-items: start;
}

.purchase-panel {
  padding: 1.25rem;
  border: 1px solid rgb(121 223 179 / 0.3);
  border-radius: 0.55rem;
  background: rgb(23 28 50 / 0.86);
  box-shadow: var(--shadow);
}

.extension-banner {
  padding-block: 1.5rem 0;
}

.extension-banner img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border: 1px solid rgb(134 155 211 / 0.25);
  border-radius: 0.55rem;
  background: #0e1425;
  box-shadow: var(--shadow);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
}

.feature-media {
  overflow: hidden;
  border: 1px solid rgb(134 155 211 / 0.25);
  border-radius: 0.55rem;
  background: #0e1425;
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  max-height: 30rem;
  object-fit: cover;
}

.feature-media img.contain {
  object-fit: contain;
  background: #0e1425;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.feature-list li {
  padding: 0.8rem 0;
  color: var(--muted);
  border-top: 1px solid rgb(134 155 211 / 0.18);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.meta-row li {
  padding: 0.35rem 0.65rem;
  color: var(--muted);
  border: 1px solid rgb(134 155 211 / 0.26);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.035);
  font-size: 0.92rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  h1 { font-size: 3.15rem; }
  h2 { font-size: 2.15rem; }
  h3 { font-size: 1.4rem; }

  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 1.08fr);
    gap: 2rem;
  }

  .hero-logo { width: min(13rem, 55%); }

  .mini-panel {
    min-height: 5.35rem;
    padding: 0.55rem;
  }

  .category-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .small-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  h1 { font-size: 2.45rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.28rem; }

  .nav-shell,
  .footer-shell,
  .hero,
  .section,
  .breadcrumbs {
    width: min(100% - 2rem, 1120px);
  }

  .nav-toggle {
    display: inline-flex;
    padding: 0.45rem 0.65rem;
    color: var(--ink);
    font: inherit;
    font-weight: 900;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    cursor: pointer;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: #171b31;
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav > ul {
    display: grid;
    gap: 0.2rem;
  }

  .site-nav a { padding: 0.7rem 0.8rem; }

  .project-submenu {
    position: static;
    display: grid;
    width: auto;
    min-width: 0;
    padding: 0.15rem 0 0.15rem 0.8rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .project-submenu a {
    color: var(--muted);
    font-size: 0.94rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 0;
    padding-block: 4rem;
  }

  .purchase-hero {
    grid-template-columns: 1fr;
    padding-block: 3rem 1.5rem;
  }

  .purchase-hero img {
    max-height: 15rem;
  }

  .hero-copy { padding-top: 0; }

  .hero-art {
    grid-row: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "logo logo"
      "games extensions"
      "collabs other";
    grid-template-rows: auto minmax(5.35rem, 1fr) minmax(5.35rem, 1fr);
    align-items: stretch;
    min-height: 0;
    padding-top: 0;
  }

  .hero-logo {
    width: min(14rem, 55%);
  }

  .mini-panel:nth-child(n) {
    margin-inline: 0;
  }

  .category-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card.external-card.external-project-card {
    grid-template-columns: 1fr;
  }

  .small-card-grid {
    grid-template-columns: 1fr;
  }

  .external-image img,
  .small-card img {
    height: 13rem;
  }

  .project-image { height: 13rem; }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .hero-art {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "logo"
      "games"
      "extensions"
      "collabs"
      "other";
  }

  .hero-logo { width: min(12rem, 64%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card:hover,
  .small-card:hover,
  .category-card:hover,
  .detail-card:hover {
    transform: none;
    transition: none;
  }
}
