/* pixelparty.us - plain CSS, no framework, no build step.
   Colors and the heading face are carried over from the old Wix site:
   charcoal ground, orange nav (#EE6C0D), cyan section titles (#23A3C7),
   and "Navia Type Thin", the heading font uploaded to that site. */

@font-face {
  font-family: "Navia Type";
  src: url("../fonts/heading.woff") format("woff");
  font-display: swap;
}

:root {
  --bg: #1c1b1b;
  --panel: #2f2e2e;
  --line: #474544;
  --text: #f2f2f2;
  --soft: #dcdcdc;
  --muted: #b0b0b0;
  --orange: #ee6c0d;
  --orange-hi: #ff7a1a;
  --cyan: #23a3c7;
  --ink: #2f2e2e;
  --display: "Navia Type", "Segoe UI", Arial, sans-serif;
  --body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
a:hover { color: var(--orange); }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--orange); color: var(--bg); padding: .5rem 1rem;
}
.skip:focus { left: var(--gutter); top: var(--gutter); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header: centered round logo over an orange nav, as on the old site */
.site-header { padding: 1.25rem 0 1rem; text-align: center; }
.brand { display: inline-block; }
.brand img { width: 88px; height: 88px; }
.nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .4rem 2.5rem; margin: .75rem 0 0; padding: 0; list-style: none;
}
.nav a {
  font-family: var(--display); color: var(--orange); text-decoration: none;
  text-transform: uppercase; font-size: 1.35rem; letter-spacing: .06em;
}
.nav a:hover { color: var(--cyan); }

/* Hero: the animated crystal "PIXEL PARTY" video full width, as the old
   home page opened with it, then the headline */
.hero { padding: 0 0 clamp(3.5rem, 8vw, 6rem); text-align: center; }
.hero-art {
  display: block; width: 100%; height: auto; max-height: 56vh;
  object-fit: cover; object-position: 50% 55%; background: #1d1d1d;
}
.hero-copy { padding-top: clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
  margin: 0 0 1rem; color: var(--orange); font-weight: 700;
  font-size: .9rem; letter-spacing: .18em; text-transform: uppercase;
}
h1 {
  margin: 0 auto 1.25rem; max-width: 18ch;
  font-size: clamp(2.1rem, 6vw, 3.75rem); line-height: 1.1; font-weight: 800;
}
.lede {
  margin: 0 auto 2rem; max-width: 44rem; color: #e6e6e6;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; justify-content: center; }
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 4px;
  border: 2px solid var(--orange); background: var(--orange); color: var(--bg);
  font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--orange-hi); border-color: var(--orange-hi); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.btn.ghost:hover { background: var(--cyan); color: var(--bg); }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.display {
  margin: 0 0 .5rem; text-align: center; color: var(--cyan);
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 5.3rem); line-height: 1.05; letter-spacing: .04em;
}
.display.long { font-size: clamp(2rem, 6.5vw, 4rem); }
.sub { margin: 0 auto 2.5rem; max-width: 40rem; text-align: center; color: var(--muted); }

.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin: 0; padding: 0; list-style: none;
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--cyan); border-radius: 6px; padding: 1.5rem;
}
.card h3 { margin: 0 0 .5rem; color: var(--orange); font-size: 1.2rem; }
.card p { margin: 0; color: var(--soft); }
.status { margin: 2.5rem 0 0; text-align: center; color: var(--muted); }
.status strong { color: var(--orange); }

/* Zoomed-in crystal art ran between sections on the old site */
.band {
  height: clamp(140px, 22vw, 260px);
  background: #1d1d1d url("../img/crystal-1920.jpg") no-repeat;
  background-size: 240% auto;
  background-position: 30% 40%;
}
.band.b2 { background-position: 72% 72%; }
.band { position: relative; overflow: hidden; }
.band video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(2.4); transform-origin: 30% 40%;
}
.band.b2 video { transform-origin: 72% 72%; }

