/* ==========================================================================
   Belinki Photography — madelene.arcosgrowth.com
   Rebuilt from madelenebelinki.com (WordPress "Photography" theme) as static
   HTML/CSS. Type and colour tokens below are the values read off the original
   theme CSS, so the look carries over.
   ========================================================================== */

:root {
  --ink:        #222222;   /* headings, nav */
  --body:       #444444;   /* body copy */
  --black:      #000000;
  --white:      #ffffff;
  --rule:       #e1e1e1;   /* hairlines */
  --muted:      #888888;

  --font-body:    'Hind', 'Helvetica Neue', Arial, Verdana, sans-serif;
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, Verdana, sans-serif;

  --wrap:     1425px;      /* .standard_wrapper max-width */
  --gutter:   90px;        /* desktop side padding */
  --header-h: 96px;
}

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html, body, div, span, h1, h2, h3, p, a, img, ul, li, figure, form, label,
input, textarea, button {
  margin: 0; padding: 0; border: 0;
  font: inherit; vertical-align: baseline;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* --- type ---------------------------------------------------------------- */

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2 { font-size: 30px; line-height: 1.25; }
h3 { font-size: 18px; }

p + p { margin-top: 1.1em; }

/* Decorative 40px rule above page titles (theme's hr.title_break) */
.title-break {
  display: inline-block;
  width: 40px;
  margin: 20px 0;
  border: 0;
  border-top: 2px solid var(--ink);
}
.title-break.on-dark { border-top-color: var(--white); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--white); color: var(--ink);
  padding: 12px 18px; z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* --- header -------------------------------------------------------------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 0;
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}

/* Sticks and turns solid once you scroll past the hero */
.site-header.is-stuck {
  position: fixed;
  padding: 16px 0;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 var(--rule);
  backdrop-filter: saturate(180%) blur(10px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nav { display: flex; gap: 34px; align-items: center; }
.nav.left  { justify-content: flex-start; }
.nav.right { justify-content: flex-end; }

.nav a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, opacity .25s ease;
}
.nav a:hover      { border-bottom-color: currentColor; }
.nav a[aria-current="page"] { border-bottom-color: currentColor; }

.logo { justify-self: center; line-height: 0; }
.logo img { width: 190px; height: auto; }

/* Two logo files, as the original theme had: logo.png is white artwork (for use
   over a photograph), logo-sticky.png is black (for the solid white bar). */
.logo-light { display: none; }
.logo-dark  { display: block; }

/* Over a dark hero the header text is white and the white logo takes over */
.site-header.on-dark:not(.is-stuck) { color: var(--white); }
.site-header.on-dark:not(.is-stuck) .logo-dark  { display: none; }
.site-header.on-dark:not(.is-stuck) .logo-light { display: block; }
.site-header.is-stuck { color: var(--ink); }

/* mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  cursor: pointer;
  width: 44px; height: 44px;
  color: inherit;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; position: relative;
  width: 22px; height: 1px; background: currentColor;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 22px; height: 1px; background: currentColor;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 150;
  background: var(--white);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 14px 20px;
}
.mobile-menu .close {
  position: absolute; top: 22px; right: 22px;
  width: 44px; height: 44px;
  background: none; cursor: pointer; color: var(--ink);
  font-size: 28px; line-height: 1;
}

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82vh;
  padding: 270px 0;                 /* theme value, home */
  background: #111 center center / cover no-repeat;
  color: var(--white);
}
/* About and Contact used 300px top/bottom and no viewport floor. */
.hero.short { min-height: 0; padding: 300px 0; }
.hero.on-light { color: var(--ink); }

/* Legible text over a photograph without washing the image out */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.12) 45%, rgba(0,0,0,.40) 100%);
}
/* The original ran black type straight over this photo with no scrim; keep it
   almost as-is and just add enough lift to guarantee the title stays readable. */
.hero.on-light::after {
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.20) 100%);
}
.hero > .wrap { position: relative; z-index: 2; }

.hero-title {
  font-size: 60px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -1px;
  text-transform: none;
  color: inherit;
}
.hero-tagline {
  margin-top: 14px;
  font-size: 17px;
  letter-spacing: .4px;
  color: inherit;
}

/* --- statement band ------------------------------------------------------ */

.statement {
  padding: 64px 0;
  text-align: center;
}
.statement h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 1px;
  max-width: 26ch;
  margin: 0 auto;
}

/* --- gallery ------------------------------------------------------------- */

