/* Anika Plowden-Corentin — static site styles */

:root {
  --ink: #1c1a17;
  --ink-soft: #4a463f;
  --muted: #8a857b;
  --paper: #ffffff;
  --wash: #faf8f4;
  --line: #e7e1d6;
  --accent: #b98a2f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

/* Artwork protection: a tasteful, repeated display overlay plus casual-save deterrence. */
.watermarked-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.artwork-frame {
  display: block;
  width: 100%;
}

.watermarked-art::after {
  content: 'Anika Plowden-Corentin   Anika Plowden-Corentin\A Anika Plowden-Corentin   Anika Plowden-Corentin\A Anika Plowden-Corentin   Anika Plowden-Corentin';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 175%;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(0.72rem, 1.8vw, 1.08rem);
  font-style: italic;
  line-height: 3.8;
  letter-spacing: 0.035em;
  text-align: center;
  white-space: pre;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.62);
  transform: translate(-50%, -50%) rotate(-22deg);
  transform-origin: center;
  pointer-events: none;
  user-select: none;
}

.hero-background-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: url('images/ankara-wings.jpg') center / cover no-repeat;
  pointer-events: none;
}

.hero-art-watermark {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 17%, transparent 24%, transparent 76%, #000 83%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 17%, transparent 24%, transparent 76%, #000 83%, #000 100%);
}

.hero-art-watermark::after {
  content: 'Anika Plowden-Corentin   Anika Plowden-Corentin\A Anika Plowden-Corentin   Anika Plowden-Corentin\A Anika Plowden-Corentin   Anika Plowden-Corentin';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  color: rgba(255, 255, 255, 0.14);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(0.92rem, 1.9vw, 1.3rem);
  font-style: italic;
  line-height: 4.5;
  letter-spacing: 0.035em;
  text-align: center;
  white-space: pre;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%) rotate(-22deg);
  transform-origin: center;
}

.carousel-slide .artwork-frame { height: 100%; }

h1, h2, h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

a { color: inherit; }

p { text-wrap: pretty; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #a85f45;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: #7f432f;
}

.main-nav { display: flex; gap: 2rem; }

.main-nav a {
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #211812;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20, 15, 10, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 760px;
  padding: 4rem 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
}

.hero-content p {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.8;
  opacity: 0.95;
}

.hero-content .hero-btn {
  margin-top: 1.75rem;
  color: #fff;
  border-color: #fff;
  background: rgba(20, 15, 10, 0.2);
}

.hero-content .hero-btn:hover,
.hero-content .hero-btn:focus-visible {
  color: var(--ink);
  background: #fff;
}

.hero-flag {
  width: 42px;
  margin: 0.9rem auto 0;
  line-height: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.hero-flag svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Sections ---------- */
.section {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.section + .section { padding-top: 1rem; }

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  text-align: center;
}

.background-heading {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.background-section {
  text-align: center;
  padding-bottom: 0;
}

.background-section p {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

.section p { margin-bottom: 0.75rem; }
.section p:last-child { margin-bottom: 0; }

.quote-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  text-align: center;
}

.quote-block blockquote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
}

.quote-block cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.portrait-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.2rem 1.5rem 5rem;
  display: flex;
  justify-content: center;
}

.portrait-media {
  position: relative;
  width: min(100%, 420px);
}

.portrait-section img {
  width: 100%;
  border-radius: 2px;
}

.portrait-section .artist-signature {
  width: 150px;
  max-width: 40%;
  margin: 0.45rem auto 0;
  border-radius: 0;
}

.portrait-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}

.portrait-text .btn {
  margin: 0;
  background: rgba(255, 250, 246, 0.94);
  pointer-events: auto;
}

/* ---------- Full-width artwork band ---------- */
.art-band { margin: 0; }

