/* Beto Marinelli — quiet fine-art brochure */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f4ef;
  --bg-soft: #f0ebe3;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --border: #e0d9cf;
  --link: #1a1a1a;
  --max: 1100px;
  --pad: 1.5rem;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

a { color: var(--link); text-decoration: none; }
a:hover { opacity: 0.65; }

h1, h2, h3, .serif {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* Nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); opacity: 1; }

/* Layout */
main { flex: 1; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 4rem;
}
.wrap-narrow { max-width: 640px; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad) 0;
}
.hero img {
  width: 100%;
  border: 1px solid var(--border);
}
.hero-caption {
  margin-top: 1.75rem;
  text-align: center;
}
.hero-caption p {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto;
}

/* Sections */
.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.section-blurb {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  max-width: 36rem;
}
.section-meta {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* Collection preview on home */
.collections-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (min-width: 700px) {
  .collections-preview { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.collection-card {
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.collection-card a { display: block; }
.collection-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.collection-card .card-body { padding: 1.15rem 1.25rem 1.4rem; }
.collection-card h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.collection-card p { color: var(--muted); font-size: 0.9rem; }

/* Grid */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 1.25rem;
}
@media (min-width: 560px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .work-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.work-card a { display: block; }
.work-card .thumb {
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.work-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.work-card .title {
  margin-top: 0.65rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.95rem;
}

/* Detail */
.detail {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem var(--pad) 3rem;
}
.detail-img-wrap {
  border: 1px solid var(--border);
  background: #fff;
  margin-bottom: 1.5rem;
}
.detail-img-wrap img {
  width: 100%;
  margin: 0 auto;
}
.detail-meta { text-align: center; }
.detail-meta h1 {
  font-size: 1.75rem;
  margin: 0.4rem 0 0.75rem;
}
.detail-meta .collection-link {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.btn {
  display: inline-block;
  border: 1px solid var(--text);
  padding: 0.7rem 1.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text);
}
.btn:hover { background: var(--text); color: var(--bg); opacity: 1; }
.btn-ghost {
  border-color: var(--border);
  color: var(--muted);
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); background: transparent; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 420px;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pager a { color: var(--muted); }
.pager .disabled { visibility: hidden; }

/* About / Enquire */
.prose p { margin-bottom: 1.1rem; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.page-header {
  margin-bottom: 2rem;
}
.page-header h1 { font-size: 1.85rem; margin-bottom: 0.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem var(--pad);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer p { margin-bottom: 0.4rem; }
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.site-footer .copy {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* Misc */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Pricing */
.muted { color: var(--muted); }
.pricing {
  max-width: 920px;
  margin: 2rem auto 0;
  padding: 0 var(--pad);
}
.edition-note {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 40rem;
  margin: 0 auto 1.25rem;
  text-align: center;
  line-height: 1.55;
}
.pricing-cta {
  text-align: center;
  margin-bottom: 2rem;
}
.pricing-heading {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.65rem;
  text-align: center;
}
.pricing-heading .currency {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.4rem;
}
.pricing-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  background: #fff;
  margin-bottom: 0.5rem;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 520px;
}
.price-table th,
.price-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.price-table thead th {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--bg-soft);
}
.price-table tbody th {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  white-space: nowrap;
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: none; }
.price-cell {
  white-space: nowrap;
}
.price-cell .price {
  display: inline-block;
  min-width: 4.5rem;
  color: var(--text);
}
.enquire-link {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.35rem;
}
.enquire-link:hover { color: var(--text); opacity: 1; }
.price-table td.na {
  color: var(--muted);
  text-align: center;
}
.detail-actions { margin-top: 2rem; }
@media (max-width: 560px) {
  .price-table { font-size: 0.78rem; }
  .price-table th, .price-table td { padding: 0.55rem 0.5rem; }
  .price-cell .price { display: block; min-width: 0; margin-bottom: 0.2rem; }
  .enquire-link { margin-left: 0; }
}
