/* Rob Matthews Photography — base site styles */

:root {
  --bg: #f2f0eb;
  --ink: #161616;
  --muted: #6b6862;
  --line: #d7d2ca;
  --panel: #dedbd4;
  --max: 1500px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { opacity: .62; }

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.05rem;
  letter-spacing: .02em;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 2.5vw, 38px);
  font-size: .9rem;
}

.menu-toggle {
  display: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .7fr);
  min-height: calc(100vh - 73px);
  border-bottom: 1px solid var(--line);
}

.hero-image {
  min-height: 72vh;
  border-right: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, p, blockquote { margin-top: 0; }

h1 {
  max-width: 9ch;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 7vw, 8rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.03em;
}

.intro {
  max-width: 34rem;
  margin-bottom: 28px;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
}

.text-link {
  display: inline-block;
  width: max-content;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: .9rem;
}

.section-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 160px) var(--gutter);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 52px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.6vw, 42px);
}

.photo-card { grid-column: span 5; }
.photo-card.tall { grid-column: span 7; }
.photo-card.wide { grid-column: 6 / span 7; }

.photo-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), transparent 45%),
    var(--panel);
  color: #77736c;
}

.placeholder::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(0,0,0,.06);
}

.placeholder span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: .08em;
}

.placeholder-hero {
  min-height: 100%;
}

.photo-card.tall .placeholder { aspect-ratio: 4 / 5; }
.photo-card.wide .placeholder { aspect-ratio: 3 / 2; }
.photo-card:not(.tall):not(.wide) .placeholder { aspect-ratio: 1 / 1; }

.statement {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement blockquote {
  max-width: 1200px;
  margin-bottom: 40px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 5.6rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.journal-tease {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.journal-tease h2 {
  max-width: 14ch;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

.site-footer p { margin: 0; }

.page {
  max-width: 1100px;
  min-height: 70vh;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 150px) var(--gutter);
}

.page h1 { max-width: 12ch; }

.page-copy {
  max-width: 760px;
  font-size: 1.15rem;
}

@media (max-width: 820px) {
  .site-header { align-items: flex-start; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 14px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 0; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-image {
    min-height: 58vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .hero-copy { min-height: 48vh; }

  .photo-grid { grid-template-columns: 1fr; }
  .photo-card,
  .photo-card.tall,
  .photo-card.wide {
    grid-column: auto;
  }

  .section-heading,
  .journal-tease,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
