:root {
  color-scheme: dark;
  --chapel-canvas: #191919;
  --chapel-mark: #e5e5e5;
  --chapel-copy: #f1f5f9;
  --chapel-muted: #94a3b8;
  --chapel-status: #f1f5f9;
  --chapel-status-copy: #64748b;
  --snap-yellow: #fffc00;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--chapel-canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--chapel-canvas);
  color: var(--chapel-copy);
  font-family: Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
}

.site-shell {
  min-height: 100vh;
  padding: 26px 32px 40px;
}

.site-shell__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.site-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 35px;
  border-bottom: 1px solid var(--chapel-mark);
  color: #ffffff;
}

.project-label,
.copyright {
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

.project-label {
  font-family: "Inter Tight", Inter, Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.copyright {
  font-family: "Inter Tight", Inter, Arial, Helvetica, sans-serif;
  font-size: 8px;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}

.site-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 22px;
}

.chapel-logo {
  width: 118.14px;
  height: 48.8px;
  object-fit: contain;
}

.pixel-mark {
  position: relative;
  flex: 0 0 46.28px;
  width: 46.28px;
  height: 46.28px;
}

.pixel-mark img {
  position: absolute;
  width: 6.62px;
  height: 6.62px;
}

.pixel-1 { left: 0; top: 0; }
.pixel-2 { left: 39.66px; top: 0; }
.pixel-3 { left: 6.61px; top: 6.61px; }
.pixel-4 { left: 33.05px; top: 6.61px; }
.pixel-5 { left: 13.22px; top: 13.22px; }
.pixel-6 { left: 26.44px; top: 13.22px; }
.pixel-7 { left: 19.83px; top: 19.83px; }
.pixel-8 { left: 0; top: 19.83px; }
.pixel-9 { left: 39.66px; top: 19.83px; }
.pixel-10 { left: 6.61px; top: 26.44px; }
.pixel-11 { left: 33.05px; top: 26.44px; }
.pixel-12 { left: 13.22px; top: 33.05px; }
.pixel-13 { left: 26.44px; top: 33.05px; }
.pixel-14 { left: 19.83px; top: 39.66px; }

.hub-main {
  margin-top: 61px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19.2px;
}

.preview-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 224px;
  min-width: 0;
  padding: 25.6px;
  overflow: hidden;
  background: var(--chapel-canvas);
  border: 0.8px solid #ffffff;
  border-radius: 12.8px;
  box-shadow: 0 3.2px 4.8px rgba(0, 0, 0, 0.02);
  color: var(--chapel-copy);
  text-decoration: none;
  transition: background-color 140ms ease, transform 140ms ease;
}

.preview-card:hover,
.preview-card:focus-visible {
  background: #212121;
  outline: 2px solid var(--snap-yellow);
  outline-offset: 3px;
  transform: translateY(-2px);
}

.preview-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-number {
  flex: 0 0 auto;
  color: var(--chapel-muted);
  font-size: 10.4px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
}

.status {
  flex: 0 0 auto;
  padding: 4.8px 9.6px;
  background: var(--chapel-status);
  border-radius: 80px;
  color: var(--chapel-status-copy);
  font-size: 8.8px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}

.status--ready {
  background: var(--snap-yellow);
  color: #000000;
}

.preview-card__content {
  display: flex;
  flex-direction: column;
  gap: 6.4px;
  min-width: 0;
}

.preview-card h2,
.preview-card p {
  margin: 0;
}

.preview-card h2 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--chapel-copy);
  font-size: 17.6px;
  font-weight: 700;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.preview-card__content p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--chapel-muted);
  font-size: 11.2px;
  font-weight: 400;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.preview-card__action,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6.4px;
  color: var(--chapel-copy);
  font-size: 11.2px;
  font-weight: 700;
  line-height: normal;
}

.preview-card__action {
  margin-top: auto;
}

.card-arrow {
  flex: 0 0 11.2px;
  width: 11.2px;
  height: 11.2px;
}

.hub-instructions {
  margin: 24px 0 0;
  color: #ffffff;
  font-family: "Inter Tight", Inter, Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.2px;
  text-align: center;
}

.hub-instructions strong {
  font-size: 10px;
  font-weight: 700;
}

.placeholder-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  margin-top: 61px;
}

.placeholder-card {
  width: min(520px, 100%);
  min-height: 260px;
  padding: 32px;
  background: var(--chapel-canvas);
  border: 1px solid #ffffff;
  border-radius: 12.8px;
  color: var(--chapel-copy);
}

.placeholder-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.placeholder-card h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.05;
}

.placeholder-card > p {
  margin: 0;
  color: var(--chapel-muted);
  font-size: 16px;
  line-height: 1.5;
}

.back-link {
  margin-top: 36px;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--snap-yellow);
  outline: none;
}

.back-link .card-arrow {
  order: -1;
  transform: rotate(180deg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-instructions {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 540px) {
  .site-shell {
    padding: 22px 20px 36px;
  }

  .site-header__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
  }

  .copyright {
    text-align: left;
    white-space: normal;
  }

  .site-brand {
    align-items: center;
    margin-top: 20px;
  }

  .chapel-logo {
    width: 106px;
    height: auto;
  }

  .pixel-mark {
    transform: scale(0.86);
    transform-origin: right center;
  }

  .hub-main,
  .placeholder-main {
    margin-top: 48px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    height: 210px;
  }

  .hub-instructions {
    font-size: 10px;
  }

  .placeholder-card {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-card {
    transition: none;
  }
}
