/* Margot Rieve — contact-sheet editorial
   Paper #F7F5F0 · Soot #1A1817 · Bica red #C3352B · Tejo blue #2B4C9B
   Tram mustard #D9A441 · Miradouro green #1E6A50 · Satchel brown #7A4A2B */

:root {
  --paper: #F7F5F0;
  --ink: #1A1817;
  --faint: #8B857C;
  --red: #C3352B;
  --blue: #2B4C9B;
  --mustard: #D9A441;
  --green: #1E6A50;
  --brown: #7A4A2B;
  --display: "Archivo", sans-serif;
  --body: "Newsreader", serif;
  --mono: "IBM Plex Mono", monospace;
  --gutter: clamp(1rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.075rem;
  line-height: 1.55;
}

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

a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---- film-edge annotations: the signature system ---- */
.edgeline, .edgeprint {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.chip {
  width: 0.72rem; height: 0.72rem; flex: none;
  display: inline-block;
}
.chip--red { background: var(--red); }
.chip--blue { background: var(--blue); }
.chip--mustard { background: var(--mustard); }
.chip--green { background: var(--green); }
.chip--brown { background: var(--brown); }
.chip--ink { background: var(--ink); }

/* ---- masthead ---- */
.masthead { padding: var(--gutter) var(--gutter) 0; }
.masthead .edgeline { justify-content: space-between; border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink); padding: 0.55rem 0; }
.masthead .edgeline span:first-child { color: var(--ink); font-weight: 500; }

.wordmark {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(3.4rem, 14.5vw, 11.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 2.2rem 0 1.6rem;
}

.standfirst {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  margin-bottom: 2.4rem;
}

/* ---- hero ---- */
.hero { padding: 0 var(--gutter); }
.hero img { max-height: 88vh; object-fit: cover; object-position: top; }
.hero .edgeprint, .gallery .edgeprint, .about-portrait .edgeprint { padding: 0.5rem 0 0; }

/* ---- gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem) var(--gutter);
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
}
.gallery figure:nth-child(6n+1) { grid-column: 2 / span 6; }
.gallery figure:nth-child(6n+2) { grid-column: 8 / span 4; margin-top: clamp(2rem, 8vw, 7rem); }
.gallery figure:nth-child(6n+3) { grid-column: 3 / span 4; }
.gallery figure:nth-child(6n+4) { grid-column: 7 / span 5; margin-top: clamp(1.5rem, 6vw, 5rem); }
.gallery figure:nth-child(6n+5) { grid-column: 2 / span 5; }
.gallery figure:nth-child(6n)   { grid-column: 7 / span 5; margin-top: clamp(2rem, 7vw, 6rem); }

/* ---- about ---- */
.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--gutter);
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  border-top: 1px solid var(--ink);
  align-items: start;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin: 1.9rem 0 0.5rem;
}
.eyebrow:first-child { margin-top: 0; }
.about h2 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}
.about p + p { margin-top: 0.9rem; }
.disclosure {
  border-left: 3px solid var(--red);
  padding: 0.7rem 0 0.7rem 1.1rem;
  margin-top: 1.2rem;
}
.contact a { font-family: var(--mono); font-size: 0.95rem; }

/* ---- footer ---- */
.colophon { padding: 0 var(--gutter) var(--gutter); }
.colophon .edgeline { justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 0.55rem; }

/* ---- reveal motion ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- mobile ---- */
@media (max-width: 760px) {
  .gallery { display: block; }
  .gallery figure { margin: 0 0 2.2rem !important; }
  .about { grid-template-columns: 1fr; }
  .masthead .edgeline span:nth-child(2) { display: none; }
}
