* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffb6c1;
  color: #111;
  font-family: Arial, sans-serif;
}

/* ── HEADER ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background-color: rgba(255, 143, 171, 0.9);
  backdrop-filter: blur(3px);
  border-bottom: 2px solid #111;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-star {
  width: 42px;
  height: 42px;
  position: relative;
  display: inline-block;
}

.logo-star img {
  width: 42px;
  height: 42px;
  border-radius: 20%;
}

.logo-text {
  font-family: Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111;
}

.header-right {
  display: flex;
  align-items: center;
}

.github-link {
  display: flex;
  align-items: center;
  color: #111;
  text-decoration: none;
  transition: opacity 0.2s;
}

.github-link:hover {
  opacity: 0.6;
}

.github-link svg {
  width: 32px;
  height: 32px;
}

/* ── MAIN ── */
main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 48px 32px;
  margin-top: 80px;
}

h3 {
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #111;
  margin-bottom: 36px;
  text-transform: uppercase;
}

/* ── GRID (index) ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ── CARD (index) ── */
.card {
  position: relative;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  background: #fff;
  border: 2px solid #111;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  flex-direction: column;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  flex-shrink: 0;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
  pointer-events: none;
}

.card-number {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.03em;
}

.card-name {
  padding: 10px 14px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
  background: #fff;
  border-top: 1px solid #ddd;
}

.card:hover .card-img-wrap img {
  transform: scale(1.1);
}

.card:hover .card-img-wrap::after {
  background: rgba(0, 0, 0, 0.5);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── FOOTER ── */
footer {
  background-color: rgba(255, 143, 171, 0.9);
  backdrop-filter: blur(3px);
  border-top: 2px solid #111;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.15);
  padding: 16px 32px;
  display: flex;
  justify-content: left;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #000;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

footer img {
  height: 26px;
  width: auto;
}

/* ── SKETCH PAGES ── */
.sketch-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.sketch-canvas-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 2px solid #111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  background: #ddd;
}

.sketch-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.sketch-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #111;
}

.sketch-description p + p {
  margin-top: 1em;
}

.sketch-meta {
  margin-top: 36px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #111;
  text-transform: uppercase;
  opacity: 0.55;
}

.sketch-back-wrap {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  padding-bottom: 80px;
}

.sketch-back {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  background: #fff;
  border: 2px solid #111;
  border-radius: 8px;
  padding: 12px 0;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: background 0.18s, color 0.18s;
}

.sketch-back:hover {
  background: #111;
  color: #fff;
}

@media (max-width: 720px) {
  .sketch-layout {
    grid-template-columns: 1fr;
  }
}