/* VRC Texture Painter listing page */

:root {
  --bg: #f6f2ec;
  --bg-tint: #efe8df;
  --surface: #fffdfa;
  --surface-2: #f3ede5;
  --text: #1d1a24;
  --muted: #625c6e;
  --line: #e2d9cd;
  --grid: #e7dfd4;
  --accent: #b23ee8;
  --accent-text: #ffffff;
  --accent-soft: #f3e6fb;
  --seam: #e0582f;
  --shadow: 0 1px 2px rgb(40 30 20 / 6%), 0 12px 32px -12px rgb(40 30 20 / 18%);
  --radius: 18px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15121c;
    --bg-tint: #1b1724;
    --surface: #1f1a29;
    --surface-2: #262033;
    --text: #f1ecf7;
    --muted: #a79fb5;
    --line: #342c42;
    --grid: #2d263a;
    --accent: #d27cff;
    --accent-text: #1a0f22;
    --accent-soft: #33223f;
    --seam: #ff8a5c;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 85% -10%, var(--accent-soft), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 17px/1 var(--display);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark { width: 30px; height: 30px; }

.topnav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.topnav a { text-decoration: none; color: var(--muted); }
.topnav a:hover { color: var(--text); }

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 56px;
  align-items: center;
  padding: 64px 0 40px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }

h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 800;
}

.paint-text {
  background: linear-gradient(90deg, #ff6a5c, #c955f5 55%, #4cc9f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { margin: 20px 0 28px; font-size: 19px; color: var(--muted); max-width: 34em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--muted); }

.btn-small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}
.facts li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.facts strong { color: var(--text); font-weight: 600; }


/* ---------------------------------------------------------------- media */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* a GIF or screenshot in a frame; links to the full size file */
.media {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #1e1e1e;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.media img { width: 100%; height: auto; }
.media:hover { border-color: var(--muted); }

figure { margin: 0; }

.hero-media { justify-self: center; width: min(100%, 360px); }
.hero-media .media { border-radius: 18px; }
.hero-media figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

/* problem cards under the hero */
.problems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 16px;
}
.problem {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.problem:hover { border-color: var(--accent); transform: translateY(-2px); }
.problem strong { font: 700 19px/1.25 var(--display); letter-spacing: -0.01em; }
.problem span:last-child { color: var(--muted); font-size: 15px; }
.problem-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--seam);
}

/* media next to copy, alternating sides */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  scroll-margin-top: 88px;
}
.showcase + .showcase, .mask-grid + .showcase, .showcase + .mask-grid { margin-top: 56px; }
.showcase.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.showcase.flip .showcase-media { order: 2; }

.step-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.showcase-copy h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; font-weight: 700; margin-bottom: 12px; }
.showcase-copy > p { margin: 0; color: var(--muted); font-size: 16px; }

.checks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) no-repeat center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23b23ee8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.extras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  margin: 56px 0 0;
  padding: 22px 26px;
  list-style: none;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 15px;
}
.extras strong { color: var(--text); }

.mask-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mask-card figcaption { padding: 14px 4px 0; }
.mask-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.mask-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* copy next to two portrait recordings */
.stamp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  align-items: start;
}
.stamp-grid .showcase-copy { align-self: center; }

/* full size view */
.lightbox {
  width: min(1600px, 100vw - 32px);
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #111;
  overflow: hidden;
}
.lightbox::backdrop { background: rgb(8 6 12 / 82%); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; height: auto; max-height: calc(100vh - 32px); object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 60%);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* ---------------------------------------------------------------- sections */

.section { padding: 56px 0; scroll-margin-top: 72px; }

.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 700; }
.section-lead { margin: 14px 0 0; color: var(--muted); font-size: 17px; }

.problem, .package-card, .listing-box, .steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.section-lead code, .showcase-copy code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font: 500 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ---------------------------------------------------------------- install */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { position: relative; padding: 56px 24px 24px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font: 700 14px/1 var(--display);
}
.steps .btn { margin-top: 16px; }

.listing-box { margin-top: 16px; padding: 20px 24px; }
.listing-box label { display: block; font-weight: 600; margin-bottom: 8px; }

.copy-field { display: flex; gap: 8px; }
.copy-field input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 14px ui-monospace, SFMono-Regular, Consolas, monospace;
}

details { margin-top: 16px; color: var(--muted); font-size: 15px; }
summary { cursor: pointer; color: var(--text); font-weight: 600; }
details ol { margin: 10px 0 0; padding-left: 22px; }
details li + li { margin-top: 4px; }

/* ---------------------------------------------------------------- package */

.package-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}
.package-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.package-title h3 { font-size: 24px; }
.package-id { display: inline-block; margin: 8px 0 12px; color: var(--muted); font-size: 14px; }
.package-main p { margin: 0; color: var(--muted); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 600 13px/1.5 var(--body);
}
.badge-soft { background: var(--accent-soft); color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.package-meta { margin: 0; display: grid; gap: 14px; align-content: start; }
.package-meta dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.package-meta dd { margin: 2px 0 0; }
.package-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.versions { margin-top: 16px; }
.versions h3 { font-size: 17px; margin-bottom: 8px; }
.versions ul { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.versions li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  font-size: 15px;
}
.versions li + li { border-top: 1px solid var(--line); }
.version-name { font-weight: 600; font-variant-numeric: tabular-nums; }
.versions li a { margin-left: auto; color: var(--accent); font-weight: 600; text-decoration: none; }
.versions li a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- footer */

.footer { margin-top: 32px; border-top: 1px solid var(--line); }
.footer-inner { padding: 28px 0 40px; font-size: 14px; }
.footer p { margin: 0 0 4px; }
.muted { color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: min(560px, 100% - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
  font-size: 15px;
  z-index: 20;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 36px; }
  .problems, .mask-grid { grid-template-columns: 1fr; }
  .stamp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stamp-grid .showcase-copy { grid-column: 1 / -1; }
  .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 24px; }
  .showcase.flip .showcase-media { order: 0; }
  .extras { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .package-card { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topnav { display: none; }
  .stamp-grid { grid-template-columns: 1fr; }
  .lead { font-size: 17px; }
  .copy-field { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover, .problem:hover { transform: none; }
  .problem { transition: none; }
}
