/*
 * Quark 2 - user customizations
 *
 * This file is safe to edit. It is loaded last so anything here overrides
 * theme.css without having to mark rules !important.
 */

:root {
  --pico-font-family-sans-serif: 'Roboto', Arial, sans-serif;
  --studio-header-offset: 8.5rem;
  --studio-ink: #14171f;
  --studio-paper: #fbf7ef;
  --studio-muted: #5a6372;
  --studio-panel: #ffffff;
  --studio-line: rgba(20, 23, 31, 0.12);
  --studio-teal: #0e9aa3;
  --studio-purple: #7440c7;
  --studio-coral: #ed5f4f;
  --studio-amber: #f1ad3d;
  --studio-charcoal: #363636;
  --studio-silver: #cfcfcf;
  --studio-radius: 8px;
  --studio-shadow: 0 18px 60px rgba(20, 23, 31, 0.14);
}

:root[data-theme='dark'] {
  --studio-ink: #f7f1e8;
  --studio-paper: #11151c;
  --studio-muted: #b3bdca;
  --studio-panel: #191f29;
  --studio-line: rgba(247, 241, 232, 0.14);
  --studio-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

body {
  background:
    linear-gradient(180deg, rgba(14, 154, 163, 0.06), transparent 360px),
    var(--studio-paper);
  color: var(--studio-ink);
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
}

html {
  scroll-padding-top: var(--studio-header-offset);
}

#start,
.modular-text,
.modular-features,
.modular-project-carousel {
  scroll-margin-top: var(--studio-header-offset);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.dropmenu,
.button {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  width: clamp(7.25rem, 11vw, 9.25rem);
  padding-block: 0.35rem;
  line-height: 0;
}

.gamesmiths-logo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 525 / 412;
}

.gamesmiths-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 160ms ease;
}

.gamesmiths-logo__on-dark,
:root[data-theme='dark'] .gamesmiths-logo__on-light {
  opacity: 0;
}

:root[data-theme='dark'] .gamesmiths-logo__on-dark {
  opacity: 1;
}

a {
  text-underline-offset: 0.18em;
}

.container {
  width: min(1120px, calc(100% - 32px));
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--studio-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: var(--studio-muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

.button,
button,
input[type='submit'],
input[type='button'] {
  border-radius: 8px;
  font-weight: 800;
}

a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 2px solid var(--studio-teal);
  border-radius: 8px;
  background: var(--studio-teal);
  color: #ffffff;
  padding: 0.62rem 1rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(14, 154, 163, 0.24);
}

a.button:hover,
a.button:focus {
  border-color: color-mix(in oklab, var(--studio-teal) 80%, white 20%);
  background: color-mix(in oklab, var(--studio-teal) 84%, white 16%);
  color: #ffffff;
}

a.button.secondary {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.12);
  color: #fffaf0;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

a.button.secondary:hover,
a.button.secondary:focus {
  border-color: #fffaf0;
  background: rgba(255, 255, 255, 0.18);
}

.modular-hero.hero {
  min-height: min(760px, 88vh);
  display: grid;
  align-items: end;
  padding: 8rem 0 5rem;
  background-color: #131821;
  background-position: center;
  background-size: cover;
}

.modular-hero.hero .image-overlay {
  background:
    linear-gradient(90deg, rgba(11, 14, 19, 0.84), rgba(11, 14, 19, 0.5) 48%, rgba(11, 14, 19, 0.18)),
    linear-gradient(0deg, rgba(11, 14, 19, 0.66), transparent 56%);
}

.modular-hero.hero .container {
  position: relative;
  width: min(100% - 32px, 980px);
  max-width: 980px;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.modular-hero.hero h1 {
  max-width: 100%;
  margin-bottom: 1rem;
  color: #fffaf0;
  font-size: clamp(2.45rem, 5.35vw, 5.1rem);
  line-height: 0.98;
  text-wrap: balance;
}

.modular-hero.hero p {
  max-width: 660px;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.modular-hero.hero .button {
  margin: 0;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 620px);
  margin-top: 1.7rem;
}

.hero-actions .button {
  min-height: 5.25rem;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--studio-teal) 88%, black 12%), color-mix(in oklab, var(--studio-purple) 54%, var(--studio-teal) 46%));
  padding: 1.1rem 1.2rem;
  text-align: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero-actions .button.secondary {
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(116, 64, 199, 0.24));
  text-align: center;
}

.modular-features .frame-box,
.modular-text .frame-box {
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: color-mix(in oklab, var(--studio-panel) 94%, transparent);
  box-shadow: var(--studio-shadow);
}

