/* Heather Dunphy — Fashion Stylist */
:root {
  --ink: #141414;
  --muted: #7a7672;
  --line: #e4e1dc;
  --paper: #ffffff;
  --tile: #efedea;
  --edge: clamp(16px, 2.2vw, 32px);
  --gap: clamp(8px, 1.4vw, 20px);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 3.2vw, 44px) var(--edge) clamp(26px, 3.4vw, 48px);
}
.nav { display: flex; gap: clamp(16px, 1.8vw, 28px); }
.nav a {
  position: relative;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-bottom: 4px;
}
/* drawn underline */
.nav a::after, .link-line::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after, .link-line:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}

.brand { text-align: center; line-height: 1; }
.brand a { display: inline-block; }
.brand .name {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 44px);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand .role {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.mask { display: block; overflow: hidden; }

.social { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.social svg { width: 17px; height: 17px; display: block; }
.social a { transition: color .3s; }
.social a:hover { color: var(--muted); }

/* ---------- Gallery: flush 3-across grid ---------- */
.gallery {
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: var(--gap);
}
.tile {
  position: relative;
  display: block; width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tile);
  cursor: zoom-in;
}
/* The landscape shot runs full width on phones so the 2-up grid stays even. */
/* The group shot spans two columns on desktop; its row height comes from its neighbour. */
@media (min-width: 1024px) { .tile.wide-d { grid-column: span 2; aspect-ratio: auto; } }
.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 1.1s var(--ease);
  will-change: transform;
}
@media (hover: hover) { .tile:hover img { transform: scale(1.03); } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(255, 255, 255, .98);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--edge);
  visibility: hidden; opacity: 0;
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lb-top, .lb-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.lb-top .lb-cat { color: var(--muted); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 18px 0; }
.lb-stage img { max-height: calc(100vh - 2 * var(--edge) - 90px); max-height: calc(100dvh - 2 * var(--edge) - 90px); max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lb-hit { position: absolute; top: 0; bottom: 0; width: 50%; }
.lb-hit.prev { left: 0; cursor: w-resize; }
.lb-hit.next { right: 0; cursor: e-resize; }
.lb-bottom button { font-family: var(--serif); font-size: 13px; letter-spacing: .08em; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 6vw, 110px);
  padding: clamp(8px, 2vw, 24px) var(--edge) clamp(60px, 8vw, 120px);
  align-items: start;
}
.about-figure { margin: 0; overflow: hidden; background: var(--tile); position: sticky; top: var(--edge); }
.about-figure img { width: 100%; height: auto; }
.about-copy { max-width: 620px; padding-top: clamp(0px, 3vw, 40px); }
.eyebrow {
  font-family: var(--sans); font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px;
}
.lede {
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.28;
  font-weight: 400;
  margin: 0 0 30px;
  letter-spacing: -.005em;
}
.about-copy p.body { font-size: 17px; line-height: 1.7; margin: 0 0 18px; }
.facts {
  margin: 48px 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.facts div {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.facts dt { font-family: var(--sans); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.55; }

.contact { margin-top: 64px; }
.contact h2 { font-weight: 400; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: .02em; text-transform: uppercase; margin: 0 0 18px; }
.contact p { font-size: 17px; line-height: 1.7; margin: 0 0 10px; }
.link-line { position: relative; display: inline-block; padding-bottom: 2px; }
.link-line::after { transform: scaleX(1); transform-origin: left; opacity: .35; }
.link-line:hover::after { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(40px, 6vw, 90px);
  padding: 22px var(--edge) 28px;
  border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Responsive ----------
   >= 1440   large desktop: wider gutters, capped line length
   1024-1439 desktop / tablet landscape: 3 across (base styles)
   768-1023  tablet portrait: 2 across, header stays on one line, bio stacks
   480-767   large phone: 2 across, header stacks and centres
   < 480     small phone: tighter type and gutters
---------------------------------------------------------- */
@media (min-width: 1440px) {
  :root { --edge: 40px; --gap: 22px; }
}

/* Tablet portrait and below */
@media (max-width: 1023px) {
  :root { --edge: 24px; --gap: 12px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Landscape shot runs full width so the 2-up rows stay flush */
  .tile.wide-m { grid-column: span 2; aspect-ratio: 3 / 2; }
  .tile.wide-m img { object-position: 50% 50% !important; }
  .brand .name { font-size: 32px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-figure { position: static; max-width: 620px; }
  .about-copy { max-width: 680px; padding-top: 0; }
  .lede { font-size: 28px; }
}

/* Phones */
@media (max-width: 767px) {
  :root { --edge: 16px; --gap: 8px; }
  .site-header { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding-top: 28px; }
  .brand { order: -1; }
  .social { display: none; }            /* Contact sits in the nav instead */
  .nav { gap: 26px; }
  .nav a { padding: 10px 0 6px; }       /* bigger tap targets */
  .nav a::after { bottom: 2px; }
  .lb-bottom button, .lb-close { padding: 12px 4px; }
}

/* Small phones */
@media (max-width: 479px) {
  :root { --edge: 14px; --gap: 6px; }
  .brand .name { font-size: 26px; letter-spacing: .03em; }
  .brand .role { font-size: 9px; }
  .lede { font-size: 23px; }
  .about-copy p.body, .contact p { font-size: 16px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
