/* Pixly brand system, 2026 rebrand v3: light base, balanced pops */
:root {
  /* Base */
  --white: #FFFDF8;
  --cream: #FFF6DE;
  --ink: #141312;
  --ink-soft: #55504B;
  --line: rgba(20, 19, 18, 0.12);

  /* Pops: used in balance, one per moment, none of them leads */
  --lime: #DFF29C;
  --sky: #C8D6FF;
  --bubblegum: #FFB9D0;
  --apricot: #FFC08F;
  --fern: #2F4A34;
  --cobalt: #3B5BDB;

  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --radius: 24px;
  --gutter: clamp(20px, 3.4vw, 48px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

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

/* Type: one serif at calm sizes, italics for the warm half */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(40px, 4.6vw, 64px); }
h2 { font-size: clamp(32px, 3.4vw, 48px); }
h3 { font-size: clamp(24px, 2vw, 30px); }
em { font-style: italic; }
.small-caps {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.body-lg { font-size: 16px; max-width: 46ch; }

/* Logo: lowercase grotesk, the dot on the i is a pixel that changes colour */
.logo {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.06em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.logo .i { position: relative; }
.logo .i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.1em;
  width: 0.18em;
  height: 0.18em;
  background: var(--pixel, var(--cobalt));
  transform: translateX(-50%);
}
.logo.cycle .i::after { animation: pixel 8s steps(1) infinite; }
@keyframes pixel {
  0% { background: var(--cobalt); }
  25% { background: var(--bubblegum); }
  50% { background: var(--lime); }
  75% { background: var(--apricot); }
}

/* Links and buttons: thin outline pills and bracketed text links */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 26px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.pill:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.bracket {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.bracket::before { content: "[ "; }
.bracket::after { content: " ]"; }
.bracket:hover { opacity: .6; }

/* Sticker: soft scalloped badge that slowly turns */
.sticker {
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.1;
  padding: 20px;
  animation: wobble 6s ease-in-out infinite;
}
@keyframes wobble { 0%, 100% { rotate: -10deg; } 50% { rotate: 6deg; } }

/* Spinning circle badge */
.badge { width: 120px; aspect-ratio: 1; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .12s; } .rv.d2 { transition-delay: .24s; } .rv.d3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
