/* ============================================
   JASON GOULIARD — KIRBY THEME
   Option 1: Void
   ============================================ */

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

:root {
  --bg:      #F5F0E8;
  --ink:     #111108;
  --muted:   #999990;
  --rule:    #E0DAD0;
  --white:   #ffffff;
  --font:    'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --nav-h:   52px;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(32px, calc((100% - 672px) / 2 + 32px));
  padding-right: 32px;
  background: var(--bg);
}

/* transparent over hero on home page */
.site-nav--home {
  background: transparent;
}
.site-nav--home .nav-name,
.site-nav--home .nav-links a {
  color: rgba(245,240,232,0.85);
}
.site-nav--home .nav-links a:hover {
  color: rgba(245,240,232,1);
}
.site-nav--home .nav-toggle span {
  background: rgba(245,240,232,0.85);
}

/* thin rule only on non-home pages */
.site-nav--ruled {
  border-bottom: 1px solid var(--rule);
}

.nav-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  z-index: 300;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 250;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay a {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-overlay a:hover,
.nav-overlay a.is-active {
  color: var(--ink);
}

/* ============================================
   HOME — Sunburst animation hero
   ============================================ */

/* Extend the hero's dark background through the rest of the homepage
   (past the hero, down to and including the footer) */
body.template-home {
  background: #1A1816;
}
body.template-home .site-footer {
  border-top-color: rgba(245,240,232,0.12);
}
body.template-home .footer-copy,
body.template-home .footer-links a {
  color: rgba(245,240,232,0.55);
}
body.template-home .footer-links a:hover {
  color: rgba(245,240,232,1);
}

.home-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #1A1816;
  cursor: crosshair;
}

.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  will-change: transform;
}

