* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.canvas-page {
  height: 100%;
  overflow: hidden;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

ul.idea-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

ul.idea-list a {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #1a1a1a;
  text-decoration: none;
}

ul.idea-list a:hover {
  border-color: #999;
}

ul.idea-list img {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  background: #f0f0f0;
}

ul.idea-list span {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.controls {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.85rem;
}

.controls label {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.5rem;
}

.controls label.checkbox-row {
  display: flex;
  grid-template-columns: none;
}

.page-nav {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.75rem;
}

.page-nav a {
  color: #000;
  text-decoration: none;
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.page-nav a:hover {
  opacity: 0.75;
}

.summary {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  max-width: 22rem;
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: right;
  color: var(--accent, #333);
}
