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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fafafa;
  color: #111;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid #e0e0e0;
}

nav .logo {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #111;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #111;
}

/* Main */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 3rem;
}

/* Home */
.home {
  justify-content: center;
  align-items: center;
}

.home h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  margin-bottom: 3rem;
}

.psalm {
  max-width: 600px;
  text-align: left;
}

.psalm h2 {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: #888;
}

.psalm h2 span {
  font-weight: 400;
  color: #bbb;
}

.psalm p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 0.4rem;
}

.psalm sup {
  font-size: 0.6rem;
  color: #bbb;
  margin-right: 0.2rem;
}

/* Page header */
.page-header {
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

/* About */
.about-figure {
  margin: 0 0 1.5rem 0;
}

.about-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.4rem;
}

.about-figure figcaption {
  font-size: 0.7rem;
  color: #aaa;
  letter-spacing: 0.02em;
}

.about-content {
  max-width: 500px;
}

.about-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
}

.about-content .contact {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.about-content .contact a {
  display: block;
  color: #555;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.about-content .contact a:hover {
  color: #111;
}

/* Music */
.music-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.music-links a {
  color: #555;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.music-links a:hover {
  color: #111;
  border-color: #111;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.music-item {
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
}

.music-item h3 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.music-item p {
  font-size: 0.8rem;
  color: #888;
}

.music-item .placeholder {
  height: 200px;
  background: #f0f0f0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.8rem;
}

.soundcloud-embed {
  margin-top: 2rem;
}

.art-bio {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 2rem;
}

/* Art */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.art-item {
  aspect-ratio: 1;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.8rem;
  border: 1px solid #e0e0e0;
}

.art-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.art-item img:hover {
  opacity: 0.8;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* Store */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.store-item {
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
}

.store-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
}

.store-link:hover {
  border-color: #111;
}

.store-item .item-image {
  margin-bottom: 1rem;
  overflow: hidden;
}

.store-item .item-image img {
  width: 100%;
  display: block;
}

.store-item h3 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.store-item .format {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.store-item .price {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
}

.store-item .buy-link {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.store-link:hover .buy-link {
  opacity: 0.6;
}

/* Canvas / Games */
#canvas {
  width: 100%;
  max-width: 900px;
  border: 1px solid #e0e0e0;
  cursor: crosshair;
  display: block;
  touch-action: none;
}

.canvas-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-group label {
  font-size: 0.8rem;
  color: #888;
}

.control-group input[type="range"] {
  width: 80px;
  accent-color: #111;
}

.colors {
  display: flex;
  gap: 0.4rem;
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s;
}

.color-swatch:hover {
  transform: scale(1.2);
}

.color-swatch.active {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.canvas-controls button {
  padding: 0.3rem 0.8rem;
  background: none;
  border: 1px solid #e0e0e0;
  font-size: 0.8rem;
  color: #555;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.canvas-controls button:hover {
  border-color: #111;
  color: #111;
}

/* Section divider */
.section-divider {
  border-top: 1px solid #e0e0e0;
  margin: 3rem 0;
}

/* BMI Calculator */
.bmi-calc {
  max-width: 400px;
}

.bmi-inputs {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.bmi-inputs .control-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bmi-inputs input[type="number"] {
  width: 100px;
  padding: 0.4rem 0.5rem;
  border: 1px solid #e0e0e0;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.bmi-inputs input[type="number"]:focus {
  border-color: #111;
}

.bmi-inputs button {
  padding: 0.4rem 0.8rem;
  background: none;
  border: 1px solid #e0e0e0;
  font-size: 0.8rem;
  color: #555;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.bmi-inputs button:hover {
  border-color: #111;
  color: #111;
}

.bmi-result {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #444;
  min-height: 1.5em;
}

/* Wall */
.wall-subtitle {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.3rem;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 900px;
}

.wall-item {
  border: 1px solid #e0e0e0;
  padding: 0.5rem;
}

.wall-item img {
  width: 100%;
  display: block;
}

.wall-time {
  display: block;
  font-size: 0.7rem;
  color: #bbb;
  margin-top: 0.3rem;
}

.wall-empty,
.wall-loading {
  font-size: 0.85rem;
  color: #aaa;
}

/* Fishing Game */
.fishing-game {
  max-width: 900px;
}

.fishing-status {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

#fishing-canvas {
  width: 100%;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  display: block;
}

.fishing-instructions {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #aaa;
}

/* Footer */
footer {
  padding: 1.5rem 3rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

footer p {
  font-size: 0.75rem;
  color: #aaa;
}

/* Responsive */
@media (max-width: 600px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  main {
    padding: 2rem 1.5rem;
  }

  .home h1 {
    font-size: 1.8rem;
  }

  footer {
    padding: 1rem 1.5rem;
  }
}
