/* ============================================================
   coreyackelmire.com — stylesheet
   adapted from nathandube.com base; source sans pro + copper accent
   ============================================================ */

:root {
  --color-bg: #ffffff;
  --color-ink: #1a1a1a;
  --color-muted: #888;
  --color-rule: rgba(26, 26, 26, 0.08);
  --color-card: #fafafa;
  --color-accent: #B87333;   /* copper, matches Group 11 design tokens for Corey */

  --font-sans: 'Source Sans Pro', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  --container-max: 1080px;
  --transition: 250ms ease;
}

/* ----- reset ----- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  background: var(--color-bg);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img, svg { display: block; max-width: 100%; }

/* ----- layout ----- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----- header ----- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: var(--space-xl);
}

.brand {
  display: inline-block;
  transition: opacity var(--transition);
}

.brand:hover { opacity: 0.7; }

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: opacity var(--transition), color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-accent);
}

.site-nav a.active,
.site-nav a[aria-current="page"] {
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
  color: var(--color-accent);
}

/* ============================================================
   homepage — three-thumbnail layout
   ============================================================ */

.thumbs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-2xl) 0;
  align-content: center;
}

.thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  transition: opacity var(--transition);
}

.thumb:hover,
.thumb:focus-visible { opacity: 0.7; }

.thumb-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-card);
  border: 1px solid var(--color-rule);
  overflow: hidden;
}

.thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-caption {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   gallery page (sculpture, jewelry, housewares)
   ============================================================ */

.gallery-header {
  padding: var(--space-md) 0 var(--space-lg);
}

.gallery-title {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
}

.works {
  display: grid;
  grid-template-columns: repeat(var(--works-cols, 4), 1fr);
  gap: var(--space-md);
  padding: var(--space-md) 0 var(--space-2xl);
}

.work {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.work a {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-rule);
  overflow: hidden;
  transition: opacity var(--transition);
}

.work a:hover,
.work a:focus-visible { opacity: 0.85; }

.work img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.work figcaption {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-ink);
}

/* hidden extras feed the lightbox only */
.work .lightbox-extra { display: none; }

/* ============================================================
   about page
   ============================================================ */

.about {
  padding: 0 0 var(--space-2xl);
  max-width: 680px;
}

.about-title {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-lg);
}

.about-bio p,
.about-statement p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 var(--space-md);
}

.about-section {
  margin: var(--space-2xl) 0 0;
}

.about-heading {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-md);
}

.about-section > p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 0.4rem;
}

.about-cv {
  margin: var(--space-2xl) 0 0;
  font-size: 0.95rem;
}

.about-cv a {
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}

.about-cv a:hover { opacity: 0.6; }

/* ============================================================
   contact page
   ============================================================ */

.contact {
  padding: 0 0 var(--space-2xl);
  max-width: 680px;
}

.contact-title {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-lg);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  font-size: 1rem;
  line-height: 1.8;
}

.contact-list a {
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 1px;
}

.contact-list a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* hide email obfuscation decoys */
.contact-list del,
.about del { display: none; }

/* ============================================================
   footer
   ============================================================ */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-rule);
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  display: inline-block;
  transition: opacity var(--transition);
  opacity: 0.6;
}

.footer-social a:hover { opacity: 1; }

.footer-social img {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-meta {
  display: flex;
  gap: var(--space-md);
  margin-left: auto;
  flex-wrap: wrap;
}

.footer-meta a {
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}

.footer-meta a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ============================================================
   lightbox (shared with nathan's site pattern)
   ============================================================ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-lg);
}

.lightbox-overlay.open { display: flex; }

.lightbox-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  background: #fff;
}

.lightbox-video {
  max-width: 90vw;
  max-height: 80vh;
  background: #000;
  display: block;
}

.lightbox-caption {
  color: #ddd;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-sans);
  font-weight: 400;
  transition: opacity var(--transition);
  opacity: 0.6;
}

.lightbox-close { top: 1rem; right: 1rem; font-size: 1.25rem; }
.lightbox-prev  { left: 1rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 900px) {
  .thumbs {
    gap: var(--space-md);
    padding: var(--space-xl) 0;
  }

  .works {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }
}

@media (max-width: 720px) {
  .container {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .site-header {
    padding-bottom: var(--space-sm);
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .brand-logo {
    height: 52px;
  }

  .site-nav ul {
    gap: 1rem;
    justify-content: flex-start;
    width: 100%;
  }

  .site-nav a { font-size: 0.9rem; }

  .thumbs {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
  }

  .thumb-image {
    max-width: 320px;
    margin: 0 auto;
  }

  .works {
    grid-template-columns: 1fr !important;
    gap: var(--space-md);
  }

  .work a {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-title,
  .about-title,
  .contact-title {
    font-size: 1.5rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    margin-left: 0;
  }

  .lightbox-prev { left: 0; font-size: 2rem; }
  .lightbox-next { right: 0; font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
  }
}