/* Full-bleed, zero-gutter masonry — matches the original (data-gutter="0",
   three_cols, layout="wide"). JS distributes items into the shortest column;
   with JS off, .masonry is a single readable stack. */
.masonry {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}
.masonry-col { flex: 1 1 0; min-width: 0; }

/* Before the JS wraps items into columns (and if JS never runs) the figures are
   direct children — lay them out as a plain 3-up grid so nothing flashes broken. */
.masonry > .shot { flex: 0 0 33.3333%; }

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 0;
  background: #f4f4f4;
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
/* zoomin + bottom gradient on hover, as the theme did */
.shot::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity .45s ease;
  background: linear-gradient(180deg, transparent 0%, transparent 50%,
              rgba(0,0,0,.10) 56%, rgba(0,0,0,.60) 93%, rgba(0,0,0,.69) 100%);
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.06); }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }
.shot:focus-visible { outline: 3px solid var(--white); outline-offset: -3px; }

.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 18px 20px;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
}
.shot:hover figcaption, .shot:focus-visible figcaption {
  opacity: 1; transform: translateY(0);
}

/* --- lightbox ------------------------------------------------------------ */

.lightbox {
  position: fixed; inset: 0;
  z-index: 300;
  display: none;
  background: rgba(0,0,0,.94);
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox-figure {
  max-width: 92vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lightbox-figure img {
  max-width: 92vw; max-height: 80vh;
  width: auto; height: auto;
  object-fit: contain;
}
.lightbox-caption {
  color: rgba(255,255,255,.75);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-align: center;
}
.lb-btn {
  position: absolute;
  background: none; cursor: pointer;
  color: var(--white);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 1;
  opacity: .75;
  transition: opacity .2s ease;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 18px;  right: 22px; font-size: 34px; }
.lb-prev  { left: 14px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; bottom: 22px; left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.6);
  font-size: 11px; letter-spacing: 2px;
}
body.lb-open { overflow: hidden; }

/* --- prose (about) ------------------------------------------------------- */

.prose {
  padding: 84px 0;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.prose h2 { margin-bottom: 26px; }
.prose p { font-size: 16px; line-height: 1.85; }
.prose .lead { font-size: 18px; }

.portrait-band { padding: 0 0 84px; }
.portrait-band img { margin: 0 auto; }

/* --- contact ------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 84px 0;
  align-items: start;
}

.contact-block + .contact-block { margin-top: 30px; }
.contact-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-value {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}
.contact-value a { border-bottom: 1px solid var(--rule); }
.contact-value a:hover { border-bottom-color: var(--ink); }
.contact-note {
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
}

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fafafa;
  border: 1px solid var(--rule);
  padding: 13px 15px;
  transition: border-color .2s ease, background .2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 150px; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  padding: 15px 34px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.btn:hover { background: var(--white); color: var(--ink); }

.form-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* --- footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0;
  text-align: center;
  color: var(--ink);
}
.footer-nav {
  display: flex; justify-content: center; gap: 26px;
  margin-bottom: 16px;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.footer-nav a:hover { border-bottom: 1px solid currentColor; }
.copyright { font-size: 14px; }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero-title { font-size: 46px; }
}

@media (max-width: 1024px) { .masonry > .shot { flex-basis: 50%; } }
@media (max-width: 640px)  { .masonry > .shot { flex-basis: 100%; } }

@media (max-width: 860px) {
  :root { --gutter: 30px; }

  /* Nav collapses to a hamburger: logo left, toggle right. */
  .nav { display: none; }
  .nav-toggle { display: flex; grid-column: 2; justify-self: end; }
  .header-inner { grid-template-columns: 1fr auto; }
  .logo { grid-column: 1; justify-self: start; }
  .logo img { width: 150px; }

  .hero { min-height: 74vh; padding: 160px 0; }
  .hero.short { min-height: 48vh; padding: 130px 0; }
  .hero-title { font-size: 34px; letter-spacing: -.5px; }
  .hero-tagline { font-size: 15px; }

  .statement { padding: 48px 0; }
  .statement h2 { font-size: 20px; }

  .prose { padding: 56px 0; }
  .prose p { font-size: 15px; }

  .contact-grid { grid-template-columns: 1fr; gap: 44px; padding: 56px 0; }

  /* captions are hover-only; on touch there is no hover, so hide them */
  .shot figcaption { display: none; }
  .lb-prev, .lb-next { width: 46px; height: 46px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
