/* ==========================================================
   The Lawrenceville Highlight — page styles
   Loaded after main.css
   ========================================================== */

/* --- Masthead hero --- */
.masthead {
  padding-top: calc(var(--space-3xl) + 60px);
  padding-bottom: var(--space-2xl);
  background: var(--color-cream-dark);
  text-align: center;
}

.masthead-inner {
  max-width: 860px;
  margin: 0 auto;
}

.masthead-kicker {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--space-md);
}

.masthead-rule {
  border: none;
  border-top: 1px solid var(--color-forest);
  position: relative;
  margin: 0 auto;
  max-width: 640px;
}

.masthead-rule::after {
  content: '';
  display: block;
  border-top: 1px solid var(--color-forest);
  margin-top: 3px;
}

.masthead h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  margin: var(--space-md) 0 var(--space-xs);
  color: var(--color-forest);
}

.masthead-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--color-terracotta);
  margin-bottom: var(--space-md);
}

.masthead-sub {
  max-width: 560px;
  margin: var(--space-md) auto 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-charcoal);
}

.masthead-cta {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --- Intro passage --- */
.highlight-intro {
  background: var(--color-cream);
}

.highlight-intro .container {
  max-width: 680px;
}

.highlight-intro p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.highlight-intro p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  padding-right: 0.12em;
  color: var(--color-forest);
}

.highlight-intro p:last-child {
  margin-bottom: 0;
}

/* --- Editions archive --- */
.editions {
  background: var(--color-cream);
  padding-top: var(--space-xl);
}

.editions .container {
  max-width: 900px;
}

.editions-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.editions-header h2 {
  margin-bottom: var(--space-sm);
}

.editions-header p {
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
}

.edition {
  margin-bottom: var(--space-3xl);
}

.edition:last-child {
  margin-bottom: 0;
}

.edition-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
  border-top: 1px solid var(--color-forest);
  padding-top: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.edition-meta h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0;
}

.edition-meta .edition-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-terracotta);
}

.edition-meta .edition-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-forest);
  background: rgba(45, 74, 62, 0.08);
  border: 1px solid rgba(45, 74, 62, 0.18);
  padding: 4px 10px;
  border-radius: 20px;
  align-self: center;
}

.edition figure {
  margin: 0;
}

.edition-card-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 18px 40px rgba(45, 74, 62, 0.14);
}

.edition-zoom {
  display: block;
  cursor: zoom-in;
}

.edition figcaption {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-light-gray);
  margin-top: var(--space-xs);
}

.edition-front {
  margin-bottom: var(--space-lg);
}

.edition-back {
  width: 72%;
  margin-bottom: var(--space-lg);
}

.edition--alt .edition-back {
  margin-left: auto;
}

.edition--alt .edition-back figcaption {
  text-align: right;
}

/* Print-day snapshots, styled like physical prints */
.edition-snapshots {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  justify-content: center;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.snapshot {
  background: #fff;
  padding: 10px 10px 14px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 14px 30px rgba(44, 44, 44, 0.18);
  max-width: 340px;
  flex: 1 1 260px;
}

.snapshot img {
  display: block;
  width: 100%;
  height: auto;
}

.snapshot--tilt-left { transform: rotate(-1.6deg); }
.snapshot--tilt-right { transform: rotate(1.4deg); margin-top: var(--space-md); }

.edition figcaption.edition-snapshots-caption {
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-warm-gray);
  margin-top: var(--space-sm);
}

/* --- Pricing --- */
.pricing {
  background: var(--color-cream-dark);
}

.pricing .container {
  max-width: 720px;
}

.pricing-header {
  margin-bottom: var(--space-xl);
}

.pricing-header h2 {
  margin-bottom: var(--space-sm);
}

.pricing-header p {
  font-size: 1.1rem;
}

.pricing-list {
  list-style: none;
  margin: 0 0 var(--space-xl);
  padding: 0;
}

.pricing-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(45, 74, 62, 0.15);
}

.pricing-row:first-child {
  border-top: 1px solid var(--color-forest);
}

.pricing-size {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-forest);
  flex-shrink: 0;
  min-width: 5.5rem;
}

.pricing-desc {
  color: var(--color-warm-gray);
  font-size: 1rem;
  line-height: 1.5;
}

.pricing-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(45, 74, 62, 0.25);
  min-width: 2rem;
  align-self: center;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-terracotta);
  flex-shrink: 0;
}

.pricing-includes {
  border-left: 3px solid var(--color-terracotta);
  padding-left: var(--space-md);
}

.pricing-includes strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: var(--space-xs);
}

.pricing-includes p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 var(--space-sm);
}

.pricing-includes p:last-child {
  margin-bottom: 0;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 28, 28, 0.92);
  padding: var(--space-md);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.12);
  color: var(--color-cream);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
  background: rgba(250, 247, 242, 0.25);
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .edition-back {
    width: 100%;
  }

  .edition-meta .edition-badge {
    margin-left: 0;
  }

  .snapshot--tilt-left,
  .snapshot--tilt-right {
    transform: none;
    margin-top: 0;
  }

  .pricing-row {
    flex-wrap: wrap;
    row-gap: var(--space-xs);
  }

  .pricing-dots {
    display: none;
  }

  .pricing-amount {
    margin-left: auto;
  }

  .pricing-desc {
    width: 100%;
  }
}
