/*
Theme Name: Chapter Twelve Astra Child
Theme URI: https://chaptertwelve.local
Description: Astra child theme starter for Chapter Twelve Films. Elegant, minimal, timeless, editorial wedding film website styling.
Author: Chapter Twelve Films
Template: astra
Version: 1.0.0
Text Domain: chapter-twelve-astra-child
*/

:root {
  --ct-soft-black: #1d1d1b;
  --ct-warm-nude: #ccc5b7;
  --ct-soft-breeze: #edece6;
  --ct-warm-cream: #dbd8cc;
  --ct-max-width: 1180px;
  --ct-section-y: clamp(72px, 9vw, 140px);
  --ct-gutter: clamp(20px, 4vw, 56px);
}

body {
  background: var(--ct-soft-breeze);
  color: var(--ct-soft-black);
  font-family: "Bounded", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .ct-serif {
  font-family: "Goldenbook", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: inherit;
}

h1 { font-size: clamp(54px, 10vw, 132px); line-height: .9; }
h2 { font-size: clamp(42px, 7vw, 88px); line-height: .95; }
h3 { font-size: clamp(28px, 4vw, 48px); line-height: 1; }

.ast-container { max-width: var(--ct-max-width); }

.ct-wrap {
  max-width: var(--ct-max-width);
  margin: 0 auto;
  padding-left: var(--ct-gutter);
  padding-right: var(--ct-gutter);
}

.ct-section { padding: var(--ct-section-y) 0; }
.ct-section--dark { background: var(--ct-soft-black); color: var(--ct-soft-breeze); }
.ct-section--nude { background: var(--ct-warm-nude); color: var(--ct-soft-black); }
.ct-section--cream { background: var(--ct-warm-cream); color: var(--ct-soft-black); }

.ct-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 18px;
}

.ct-lede {
  font-family: "Goldenbook", Georgia, serif;
  font-size: clamp(27px, 4vw, 48px);
  line-height: 1.12;
  max-width: 900px;
}

.ct-button, .wp-block-button__link, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 14px 26px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, opacity .25s ease;
}

.ct-button:hover, .wp-block-button__link:hover, input[type="submit"]:hover {
  background: currentColor;
  color: var(--ct-soft-breeze);
}

.ct-hero {
  min-height: 92vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: var(--ct-soft-black);
  color: var(--ct-soft-breeze);
}

.ct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29,29,27,.20), rgba(29,29,27,.72));
  z-index: 1;
}

.ct-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
}

.ct-hero__content {
  position: relative;
  z-index: 2;
  padding: 120px var(--ct-gutter) 84px;
  max-width: 980px;
}

.ct-hero__content p { max-width: 560px; font-size: clamp(18px, 2vw, 24px); }

.ct-grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.ct-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.ct-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ct-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: var(--ct-warm-cream);
  color: var(--ct-soft-black);
  text-decoration: none;
}

.ct-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.ct-card:hover img { transform: scale(1.04); }
.ct-card__label {
  position: absolute;
  inset: auto 24px 24px 24px;
  color: var(--ct-soft-breeze);
  z-index: 2;
}
.ct-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(29,29,27,.72));
}

.ct-film-frame {
  aspect-ratio: 16 / 9;
  background: var(--ct-soft-black);
  overflow: hidden;
}
.ct-film-frame iframe, .ct-film-frame video { width: 100%; height: 100%; display: block; }

.ct-quote {
  font-family: "Goldenbook", Georgia, serif;
  font-size: clamp(34px, 6vw, 84px);
  line-height: 1;
  max-width: 1050px;
}

.ct-journal-card {
  border-top: 1px solid currentColor;
  padding-top: 22px;
}

.ct-footer-cta {
  min-height: 52vh;
  display: grid;
  align-items: center;
  text-align: center;
}

.site-header, .ast-primary-header-bar { background: rgba(237,236,230,.92); backdrop-filter: blur(12px); }
.main-header-menu .menu-link { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }

@media (max-width: 900px) {
  .ct-grid--2, .ct-grid--3, .ct-grid--4 { grid-template-columns: 1fr; }
  .ct-hero { min-height: 82vh; }
  .ct-card { min-height: 280px; }
}