.modular-features .frame-box {
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.modular-features .columns {
  gap: 1rem;
  margin-top: 1.4rem;
}

.modular-features .column {
  border-radius: var(--studio-radius);
  background:
    linear-gradient(135deg, rgba(14, 154, 163, 0.11), transparent 54%),
    color-mix(in oklab, var(--studio-panel) 96%, var(--studio-paper));
  padding: clamp(1.2rem, 3vw, 1.75rem);
}

.modular-features .frame-box > h2,
.modular-features .frame-box > p {
  padding-inline: clamp(0rem, 1.5vw, 0.5rem);
}

.modular-features .frame-box > p {
  max-width: 860px;
}

.modular-features .feature-icon i {
  font-size: 1.5rem;
  
}

.feature-icon i {
  color: color-mix(in oklab, var(--studio-teal) 70%, var(--studio-muted) 30%);
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid color-mix(in oklab, var(--studio-teal) 34%, transparent);
  border-radius: 999px;
  background: transparent;
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.78;
  -webkit-font-smoothing: antialiased;
}

.modular-features h6 {
  font-weight: 700;
}

.modular-project-carousel {
  overflow: hidden;
}

.project-carousel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.project-carousel__header h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.project-carousel__header p {
  max-width: 760px;
  color: var(--studio-muted);
}

.project-carousel__all {
  white-space: nowrap;
}

.project-carousel {
  display: grid;
  grid-auto-columns: minmax(280px, 38%);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.2rem 0 1rem;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--studio-teal) transparent;
}

.project-slide {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-panel);
  box-shadow: 0 16px 42px rgba(20, 23, 31, 0.1);
  scroll-snap-align: start;
}

.project-slide__link {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.project-slide__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #11151c;
}

.project-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.project-slide:hover .project-slide__media img {
  transform: scale(1.035);
}

.project-slide__body {
  display: grid;
  gap: 0.45rem;
  border-top: 4px solid var(--project-accent);
  padding: 1rem;
}

.project-slide__type {
  color: var(--project-accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-slide__title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.06;
}

.project-slide__summary {
  color: var(--studio-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.project-index {
  padding-top: 7rem;
}

.about-page {
  padding-top: 7rem;
}

.about-hero__content {
  max-width: 920px;
}

.about-hero__content h1 {
  max-width: 820px;
  margin-top: 0;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1;
  text-wrap: balance;
}

.about-hero__content > p:not(.eyebrow) {
  color: var(--studio-muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

.about-hero__content h2 {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--studio-line);
}

.about-hero__content .button {
  margin-top: 1rem;
}

.about-kimberley {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: start;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  border-top: 1px solid var(--studio-line);
  border-bottom: 1px solid var(--studio-line);
}

.about-kimberley + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.about-kimberley h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.about-kimberley__portrait {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-panel);
  box-shadow: var(--studio-shadow);
}

.about-kimberley__portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.project-index__header {
  max-width: 880px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.project-index__header h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
}

.project-index__intro {
  max-width: 760px;
  color: var(--studio-muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-panel);
  box-shadow: 0 16px 48px rgba(20, 23, 31, 0.08);
}

.project-card--featured {
  grid-column: span 2;
}

.project-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #14171f;
}

.project-card__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), transparent);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.project-card:hover .project-card__media img {
  transform: scale(1.035);
}

.project-card__body {
  padding: clamp(1rem, 2.5vw, 1.45rem);
  border-top: 4px solid var(--project-accent);
}

.project-card__kicker,
.project-card__footer,
.project-hero__meta,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-card__kicker span,
.project-card__footer span,
.project-hero__meta span,
.project-tags span {
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  background: color-mix(in oklab, var(--project-accent, var(--studio-teal)) 13%, transparent);
  color: var(--studio-ink);
  font-size: 0.78rem;
  font-weight: 750;
}

.project-card h2 {
  margin: 0.8rem 0 0.5rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.project-card h2 a {
  color: inherit;
  text-decoration: none;
}

.project-card p {
  color: var(--studio-muted);
}

.project-card__footer {
  margin-top: 1rem;
}

.project-hero {
  position: relative;
  min-height: min(720px, 82vh);
  display: grid;
  align-items: end;
  padding: 8rem 0 4.75rem;
  background-color: #131821;
  background-image: var(--project-hero-image);
  background-position: center;
  background-size: cover;
}

.project-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 12, 17, 0.84), rgba(9, 12, 17, 0.4) 58%, rgba(9, 12, 17, 0.16)),
    linear-gradient(0deg, rgba(9, 12, 17, 0.72), transparent 58%);
}

