/* The site's visual language: a quiet serif gallery on white. */

:root {
  --paper: #ffffff;
  --ink: #070707;
  --body: #555555;
  --faint: #8c8c8c;
  --rule: #e8e6e2;
  --gutter: 8px;
  --serif: "Times New Roman", "Times Roman", Times, "Liberation Serif", serif;
}

* { box-sizing: border-box; }

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

body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 16px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

/* Masthead — monogram, wordmark, descriptor, stacked and centred. */

.masthead {
  text-align: center;
  padding: 50px 0 0;
}

.lockup { display: block; text-decoration: none; }

.monogram {
  display: block;
  font-size: 104px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.wordmark {
  display: block;
  margin: 26px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 13px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
}

.descriptor {
  display: block;
  margin: 14px 0 0;
  font-size: 8px;
  line-height: 8px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Navigation pins to the top once the masthead has scrolled past. */

.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  margin-top: 75px;
  padding: 12px 0 10px;
  text-align: center;
}

.nav-item {
  display: inline-block;
  padding: 0 30px 0 20px;
}

.nav a {
  font-size: 13px;
  line-height: 13px;
  color: var(--ink);
  text-decoration: none;
}

.has-menu { position: relative; }

.caret {
  margin-left: 10px;
  font-size: 11px;
  vertical-align: 0.15em;
  color: var(--faint);
}

/* The dropdown is bare links on the page, with no panel behind them. */
.menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 100%;
  padding: 10px 0 0;
  background: var(--paper);
  white-space: nowrap;
  text-align: left;
}

.has-menu:hover .menu,
.has-menu:focus-within .menu { display: block; }

.menu a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  line-height: 13px;
}

.menu a:hover,
.menu a.on { color: var(--body); }

.langs {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.langs a { margin-left: 0.85rem; text-decoration: none; }

.langs a:hover { color: var(--ink); }

.langs .on { color: var(--ink); }

/* Gallery — a full-bleed contact sheet of 2:3 frames with a tight gutter. */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  /* A landscape frame spans two columns, so dense packing keeps a portrait that
     could not fit beside it from leaving a hole in the sheet. */
  grid-auto-flow: dense;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* A landscape frame spans two columns and takes the height of the row beside it. */
.gallery .wide {
  grid-column: span 2;
  height: 100%;
  aspect-ratio: 3 / 2;
}

/* The contact sheet never drops to a single column — two frames stay side by side
   on a phone, the way the reference shows them. */
@media (max-width: 767px) {
  /* A landscape frame fills the row on its own here, and dense packing keeps a
     later portrait from leaving a hole where it could not fit. */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
  }

  .gallery .wide { height: auto; }
}

@media (max-width: 520px) {
  .monogram { font-size: 64px; }
  .nav-item { padding: 0 14px; }
  .langs { position: static; padding: 0.9rem 1rem 0; text-align: right; }
  .masthead { padding-top: 24px; }
  .nav { margin-top: 40px; }
  .collection-note { min-height: 0; }
}

/* The line of text above a gallery, kept quiet so the frames carry the page. */

.collection-title {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  line-height: 13px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Three lines' worth, so the gallery starts at the same height on every page. */
.collection-note {
  max-width: 46ch;
  min-height: 72px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 24px;
}

main .gallery { margin-top: 30px; }

.contact { text-align: center; }

.contact-cta { margin: 28px 0 0; }

.contact-cta a {
  font-size: 18px;
  color: var(--ink);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* Article pages */

.article {
  max-width: 44rem;
  margin: 50px auto 0;
}

.article h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.article h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--ink);
}

.article .lede {
  max-width: none;
  margin: 0 0 2rem;
  text-align: left;
  font-size: 1.125rem;
}

.crumbs {
  margin: 0 0 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.crumbs a { text-decoration: none; }

.crumbs a:hover { color: var(--ink); }

/* Language chooser */

.chooser {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.chooser ul {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.chooser li { display: inline-block; margin: 0 1rem; }

.chooser a { text-underline-offset: 5px; }

/* Footer */

footer {
  margin: 90px 0 0;
  padding: 36px 0 56px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

footer p { margin: 0.4rem 0; }

footer a { text-decoration: none; }

footer a:hover { color: var(--ink); }