.why .statement {
  margin: 0 auto 1rem; max-width: 24ch; text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.2;
}
.why p:not(.statement) {
  margin: 0 auto; max-width: 42rem; text-align: center;
  color: var(--soft); font-size: 1.15rem;
}

/* Blog sits on the concrete texture the old About section used */
.blog {
  color: var(--ink);
  background:
    linear-gradient(rgba(242, 242, 242, .55), rgba(242, 242, 242, .55)),
    url("../img/concrete-1600.jpg") center / cover;
}
.post-card {
  display: flex; align-items: center; gap: 1.5rem; max-width: 40rem;
  margin: 1rem auto 0; padding: 1.25rem; border-radius: 8px;
  background: var(--ink); color: var(--text); text-decoration: none;
}
.post-card img { flex: none; width: 140px; border-radius: 6px; }
.post-card-text { text-align: left; }
.post-card-title { display: block; font-size: 1.6rem; font-weight: 800; }
.post-card-sub { display: block; margin: .25rem 0 .75rem; color: var(--soft); }
.post-card-more { color: var(--orange); font-weight: 700; }
.post-card:hover .post-card-more { color: var(--cyan); }

/* Tools: a smaller, secondary section */
.tools { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.tools .display { font-size: clamp(2rem, 6vw, 3.4rem); }
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  margin: 0 0 1.75rem; padding: 0; list-style: none;
}
.chips li {
  background: var(--panel); border: 1px solid var(--line);
  padding: .4rem .9rem; border-radius: 999px; font-size: .95rem;
}

.contact { text-align: center; }
.email {
  display: inline-block; margin: 0 0 1.5rem; color: var(--orange);
  font-size: clamp(1.3rem, 5vw, 2rem); font-weight: 800;
  text-decoration: none; overflow-wrap: anywhere;
}
.social {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem;
  margin: 2rem 0 0; padding: 0; list-style: none;
}

/* Footer: the orange bar from the old site */
.site-footer {
  border-top: 8px solid var(--orange); background: #151414;
  color: var(--muted); padding: 1.75rem 0; font-size: .95rem;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; align-items: flex-start;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* Privacy, Terms and 404 */
.doc { max-width: 46rem; margin: 0 auto; padding: 3rem var(--gutter) 4rem; }
.doc h1 { max-width: none; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.doc h2 { margin: 2rem 0 .5rem; color: var(--orange); font-size: 1.25rem; }
.doc p, .doc li { color: var(--soft); }
.doc .meta { color: var(--muted); }

/* Blog posts */
.post h2 {
  margin: 2.5rem 0 .75rem; color: var(--cyan); font-family: var(--display);
  font-weight: 400; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.1;
}
.post .eyebrow { margin-bottom: .25rem; }
.toc {
  display: flex; flex-wrap: wrap; gap: .4rem 1.25rem;
  margin: 0 0 1rem; padding: 0; list-style: none;
}
.toc a { color: var(--orange); font-weight: 700; text-decoration: none; }
.toc a:hover { color: var(--cyan); }
.specs { padding-left: 1.25rem; }
.specs li { margin: .3rem 0; }
.post figure { margin: 1.5rem 0; }
.post figure img { width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.post-video iframe {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000;
  border: 1px solid var(--line); border-radius: 6px;
}
.post .back { margin-top: 2.5rem; }

@media (max-width: 600px) {
  .band { background-image: url("../img/crystal-960.jpg"); }
  .blog {
    background-image:
      linear-gradient(rgba(242, 242, 242, .55), rgba(242, 242, 242, .55)),
      url("../img/concrete-800.jpg");
  }
  .post-card { flex-direction: column; }
  .post-card-text { text-align: center; }
  .nav { gap: .35rem 1.25rem; }
  .nav a { font-size: 1.1rem; }
}

/* The crystal video keeps playing even with Windows animations off, as it
   did on the old Wix site; only the smooth scroll is dropped. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