.project-hero__content {
  position: relative;
  z-index: 1;
}

.project-hero h1 {
  max-width: 900px;
  margin: 0 0 1rem;
  color: #fffaf0;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.92;
}

.project-hero .lead {
  color: rgba(255, 250, 240, 0.9);
}

.project-hero .eyebrow {
  color: color-mix(in oklab, var(--project-accent, var(--studio-amber)) 72%, white 28%);
}

.project-hero__meta span {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fffaf0;
  backdrop-filter: blur(12px);
}

.project-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.project-detail__content {
  max-width: 760px;
}

.project-detail__content > p:first-child {
  color: var(--studio-muted);
  font-size: 1.18rem;
  line-height: 1.6;
}

.project-detail__content h2 {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--studio-line);
}

.project-gallery {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  margin-top: 2.2rem;
}

.project-gallery__item {
  margin: 0;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-panel);
  box-shadow: 0 14px 40px rgba(20, 23, 31, 0.1);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  overflow: hidden;
}

.project-gallery__item.is-reversed {
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
}

.project-gallery__item.is-reversed .project-gallery__link {
  order: 2;
}

.project-gallery__link {
  position: relative;
  display: block;
  min-height: 290px;
  background: #11151c;
  cursor: zoom-in;
}

.project-gallery__link::after {
  content: 'View larger';
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  border-radius: 999px;
  background: rgba(17, 21, 28, 0.72);
  color: #fffaf0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.64rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.project-gallery__link:hover::after,
.project-gallery__link:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.project-gallery__link img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.project-gallery__item.is-contain .project-gallery__link {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.project-gallery__item.is-contain .project-gallery__link img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  min-height: 0;
  object-fit: contain;
}

.project-gallery__video {
  display: grid;
  place-items: center;
  padding: 1rem;
  cursor: default;
}

.project-gallery__video::after {
  display: none;
}

.project-gallery__video video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 460px;
  background: #05070a;
}

.project-gallery__item figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.project-gallery__item figcaption strong {
  color: var(--studio-ink);
  font-size: 0.98rem;
}

.project-gallery__item figcaption span {
  color: var(--studio-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(5, 7, 10, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__dialog {
  position: relative;
  display: grid;
  gap: 0.75rem;
  width: min(100%, 1200px);
}

.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  margin-inline: auto;
  border-radius: var(--studio-radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.lightbox__caption {
  color: #fffaf0;
  font-weight: 700;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(17, 21, 28, 0.92);
  color: #fffaf0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--studio-line);
  background: color-mix(in oklab, var(--studio-panel) 82%, var(--studio-paper));
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(220px, 0.8fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}

.site-footer__brand {
  display: grid;
  gap: 0.75rem;
}

.site-footer__brand .navbar-brand {
  width: 7rem;
}

.site-footer__brand p,
.site-footer__contact span {
  margin: 0;
  color: var(--studio-muted);
  font-size: 0.95rem;
}

.site-footer__nav,
.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-footer__nav a,
.site-footer__contact a {
  color: var(--studio-ink);
  font-weight: 700;
  text-decoration: none;
}

.site-footer__contact {
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 780px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer__contact {
    justify-content: flex-start;
    text-align: left;
  }
}

.project-panel {
  position: sticky;
  top: 6rem;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-panel);
  padding: 1.2rem;
  box-shadow: var(--studio-shadow);
}

.project-panel__group + .project-panel__group,
.project-tags {
  margin-top: 1.2rem;
}

.project-panel h2 {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.project-panel p,
.project-panel li {
  color: var(--studio-muted);
}

.project-panel ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .modular-hero.hero,
  .project-hero {
    min-height: 720px;
    padding: 7rem 0 3rem;
  }

  .modular-hero.hero .button {
    width: 100%;
    text-align: center;
  }

  .hero-actions,
  .project-carousel__header {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .hero-actions .button.secondary {
    justify-content: center;
    min-height: 4rem;
    text-align: center;
  }

  .project-carousel {
    grid-auto-columns: minmax(260px, 84%);
  }

  .project-grid,
  .project-detail__layout,
  .about-kimberley,
  .project-gallery__item,
  .project-gallery__item.is-reversed {
    grid-template-columns: 1fr;
  }

  .about-kimberley__portrait {
    order: -1;
    max-width: 220px;
    margin-inline: auto;
  }

  .project-gallery__item.is-reversed .project-gallery__link {
    order: 0;
  }

  .project-card--featured {
    grid-column: auto;
  }

  .project-panel {
    position: static;
  }
}
