/* Maple — site styles. Colors live in :root so they're easy to change. */
:root {
  --bg: #0E0E0E;
  --surface: #161616;
  --panel: #1A1A1A;
  --line: #2A2A2A;
  --text: #F2F2F2;
  --soft: #C8C8C8;
  --muted: #A3A3A3;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--text); }
a:hover { color: var(--soft); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--text); color: var(--bg); padding: 8px 14px; z-index: 10; }

/* Header */
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px var(--pad);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 26px; font-weight: 600; text-decoration: none;
}
.logo svg { width: 24px; height: 24px; }
.site-nav { display: flex; gap: clamp(18px, 3vw, 36px); flex-wrap: wrap; }
.site-nav a { text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 26px;
  background: var(--text); color: var(--bg);
  font-weight: 600; text-decoration: none; border: 1px solid var(--text);
}
.btn:hover { background: var(--soft); border-color: var(--soft); color: var(--bg); }
.btn-outline { background: transparent; color: var(--text); font-weight: 500; }
.btn-outline:hover { background: var(--text); color: var(--bg); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 7vw, 88px) var(--pad);
}
.hero h1 { font-size: clamp(44px, 6vw, 76px); letter-spacing: -0.01em; }
.hero p { color: var(--soft); font-size: 19px; max-width: 30em; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 40px 70px -35px #000; }

/* Collection */
.section { padding: clamp(40px, 6vw, 72px) var(--pad); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(34px, 4vw, 46px); }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px;
}
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.mat {
  aspect-ratio: 4 / 5; padding: 18px;
  background: var(--surface); border: 1px solid #242424; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
}
.mat img { max-height: 100%; object-fit: contain; box-shadow: 0 16px 30px -18px #000; }
.card:hover .mat { border-color: #3A3A3A; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title { font-family: var(--serif); font-size: 19px; }
.card-price { font-size: 15px; font-weight: 600; white-space: nowrap; }
.card-price.is-sold { color: var(--muted); font-weight: 500; }
.card-meta { margin: -6px 0 0; color: var(--muted); font-size: 14px; }

/* About */
.about {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center;
  margin: 0 var(--pad); padding: clamp(32px, 6vw, 72px);
  background: var(--panel); border-radius: 8px;
}
.about img { width: 300px; height: 300px; border-radius: 50%; object-fit: cover; object-position: 50% 40%; border: 1px solid var(--line); }
.about h2 { font-size: clamp(32px, 4vw, 42px); }
.about p { color: var(--soft); font-size: 18px; max-width: 36em; margin: 18px 0 22px; }
.about a { font-weight: 600; }

/* Footer */
.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(48px, 8vw, 96px); padding: 32px var(--pad);
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.site-footer a { color: var(--muted); }

/* Artwork page */
.crumbs { padding: 24px var(--pad) 0; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.piece {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px); align-items: start;
  padding: 32px var(--pad) 0;
}
.piece-mat {
  padding: clamp(16px, 3vw, 32px);
  background: var(--surface); border: 1px solid #242424; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
}
.piece-mat img { max-height: 78vh; object-fit: contain; box-shadow: 0 24px 50px -24px #000; }
.piece-info { display: flex; flex-direction: column; gap: 22px; }
.piece-info h1 { font-size: clamp(38px, 4.5vw, 54px); }
.piece-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.piece-price strong { font-size: 28px; font-weight: 600; }
.piece-price span { color: var(--muted); font-size: 15px; }
.piece-info > p { margin: 0; color: var(--soft); }
.details {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px 16px; margin: 0;
  padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.details dt { color: var(--muted); }
.details dd { margin: 0; }
#piece-buy .btn { width: 100%; min-height: 58px; font-size: 17px; }
.ask { text-align: center; font-weight: 500; }
.note { background: var(--panel); border-radius: 8px; padding: 20px; font-size: 15px; color: var(--soft); }
.note h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.note p { margin: 0; }
.missing { grid-column: 1 / -1; padding: 64px 0; }
.missing p { color: var(--soft); margin: 16px 0 28px; }

/* Tablet */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .piece { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}
/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { flex-wrap: wrap; }
  .grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about img { width: 200px; height: 200px; margin: 0 auto; }
  .about p { margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
