/* matthewfawks.com/photography */
:root {
  --bg: #0C0D0E;
  --bg-2: #16181A;
  --fg: #F2F1EE;
  --soft: #C9C6BF;
  --muted: #A9A69F;
  --line: #2C2F33;
  --accent: #E8B86A;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fg); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

.nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 28px 0; }
.mark { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .28em; text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; }

/* landing hero */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,10,.45) 0%, rgba(8,9,10,.2) 40%, rgba(8,9,10,.6) 100%); }
.hero > * { position: relative; z-index: 1; }
.hero > .wrap { width: 100%; }
.hero-text { padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: -.03em; max-width: 900px; }
.hero p { margin: 0; font-size: 18px; color: #E4E2DD; }
.kicker { font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #CFCCC5; }

.section { padding-top: 96px; padding-bottom: 96px; }
.head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 44px); letter-spacing: -.02em; }
.muted { color: var(--muted); font-size: 15px; margin: 0; }

/* collections grid */
.c-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.c-card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.c-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .2s; }
.c-card:hover img { opacity: .85; }
.c-meta { display: flex; justify-content: space-between; font-size: 16px; }
.c-title { font-weight: 500; }
.c-count { color: var(--muted); }

/* prints */
.band { background: var(--bg-2); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > .media { flex: 1 1 520px; min-width: 0; }
.split > .copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.label { margin: 0; font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.copy p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--soft); }
.sizes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sizes li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.sizes li span:last-child { color: var(--soft); }
.btn { display: inline-flex; align-self: flex-start; align-items: center; min-height: 48px; padding: 0 24px; background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn:hover { background: #F2CC8C; color: var(--bg); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 13px; color: #8E8B84; }
.copy p.soon { padding: 12px 16px; border: 1px dashed var(--line); border-radius: 4px; font-size: 14px; color: var(--soft); }

/* about */
.about-photo { flex: 0 1 240px; }
.about-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; font-weight: 500; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }

/* gallery page */
.g-head { padding: 24px 0 40px; display: flex; flex-direction: column; gap: 10px; }
.g-head h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5vw, 56px); letter-spacing: -.02em; }
.g-places { margin: 0; max-width: 760px; line-height: 1.6; }
.back { font-size: 14px; text-decoration: none; color: var(--muted); }
/* justified rows: photos keep their shape and read left to right, top to bottom */
.g-grid { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 96px; }
.g-grid::after { content: ""; flex: 1000000 1 0; } /* keeps the last row from stretching */
.g-item { display: block; position: relative; flex: calc(var(--r, 1.5) * 100) 0 min(calc(var(--r, 1.5) * 220px), 100%); container-type: inline-size; }
@container (max-width: 300px) { .g-exif { display: none; } }
.g-grid.wide .g-item { flex-basis: 100%; }
.g-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(180deg, rgba(8,9,10,0) 0%, rgba(8,9,10,.78) 100%); pointer-events: none; }
.g-loc { font-size: 15px; font-weight: 600; color: var(--fg); }
.g-exif { font-size: 12px; color: var(--soft); font-style: italic; }
@media (max-width: 480px) { .g-meta { padding: 32px 12px 10px; } .g-loc { font-size: 14px; } .g-exif { font-size: 11px; } }
.g-item img { width: 100%; height: auto; transition: opacity .2s; }
.g-item:hover img { opacity: .85; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(6,7,8,.96); display: none; align-items: center; justify-content: center; z-index: 50; }
.lb.open { display: flex; }
.lb figure { margin: 0; max-width: 94vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.lb figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; align-items: baseline; font-size: 14px; color: var(--soft); min-height: 24px; max-width: 94vw; text-align: center; }
.lb-loc { color: var(--fg); font-weight: 600; }
.lb-exif { font-style: italic; }
.lb button { position: absolute; background: none; border: 0; color: var(--fg); cursor: pointer; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.lb button:hover { color: var(--accent); }
.lb .lb-close { top: 12px; right: 12px; }
.lb .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-buy { color: var(--accent); font-weight: 600; }

@media (max-width: 900px) { .c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .c-grid { grid-template-columns: minmax(0, 1fr); }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
}
