:root {
  --ink: #1b1b1b;
  --grey: #4a4a4a;
  --rule: #e8e8e8;
  --space: clamp(4rem, 9vw, 8rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }

header, main { max-width: 1400px; margin: 0 auto; padding-left: 5vw; padding-right: 5vw; }

header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.mark { display: flex; white-space: nowrap; align-items: center; gap: 0.8rem; text-decoration: none; font-weight: 500; letter-spacing: 0.02em; }
.mark img { width: 52px; }

nav ul { display: flex; gap: 2.25rem; margin: 0; padding: 0; list-style: none; }
nav a { text-decoration: none; }
nav a[aria-current] { border-bottom: 1px solid; }
nav button { display: none; padding: 0.25rem 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

main { padding-bottom: var(--space); }
section { margin-top: var(--space); }
main > section:first-of-type { margin-top: clamp(2rem, 5vw, 4rem); }

h1 { margin: 0 0 1.75rem; font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; }
h2 { margin: 0 0 1.5rem; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 1.2rem; }
strong { font-weight: 600; }
.subtitle { max-width: 44rem; margin: 2rem auto 0; font-size: 1.3rem; color: var(--grey); }

section.text { max-width: 44rem; margin-left: auto; margin-right: auto; }

.side { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; align-items: start; }
.side.flip img { order: 2; }
.side .text { max-width: 34rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.grid img { aspect-ratio: 4 / 5; object-fit: cover; }
.full img { width: auto; max-width: 100%; max-height: 90vh; margin: 0 auto; }

.quote { max-width: 50rem; margin-left: auto; margin-right: auto; text-align: center; }
.quote blockquote { margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.35; letter-spacing: -0.01em; }

/* the page's heading over its picture; the shade under the words keeps them readable on any picture */
.cover { position: relative; }
.cover img { height: clamp(26rem, 78vh, 54rem); object-fit: cover; }
.cover .words {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}
.cover h1 { margin: 0; }
.cover .subtitle { max-width: none; margin: 0.75rem 0 0; color: inherit; }

footer { width: calc(min(1400px, 100%) - 10vw); margin: 0 auto; padding: 2rem 0 3rem; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--grey); }

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .side { grid-template-columns: 1fr; gap: 2rem; }
  .side.flip img { order: 0; }
}

/* six titles fit in one row only on a wide screen; below that they fold into the menu */
@media (max-width: 1100px) {
  nav button { display: block; }
  nav ul { display: none; }
  nav.open ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 5vw 1.75rem;
    background: #fff;
    border-bottom: 1px solid var(--rule);
  }
}
