/* Chris Brenner Photography — public site */

@font-face { font-family: "Shoulders"; src: url("../fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Shoulders"; src: url("../fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Shoulders"; src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --black: #000;
  --char: #232624;
  --char-2: #2d312e;
  --line: #3c423e;
  --spruce: #1f3a2c;
  --spruce-2: #2a4a3a;
  --blaze: #f26a1b;
  --blaze-hi: #ff8640;
  --bone: #f1f0ea;
  --lichen: #a6aea7;
  --display: "Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --gut: clamp(1.1rem, 4vw, 3.5rem);
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--char); color: var(--bone);
  font: 400 1.0625rem/1.65 var(--serif);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blaze-hi); }
:focus-visible { outline: 2px solid var(--blaze); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -.005em; margin: 0; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--blaze); color: #000; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .9rem var(--gut);
  background: rgba(35, 38, 36, .94);
  border-bottom: 1px solid var(--line);
  transition: background-color .4s ease, border-color .4s ease;
}
.is-home .masthead { position: fixed; inset: 0 0 auto 0; background: transparent; border-color: transparent; }
.is-home .masthead.is-solid { background: rgba(35, 38, 36, .96); border-color: var(--line); }
.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: .9; }
.wm-name { font: 800 1.65rem/0.9 var(--display); letter-spacing: .01em; }
.wm-desc { font: 600 .9rem/1 var(--display); color: var(--lichen); letter-spacing: .08em; margin-top: .2rem; }
.is-home .masthead .wordmark { opacity: 0; transition: opacity .4s ease; }
.is-home .masthead.is-solid .wordmark { opacity: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); }
.site-nav a { font: 700 1.2rem/1 var(--display); letter-spacing: .02em; text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-color: var(--blaze); }
.site-nav .nav-work { color: var(--blaze); }
.site-nav .nav-work:hover { color: var(--blaze-hi); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: block; background: none; border: 1px solid var(--bone); color: var(--bone);
    font: 700 1.05rem/1 var(--display); letter-spacing: .04em; padding: .55rem .9rem; border-radius: 2px; cursor: pointer;
  }
  .site-nav { position: fixed; inset: 0; top: 0; background: var(--char); padding: 6rem var(--gut) 2rem; display: none; z-index: -1; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 1.2rem; }
  .site-nav a { font-size: 2.6rem; }
  .menu-open .masthead .wordmark { opacity: 1; }
  .menu-open .masthead { background: var(--char); }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: var(--black); overflow: hidden; color: var(--bone); }
