/* photography.sohailhasnie.com.au
   Same family as sohailhasnie.com.au — dark, warm, image-led.
   Tuned for photographs: quieter chrome, more black, images do the talking. */

:root {
  --ink:      #f4f1ec;
  --ink-dim:  #b9b3a8;
  --muted:    #8a8479;
  --bg:       #101112;
  --bg-alt:   #17191b;
  --line:     #2a2e31;
  --accent:   #d8a13a;
  --accent-lt:#f0c877;

  --wide: 1240px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: var(--ink-dim); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-lt); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--serif); color: var(--ink); font-weight: 600;
  line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; max-width: 64ch; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gap); }
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 1rem; scroll-margin-top: 5rem;
}
.muted { color: var(--muted); }
.lede { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--ink-dim); max-width: 60ch; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(16,17,18,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.barin { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 62px; }
.brand {
  font-family: var(--serif); font-size: 1.08rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.brand span { color: var(--muted); }
.brand:hover { color: var(--accent-lt); }
.nav { display: flex; gap: 1.35rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-size: 0.86rem; color: var(--ink-dim); text-decoration: none;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.nav a:hover { color: var(--accent); }
.nav a.ext { color: var(--muted); text-transform: none; letter-spacing: 0; }
@media (max-width: 720px) {
  .barin { height: auto; padding-top: 0.7rem; padding-bottom: 0.7rem; flex-direction: column; align-items: flex-start; }
  .nav { gap: 0.9rem; justify-content: flex-start; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.heroimgs { position: absolute; inset: 0; }
.heroimgs img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.heroimgs img.on { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,17,18,0.97) 6%, rgba(16,17,18,0.72) 42%, rgba(16,17,18,0.35) 100%);
}
.heroin { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.heroin h1 { margin-bottom: 0.45em; }

/* ---------- bands ---------- */
.band { padding: clamp(2.75rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--bg-alt); }
.pagehead { padding: clamp(2rem, 5vw, 3.25rem) 0 1.5rem; }
.crumb { padding-top: 1.4rem; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.03em; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.backrow { padding: 2.5rem 0 3.5rem; }

/* ---------- cards (collections & categories) ---------- */
.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); margin-top: 2rem; }
.big-cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card {
  position: relative; display: block; text-decoration: none; color: inherit;
  border-radius: 6px; overflow: hidden; background: var(--bg-alt);
  border: 1px solid var(--line); transition: border-color .15s ease, transform .15s ease;
}
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: opacity .2s ease; }
.card.big img { aspect-ratio: 3/2; }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,11,12,0.92) 0%, rgba(10,11,12,0.35) 45%, rgba(10,11,12,0) 72%);
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card:hover img { opacity: 0.9; }
.ct {
  position: absolute; left: 1rem; right: 1rem; bottom: 1.6rem; z-index: 2;
  font-family: var(--serif); font-size: 1.08rem; color: var(--ink); line-height: 1.25;
}
.cn {
  position: absolute; left: 1rem; right: 1rem; bottom: 0.75rem; z-index: 2;
  font-size: 0.76rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase;
}

/* ---------- photo grid ---------- */
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 0.5rem; }
.tile { display: block; border-radius: 4px; overflow: hidden; background: var(--bg-alt); line-height: 0; }
.tile img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: opacity .18s ease, transform .3s ease; }
.tile:hover img { opacity: 0.82; transform: scale(1.03); }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 90; background: rgba(8,9,10,0.97);
  display: flex; align-items: center; justify-content: center; padding: 3vh 4vw;
}
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 94vh; width: auto; height: auto; object-fit: contain; border-radius: 3px; }
.lb button {
  position: absolute; background: none; border: 0; color: var(--ink-dim);
  cursor: pointer; font-size: 2.6rem; line-height: 1; padding: 0.4rem 0.9rem; font-family: var(--sans);
}
.lb button:hover { color: var(--accent); }
.lbx { top: 0.5rem; right: 1rem; font-size: 2.2rem; }
.lbp { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lbn { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- prose pages ---------- */
.prose { padding-bottom: 4rem; }
.prose h2 { margin-top: 2.4rem; }
.prose ul { max-width: 64ch; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #16181a;
  padding: 0.7rem 1.45rem; border-radius: 4px; text-decoration: none;
  font-size: 0.94rem; font-weight: 600;
}
.btn:hover { background: var(--accent-lt); color: #16181a; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn.ghost:hover { background: transparent; color: var(--accent-lt); border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 2.5rem 0 2.25rem; font-size: 0.86rem; color: var(--muted); }
.site-foot a { color: var(--ink-dim); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.foot-row { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; }

.skip { position: absolute; left: -9999px; background: var(--accent); color: #000; padding: 0.7rem 1.2rem; }
.skip:focus { left: 0; top: 0; z-index: 100; }
