/* Rob Matthews Photography */

: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;
  text-rendering: optimizeLegibility;
}

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

a:hover { opacity: .62; }

img {
  display: block;
  max-width: 100%;
}

.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;
}

.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,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.04em;
}

h1 {
  margin-bottom: 30px;
  font-size: clamp(3.4rem, 6.35vw, 7.2rem);
  line-height: .91;
}

h2 {
  font-size: clamp(2.4rem, 4.6vw, 5.4rem);
  line-height: .97;
}

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

/* Home: hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 64fr) minmax(360px, 36fr);
  min-height: calc(100vh - 74px);
  border-bottom: 1px solid var(--line);
}

.hero-image-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 3vw, 44px) clamp(22px, 2.5vw, 38px);
  border-right: 1px solid var(--line);
}

.hero-photo {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 128px);
  object-fit: contain;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(34px, 4vw, 64px) var(--gutter);
  transform: translateY(-1.5vh);
}

.hero-copy h1 {
  max-width: none;
  margin-bottom: 28px;
  font-size: clamp(3.35rem, 5.05vw, 6.15rem);
  line-height: .93;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-date {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

/* Shared sections */

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

/* Home: photographic sequence */

.home-sequence {
  padding-bottom: clamp(110px, 13vw, 210px);
}

.sequence-intro {
  display: grid;
  grid-template-columns: minmax(180px, .6fr) minmax(0, 1.2fr) minmax(260px, .75fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: end;
  margin-bottom: clamp(70px, 9vw, 140px);
}

.sequence-intro .eyebrow {
  align-self: start;
  padding-top: 8px;
}

.sequence-intro h2 {
  margin-bottom: 0;
  max-width: 8ch;
}

.sequence-intro > p:last-child {
  max-width: 30rem;
  margin-bottom: .55rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.sequence-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(72px, 10vw, 150px);
  align-items: start;
}

.sequence-photo {
  display: block;
}

.sequence-photo img {
  width: 100%;
  height: auto;
}

.sequence-photo--sun {
  grid-column: 1 / span 10;
}

.sequence-photo--tower {
  grid-column: 1 / span 4;
}

.sequence-photo--green {
  grid-column: 7 / span 6;
  margin-top: clamp(90px, 11vw, 170px);
}

.sequence-photo--face {
  grid-column: 2 / span 7;
}

.sequence-photo--lane {
  grid-column: 9 / span 4;
  margin-top: clamp(100px, 14vw, 220px);
}

.sequence-link {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(70px, 8vw, 125px);
}

/* Home: brief text note */

.home-note {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(0, 1.15fr) minmax(260px, .8fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-note h2 {
  max-width: 7ch;
  margin-bottom: 0;
}

.home-note-copy {
  max-width: 32rem;
  margin-bottom: 30px;
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  line-height: 1.45;
}

.home-note .text-link {
  grid-column: 3;
}

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

.journal-tease h2 {
  max-width: 13ch;
  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; }

/* Interior pages */

.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;
}

/* Kept for interior placeholders while the rest of the site is developed. */

.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);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 61fr) minmax(340px, 39fr);
  }

  .hero-copy h1 {
    font-size: clamp(3.15rem, 5.2vw, 4.8rem);
  }

  .sequence-intro,
  .home-note {
    grid-template-columns: 1fr 2fr;
  }

  .sequence-intro > p:last-child,
  .home-note-copy,
  .home-note .text-link {
    grid-column: 2;
  }

  .sequence-photo--green {
    grid-column: 6 / span 7;
  }
}

@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-stage {
    min-height: 0;
    padding: 26px var(--gutter) 30px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-photo {
    width: 100%;
    max-height: none;
  }

  .hero-copy {
    min-height: 44vh;
    padding-top: 54px;
    padding-bottom: 48px;
    transform: none;
  }

  .hero-copy h1 {
    max-width: 8ch;
    font-size: clamp(3.6rem, 17vw, 6rem);
  }

  .sequence-intro,
  .home-note {
    display: block;
  }

  .sequence-intro .eyebrow,
  .home-note .eyebrow {
    padding-top: 0;
  }

  .sequence-intro h2,
  .home-note h2 {
    margin-bottom: 28px;
  }

  .sequence-grid {
    grid-template-columns: 1fr;
    row-gap: 72px;
  }

  .sequence-photo--sun,
  .sequence-photo--tower,
  .sequence-photo--green,
  .sequence-photo--face,
  .sequence-photo--lane {
    grid-column: auto;
    margin-top: 0;
  }

  .sequence-photo--tower,
  .sequence-photo--lane {
    width: 76%;
  }

  .sequence-photo--green {
    width: 88%;
    margin-left: auto;
  }

  .sequence-photo--face {
    width: 92%;
  }

  .sequence-link {
    justify-content: flex-start;
  }

  .home-note-copy {
    max-width: 35rem;
  }

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

@media (max-width: 520px) {
  .site-header { padding-top: 20px; padding-bottom: 20px; }

  .hero-copy {
    min-height: 40vh;
  }

  .section-wrap {
    padding-top: 82px;
    padding-bottom: 92px;
  }

  .home-sequence {
    padding-bottom: 110px;
  }

  .sequence-intro {
    margin-bottom: 64px;
  }

  .sequence-photo--tower,
  .sequence-photo--lane {
    width: 82%;
  }

  .sequence-photo--face {
    width: 100%;
  }
}
