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

body {
  font-family: 'Georgia', serif;
  background: #f7f5f2;
  color: #2c2c2c;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  background: #fff;
  border-bottom: 1px solid #e8e4df;
  padding: 1.75rem 1.25rem 1.25rem;
  text-align: center;
  position: relative;
}

.header-contact {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #2c2c2c;
  text-decoration: none;
}

header h1 {
  font-size: 1.75rem;
  font-weight: normal;
  letter-spacing: 0.14em;
  color: #1a1a1a;
  text-transform: uppercase;
}

.header-artist {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #aaa;
  font-style: italic;
}

header p.header-subtitle {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  color: #999;
  font-style: italic;
}

/* ── Index grid ── */
.grid-hint {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #bbb;
  font-style: italic;
  padding: 0.9rem 1rem 0;
}

main.grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #e8e4df;
  max-width: 600px;
  width: calc(100% - 2rem);
  margin: 0.75rem auto 1.5rem;
  border: 1px solid #e8e4df;
  border-radius: 4px;
  overflow: hidden;
}

.grid-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.grid-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid-item:active img {
  transform: scale(1.04);
}

.grid-caption {
  padding: 0.35rem 0.6rem 0.45rem;
  font-size: 1.2rem;
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* ── Detail page ── */
main.detail {
  flex: 1;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  margin-bottom: 1.1rem;
}

.back-link:active { color: #444; }

.detail-image {
  display: block;
  width: 100%;
  border-radius: 3px;
  object-fit: cover;
}

.detail-body {
  margin-top: 1.25rem;
}

.detail-title {
  font-size: 1.4rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}

.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 0.75rem;
  border-top: 1px solid #e8e4df;
  padding-top: 1rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
}

.meta-value {
  font-size: 0.9rem;
  color: #2c2c2c;
}

.meta-price .meta-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1a1a1a;
}

.inquire-btn {
  display: block;
  width: 100%;
  margin-top: 1.75rem;
  padding: 0.85rem;
  background: #1a1a1a;
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-radius: 3px;
}

/* ── Contact page ── */
main.contact {
  flex: 1;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
}

.contact-section {
  margin-top: 1.5rem;
  border-top: 1px solid #e8e4df;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
}

.contact-value {
  font-size: 1rem;
  color: #2c2c2c;
  text-decoration: none;
}

.contact-value:active { color: #888; }

/* ── Footer ── */
footer {
  background: #fff;
  border-top: 1px solid #e8e4df;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-insta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #2c2c2c;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.footer-insta svg {
  width: 18px;
  height: 18px;
}

.footer-contact {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #2c2c2c;
  text-decoration: none;
}

.footer-contact:active { color: #888; }

.footer-copy {
  font-size: 0.7rem;
  color: #ccc;
  letter-spacing: 0.05em;
}
