/* ZP Collective — brand kit colours. One dark look by design. */

/* The Youngest Serif: put the licensed web font files in assets/fonts/ with these names.
   Until they're there, headings fall back to DM Serif Display. */
@font-face {
  font-family: "The Youngest Serif";
  src: local("The Youngest Serif"), local("TheYoungestSerif"),
       url("fonts/TheYoungestSerif.woff2") format("woff2"),
       url("fonts/TheYoungestSerif.woff") format("woff"),
       url("fonts/TheYoungestSerif.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0e0e0e;
  --surface: #151513;
  --line: #2b2a27;
  --bone: #edeae3;
  --ash: #8a8a85;
  --ember: #d9572b;
  --display: "The Youngest Serif", "DM Serif Display", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { background: var(--ink); }
body {
  margin: 0;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

/* Header: logo centred, menu tucked top right */
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 28px 24px; }
.logo { grid-column: 2; }
.logo img { height: 56px; width: auto; }
@media (max-width: 560px) { .logo img { height: 46px; } }

.menu { grid-column: 3; justify-self: end; position: relative; }
.menu-button {
  display: grid; align-content: center; gap: 6px;
  width: 40px; height: 40px; padding: 0 9px;
  background: none; border: 0; cursor: pointer;
}
.menu-button span { display: block; height: 1px; background: var(--ash); transition: transform .2s ease, background-color .2s ease; }
.menu-button:hover span, .menu-button[aria-expanded="true"] span { background: var(--bone); }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  display: grid; min-width: 168px; padding: 8px;
  background: var(--ink); border: 1px solid var(--line); border-radius: 4px;
}
.menu-panel[hidden] { display: none; }
.menu-panel a { text-decoration: none; color: var(--ash); font-size: 15px; padding: 9px 12px; border-radius: 2px; }
.menu-panel a:hover { color: var(--bone); background: var(--surface); }
.menu-panel a[aria-current="page"] { color: var(--bone); }
@media (prefers-reduced-motion: reduce) { .menu-button span { transition: none; } }

/* Type */
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.005em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 68px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
p { margin: 0; }
.lede { font-size: clamp(18px, 2vw, 20px); color: var(--ash); max-width: 46ch; }
.text-link { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.text-link:hover { border-color: var(--bone); }

main { padding-bottom: 96px; }
.page-head { display: grid; gap: 16px; padding-block: 40px 40px; }

/* Photos: square corners, empty slot shows its file name until a photo is added */
.photo { margin: 0; background: var(--surface); position: relative; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.empty img { visibility: hidden; }
.photo.empty::after {
  content: attr(data-file);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 13px; color: var(--ash);
}

/* Home */
.hero { aspect-ratio: 3 / 2; }
@media (max-width: 640px) { .hero { aspect-ratio: 4 / 5; } }
.intro { display: grid; gap: 20px; padding-block: 48px 64px; }
@media (min-width: 900px) { .intro { grid-template-columns: 7fr 5fr; align-items: last baseline; gap: 48px; } }
.intro .side { display: grid; gap: 20px; justify-items: start; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.selected { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .selected { gap: 16px; } }
@media (min-width: 960px) { .selected { grid-template-columns: repeat(3, 1fr); } }
.selected .photo { aspect-ratio: 4 / 5; }

/* Gallery: photos keep their own shape */
.gallery { columns: 1; column-gap: 16px; }
@media (min-width: 560px) { .gallery { columns: 2; } }
@media (min-width: 960px) { .gallery { columns: 3; } }
.gallery .photo { break-inside: avoid; margin-bottom: 16px; }
.gallery .photo.empty { aspect-ratio: var(--ratio, 4 / 5); }

/* About */
.about { display: grid; gap: 40px; padding-top: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.about .portrait { aspect-ratio: 4 / 5; }
.about .copy { display: grid; gap: 20px; max-width: 60ch; }
.about .copy p { font-size: 18px; }

/* Contact */
.contact { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 760px; }
.contact .row { display: grid; gap: 4px; padding-block: 24px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .contact .row { grid-template-columns: 180px 1fr; align-items: baseline; } }
.contact .label { color: var(--ash); font-size: 15px; }
.contact .value { font-size: clamp(20px, 2.4vw, 26px); overflow-wrap: anywhere; }
.contact a.value { text-decoration: none; }
.contact a.value:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px 40px; color: var(--ash); font-size: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--bone); }
.site-footer .links { display: flex; gap: 20px; }
