/* ==========================================================================
   TJ Stones — holding page styles
   Palette:
     --sand     background, warm Cotswold limestone tone
     --sand-deep a touch deeper, used for the placeholder box + divider
     --ink      soft dark brown/charcoal for text
   ========================================================================== */

:root {
  --sand: #E3D3B0;
  --sand-deep: #D3BD8F;
  --ink: #070707;
  --ink-soft: #6B5A44;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* accounts for mobile browser toolbars so nothing sits under them */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sand);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  padding: clamp(1rem, 4vh, 2rem) 1.5rem; /* shrinks on short viewports so content still fits */
  text-align: center;
}

.holding-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 32rem;
  width: 100%;
}

.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 7vh;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--ink);
}

.divider {
  width: 3.5rem;
  height: 1px;
  background-color: var(--ink-soft);
  opacity: 0.5;
  margin: clamp(0.75rem, 3vh, 1.5rem) 0;
}

.tagline {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 clamp(1.25rem, 4vh, 2.75rem);
  max-width: 28rem;
}

.photo-frame {
  width: min(20rem, 80vw);
  aspect-ratio: 4 / 5;
  margin-bottom: clamp(1.25rem, 4vh, 2.75rem);
  border-radius: 4px;
  overflow: hidden;
}

/* Mobile: shrink the photo, sized off viewport height (not just width) so it
   scales down further on short screens too, keeping everything on one screen
   with no scrolling. */
@media (max-width: 600px) {
  .photo-frame {
    width: auto;
    height: min(30rem, 40vh);
  }
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame.is-placeholder {
  background-color: var(--sand-deep);
  border: 1px solid rgba(74, 59, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame.is-placeholder .photo {
  /* Hide the broken-image icon; the alt text is announced to screen readers
     and a friendly label takes its place visually via ::after below. */
  opacity: 0;
  position: absolute;
}

.photo-frame.is-placeholder {
  position: relative;
}

.photo-frame.is-placeholder::after {
  content: 'A candle holder photo will sit here';
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
  padding: 1.5rem;
}

.coming-soon {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
