/* =========================================================================
   PixUp — What's new
   Same brand ground as pixupplay.com: navy ground, cyan accent, the
   ascending skewed bar as motif. Mobile is the base case.
   ========================================================================= */

:root {
  --cyan:        #00AAEB;
  --cyan-lift:   #4FC3F7;
  --cyan-deep:   #0089BD;
  --bar-1:       #9B9B9B;
  --bar-2:       #C3C3C3;
  --bar-3:       #E2E2E2;

  --ground:      #00222F;
  --ground-lift: #04303F;
  --ground-deep: #001721;
  --ink:         #EAF4F8;
  --ink-soft:    #9FBECA;
  --ink-faint:   #6B8B99;
  --rule:        #0C3D4E;
  --rule-lift:   #14556B;

  --live:        #3DDC97;
  --optin:       #00AAEB;
  --beta:        #F5B84A;

  --skew: -14deg;
  --shell: 72rem;
  --gutter: 1rem;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Spectral", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; overflow-wrap: break-word; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: .5rem; background: var(--cyan); color: var(--ground); padding: .4rem .8rem; z-index: 10; }

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

/* masthead */
.masthead { border-bottom: 1px solid var(--rule); background: var(--ground-deep); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.wordmark img { width: 120px; height: auto; }
.masthead__links { display: flex; gap: 1.25rem; font-size: .9rem; color: var(--ink-soft); }
.masthead__links a { text-decoration: none; }
.masthead__links a:hover { color: var(--ink); }
@media (max-width: 34rem) { .masthead__links .hide-sm { display: none; } }

/* motif */
.bars { display: flex; gap: 5px; align-items: flex-end; height: 22px; margin-bottom: 1rem; }
.bars i { display: block; width: 9px; transform: skewX(var(--skew)); }
.bars i:nth-child(1) { height: 40%; background: var(--bar-1); }
.bars i:nth-child(2) { height: 70%; background: var(--bar-2); }
.bars i:nth-child(3) { height: 100%; background: var(--cyan); }

.eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-lift); }

/* hero */
.hero { padding-block: clamp(2.5rem, 7vw, 4.5rem) 2rem; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin-top: .5rem; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero__lede { font-family: var(--f-text); font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-soft); max-width: 40rem; margin-top: 1rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 2rem; }
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--ground); padding: 1rem 1.1rem; }
.stat b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--ink-soft); }

/* status legend + badges */
.badge { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .55rem; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--live { color: var(--live); }
.badge--opt-in { color: var(--optin); }
.badge--beta { color: var(--beta); }
.legend { display: grid; gap: .6rem; margin-top: 1.5rem; font-size: .9rem; color: var(--ink-soft); }
@media (min-width: 48rem) { .legend { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.legend p { display: flex; gap: .6rem; align-items: baseline; }

/* toolbar */
.toolbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(8px); border-block: 1px solid var(--rule); padding-block: .75rem; }
.toolbar__row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.search { flex: 1 1 14rem; min-width: 0; background: var(--ground-deep); border: 1px solid var(--rule-lift); color: var(--ink); font: inherit; font-size: .95rem; padding: .5rem .75rem; border-radius: 2px; }
.search::placeholder { color: var(--ink-faint); }
.chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-top: .6rem; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font: inherit; font-size: .82rem; color: var(--ink-soft); background: transparent; border: 1px solid var(--rule-lift); padding: .3rem .7rem; border-radius: 999px; cursor: pointer; }
.chip:hover { color: var(--ink); border-color: var(--ink-faint); }
.chip[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--ground-deep); font-weight: 600; }
.select { background: var(--ground-deep); border: 1px solid var(--rule-lift); color: var(--ink); font: inherit; font-size: .9rem; padding: .5rem .6rem; border-radius: 2px; }

