/* p0lka — brutalist poster system. Type carries the page; orange is scarce. */

:root {
  color-scheme: light dark;

  --hue: 55;
  --bg: oklch(97.2% 0.014 var(--hue));
  --bg-raised: oklch(93.2% 0.017 var(--hue));
  --fg: oklch(19% 0.02 var(--hue));
  --muted: oklch(44% 0.02 var(--hue));
  --rule: oklch(81% 0.02 var(--hue));
  --accent: oklch(66.6% 0.179 58.3);
  --accent-ink: oklch(99% 0.006 var(--hue));

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Public Sans", sans-serif;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(15.2% 0.015 var(--hue));
    --bg-raised: oklch(19.5% 0.017 var(--hue));
    --fg: oklch(96% 0.012 var(--hue));
    --muted: oklch(66% 0.02 var(--hue));
    --rule: oklch(30% 0.02 var(--hue));
    --accent: oklch(74% 0.16 55);
    --accent-ink: oklch(13% 0.02 var(--hue));
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

a { color: inherit; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-sm);
}

.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}
.masthead .mark { height: 26px; width: auto; display: none; }
.masthead .mark.light { display: inline-block; }
@media (prefers-color-scheme: dark) {
  .masthead .mark.light { display: none; }
  .masthead .mark.dark { display: inline-block; }
}
.masthead nav {
  display: flex;
  gap: var(--space-lg);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.6em;
  border: 2px solid var(--fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  background: transparent;
  transition: background-color 0.2s var(--ease-out-expo), color 0.2s var(--ease-out-expo), border-color 0.2s var(--ease-out-expo);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn.primary:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); }

/* Footer, shared across pages */
footer.site {
  padding: var(--space-2xl) 0 var(--space-2xl);
}
footer.site .foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  font-size: 0.8rem;
  color: var(--muted);
}
footer.site .foot-links {
  display: flex;
  gap: var(--space-md);
}
footer.site a { text-decoration: none; }
footer.site a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Status chip — sharp-cornered, bordered, no soft badge styling */
.chip {
  display: inline-block;
  padding: 0.35em 0.7em;
  border: 1px solid var(--fg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Product grid — shared by the home gallery and the storefront */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.gallery a { display: block; text-decoration: none; color: inherit; background: var(--bg); }
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--bg-raised);
  transition: transform 0.4s var(--ease-out-expo);
}
.gallery a:hover img { transform: scale(1.04); }
.gallery .card-title {
  padding: var(--space-xs) var(--space-sm) var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2xs);
}
.gallery .card-title span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.gallery .card-title .arrow { color: var(--muted); transition: transform 0.2s var(--ease-out-expo); white-space: nowrap; }
.gallery a:hover .card-title .arrow { transform: translateX(3px); color: var(--fg); }
.gallery-status { color: var(--muted); padding-top: var(--space-sm); }

/* Long-form document pages: privacy, legal notice, terms, cookies */
.doc { max-width: 680px; padding-top: var(--space-2xl); padding-bottom: var(--space-3xl); }
.doc-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  line-height: 0.98;
  margin: 0 0 var(--space-2xs);
}
.doc-updated { color: var(--muted); font-size: 0.85rem; margin: 0 0 var(--space-xl); }
.doc h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  margin: var(--space-xl) 0 var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
}
.doc ul { padding-left: 1.2em; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc .back {
  display: inline-block;
  margin-bottom: var(--space-xl);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}
.doc .back:hover { color: var(--fg); }

/* "Also on" channel rows, shared by the home page */
.channel-list { list-style: none; margin: var(--space-lg) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.channel-list li { border-bottom: 1px solid var(--rule); }
.channel-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  text-decoration: none;
  color: inherit;
}
.channel-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
}
.channel-handle { color: var(--muted); font-size: 0.9rem; flex: 1; }
.channel-previews { display: flex; gap: 6px; flex-shrink: 0; }
.channel-previews img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: #fff;
  flex-shrink: 0;
}
.channel-arrow { font-size: 1.3rem; transition: transform 0.2s var(--ease-out-expo); }
.channel-list a:hover .channel-arrow { transform: translateX(4px); }
.channel-list a:hover .channel-name { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 480px) {
  .channel-handle { flex-basis: 100%; }
  .channel-previews { flex-basis: 100%; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 var(--space-md); }
}
