/* =====================================================
   Lambertville Art Galleries
   Design: Editorial / gallery-postcard aesthetic
   Palette: warm paper, slate text, sage green, dusty rose
   ===================================================== */

/* --- Custom Properties --- */
:root {
  --color-paper:      #FAF8F4;
  --color-paper-mid:  #F0EDE6;
  --color-paper-dark: #E2DDD4;
  --color-slate:      #2C2C2C;
  --color-slate-mid:  #5A5A5A;
  --color-slate-light:#8A8A8A;
  --color-sage:       #7A8C6E;
  --color-sage-light: #B2BFA8;
  --color-rose:       #B87056;
  --color-rose-light: #D4A088;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  --thumb-width: 200px;
  --card-gap: 2rem;
  --rule: 1px solid var(--color-paper-dark);
  --rule-accent: 2px solid var(--color-sage);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-paper);
  color: var(--color-slate);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-rose);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--color-slate);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Layout --- */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Site Header --- */
.site-header {
  background-color: var(--color-paper);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.header-rule {
  height: 3px;
  background: var(--color-slate);
  position: relative;
  margin: 0.5rem 0;
}
.header-rule::before,
.header-rule::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--color-sage);
}
.header-rule::before { margin-bottom: 2px; }
.header-rule::after  { margin-top: 2px; }

.header-text-block {
  padding: 1.5rem 0 1.25rem;
}

.header-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.5rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-slate);
  letter-spacing: -0.01em;
}

.site-title em {
  font-style: italic;
  color: var(--color-rose);
}

.header-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-slate-mid);
  margin-top: 0.6rem;
}

/* --- Intro Section --- */
.intro-section {
  padding: 2rem 0 1.5rem;
  border-bottom: var(--rule);
}

.intro-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-slate-mid);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.gallery-count {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-slate-light);
  text-align: center;
}

/* --- Section Label --- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sage);
  padding: 2rem 0 1.25rem;
  border-bottom: var(--rule-accent);
  margin-bottom: 0;
}

/* --- Galleries Grid --- */
.galleries-section {
  padding-bottom: 3rem;
}

.galleries-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Gallery Card --- */
.gallery-card {
  display: flex;
  gap: var(--card-gap);
  padding: 1.75rem 0;
  border-bottom: var(--rule);
  align-items: flex-start;
}

.gallery-card:last-child {
  border-bottom: none;
}

/* Thumbnail */
.gallery-thumb {
  flex: 0 0 var(--thumb-width);
  width: var(--thumb-width);
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--color-paper-dark);
  border: var(--rule);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.03);
}

/* Body */
.gallery-body {
  flex: 1;
  min-width: 0;
}

.gallery-header {
  margin-bottom: 0.6rem;
}

.gallery-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-slate);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.gallery-address {
  font-size: 0.78rem;
  color: var(--color-slate-light);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.gallery-description {
  font-size: 0.92rem;
  color: var(--color-slate-mid);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Meta grid */
.gallery-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.meta-label {
  flex: 0 0 42px;
  font-weight: 600;
  color: var(--color-sage);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
  padding-top: 0.1rem;
}

.meta-value {
  color: var(--color-slate);
}

.meta-value a {
  color: var(--color-rose);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-paper-mid);
  padding: 2rem 1.5rem;
  margin-top: 1rem;
}

.footer-rule {
  height: 2px;
  background: var(--color-slate);
  margin-bottom: 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--color-slate-light);
  max-width: 500px;
  line-height: 1.6;
}

.footer-credit {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-slate-mid);
  white-space: nowrap;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 600px) {
  :root {
    --thumb-width: 100%;
  }

  .gallery-card {
    flex-direction: column;
    gap: 1rem;
  }

  .gallery-thumb {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .site-header {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
  /* Typography and color adjustments */
  :root {
    --color-paper:      #ffffff;
    --color-paper-mid:  #f8f8f8;
    --color-paper-dark: #dddddd;
    --color-slate:      #111111;
    --color-slate-mid:  #444444;
    --color-slate-light:#777777;
    --color-sage:       #4a6040;
    --color-rose:       #8a4530;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    font-size: 10pt;
    background: white;
  }

  /* Header: compact for print */
  .site-header {
    padding: 0.5in 0 0.25in;
    page-break-after: avoid;
  }

  .site-title {
    font-size: 28pt;
  }

  /* Don't print the gallery-count metadata line */
  .gallery-count {
    display: none;
  }

  /* Container full width on print */
  .container {
    max-width: 100%;
    padding: 0;
  }

  /* Section label */
  .section-label {
    padding: 0.2in 0 0.1in;
    font-size: 7pt;
  }

  /* Cards: use a 2-column grid on print */
  .galleries-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .gallery-card {
    padding: 0.2in 0.1in;
    page-break-inside: avoid;
    break-inside: avoid;
    border-bottom: 0.5pt solid #ccc;
  }

  /* Left column cards get right padding, right column get left */
  .gallery-card:nth-child(odd) {
    padding-right: 0.2in;
    border-right: 0.5pt solid #ccc;
  }
  .gallery-card:nth-child(even) {
    padding-left: 0.2in;
  }

  /* Thumbnail smaller on print */
  :root {
    --thumb-width: 120px;
  }

  .gallery-thumb {
    flex: 0 0 120px;
    width: 120px;
  }

  .gallery-name {
    font-size: 13pt;
  }

  .gallery-description {
    font-size: 8.5pt;
    margin-bottom: 0.5em;
  }

  .meta-item {
    font-size: 7.5pt;
  }

  /* Print URLs after link text */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 7pt;
    color: #666;
  }

  /* But not phone links */
  a[href^="tel"]::after {
    content: none;
  }

  .site-footer {
    margin-top: 0.2in;
    padding: 0.15in 0;
    background: white;
  }

  .footer-note {
    font-size: 7pt;
  }

  .footer-credit {
    font-size: 8pt;
  }

  /* Hover effects off */
  .gallery-card:hover .gallery-thumb img {
    transform: none;
  }
}