.hero-content {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  max-width: 340px;
  pointer-events: none;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 20px 16px;
  background: rgba(26, 24, 22, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 4px;
  text-align: left;
}

.hero-bio {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(245,240,232,0.82);
  text-align: left;
  letter-spacing: 0;
  margin: 0;
}

/* Large centered title treatment — two stacked blocks with reversed colors,
   inspired by the Superlocal date-block composition */
.hero-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(44px, 10vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-title-line {
  display: inline-block;
  padding: 0.06em 0.22em 0.12em;
  background: #F5F0E8;
  color: #1A1816;
}

.hero-title-line--alt {
  background: #1A1816;
  color: #F5F0E8;
}

@media (max-width: 640px) {
  .hero-content {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

.hero-dot.is-active {
  background: rgba(245,240,232,0.95);
}

/* ============================================
   PAGE WRAPPER (non-home pages)
   ============================================ */

.page-wrap {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.container {
  max-width: 672px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-header {
  padding: 48px 0 0;
  margin-bottom: 40px;
}

.gallery-header--borderless {
  margin-bottom: 0;
}

.gallery-header--borderless .gallery-subnav {
  border-bottom: none;
  padding-bottom: 0;
}

.gallery-header h1 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.gallery-subnav {
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.gallery-subnav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.gallery-subnav a:hover {
  color: var(--text);
}

.gallery-subnav a.is-active {
  color: var(--text);
}

.gallery-intro {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 580px;
}

.gallery-intro p + p {
  margin-top: 14px;
}

.as-featured {
  margin-bottom: 40px;
}

.as-featured-img {
  width: 100%;
  height: auto;
  display: block;
}

.as-featured-caption {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.as-featured-caption span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.artist-statement-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 580px;
  padding-top: 32px;
  padding-bottom: 80px;
}

.artist-statement-body p + p {
  margin-top: 1.4em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: 80px;
}

.gallery-item {
  position: relative;
  padding-bottom: 60px;
}

.gallery-item-image {
  display: block;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--rule);
}

.gallery-item-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-item-image:hover img {
  opacity: 0.92;
}

.gallery-caption {
  padding: 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.gallery-caption-left {}

.gallery-caption .caption-title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 4px;
}

.gallery-caption .caption-meta {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.gallery-caption .caption-meta-line {
  display: block;
}

.gallery-caption .caption-link {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gallery-caption .caption-link:hover {
  color: var(--ink);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 17, 8, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 72px 80px 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.25s ease;
  flex-shrink: 1;
}

.lightbox-img.is-loading {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(245,240,232,0.5);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--font);
  transition: color 0.2s;
  padding: 8px;
}

.lightbox-close:hover {
  color: rgba(245,240,232,1);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(245,240,232,0.4);
  font-size: 11px;
  letter-spacing: 0.2em;
  font-family: var(--font);
  padding: 20px 28px;
  transition: color 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: rgba(245,240,232,1);
}

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

.lightbox-caption {
  text-align: center;
  color: rgba(245,240,232,0.5);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .lightbox { padding: 56px 0 72px; }
  .lightbox-img { max-width: 100vw; max-height: 70vh; }
  .lightbox-prev { padding: 16px; }
  .lightbox-next { padding: 16px; }
  .lightbox-caption {
    white-space: normal;
    padding: 0 20px;
    letter-spacing: 0.12em;
    line-height: 1.5;
    max-width: 100%;
  }
}

/* ============================================
   BLOG — Listing
   ============================================ */

.blog-header {
  padding: 48px 0 0;
  margin-bottom: 40px;
}

.blog-header h1 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.blog-filter {
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.blog-filter a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.blog-filter a:hover,
.blog-filter a.is-active {
  color: var(--ink);
}

.blog-list {
  list-style: none;
}

.blog-list-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: opacity 0.2s;
}

.blog-list li:first-child .blog-list-item {
  padding-top: 0;
}

.blog-list-item:hover {
  opacity: 0.6;
}

.blog-list-date {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.blog-list-title {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}

.blog-empty {
  padding: 48px 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  text-align: center;
  border-bottom: 1px solid var(--rule);
}

.blog-empty em {
  font-style: normal;
  color: var(--ink);
  text-transform: capitalize;
}

/* ============================================
   BLOG — Single Post
   ============================================ */

.post-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.post-meta {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.post-title {
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}

.post-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: #333;
}

.post-body p { margin-bottom: 1.5em; }
.post-body h2 { font-size: 16px; font-weight: 500; letter-spacing: 0.05em; margin: 2.5em 0 1em; }
.post-body h3 { font-size: 14px; font-weight: 500; letter-spacing: 0.08em; margin: 2em 0 0.8em; }
.post-body img { margin: 2.5em 0; width: 100%; }
.post-body a { border-bottom: 1px solid var(--rule); transition: border-color 0.2s; }
.post-body a:hover { border-bottom-color: var(--ink); }
.post-body blockquote {
  border-left: 2px solid var(--rule);
  margin: 2em 0;
  padding-left: 24px;
  color: var(--muted);
  font-style: italic;
}

.post-body ul,
.post-body ol,
.artist-statement-body ul,
.artist-statement-body ol,
.text-page-body ul,
.text-page-body ol,
.gallery-intro ul,
.gallery-intro ol {
  margin: 0 0 1.5em;
  padding-left: 1.75em;
}
.post-body ul,
.artist-statement-body ul,
.text-page-body ul,
.gallery-intro ul { list-style: disc; }
.post-body ol,
.artist-statement-body ol,
.text-page-body ol,
.gallery-intro ol { list-style: decimal; }
.post-body li,
.artist-statement-body li,
.text-page-body li,
.gallery-intro li { margin-bottom: 0.4em; }
.post-body li::marker,
.artist-statement-body li::marker,
.text-page-body li::marker,
.gallery-intro li::marker { color: var(--muted); }
.post-body li > ul,
.post-body li > ol,
.artist-statement-body li > ul,
.artist-statement-body li > ol,
.text-page-body li > ul,
.text-page-body li > ol,
.gallery-intro li > ul,
.gallery-intro li > ol { margin: 0.4em 0 0.4em; }

/* ============================================
   CUSTOM TEXT STYLE TAGS
   Usage in any textarea (on its own line):
     (caption: text)  — small muted label
     (body: text)     — standard body paragraph
     (indent: text)   — indented block
   ============================================ */

.text-caption {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-bottom: 1.2em;
}

.text-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.85;
  margin-bottom: 1.5em;
}

.text-indent {
  padding-left: 28px;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  margin: 1.5em 0;
  line-height: 1.75;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  margin-top: 60px;
  gap: 24px;
}

.post-nav a {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.post-nav a:hover { color: var(--ink); }

/* ============================================
   DEFAULT — Text pages (Statement, Contact)
   ============================================ */

.text-page {
  max-width: 672px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}

.text-page-label {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.text-page-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: #333;
}

.text-page-body p { margin-bottom: 1.6em; }
.text-page-body a { border-bottom: 1px solid var(--rule); transition: border-color 0.2s; }
.text-page-body a:hover { border-bottom-color: var(--ink); }

/* Contact form */
.contact-form {
  margin-top: 48px;
}

.form-success {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 48px;
}

.form-error {
  font-size: 12px;
  color: #b94a4a;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--ink);
}

.form-textarea {
  resize: none;
  height: 120px;
  line-height: 1.7;
}

.form-submit {
  margin-top: 32px;
  background: none;
  border: 1px solid var(--ink);
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.form-submit:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  max-width: 672px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ink);
}

/* ============================================
   POST IMAGES — SLIDESHOW
   ============================================ */

.post-slideshow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.post-slides {
  flex: 1;
  min-width: 0;
  position: relative;
}

.post-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.04) 20%,
    rgba(0, 0, 0, 0.10) 45%,
    rgba(0, 0, 0, 0.04) 70%
  );
  background-size: 220% 100%;
  animation: post-slide-shimmer 1.4s linear infinite;
  overflow: hidden;
}

.post-slide.is-active {
  position: static;
  opacity: 1;
  pointer-events: auto;
}

.post-slide.is-loaded {
  animation: none;
  background: none;
}

.post-slide img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.post-slide.is-loaded img {
  opacity: 1;
}

@keyframes post-slide-shimmer {
  from { background-position: 220% 0; }
  to   { background-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .post-slide {
    animation: none;
  }
  .post-slide img {
    transition: none;
  }
}

.post-slideshow-counter {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin: 0 0 48px;
}

.post-slideshow-prev,
.post-slideshow-next {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.post-slideshow-prev:hover,
.post-slideshow-next:hover {
  border-color: var(--ink);
}


/* ============================================
   PAGINATION
   ============================================ */

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}

.pagination a {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.pagination a:hover { color: var(--ink); }
.pagination span { color: var(--rule); font-size: 10px; }

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */

/* gallery is always single column — no overrides needed */

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */

@media (max-width: 640px) {

  :root { --nav-h: 48px; }

  /* Nav */
  .site-nav { padding-left: 20px; padding-right: 20px; }
  .container { padding: 0 20px; }
  .nav-links { display: none; }

  .nav-toggle {
    display: flex;
  }

  .nav-overlay {
    display: flex;
  }

  /* Home hero */
  .hero-title h1 { font-size: 10px; }

  /* Gallery is always single column */

  /* Blog list */
  .blog-list-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }

  /* Post */
  .post-wrap { padding: 40px 20px 80px; }
  .post-title { font-size: 20px; }

  /* Text page */
  .text-page { padding: 40px 20px 80px; max-width: none; }
  .text-page-body { font-size: 15px; }

  /* Footer */
  .site-footer {
    gap: 12px;
  }
}