/* feed */
.month { padding-block: 2rem 1rem; }
.month__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); padding-bottom: .6rem; margin-bottom: 1rem; }
.month__head h2 { font-size: 1.35rem; font-weight: 700; }
.month__head span { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-faint); }
.grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: .6rem; background: var(--ground-lift); border: 1px solid var(--rule); padding: 1.1rem 1.1rem 1rem; text-decoration: none; position: relative; transition: border-color .15s, transform .15s; min-width: 0; }
.card:hover { border-color: var(--cyan-deep); transform: translateY(-2px); }
.card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rule-lift); }
.card:hover::after { background: var(--cyan); }
.card__meta { display: flex; justify-content: space-between; gap: .5rem; align-items: center; font-family: var(--f-mono); font-size: .72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.card h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; }
.card p { font-family: var(--f-text); font-size: .98rem; color: var(--ink-soft); line-height: 1.5; }
.card__more { margin-top: auto; font-size: .85rem; color: var(--cyan-lift); }
.empty { padding: 3rem 0; text-align: center; color: var(--ink-soft); }
.new-tag { color: var(--ground-deep); background: var(--cyan); padding: 0 .35rem; border-radius: 2px; font-weight: 600; }

/* detail */
.crumbs { padding-top: 1.5rem; font-size: .88rem; color: var(--ink-soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.detail { padding-block: 1.5rem 3rem; display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .detail { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }
.detail h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.08; font-weight: 800; letter-spacing: -.015em; margin-block: .75rem 1rem; }
.detail__meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.detail__summary { font-family: var(--f-text); font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--ink); line-height: 1.5; max-width: 42rem; }
.block { margin-top: 2.25rem; max-width: 42rem; }
.block h2 { font-size: .8rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--cyan-lift); margin-bottom: .75rem; }
.block p { font-family: var(--f-text); font-size: 1.08rem; color: var(--ink-soft); }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: .55rem; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--cyan); transform: skewX(var(--skew)); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: .7rem 0 .7rem 2.6rem; border-bottom: 1px solid var(--rule); }
.steps li:first-child { border-top: 1px solid var(--rule); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .7rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; font-family: var(--f-mono); font-size: .8rem; color: var(--ground-deep); background: var(--ink-soft); }
.aside { background: var(--ground-lift); border: 1px solid var(--rule); padding: 1.25rem; position: sticky; top: 1rem; }
.aside h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.aside p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1rem; }
.btn { display: inline-block; text-align: center; width: 100%; background: var(--cyan); color: var(--ground-deep); font-weight: 700; text-decoration: none; padding: .7rem 1rem; border-radius: 2px; }
.btn:hover { background: var(--cyan-lift); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-lift); margin-top: .5rem; font-weight: 500; }
.btn--ghost:hover { background: var(--ground); border-color: var(--ink-faint); }
.related { border-top: 1px solid var(--rule); padding-block: 2rem 3rem; }
.related h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 2rem; font-size: .9rem; }
.pager a { text-decoration: none; color: var(--ink-soft); max-width: 48%; }
.pager a:hover { color: var(--ink); }
.pager b { display: block; color: var(--ink); }

.foot { border-top: 1px solid var(--rule); background: var(--ground-deep); padding-block: 2rem; font-size: .88rem; color: var(--ink-faint); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot a { color: var(--ink-soft); }

/* screenshots */
.card__shot { width: calc(100% + 2.2rem); max-width: none; margin: -1.1rem -1.1rem .4rem; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--rule); background: var(--ground-deep); }
.gallery { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; align-items: flex-start; }
.shot { margin: 0; flex: 1 1 100%; min-width: 0; }
.shot--mobile { flex: 0 1 15rem; }
.shot img { width: 100%; border: 1px solid var(--rule-lift); border-radius: 4px; background: var(--ground-deep); }
.shot--mobile img { border-radius: 14px; }
.shot a:hover img { border-color: var(--cyan-deep); }
.shot figcaption { font-size: .85rem; color: var(--ink-faint); margin-top: .45rem; }
.btn--demo { background: transparent; color: var(--cyan-lift); border: 1px solid var(--cyan-deep); margin-bottom: .5rem; }
.btn--demo:hover { background: var(--ground); color: var(--ink); }

[hidden] { display: none !important; }
