/* Ron Burton Gallery - static site styles. Grayscale, minimal, responsive. */

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --line: #d8d8d8;
  --surface: #f4f4f4;
  --paper: #ffffff;
  --accent: #2a2a2a;
  --link: #662c91;
  --link-hover: #983496;
  --max-width: 1200px;
  --font: "Lato", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1, h2, h3, .site-wordmark, .top-bar {
  font-family: var(--font);
  font-weight: 700;
}

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

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Header --- */

.site-header {
  background: #000;
  position: relative;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.site-wordmark {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: #fff;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #ccc;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.site-nav a.active,
.site-nav a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid #555;
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: #fff;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-header { justify-content: space-between; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #000;
    border-top: 1px solid #333;
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .site-nav a { display: block; padding: 0.6rem 0; }
}

/* --- Main content --- */

#content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

h1 {
  font-weight: 600;
  font-size: 1.9rem;
  margin: 0.2rem 0 1rem;
}

.lede { color: var(--ink-soft); margin-top: -0.5rem; }

.breadcrumb {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* --- Home --- */

.home-hero {
  position: relative;
  margin-bottom: 1rem;
}
.home-hero img { width: 100%; object-fit: cover; }
.home-hero-quote {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  color: var(--ink);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.home-hero-quote p { margin: 0 0 0.5rem; font-size: 1.05rem; font-style: italic; }
.home-hero-quote a { font-weight: 700; white-space: nowrap; font-style: normal; }
.home-hero-quote .sig { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--ink-soft); margin: 0; }

.home-tagline {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0.5rem 0 1.5rem;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.home-link-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--line);
  text-decoration: none;
  background: var(--surface);
}
.home-link-card:hover { background: #ebebeb; }
.home-link-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.home-link-desc { color: var(--ink-soft); font-size: 0.9rem; }

/* --- Topic grid (albums) --- */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.topic-card {
  position: relative;
  display: block;
  text-decoration: none;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface);
}
.topic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(40%);
  transition: filter 0.2s ease, transform 0.3s ease;
}
.topic-card:hover img { filter: grayscale(0%); transform: scale(1.03); }
.topic-card-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

/* --- Photo grid (within an album) --- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}
.photo-thumb { display: block; overflow: hidden; background: var(--surface); }
.photo-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.photo-thumb:hover img { transform: scale(1.05); }

/* --- Single photo page --- */

.photo-page h1 { margin-top: 0.5rem; }
.photo-full { margin: 1rem 0; background: var(--surface); }
.photo-caption { color: var(--ink-soft); max-width: 65ch; }

/* --- Articles --- */

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.article-teaser-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.article-teaser-image img { width: 100%; height: 100%; object-fit: cover; }
.article-teaser h2 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.article-teaser h2 a { text-decoration: none; }
.article-teaser h2 a:hover { text-decoration: underline; }
.article-teaser p { color: var(--ink-soft); }
.read-more { font-size: 0.9rem; text-decoration: none; font-weight: 600; }

.article-hero { margin: 0.75rem 0 1.5rem; max-width: 100%; }
.article-body, .page-body { max-width: 70ch; }
.article-body img, .page-body img { margin: 1rem 0; }

/* Some page bodies (e.g. About) contain a 3-column layout div that should
   fill the page width rather than being squeezed into the prose measure. */
.page-body:has(.gcontainer) { max-width: none; }
.page-body .gcontainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
}
.page-body .gcontainer p { max-width: 60ch; }

/* --- Contact form --- */

.contact-form { max-width: 480px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--paper);
}
.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.contact-form button:hover { background: #000; }
.hp-field { position: absolute; left: -9999px; }

/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.site-footer p { max-width: 65ch; margin: 0 auto 1rem; }
.footer-logos { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-logos img { max-height: 44px; width: auto; }
.copyright { font-size: 0.75rem; }

/* --- Lightbox --- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
}
.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-figure { max-width: 100%; }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { padding: 0.5rem 0.75rem; font-size: 1.25rem; }
}
