/* Harris Trusted Photography - htpphotos.com
   Change colors and fonts here and they change everywhere. */
:root {
  --ivory: #fbf7f2;      /* page background */
  --cream: #f4ebe2;      /* alternate sections */
  --blush: #ead3cb;      /* soft lines and tints */
  --rose: #8a524e;       /* buttons */
  --rose-dark: #6d3e3b;  /* button hover, bottom banner */
  --gold: #c2a46b;       /* accent lines */
  --gold-text: #7d6031;  /* small labels, readable on ivory */
  --ink: #40352f;        /* text */
  --white: #fff;
  --head: "Cormorant Garamond", Georgia, serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; font: 400 1.05rem/1.7 var(--body); color: var(--ink); background: var(--ivory); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); }
h1, h2, h3 { font-family: var(--head); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--tight { padding: 48px 0 64px; }
.section--cream { background: var(--cream); }
.center { text-align: center; }
.narrow { max-width: 66ch; margin-left: auto; margin-right: auto; }
.narrow p { text-wrap: balance; }
.eyebrow { text-wrap: balance; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .6em; }
.rule { width: 64px; height: 1px; background: var(--gold); border: 0; margin: 0 auto 28px; }
.btn { display: inline-block; padding: .75em 1.8em; background: var(--rose); color: var(--white); text-decoration: none; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; border-radius: 999px; transition: background .2s; }
.btn:hover { background: var(--rose-dark); }
.btn--light { background: var(--white); color: var(--rose-dark); }
.btn--light:hover { background: var(--blush); }
.btn--line { background: transparent; color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.btn--line:hover { background: var(--rose); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0 0; }

/* Header */
.site-header { background: var(--ivory); border-bottom: 1px solid var(--blush); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.wordmark { font-family: var(--head); font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.1; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--rose); border-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--ink); padding: 8px; cursor: pointer; }
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--blush); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav a { display: block; padding: 12px 0; }
}

/* Page banner: words on one side, framed photo on the other */
.split-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1140px; margin: 0 auto; padding: 32px 20px; }
.split-hero__text { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.split-hero h1 { font-size: clamp(2.5rem, 4.8vw, 4.4rem); max-width: 14ch; text-wrap: balance; }
.split-hero .btn-row { margin: 0; letter-spacing: 0; }
.split-hero p { font-size: 1.1rem; letter-spacing: .06em; text-wrap: balance; margin-bottom: 1.6em; }
.split-hero img, .split-hero__fade { width: 100%; max-width: calc(min(78vh, 720px) * .8); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border-radius: 10px; justify-self: end; align-self: center; }
.split-hero__fade { position: relative; overflow: hidden; }
.split-hero__fade img { position: absolute; inset: 0; height: 100%; max-width: none; border-radius: 0; opacity: 0; transition: opacity 1.8s ease; }
.split-hero__fade img:first-child, .split-hero__fade img.is-on { opacity: 1; }
@media (max-width: 800px) {
  .split-hero { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .split-hero > img, .split-hero__fade { order: -1; max-width: 560px; border-radius: 0; justify-self: center; }
  .split-hero__text { padding: 36px 20px 48px; }
  .split-hero:has(.contact) img { order: 0; }  /* contact details come before the photo */
}

/* Home tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--blush); color: var(--white); }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; transition: transform 1.2s ease; }
.tile::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(50, 30, 25, .78)); }
.tile h2 { position: absolute; z-index: 1; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; color: var(--white); font-size: 2.2rem; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr; gap: 16px; max-width: 520px; margin: 0 auto; } .tile img { aspect-ratio: 1; } }

/* Photo-and-text sections */
.features__head { margin-bottom: 40px; }
h2 { text-wrap: balance; }
.features { display: grid; gap: 64px; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.feature img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.feature:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
.feature:nth-child(even) img { order: 1; }
.feature .rule { margin-left: 0; margin-right: 0; }
.feature p { margin: 0; }
@media (max-width: 800px) {
  .features { gap: 48px; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .feature:nth-child(even) img { order: 0; }
  .feature .rule { margin-left: auto; margin-right: auto; }
}

/* Galleries (photos are arranged by main.js; these are the plain fallbacks) */
.gallery { margin-top: 32px; }
.gallery img { display: block; width: 100%; }
.js .reveal { opacity: 0; transform: translateY(46px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Story: big magazine rows */
.gallery--story { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery--story a { flex: none; width: calc(50% - 4px); overflow: hidden; border-radius: 4px; background: var(--blush); }
.gallery--story img { height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.gallery--story a:hover img { transform: scale(1.04); }
@media (min-width: 700px) { .gallery--story { gap: 18px; } .gallery--story a { width: calc(50% - 9px); } }
/* Floating prints: white frames in staggered columns */
.gallery--prints { columns: 3; column-gap: 26px; }
.gallery--prints a { display: block; break-inside: avoid; margin-bottom: 26px; padding: 12px; background: var(--white); box-shadow: 0 10px 34px rgba(110, 70, 60, .15); }
.gallery--prints img { height: auto; }
.gallery--prints a[data-wide] { column-span: all; }
.group { margin: 64px 0 0; text-align: center; font-size: 1.7rem; }
.center + .group { margin-top: 28px; }
.gallery--prints.is-set { columns: auto; position: relative; }
.gallery--prints.is-set a { position: absolute; margin: 0; }
.gallery--prints a:hover { box-shadow: 0 18px 44px rgba(110, 70, 60, .26); }
.gallery--prints a.is-visible:hover { transform: translateY(-6px); }

/* Link to another page under a gallery */
.next { margin-top: 56px; text-align: center; }
.next p { font: 500 1.7rem/1.3 var(--head); margin: 0 0 18px; }

/* Photo viewer */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: rgba(40, 28, 25, .97); color: var(--white); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 68px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; border-radius: 4px; transition: opacity .3s; }
.lb-stage img.is-loading { opacity: 0; }
.lb-btn { width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: var(--rose); }
.lb-prev, .lb-next { position: absolute; top: calc(50% - 23px); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-thumbs { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent; display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 16px; }
.lb-thumbs button { flex: none; width: 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; opacity: .5; background: none; cursor: pointer; }
.lb-thumbs button.is-active { opacity: 1; border-color: var(--gold); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.lb-lock { overflow: hidden; }
@media (max-width: 600px) {
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { display: none; }
}

/* Contact */
.contact { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.contact a { font: 500 1.5rem/1.3 var(--head); font-variant-numeric: lining-nums; color: var(--rose); text-decoration: none; overflow-wrap: anywhere; padding: 4px 8px; }
.contact a:hover { text-decoration: underline; }
.contact .contact__phone { font-size: 2.1rem; }
.contact .copy-btn { margin-top: 4px; }
.contact .contact__tip { max-width: 46ch; margin: 18px 0 0; font-size: .95rem; letter-spacing: 0; text-wrap: balance; }
.copy-btn { font: inherit; font-size: .85rem; color: var(--rose); background: var(--ivory); border: 1px solid var(--blush); border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.copy-btn.is-copied { background: var(--rose); color: var(--white); }

/* Bottom banner */
.band { background: var(--rose-dark); color: var(--white); text-align: center; padding: 64px 0 24px; }
.band--slim { padding: 24px 0; }
.band small { display: block; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); }
.band--slim small { margin: 0; padding: 0; border: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .gallery--story img, .tile img { transition: none; }
  .tile:hover img, .tile:focus-visible img, .gallery--story a:hover img, .gallery--prints a.is-visible:hover { transform: none; }
}
