/* Three concepts — a quiet viewing page. The concepts are the scene; everything around them stays in the background. */
@font-face { font-family: "Piazzolla"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/piazzolla-opsz-latin-v1.woff2") format("woff2"); }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geologica-wght-latin-v1.woff2") format("woff2"); }

:root {
  --paper: #e4e5e2;      /* light zinc, so both the dark and the light concepts hold their edges */
  --ink: #1d2022;
  --ink-2: #4f5458;      /* 6.4:1 on paper */
  --line: #c3c6c2;
  --copper: #8e5328;     /* focus only */
  --veil: #17191b;
  --serif: "Piazzolla", Georgia, serif;
  --sans: "Geologica", system-ui, sans-serif;
  --gap: clamp(1.25rem, 0.6rem + 2.2vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1360px; margin: 0 auto; padding: clamp(2rem, 1rem + 4vw, 4.5rem) var(--gap) 2.5rem; }

.head { display: grid; gap: 1.25rem 3rem; align-items: end; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.head h1 {
  font: 400 clamp(2.25rem, 1.1rem + 3.9vw, 4.25rem)/1.02 var(--serif);
  letter-spacing: -0.015em; max-width: 17ch; text-wrap: balance;
}
.head-text { display: grid; gap: 0.75rem; max-width: 34rem; }
.lead { font-size: 1.0625rem; }
.note { font-size: 0.875rem; color: var(--ink-2); }
@media (min-width: 900px) {
  .head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.concepts { display: grid; gap: 3rem var(--gap); }
@media (min-width: 900px) {
  .concepts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* tablet: one column, the whole page in one narrower measure so the text and the pictures share an edge */
@media (min-width: 600px) and (max-width: 899px) {
  .wrap { max-width: 38rem; }
}

.shot {
  display: block; position: relative; cursor: zoom-in; border-radius: 3px; overflow: hidden;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.06), 0 18px 40px -24px rgb(20 22 24 / 0.45);
  outline-offset: 4px;
}
.shot img { width: 100%; aspect-ratio: 1024 / 1536; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (hover: hover) {
  .shot:hover img { transform: scale(1.015); }
}
.shot:focus-visible, .zoom-close:focus-visible { outline: 2px solid var(--copper); }

/* one heading per sector, the concepts of that sector under it */
.group {
  font: 400 clamp(1.5rem, 1.1rem + 1.2vw, 2rem)/1.15 var(--serif);
  padding-top: 1.25rem; border-top: 1px solid var(--line);
  margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 1.75rem;
}
.group:first-of-type { margin-top: 0; }
.concept h3 { font: 500 1.625rem/1.2 var(--serif); margin: 1.25rem 0 0.5rem; }
.concept p { color: var(--ink-2); max-width: 38ch; }

.foot { margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); }
.foot p { font-size: 0.875rem; color: var(--ink-2); }

/* the whole page of one concept, at its own size */
.zoom {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 var(--gap); border: 0;
  background: var(--veil); color: #eceeeb; overflow-y: auto; overscroll-behavior: contain;
}
.zoom::backdrop { background: rgb(23 25 27 / 0.6); }
.zoom[open] { animation: fade 0.25s ease-out; }
.zoom-bar {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0; background: var(--veil);
}
.zoom-title { font: 500 1.25rem/1.2 var(--serif); }
.zoom-close {
  min-height: 44px; padding: 0.75rem 1.25rem; border: 1px solid rgb(236 238 235 / 0.45); border-radius: 999px;
  background: transparent; color: inherit; font: 500 0.9375rem/1 var(--sans); cursor: pointer;
}
.zoom-close:hover { border-color: #eceeeb; }
.zoom-img { width: min(1024px, 100%); margin: 0.5rem auto 2.5rem; cursor: zoom-out; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .shot img { transition: none; }
  .zoom[open] { animation: none; }
}