.hero-frames, .hero-frame { position: absolute; inset: 0; margin: 0; }
.hero-frame { opacity: 0; transition: opacity 1.6s ease; }
.hero-frame.is-on { opacity: 1; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 32%, rgba(0,0,0,0) 55%),
              linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 18%);
}
.hero-type { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(1.5rem, 5vh, 3.5rem); z-index: 2; }
.hero-name {
  font-size: clamp(4.2rem, 16.5vw, 17rem); line-height: .8; letter-spacing: -.012em;
  margin-left: -.04em; text-wrap: balance;
}
.hero-line { font: italic 400 clamp(1.05rem, 1.8vw, 1.45rem)/1.3 var(--serif); margin: .9rem 0 0; max-width: 32ch; }
.hero-meta { position: absolute; right: var(--gut); bottom: clamp(1.5rem, 5vh, 3.5rem); z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.hero-caption { font: italic .95rem/1.3 var(--serif); color: var(--bone); margin: 0; min-height: 1.3em; text-align: right; max-width: 22ch; }
.hero-ticks { display: flex; gap: .4rem; }
.tick { width: 2rem; height: 1.2rem; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.tick::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(241,240,234,.45); }
.tick.is-on::after { background: var(--blaze); }
@media (max-width: 700px) {
  .hero-meta { display: none; }
}

/* ---------- Intro ---------- */
.intro {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(4rem, 10vw, 8rem) var(--gut); align-items: end;
}
.intro-lead p { font: 400 clamp(1.7rem, 3.4vw, 2.75rem)/1.18 var(--serif); letter-spacing: -.01em; margin: 0; max-width: 22ch; }
.intro-body { color: var(--lichen); max-width: var(--measure); }
.intro-body p:last-child { margin: 0; }
.text-link { color: var(--blaze); font: 700 1.25rem/1 var(--display); letter-spacing: .02em; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: .15rem; }
.text-link:hover { color: var(--blaze-hi); }
@media (max-width: 800px) { .intro { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section-h { font-size: clamp(2.6rem, 6vw, 4.5rem); padding: 0 var(--gut); margin-bottom: 1.6rem; }

.fields { padding-bottom: clamp(4rem, 9vw, 7rem); }
.field-list { list-style: none; margin: 0; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.field-card { display: block; text-decoration: none; }
.field-n1 .field-img, .field-n2 .field-img { aspect-ratio: 3 / 2; }
.field-n4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.field-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--black); }
.field-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.field-card:hover .field-img img { transform: scale(1.03); }
.field-name { display: block; font: 800 clamp(2rem, 3.6vw, 3rem)/1 var(--display); margin-top: .9rem; }
.field-card:hover .field-name { color: var(--blaze-hi); }
.field-count { display: block; color: var(--lichen); font-style: italic; font-size: .95rem; }

.selected { padding-bottom: clamp(4rem, 9vw, 7rem); }

/* ---------- Justified grid ---------- */
.jgrid { --row: clamp(170px, 26vw, 400px); display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px; }
.jgrid::after { content: ""; flex-grow: 999999; }
.jg-item { position: relative; flex-grow: calc(var(--ar) * 100); flex-basis: calc(var(--ar) * var(--row)); background: var(--black); overflow: hidden; }
.jg-item img { width: 100%; height: auto; }
.jgrid.is-justified::after { display: none; }
.jgrid.is-justified .jg-item img { height: 100%; object-fit: cover; }
.jg-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .7rem;
  font: italic .9rem/1.3 var(--serif); color: var(--bone);
  background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0));
  opacity: 0; transition: opacity .25s ease;
}
.jg-item:hover .jg-title, .jg-item:focus-visible .jg-title { opacity: 1; }
.jg-item:focus-visible { outline-offset: -3px; }
@media (max-width: 600px) { .jgrid { --row: 150px; gap: 4px; padding: 0 4px; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--black); color: var(--bone); }
.lightbox::backdrop { background: var(--black); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: clamp(.5rem, 2vw, 1.5rem); }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 7rem); width: auto; height: auto; object-fit: contain; }
.lb-bar { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: center; padding: .9rem var(--gut) 1.1rem; border-top: 1px solid #1d1f1e; }
.lb-title { font: 700 1.3rem/1.1 var(--display); margin: 0; letter-spacing: .01em; }
.lb-caption { font-style: italic; color: var(--lichen); margin: .15rem 0 0; font-size: .95rem; }
.lb-count { color: var(--lichen); margin: 0; font-variant-numeric: tabular-nums; }
.lb-ctrls { display: flex; gap: .5rem; }
.lb-ctrls button {
  background: none; color: var(--bone); border: 1px solid var(--line); border-radius: 2px;
  font: 700 1rem/1 var(--display); letter-spacing: .04em; padding: .6rem .9rem; cursor: pointer;
}
.lb-ctrls button:hover { border-color: var(--blaze); color: var(--blaze-hi); }
@media (max-width: 640px) { .lb-bar { grid-template-columns: 1fr auto; } .lb-ctrls { grid-column: 1 / -1; justify-content: space-between; } }

/* ---------- Band ---------- */
.band { background: var(--spruce); }
.band-inner { padding: clamp(4rem, 9vw, 7.5rem) var(--gut); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; }
.band h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); grid-row: span 2; max-width: 14ch; }
.band p { color: #d5dbd4; max-width: 34ch; margin: 0; }
.band .btn { justify-self: start; }
@media (max-width: 800px) { .band-inner { grid-template-columns: 1fr; } .band h2 { grid-row: auto; } }

.btn { display: inline-block; font: 800 1.25rem/1 var(--display); letter-spacing: .03em; text-decoration: none; padding: 1rem 1.6rem; border-radius: 2px; border: 0; cursor: pointer; }
.btn-blaze { background: var(--blaze); color: #000; }
.btn-blaze:hover { background: var(--blaze-hi); color: #000; }

/* ---------- Inner pages ---------- */
.is-inner main { min-height: 60vh; }
.page-head { padding: clamp(3rem, 8vw, 6rem) var(--gut) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(3.6rem, 11vw, 9.5rem); line-height: .82; }
.page-sub { font-style: italic; color: var(--lichen); margin: 1rem 0 0; max-width: var(--measure); font-size: 1.15rem; }
.gallery { padding-bottom: 5rem; }
.empty { padding: 0 var(--gut) 6rem; color: var(--lichen); font-style: italic; }
.more-fields { padding: 0 var(--gut) 6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2rem; }
.more-fields p { color: var(--lichen); font-style: italic; margin: 0; }
.more-fields ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0; padding: 0; }
.more-fields a { font: 800 clamp(1.8rem, 3.5vw, 2.6rem)/1 var(--display); text-decoration: none; }

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 2.6rem 0 1rem; }
.prose h3 { font-size: 1.7rem; margin: 2rem 0 .8rem; }
.prose ul, .prose ol { padding-left: 0; list-style: none; margin: 0 0 1.5em; }
.prose li { padding: .9rem 0; border-top: 1px solid var(--line); }
.prose li:last-child { border-bottom: 1px solid var(--line); }
.prose strong { font-weight: 600; color: var(--bone); }
.prose a { color: var(--blaze); }
.prose ol { counter-reset: step; }
.prose ol li { counter-increment: step; position: relative; padding-left: 3rem; }
.prose ol li::before { content: counter(step); position: absolute; left: 0; top: .8rem; font: 800 2rem/1 var(--display); color: var(--blaze); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 7vw, 6rem) var(--gut) 6rem; align-items: start; }
.about-photo { margin: 0; position: sticky; top: 6rem; }
.about-photo img { width: 100%; max-height: 80vh; object-fit: cover; }
.about-text h1 { font-size: clamp(3.6rem, 9vw, 7.5rem); line-height: .82; margin-bottom: 2rem; }
.about-text .prose p:first-child { font-size: 1.45rem; line-height: 1.4; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-photo { position: static; } }

