body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #c6916f;
  color: #504545;
}


/* Inner frame */
.inner-frame {
  padding: 36px 56px 56px;
  background: #a08263;
   background-image: url('images/Wood%20Patern%2002.webp');
   background-blend-mode: multiply;
  
}


/* Header */
header {
  padding: 48px 72px;
  border: 1px #d0d0d5;
  border-radius: 12px;
  background: #db8982;
  margin-bottom: 32px;
  background-image: url(images/shattered-dark.png);
  background-blend-mode:color-burn;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin: 6px 0 0;
  color: #ffffff;
  font-size: 1.4rem;
}


/* Layout */
.content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}


/* Navigation */
nav {
  position: sticky;
  top: 32px;
  align-self: start;
  border: 1px #d0d0d5;
  border-radius: 12px;
  padding: 2rem;
  background: #f7d0a8;
  background-image: url(images/shattered.png);
  background-blend-mode:difference;
}

nav h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4d4867;
  margin-bottom: 16px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

nav a {
  text-decoration: none;
  color: #222;
  padding: 8px 10px;
  border-radius: 6px;
}

nav a:hover {
  background: #bf353530;
  color: #ffffff;
}


/* Main content */
main {
  display: grid;
  gap: 24px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card {
  border: 1px rgba(255, 255, 255, 0);
  border-radius: 12px;
  padding: 1.25rem;
  background: #ffcdad;
  
  background-image: url(images/shattered-dark.png);
  background-blend-mode:color-burn;
  
  a:link {
  color: #da5d2f;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: #dd2222;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.card--scrollable {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 1.5rem;
  
  border: 1px rgba(255, 255, 255, 0);
  border-radius: 12px;
  border-right: 10px solid transparent;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;

  box-sizing: content-box;
  padding: 1.25rem;
  background: #ffcdad;
  
  background-image: url(images/shattered-dark.png);
  background-blend-mode:color-burn;
}

.card--scrollable::-webkit-scrollbar {
  width: 8px;
}

.card--scrollable::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
}

.card--scrollable::-webkit-scrollbar-track {
  background: transparent;
}

/*Images in Content*/
.image {
  max-width: 100%; 
  height: auto;
}

/* Button */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: inherit;
  

  color: #222;
  background: #ffc286;
  background-image: url(images/shattered.png);
  background-blend-mode:difference;

  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;

  cursor: pointer;
  text-decoration: none;

  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.05s ease;
}

.button:hover {
  background: #a95d5c;
  color: #ffffff;
  background-image: url(images/shattered-dark.png);
  background-blend-mode:difference;
}

.button:active {
  background: #8f4f4e;
  background-image: url(images/shattered-dark.png);
  background-blend-mode:difference;
  transform: translateY(1px);
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(169, 93, 92, 0.35);
}


/* Art page */

.art-controls {
  margin-bottom: 24px;
}

.art-controls input {
  width: 93%;
  padding: 12px 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.art-item img {
  width: 100%;
  border-radius: 6px;
  display: block;
  margin-bottom: 12px;
}

.tags {
  font-size: 0.85rem;
  color: var(--muted);
}


/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox-content {
  position: relative;
  max-width: 100vw;
  max-height: 100vh;
  pointer-events: none;
}

#lightbox-img {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;

  pointer-events: auto;
  cursor: grab;
}

.hidden {
  display: none;
}


/* Footer */
footer {
  border-top: 1px #d0d0d5;
  padding: 16px 32px;
  font-size: 0.9rem;
  color: #ecda9f;
  background-color: rgb(186, 56, 47);
  background-image: url(images/60-lines.png);
  background-blend-mode:darken;
  
  :link {
  color: #ecda9f;
  background-color: transparent;
  text-decoration: none;
}

:hover {
  color: #ffbb00;
  background-color: transparent;
  text-decoration: underline;
}
}


/* =========================
   MOBILE ACCESSIBILITY
   ========================= */

@media (max-width: 768px) {

  /* Global spacing */
  body {
    font-size: 0.95rem;
  }

  .inner-frame {
    padding: 20px 16px 28px;
  }

  /* Header */
  header {
    padding: 24px 20px;
    margin-bottom: 20px;
  }

  header h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  header p {
    font-size: 1.05rem;
  }

  /* Layout */
  .content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Navigation */
  nav {
    position: relative;
    top: 0;
    padding: 1.25rem;
  }

  nav ul {
    gap: 6px;
  }

  nav a {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  /* Main content */
  main {
    gap: 16px;
  }

  .split {
    gap: 16px;
  }

  /* Cards */
  .card,
  .card--scrollable {
    padding: 1rem;
  }

  /* Disable forced scroll on mobile */
  .card--scrollable {
    max-height: none;
    overflow: visible;
    border-right: none;
    border-top: none;
    border-bottom: none;
  }

  /* Buttons */
  .button {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
  }

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

  .art-controls input {
    width: 100%;
    font-size: 1rem;
  }

  /* Lightbox safety */
  #lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
  }

  /* Footer */
  footer {
    padding: 14px 16px;
    text-align: center;
  }
}
