/* Gallery for /samples/ — self-contained, matches main site palette */
:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-accent: #0284c7;
  --color-accent-dark: #0369a1;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.06);
  --radius: 16px;
}

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

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  padding: 0 1.25rem 3rem;
}

a {
  color: var(--color-accent-dark);
}

a:hover {
  color: var(--color-accent);
}

.preview-gallery-header {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.preview-gallery-header h1 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.preview-gallery-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 40rem;
}

.preview-gallery-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.preview-gallery-back:hover {
  text-decoration: underline;
}

.preview-gallery-grid {
  max-width: 72rem;
  margin: 1.75rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.preview-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.preview-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.preview-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.preview-card-thumb-wrap {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #e2e8f0 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.preview-card-placeholder {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 1rem;
}

.preview-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.preview-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}

.preview-card-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-dark);
}

.preview-card-link:hover .preview-card-cta {
  color: var(--color-accent);
  text-decoration: underline;
}

.preview-gallery-status {
  max-width: 72rem;
  margin: 2rem auto;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.preview-gallery-status code {
  font-size: 0.85em;
  background: #f1f5f9;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
