@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500&family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif&display=swap');

:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --ink: #202821;
  --muted: #515a4d;
  --line: #d9ddd2;
  --masthead-height: 61px;
  --brand: "Cormorant Garamond", Georgia, serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--masthead-height) + 10px); }
body:has(.lightbox[open]) { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .28em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #407c87; outline-offset: 5px; }
.wrap { width: min(100% - 72px, 1280px); margin-inline: auto; }
.skip-link { position: fixed; inset: 12px auto auto 12px; z-index: 5; padding: 12px; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.masthead { position: sticky; top: 0; z-index: 4; background: #f6f3ebed; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.main-nav { min-height: calc(var(--masthead-height) - 1px); justify-content: flex-end; }
.main-nav a { display: inline-flex; align-items: center; min-height: 42px; padding-inline: 4px; color: var(--muted); }
.main-nav a[aria-current] { color: var(--ink); text-decoration: underline; }
#intro { font-family: var(--brand); font-weight: 500; }
nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 40px); font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.portfolio-intro { padding: clamp(42px, 6vw, 84px) 0 clamp(24px, 4vw, 54px); }
.portfolio-intro p { margin: 0 0 13px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#intro { font-size: clamp(2.8rem, 7.2vw, 7rem); line-height: .92; letter-spacing: -.044em; margin: 0; text-wrap: balance; }

h1, h2, h3, p { margin-top: 0; }
h2, h3 { font-family: var(--serif); font-weight: 400; }
.portfolio { padding-bottom: clamp(58px, 9vw, 120px); }
.section-top { position: sticky; top: var(--masthead-height); z-index: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-block: 10px 12px; background: var(--paper); }
.collection-nav { gap: 5px; flex-wrap: wrap; }
.collection-nav a { padding: .55em .8em; border-radius: 999px; line-height: 1.25; }
.collection-nav a:is(:hover, [aria-current]) { background: #e5e9de; text-decoration: none; }
.collection-nav a[aria-current] { color: #263b2d; }
#work-heading { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { margin: 0; font-size: clamp(3.3rem, 7vw, 6.25rem); letter-spacing: -.025em; line-height: .95; }
.collection { scroll-margin-top: 70px; margin-top: 12px; }
#sports { margin-top: clamp(18px, 3vw, 30px); }
.collection-disclosure { border: 1px solid var(--line); border-radius: 16px; background: #f8f6ef; }
.collection-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px clamp(14px, 2.2vw, 26px); border-radius: 15px; list-style: none; cursor: pointer; }
.collection-summary::-webkit-details-marker { display: none; }
.collection-summary:hover { background: #ebeee3; }
.collection-disclosure[open] > .collection-summary { background: #ebeee3; border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
.collection-summary h3 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.05; }
.collection-toggle { position: relative; flex: 0 0 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; }
.collection-toggle::before, .collection-toggle::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); }
.collection-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.collection-disclosure[open] > .collection-summary .collection-toggle::after { opacity: 0; }
.collection-content { padding: clamp(14px, 2.2vw, 26px); }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 34px); }
#sports .photo-grid, #headshots .photo-grid, .collection:last-child .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo { margin: 0; }
.photo-link { display: block; overflow: hidden; border-radius: clamp(10px, 1.3vw, 20px); background: #e5e9e1; box-shadow: 0 1px 2px #1d291b20, 0 12px 28px #1d291b25; transition: box-shadow .3s ease, transform .3s ease; }
.photo-link img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; transition: transform .25s ease; }
#headshots .photo-link img { aspect-ratio: auto; }
@media (hover: hover) {
  .photo-link:hover { transform: translateY(-4px); box-shadow: 0 3px 5px #1d291b26, 0 20px 36px #1d291b32; }
  .photo-link:hover img { transform: scale(1.025); }
}
.collection-notice { margin: 0 0 16px; color: var(--muted); font-size: .85rem; }
.services { background: #eef0e6; border-top: 1px solid var(--line); padding-block: clamp(52px, 7vw, 96px); }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 30px); margin-block: clamp(24px, 4vw, 44px) 26px; }
.services-grid article { padding: clamp(18px, 2.5vw, 30px); border: 1px solid #d9ded0; border-radius: 16px; background: var(--paper); box-shadow: 0 7px 18px #1d291b0c; }
.services-grid h3 { margin-bottom: 9px; font-size: clamp(1.65rem, 2.6vw, 2.35rem); }
.print-gallery { margin-bottom: 26px; }
.print-gallery summary p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.print-collection h4 { margin: 0 0 16px; font: 400 clamp(1.6rem, 3vw, 2.25rem) var(--serif); }
.print-collection + .print-collection { margin-top: 32px; }
.print-collection .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.button-link { display: inline-flex; align-items: center; gap: .65em; min-height: 44px; padding: 9px 16px; border-radius: 999px; background: #29392e; color: #fffaf0; text-decoration: none; }
.button-link:hover { background: #3c5143; }
.contact { background: #27362b; color: #fbf5e7; padding-block: clamp(55px, 8vw, 112px); }
.contact-inner { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 36px; }
.contact p { max-width: 38ch; margin: 23px 0 16px; line-height: 1.5; }
.email { overflow-wrap: anywhere; }
.footer { min-height: 76px; font-size: .82rem; }
.lightbox { width: min(95vw, 1320px); max-width: 100%; max-height: 96dvh; padding: 12px; background: #182019; color: var(--paper); border: none; border-radius: 18px; box-shadow: 0 22px 72px #0008; }
.lightbox::backdrop { background: #121a15e8; }
.photo-controls, .photo-navigate { display: flex; align-items: center; gap: 8px; }
.photo-controls { justify-content: space-between; margin-bottom: 10px; }
.photo-controls button { min-height: 40px; padding: 0 12px; border: 1px solid #a4b19d7a; border-radius: 999px; background: #29362b; color: inherit; font: inherit; font-size: .84rem; cursor: pointer; }
.photo-controls button:hover { background: #415344; }
.lightbox-frame { border-radius: 10px; overflow: hidden; background: #0c130e; }
.lightbox-frame img { width: 100%; height: min(80dvh, 940px); object-fit: contain; }

.is-revealing { animation: reveal-in .56s cubic-bezier(.2, .7, .3, 1) both; }
.photo:nth-child(3n + 2).is-revealing, .services-grid article:nth-child(2).is-revealing { animation-delay: 55ms; }
.photo:nth-child(3n + 3).is-revealing, .services-grid article:nth-child(3).is-revealing { animation-delay: 105ms; }
@keyframes reveal-in {
  from { opacity: .3; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .main-nav { justify-content: center; }
  nav { font-size: .82rem; }
  .section-top { position: static; flex-direction: column; }
  .collection { scroll-margin-top: 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .collection-nav { flex-wrap: wrap; }
  .contact-inner { grid-template-columns: 1fr; gap: 10px; }
  #sports .photo-grid, #headshots .photo-grid, .collection:last-child .photo-grid, .print-collection .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .photo-grid, #sports .photo-grid, #headshots .photo-grid, .collection:last-child .photo-grid, .print-collection .photo-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-link, .photo-link img { transition: none; }
  .is-revealing { animation: none; }
}
