@font-face {
font-family: 'Magica';
src: url(https://static.tumblr.com/p6yopnt/Qkiqnu0r5/theheart.ttf);
}

:root {
  --text: #0F2438;
  --bg: #fff;
  --muted: #666;
  --accent: #2a6f4b;
}

* { box-sizing: border-box; }

body {
  font-family: Magica;
  margin: 0;
  color: var(--text);
  background-image: url('tile.png');
  background-repeat: repeat;
}

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

.box {
  background: var(--bg);
  background-clip: padding-box;
  border-width: 7px;
  border-style: solid;
  border-image: url('border.gif') 7 round;
}

.text-box {
  padding: 0rem 0rem 1rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.item-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s ease;
}

.item-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.item-card h3 {
  margin: 0.5rem 0.75rem 0.25rem;
}

.item-card .price {
  margin: 0 0.75rem 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.back-link a {
  font-size: 1.3rem;
  color: var(--muted);
  text-decoration: none;
}

.item-page .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.item-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.item-images img {
  /*max-width: 320px;*/
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
}

.item-description {
  font-size: 1.3rem;
  line-height: 1.6;
}
