/* The Rutman Gallery — light gallery-white theme */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f6f4;
  --line: #e4e1db;
  --text: #17140f;
  --text-muted: #6b6559;
  --accent: #9a3324; /* muted gallery-label red */
  --serif: "Canela", "Iowan Old Style", "Georgia", serif;
  --sans: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: center;
}
.header-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-logo { height: 34px; width: 34px; object-fit: contain; }
.header-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.header-nav a:hover { color: var(--text); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* Homepage intro */
.intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.intro h1 { font-size: 2.4rem; margin-bottom: 1.1rem; }
@media (min-width: 700px) {
  .intro h1 { white-space: nowrap; }
}
@media (max-width: 480px) {
  .intro h1 { font-size: 1.9rem; }
}
.intro p { color: var(--text-muted); font-size: 1.05rem; }

/* Artist grid */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2.25rem 1.75rem;
}
.artist-grid--featured {
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}
@media (max-width: 760px) {
  .artist-grid--featured { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .artist-grid--featured { grid-template-columns: 1fr; }
}
.promo-section {
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
}
.promo-section .section-title { margin-bottom: 0.5rem; }
.promo-section .section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
}
.promo-section .artist-card { opacity: 0.85; }
.artist-card { display: block; }
.artist-card .thumb {
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 0.9rem;
}
.artist-card img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.artist-card:hover img { transform: scale(1.035); }
.artist-card .name { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.2rem; }
.artist-card .count { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* Artist page */
.artist-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.artist-hero .headshot {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
}
.artist-hero h1 { font-size: 2.3rem; margin-bottom: 0.3rem; }
.artist-hero .piece-count { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.artist-hero.no-headshot { grid-template-columns: 1fr; text-align: center; }

.video-wrap { max-width: 760px; margin: 0 auto 3.5rem; }

.bio { max-width: 720px; margin: 0 auto 4rem; font-size: 1rem; }
.bio .artist-line { color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin-bottom: 1.3rem; }
.bio h3 { font-size: 1.05rem; margin-top: 2rem; }
.bio ul { color: var(--text-muted); padding-left: 1.2rem; }
.bio li { margin-bottom: 0.4rem; }
.bio p { margin-bottom: 1.1rem; }

.section-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 2.5rem;
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.25rem 1.75rem;
  margin-bottom: 4rem;
}
.artwork-card .thumb {
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 0.85rem;
}
.artwork-card img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.artwork-card:hover img { transform: scale(1.035); }
.artwork-card h4 { font-family: var(--serif); font-size: 1rem; margin-bottom: 0.2rem; }
.artwork-card .dims { font-size: 0.78rem; color: var(--text-muted); }

.social {
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.social h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1.1rem; }
.social-links { list-style: none; display: flex; justify-content: center; gap: 1.75rem; padding: 0; margin: 0 0 1rem; flex-wrap: wrap; font-size: 0.85rem; }
.social-links a { border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.social-links a:hover { border-color: var(--text); }
.official-site { margin-top: 0.75rem; font-size: 0.9rem; }
.official-site a { border-bottom: 1px solid var(--line); }

.back-link { text-align: center; margin-top: 3.5rem; font-size: 0.85rem; letter-spacing: 0.04em; }
.back-link a { color: var(--text-muted); }
.back-link a:hover { color: var(--text); }

/* Artwork detail page */
.artwork-page h1 { text-align: center; font-size: 1.9rem; margin-bottom: 0.4rem; }
.artwork-page .by-line { text-align: center; color: var(--text-muted); margin-bottom: 3rem; font-size: 0.95rem; }
.artwork-page .by-line a { color: var(--accent); }
.artwork-detail {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(280px, 0.9fr);
  gap: 3.5rem;
  align-items: start;
}
.artwork-detail .frame {
  background: var(--bg-alt);
}
.artwork-detail img { width: 100%; }
.artwork-text ul { color: var(--text-muted); padding-left: 1.2rem; }
.artwork-text li { margin-bottom: 0.55rem; }
.artwork-text p { margin-bottom: 1.1rem; }

.spec-table {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.spec-table dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1.5rem;
  margin: 0;
}
.spec-table dt { color: var(--text-muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.07em; align-self: baseline; }
.spec-table dd { margin: 0; }

@media (max-width: 760px) {
  .artwork-detail { grid-template-columns: 1fr; }
  .artist-hero { grid-template-columns: 1fr; text-align: center; }
  .artist-hero .headshot { margin: 0 auto; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