.art-band img {
  width: 100%;
  max-height: 62vh;
  object-fit: cover;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.9rem 2.2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover { background: var(--ink); color: #fff; }

.coming-soon {
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

.coming-soon:hover {
  color: var(--muted);
  background: transparent;
}

/* ---------- Page headers ---------- */
.page-head {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}

.page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.03em;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.gallery-item {
  text-align: center;
  cursor: zoom-in;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--wash);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.gallery-item figcaption {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.gallery-status {
  display: block;
  margin-top: 0.2rem;
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Merch ---------- */
.merch-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem;
}

.merch-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
}

.merch-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--wash);
}

.product-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.product-image-placeholder span {
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.merch-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.merch-body h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.merch-price {
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.merch-body p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  flex: 1;
}

.merch-body .shipping-note {
  flex: none;
  margin-top: -0.75rem;
  margin-bottom: 0.8rem;
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.merch-card .btn {
  text-align: center;
  padding: 0.8rem 1rem;
}

.available-soon {
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-page {
  min-height: calc(100vh - 150px);
  padding-bottom: 5rem;
}

.contact-shell {
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
  padding: 0.75rem;
  background: #efd5c5;
  border: 1px solid #d6b29d;
}

.contact-link-panel {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--paper);
  text-align: center;
}

@media (max-width: 640px) {
  .contact-page { padding-bottom: 3rem; }
  .contact-shell {
    width: calc(100% - 1rem);
    padding: 0.35rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.site-footer p {
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 13, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox .artwork-frame {
  width: fit-content;
  max-width: 88vw;
  max-height: 78vh;
}

.lightbox img {
  width: auto;
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox figcaption {
  margin-top: 1rem;
  color: #f0ead9;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.2rem;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  background: none;
  border: none;
  color: #f0ead9;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-art-watermark { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .merch-grid { grid-template-columns: repeat(2, 1fr); }
  .portrait-section { grid-template-columns: 1fr; gap: 2rem; }
  .portrait-section img { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .quote-block blockquote { white-space: normal; }
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 0.9rem 1.5rem;
    border-bottom: none;
  }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .gallery-grid { grid-template-columns: 1fr; gap: 2rem; }
  .merch-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: 70vh; }
}


/* ---------- Warm gallery atmosphere ---------- */
:root {
  --paper: #fffaf6;
  --wash: #f5e8df;
  --line: #dfcfc3;
  --accent: #a85f45;
}

body {
  background: linear-gradient(180deg, #fffaf6 0%, #f8eee7 56%, #f4e2d6 100%);
  background-attachment: fixed;
}

.site-header { background: rgba(255, 250, 246, 0.97); }
.quote-block,
.section,
.page-head { background: transparent; }
.merch-card { background: rgba(255, 252, 249, 0.92); }

.chosen-hands-intro { text-align: center; }

.mission-line {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.35;
  margin: 1.1rem 0;
}

/* ---------- Chosen Hands video ---------- */
.watch-section {
  max-width: 920px;
  padding-bottom: 2.4rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1c1a17;
  border: 1px solid var(--line);
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ---------- Chosen Hands program slideshow ---------- */
.program-slideshow {
  width: min(100% - 3rem, 480px);
  margin: 1.4rem auto 2.4rem;
}

.program-slides {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ecd7ca;
  border: 1px solid var(--line);
}

.program-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}

.program-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.program-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Keep heads and top-anchored subjects visible when the photo fills the frame. */
.program-slide.frame-top img {
  object-position: 50% 0%;
}

.program-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  padding-top: 0.9rem;
}

.program-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.program-dot.active {
  background: var(--accent);
}

.program-dot:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Homepage moving artwork gallery ---------- */
.artwork-carousel {
  padding: 1.25rem 0;
  overflow: hidden;
  background: #d9aa91;
  border-top: 1px solid rgba(88, 49, 34, 0.16);
  border-bottom: 1px solid rgba(88, 49, 34, 0.16);
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: artwork-scroll 48s linear infinite;
  will-change: transform;
}

.carousel-group {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
}

.carousel-slide {
  width: clamp(210px, 24vw, 350px);
  height: clamp(260px, 32vw, 460px);
  flex: 0 0 auto;
  background: #fffaf6;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes artwork-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
    transform: none;
  }
}

@media (max-width: 640px) {
  .main-nav { background: #fffaf6; }
  .artwork-carousel { padding: 0.85rem 0; }
  .carousel-group { gap: 0.75rem; padding-right: 0.75rem; }
  .carousel-slide { width: 68vw; height: 84vw; }
}