.work-head { position: relative; min-height: 62vh; display: flex; align-items: flex-end; background: var(--black); overflow: hidden; }
.work-photo { position: absolute; inset: 0; margin: 0; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.work-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 60%); }
.work-head h1 { position: relative; z-index: 1; font-size: clamp(3.8rem, 13vw, 12rem); line-height: .8; padding: 0 var(--gut) clamp(1.5rem, 4vw, 3rem); }
.work-body { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(16rem, 24rem); justify-content: space-between; gap: 3rem 4rem; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gut) 7rem; align-items: start; }
.prose-work > h2:first-child { margin-top: 0; }
.work-cta { position: sticky; top: 6.5rem; background: var(--spruce); padding: 2rem; }
.work-cta h2 { font-size: 2.4rem; margin-bottom: .8rem; }
.work-cta p { color: #d5dbd4; margin: 1.2rem 0 0; font-size: .95rem; }
.work-cta a:not(.btn) { color: var(--bone); }
@media (max-width: 900px) { .work-body { grid-template-columns: 1fr; } .work-cta { position: static; } }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 7vw, 6rem) var(--gut) 7rem; }
.contact h1 { font-size: clamp(3.6rem, 9vw, 7.5rem); line-height: .82; margin-bottom: 2rem; }
.contact-direct { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-direct li { font: 700 1.35rem/1.4 var(--display); letter-spacing: .02em; }
.contact-form { display: grid; gap: 1.3rem; align-content: start; }
.cf-field span { display: block; font: 700 1.1rem/1 var(--display); letter-spacing: .03em; margin-bottom: .45rem; }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; font: inherit; color: var(--bone); background: var(--char-2);
  border: 1px solid var(--line); border-radius: 2px; padding: .8rem .9rem;
}
.cf-field textarea { resize: vertical; min-height: 10rem; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { border-color: var(--blaze); outline: none; box-shadow: 0 0 0 1px var(--blaze); }
.has-error input, .has-error select, .has-error textarea { border-color: #ff9b6b; }
.field-error, .form-error { color: #ffb08a; margin: .4rem 0 0; font-size: .95rem; }
.form-error { border-left: 3px solid var(--blaze); padding: .6rem 0 .6rem 1rem; margin: 0; }
.contact-form .btn { justify-self: start; margin-top: .4rem; }
.cf-turnstile { min-height: 65px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.notice { padding: clamp(4rem, 12vw, 9rem) var(--gut) 8rem; max-width: 50rem; }
.notice h1 { font-size: clamp(3.6rem, 10vw, 8rem); line-height: .85; margin-bottom: 1.5rem; }
.notice p { font-size: 1.2rem; color: var(--lichen); }

.flash { margin: 0; padding: .8rem var(--gut); background: var(--spruce); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); padding: clamp(3rem, 7vw, 5rem) var(--gut) 2rem; display: grid; grid-template-columns: auto 1fr; gap: 2rem 4rem; align-items: start; }
.foot-mark .wm-name { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.foot-mark .wm-desc { display: block; font-size: 1.1rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; justify-self: end; }
.foot-links li { font: 700 1.2rem/1.3 var(--display); letter-spacing: .02em; }
.foot-links a { text-decoration: none; }
.foot-small { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: #7f8780; font-size: .85rem; margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid #1d201e; }
.foot-small a { color: var(--lichen); }
@media (max-width: 760px) { .site-footer { grid-template-columns: 1fr; } .foot-links { justify-self: start; flex-direction: column; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
