/* ---------- Tokens ---------- */
:root {
  --bg-primary: #FAF8F4;
  --bg-secondary: #F0ECE3;
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A6A;
  --text-tertiary: #8A8AAA;
  --accent: #8B2C2C;
  --accent-warm: #C4B99A;
  --dark-bg: #1A1A2E;
  --dark-text: #FAF8F4;
  --hairline: rgba(26, 26, 46, 0.1);
  --hairline-dark: rgba(250, 248, 244, 0.15);

  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;

  --container-max: 1320px;
  --container-pad: 40px;
  --section-pad: 72px;
  --gallery-gap: 6px;
}

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

html {
  scroll-behavior: auto;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: 24px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

em, i {
  font-style: italic;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 0;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--hairline);
}

.site-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-pad) 0;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
  max-width: 12ch;
}

.hero-text h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero-subhead {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  /* clips separators that land at the start of a wrapped line (see .subhead-list) */
  overflow: hidden;
}

/* Subtitle: wraps only between categories; separators are drawn in front of each
   item and shifted out of view (and clipped) whenever an item starts a line. */
.subhead-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin-left: -1.2em;
}

.subhead-list li {
  position: relative;
  padding-left: 1.2em;
  white-space: nowrap;
}

.subhead-list li::before {
  content: "\2022";
  position: absolute;
  left: 0.4em;
}

.hero-image {
  aspect-ratio: var(--ratio, 4 / 3);
  overflow: hidden;
  margin: 24px 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Offer ---------- */
.offer {
  background: var(--bg-secondary);
  padding: 88px 0;
  text-align: center;
}

.offer-inner h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
  max-width: 760px;
  margin: 0 auto;
}

.offer-inner h2 em {
  color: var(--accent);
  font-style: italic;
}

.offer-inner p {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 20px auto 0;
}

.offer-inner .offer-body {
  text-wrap: balance;
}

/* Two intentional lines at desktop widths; natural, balanced wrapping below */
@media (min-width: 640px) {
  .offer-inner .offer-body {
    max-width: none;
  }

  .offer-line {
    display: block;
  }
}

.offer-inner .offer-capabilities {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin-top: 20px;
}

/* ---------- Sections (generic) ---------- */
section {
  padding: var(--section-pad) 0;
}

.section-heading {
  margin-bottom: 48px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Selected Assignments ---------- */
.assignment {
  padding-bottom: var(--section-pad);
}

.assignment + .assignment {
  border-top: 1px solid var(--hairline);
  padding-top: var(--section-pad);
}

.assignment-text {
  max-width: 640px;
  margin-bottom: 32px;
}

.assignment-text h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 16px;
}

.assignment-text p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
}

.assignments-section {
  border-bottom: 1px solid var(--hairline);
}

/* ---------- Galleries (justified rows, native aspect ratio) ---------- */
.gallery {
  display: flex;
  flex-direction: column;
  gap: var(--gallery-gap);
}

.gallery-row {
  display: flex;
  gap: var(--gallery-gap);
  width: 100%;
}

.gallery-tile {
  flex-grow: var(--ratio);
  flex-shrink: 1;
  flex-basis: 0;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  min-width: 0;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Selected Work ---------- */
.selected-work .section-heading {
  text-align: left;
}

/* ---------- Section dividers ---------- */
.headshots,
.selected-work,
.packages {
  border-top: 1px solid var(--hairline);
}

.section-copy {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 640px;
  margin: -24px 0 32px;
}

.headshots .section-copy {
  margin-top: -24px;
}

.section-cta {
  margin-top: 40px;
}

.gallery-headshots .gallery-row {
  justify-content: center;
}

/* ---------- Packages ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.package {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--hairline);
  padding: 36px 32px;
}

.package h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
}

.package-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--accent);
  margin-top: 12px;
}

.package-price--text {
  font-size: 26px;
  line-height: 1.5;
}

.package-list {
  list-style: none;
  width: 100%;
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
}

.package-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 16px;
  color: var(--text-secondary);
}

.package-note {
  margin-top: 20px;
  font-size: 16px;
  color: var(--text-secondary);
}

/* CTA sits at the bottom of equal-height cards; the margin keeps a minimum gap above it */
.package > :nth-last-child(2) {
  padding-bottom: 28px;
}

.package-note {
  margin-top: 20px;
}

.package > .btn {
  margin-top: auto;
}

.package-terms {
  max-width: 760px;
  margin-top: 48px;
}

.package-terms p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
}

.package-terms p + p,
.package-terms h3 + p {
  margin-top: 12px;
}

.package-extra {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

.package-terms h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin-top: 28px;
}

/* ---------- About (dark section) ---------- */
.about {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 48px 0;
}

.about .container {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--container-pad);
  align-items: center;
}

.about-image {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 24px;
}

.about-copy h2 em {
  color: var(--accent-warm);
  font-style: italic;
}

.about-copy p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--dark-text);
}

.about-copy p + p {
  margin-top: 20px;
}

/* ---------- Contact ---------- */
.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--container-pad);
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 24px;
}

.contact-copy h2 em {
  color: var(--accent);
  font-style: italic;
}

.contact-copy p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 480px;
}

.contact-copy p + p {
  margin-top: 16px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.contact-details .btn {
  align-self: flex-start;
}

.contact-email {
  text-transform: none;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px 40px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.footer-copy {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ---------- Mobile (~768px) ---------- */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }

  :root {
    --container-pad: 20px;
    --section-pad: 48px;
  }

  .site-header .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 16px var(--container-pad);
    row-gap: 12px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1;
    text-align: center;
  }

  .header-actions {
    gap: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    width: calc(100% + 2 * var(--container-pad));
    margin-top: 0;
    margin-bottom: 0;
    margin-left: calc(-1 * var(--container-pad));
  }

  .hero-text h1 {
    font-size: 30px;
    max-width: none;
  }

  .gallery-row {
    display: contents;
  }

  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gallery-gap);
  }

  .gallery-tile {
    width: 100%;
    height: auto;
  }

  .gallery-liberty .gallery-tile {
    order: var(--mobile-order, 0);
  }

  /* Sequence-preserving galleries: one photograph per row, in order */
  .gallery--stack {
    grid-template-columns: 1fr;
  }

  /* Headshots: two across, last one centered */
  .gallery-headshots .gallery-tile:last-child {
    grid-column: 1 / -1;
    width: calc(50% - var(--gallery-gap) / 2);
    justify-self: center;
  }

  .section-copy {
    margin-top: -16px;
  }

  .package-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .package {
    padding: 28px 24px;
  }

  .package .btn {
    width: 100%;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
  }

  .gallery-tile--mobile-full {
    grid-column: 1 / -1;
  }

  .about .container,
  .contact .container {
    grid-template-columns: 1fr;
  }

  .about-image {
    aspect-ratio: 4 / 5;
  }

  .contact-details {
    margin-top: 8px;
  }
}

/* ---------- Thank-you page ---------- */
a.wordmark {
  color: inherit;
  text-decoration: none;
}

.thank-you {
  padding: calc(var(--section-pad) * 2) var(--container-pad);
}

.thank-you-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.thank-you h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 32px;
}

.thank-you p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
}

.thank-you p + p {
  margin-top: 16px;
}

.thank-you .thank-you-contact {
  line-height: 1.9;
}

.thank-you-contact a {
  color: var(--text-primary);
}

.thank-you .thank-you-action {
  margin-top: 40px;
}

.thank-you-action .btn {
  text-decoration: none;
}
