/* Contemporary Art Gallery: white background, black text, Roboto (Google Fonts). */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --frame: #f3f3f3;
  --gutter: 16px;
  --max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
em { font-style: italic; }

.site-header, .site-main, .site-footer { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.site-header { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
.site-name { font-weight: 400; font-size: 22px; letter-spacing: .02em; color: var(--muted); }
.site-name:hover { text-decoration: none; color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-main { padding-bottom: 64px; min-height: 60vh; }
.site-footer { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (min-width: 800px) {
  :root { --gutter: 40px; }
  .site-header { flex-direction: row; align-items: baseline; justify-content: space-between; padding-top: 40px; padding-bottom: 48px; }
  .site-name { font-size: 26px; }
}

.page-title { font-weight: 300; font-size: 28px; line-height: 1.2; margin: 0 0 28px; }
.section-label { font-weight: 400; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.muted { color: var(--muted); }
.prose { max-width: 680px; font-size: 17px; }
.prose p { margin: 0 0 1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.sold { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sold-large { font-size: 15px; margin-top: 28px; }
.photo-missing { display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--frame); }

/* Home */
.home-featured { display: flex; flex-direction: column; gap: 56px; }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; }
.feature:hover { text-decoration: none; }
.feature-image { display: block; width: 100%; }
/* Size the image to the photo itself (no empty box), capped by column width and screen height, centred. */
.feature-image img { width: auto; height: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; }
.feature-image .photo-missing { width: 100%; max-width: 560px; margin: 0 auto; }
.feature-text { display: flex; flex-direction: column; align-items: center; margin-top: 16px; }
.feature-artist { font-size: 20px; }
.feature-title { color: var(--muted); }
.feature:hover .feature-artist { text-decoration: underline; text-underline-offset: 3px; }
.home-artists { margin-top: 72px; text-align: center; }

/* Name lists (Artists page) */
.name-list { list-style: none; margin: 0; padding: 0; }
.name-list li { padding: 6px 0; font-size: 18px; }
.name-list-large li { font-size: 22px; font-weight: 300; padding: 8px 0; }

/* Artist page */
.artist-intro { display: grid; gap: 24px; margin-bottom: 48px; }
.artist-photo { max-width: 300px; }
@media (min-width: 800px) { .artist-intro.has-photo { grid-template-columns: 300px 1fr; gap: 40px; } }
.grid { display: grid; grid-template-columns: 1fr; gap: 40px 28px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; }
.card:hover { text-decoration: none; }
.card-image { display: flex; align-items: flex-end; aspect-ratio: 1 / 1; background: var(--bg); }
.card-image img, .card-image picture { width: 100%; height: 100%; }
.card-image img { object-fit: contain; object-position: left bottom; }
.card-text { display: flex; flex-direction: column; margin-top: 12px; font-size: 15px; }
.card-artist { font-size: 16px; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 3px; }

/* Work page */
.work { display: grid; gap: 32px; }
.work > *, .grid > *, .artist-intro > * { min-width: 0; }
@media (min-width: 900px) { .work { grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 56px; align-items: start; } }
.work-main img { width: 100%; max-height: 80vh; object-fit: contain; object-position: left top; }
.thumbs { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { display: block; width: 72px; height: 72px; border: 1px solid transparent; padding: 2px; }
.thumb.is-current { border-color: var(--ink); }
.thumb img, .thumb picture { width: 100%; height: 100%; }
.thumb img { object-fit: cover; }
.work-artist { font-size: 20px; margin: 0 0 4px; }
.work-title { font-weight: 300; font-size: 22px; line-height: 1.3; margin: 0 0 24px; }
.work-details { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 15px; }
.work-details dt { color: var(--muted); }
.work-details dd { margin: 0; }
.inquire { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-block; padding: 12px 22px; border: 1px solid var(--ink); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.button:hover, .button:focus-visible { background: var(--ink); color: var(--bg); text-decoration: none; }

/* Contact */
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 32px 0 0; font-size: 17px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }

/* Journal */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; max-width: 900px; }
.post-list a { display: grid; gap: 14px; }
@media (min-width: 800px) { .post-list a { grid-template-columns: 240px 1fr; gap: 28px; } }
.post-list a:hover { text-decoration: none; }
.post-text { display: flex; flex-direction: column; }
.post-text time { font-size: 13px; color: var(--muted); }
.post-title { font-size: 20px; font-weight: 300; }
.post-list a:hover .post-title { text-decoration: underline; text-underline-offset: 3px; }
.post { max-width: 800px; }
.post-hero { margin-bottom: 28px; }
