@charset "utf-8";
/* Art Corner — page-specific styles. Relies on --accent / --accent-dark /
   --accent-soft custom properties already defined in main.css. */

.ac-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.ac-intro {
  max-width: 780px;
  margin: 0 auto;
}

.ac-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.ac-intro h1 {
  margin-bottom: 24px;
}

.ac-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.ac-stat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 36px 0;
}

.ac-stat {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
  border-radius: 10px;
  padding: 18px 20px;
  flex: 1 1 220px;
  max-width: 340px;
}

.ac-stat-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-dark);
  word-break: break-word;
}

.ac-stat-label {
  margin-top: 4px;
  font-size: 0.92rem;
  color: #444;
}

.ac-gallery-intro {
  max-width: 780px;
  margin: 48px auto 20px;
}

.ac-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 780px;
  margin: 0 auto 40px;
}

.ac-gallery-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.ac-gallery-label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #222;
}

.ac-gallery-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ac-gallery-pair figure {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.ac-gallery-pair img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
}

.ac-gallery-pair img.ac-after-img {
  image-rendering: pixelated;
}

.ac-gallery-pair figcaption {
  margin-top: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  text-align: center;
}

.ac-gallery-arrow {
  flex: none;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.ac-gallery-note {
  font-size: 0.85rem;
  color: #666;
  max-width: 780px;
  margin: 0 auto 40px;
}

.ac-scale-intro {
  max-width: 780px;
  margin: 0 auto;
}

.ac-gallery-section {
  margin-top: 56px;
}

.ac-gallery-section hr {
  margin-bottom: 40px;
}

.ac-generator {
  max-width: 520px;
  margin: 40px auto 0;
  text-align: center;
}

.ac-canvas-frame {
  display: inline-block;
  padding: 14px;
  background: #111;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

#ac-canvas {
  display: block;
  width: 336px;
  height: 336px;
  max-width: 100%;
  image-rendering: pixelated;
  border-radius: 4px;
}

.ac-counter-row {
  margin-top: 18px;
  font-size: 1rem;
}

.ac-counter-row .ac-counter-value {
  font-weight: 700;
  color: var(--accent);
}

.ac-caption {
  margin-top: 6px;
  font-size: 0.92rem;
  color: #555;
  min-height: 1.4em;
}

.ac-save-btn {
  margin-top: 18px;
  background-color: var(--accent);
  border-color: var(--accent);
}

.ac-save-btn:hover,
.ac-save-btn:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.ac-status {
  margin-top: 12px;
  font-size: 0.88rem;
  color: #666;
  min-height: 1.4em;
}

.ac-status-error {
  color: #b03030;
}

.ac-download-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--accent-dark);
  text-decoration: underline;
}

.ac-download-link:hover,
.ac-download-link:focus {
  color: var(--accent);
}

@media (max-width: 400px) {
  #ac-canvas {
    width: 288px;
    height: 288px;
  }
}
