/* ============================================================
   LAZWOMAN — style.css
   Shared styles for all pages
   ============================================================ */

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

/* VARIABLES */
:root {
  --white:   #ffffff;
  --black:   #0d0d0d;
  --blue:    #0066FF;
  --orange:  #F4521E;
  --mono:    'IBM Plex Mono', monospace;
  --display: 'Big Shoulders Display', sans-serif;
  --pad:     48px;
}

/* BASE */
html { font-size: 16px; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--mono);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── HEADER ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad);
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.5vw, 36px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--black);
}

nav { display: flex; gap: 40px; }

nav a {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover  { color: var(--orange); }
nav a.active { color: var(--blue); }

/* ── MASTER GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  border-top: 1px solid var(--black);
  background: var(--black);
}

.cell {
  background: var(--white);
  padding: var(--pad);
  position: relative;
  overflow: hidden;
}

.c12 { grid-column: span 12; }
.c8  { grid-column: span 8; }
.c7  { grid-column: span 7; }
.c6  { grid-column: span 6; }
.c5  { grid-column: span 5; }
.c4  { grid-column: span 4; }
.c2  { grid-column: span 2; }

/* ── LABEL ── */
.label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #333;
  display: block;
  margin-bottom: 20px;
}

/* ── SECTION DIVIDER ── */
.section-divider {
  grid-column: span 12;
  background: var(--white);
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
}

.section-divider-title {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #333;
  white-space: nowrap;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: #ebebeb;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 26px;
  border: 1px solid var(--blue);
  color: var(--blue);
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover         { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn-fill          { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-fill:hover    { background: var(--orange); border-color: var(--orange); }
.btn-outline       { background: transparent; border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-solid         { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-solid:hover   { background: var(--orange); border-color: var(--orange); }
.btn-white         { border-color: var(--white); color: var(--white); }
.btn-white:hover   { background: var(--orange); border-color: var(--orange); }

/* ── IMAGE CELLS ── */
.cell-image {
  padding: 0;
  background: #f5f5f0;
  min-height: 500px;
  cursor: pointer;
}

.cell-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.cell-image:hover img { opacity: 0.88; }

/* ── IMAGE NAV (prev/next arrows on image cells) ── */
.img-nav {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.img-nav button {
  background: rgba(255,255,255,0.88);
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.img-nav button:hover { background: var(--white); }

.img-nav-count {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--white);
  background: rgba(13,13,13,0.55);
  padding: 3px 8px;
}

/* ── DETAIL CELLS (art/book info alongside images) ── */
.cell-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.art-label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 16px;
  display: block;
}

.art-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 48px);
  text-transform: uppercase;
  line-height: 0.95;
}

.art-meta {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 300;
  color: #333;
  line-height: 2;
  margin-top: 20px;
}

.art-meta span { display: block; }

.art-description {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 300;
  color: #444;
  line-height: 1.8;
  margin-top: 20px;
}

.art-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  margin-top: 28px;
}

.art-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.96);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active { display: flex; }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 36px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--white); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #555;
  font-size: 28px;
  cursor: pointer;
  padding: 16px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover { color: var(--white); }

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #555;
}

/* ── SITE FOOTER ── */
.site-footer {
  border-top: 1px solid var(--black);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-substack {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--black);
  transition: color 0.2s;
  display: block;
  margin-bottom: 32px;
}

.footer-substack:hover { color: var(--orange); }

/* ── CONTACT FORM ── */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--black);
  border: 1px solid var(--black);
  width: 100%;
  max-width: 700px;
}

.form-field {
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.form-field.full { grid-column: span 2; }

.form-field label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  padding: 14px 20px 0;
}

.form-field input,
.form-field textarea {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 300;
  color: var(--black);
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 20px 14px;
  resize: none;
  width: 100%;
}

.form-field textarea { min-height: 140px; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: #aaa; }

.form-submit {
  grid-column: span 2;
  background: var(--white);
  padding: 0;
}

.form-submit button {
  width: 100%;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 20px;
  background: var(--blue);
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}

.form-submit button:hover { background: var(--orange); }

.form-success {
  display: none;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 300;
  color: #333;
  padding: 24px 0;
  line-height: 1.8;
}

/* ── SCUMPOET CREDIT ── */
.scumpoet-credit {
  margin-top: 48px;
  font-size: 13px;
  color: #555;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.scumpoet-link {
  color: #555;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.scumpoet-link:hover { color: var(--black); }

/* ── UTILITY CLASSES ── */
.text-intro {
  font-size: 16px;
  color: #333;
  line-height: 1.9;
  margin-top: 24px;
  max-width: 400px;
}

.text-placeholder {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #444;
  text-align: center;
}

.text-quote {
  font-size: 16px;
  font-style: italic;
  color: #444;
  line-height: 1.9;
}

.text-attribution {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-top: 8px;
}

.img-nav-label {
  font-family: var(--mono);
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.1em;
  align-self: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* page title row — top padding used on art, books */
.cell-page-title {
  padding: 56px var(--pad) 48px;
}

/* chapter images in books.html */
.chapter-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

/* body-text spacing modifiers for stroking.html */
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-36 { margin-top: 36px; }

/* necklace nav buttons in books.html */
.necklace-nav-btn {
  background: none;
  border: none;
  color: #fff;
  font-family: var(--mono);
  font-size: 18px;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* necklace nav overlay */
.necklace-nav-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
}

/* footer back with bottom spacing */
.footer-back-spaced {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #333;
  transition: color 0.2s;
  display: inline-block;
  margin-bottom: 32px;
}

.footer-back-spaced:hover { color: var(--orange); }

/* centered footer cell for back links */
.cell-footer-back {
  text-align: center;
  padding-top: 20px;
}

/* ── INDEX: CLICKABLE CELL TYPOGRAPHY ── */
.cell-heading-sm {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 2.5vw, 36px);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 20px;
}

.cell-heading-lg {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 52px);
  text-transform: uppercase;
  line-height: 0.95;
}

.cell-body {
  font-size: 16px;
  line-height: 1.9;
}

.cell-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  color: var(--blue);
  margin-top: 16px;
}

.cell-link-text {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 12px;
  display: block;
}

.cell-flex { display: flex; flex-direction: column; justify-content: space-between; }

/* ── FOOTER BACK LINK (used on detail pages) ── */
.footer-back {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #333;
  transition: color 0.2s;
  display: inline-block;
}

.footer-back:hover { color: var(--orange); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --pad: 28px; }

  header { flex-direction: column; align-items: flex-start; gap: 16px; }
  nav { gap: 20px; }

  /* all partial columns collapse to full width */
  .c2, .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }

  .cell-image { min-height: 320px; }

  /* contact form goes single column on mobile */
  .contact-form { grid-template-columns: 1fr; max-width: 100%; }
  .form-field.full,
  .form-submit { grid-column: span 1; }
}
