/* Showcase page (index.html) only. Not needed on your live site. */

.sc { display: block; }
.sc-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

.sc-head { padding-block: var(--s-8) var(--s-7); }
.sc-head h1 { font-size: var(--fs-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
.sc-head p { margin-top: var(--s-4); color: var(--muted); font-size: var(--fs-lede); max-width: 52ch; }

.sc-switch {
  display: inline-flex;
  margin-top: var(--s-6);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.sc-switch button {
  min-height: 40px;
  padding: 0 var(--s-5);
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}
.sc-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sc-link { display: grid; gap: var(--s-3); color: var(--ink); text-decoration: none; }
.sc-link:hover { color: var(--ink); }
.sc-link:hover .sc-frame { border-color: var(--muted); }
.sc-name { font-weight: 600; font-size: var(--fs-small); }

/* Preview image of each page (1440x900 screenshot) */
.sc-frame {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.sc-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.sc-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-block: var(--s-6);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-caption);
}
