:root {
  --paper: #f7f6f1;
  --ink: #273024;
  --muted: #576552;
  --olive: #5c6a48;
  --line: #d3dac8;
  --card: #fbfcf8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(157, 173, 135, 0.14), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(130, 111, 91, 0.1), transparent 36%),
    linear-gradient(180deg, var(--paper), #f2f1ea);
  line-height: 1.65;
}

.page {
  width: min(980px, calc(100% - 2rem));
  margin: 1.2rem auto 2.4rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.top a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.4rem 0.72rem;
  font-size: 0.95rem;
}

.top a:hover,
.top a:focus-visible {
  background: #eef2e5;
}

.hero {
  padding: 0.35rem 0.1rem 0.2rem;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  color: #1f2b1f;
}

.meta {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.story {
  margin-top: 1rem;
  max-width: 76ch;
}

.story p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.film-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
}

.photo-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.photo-main {
  grid-column: span 7;
}

.photo-side {
  grid-column: span 5;
  margin-top: 0;
}

.photo-full {
  grid-column: 1 / -1;
  width: min(100%, 640px);
  justify-self: center;
}

.photo-full .photo-slot img {
  width: auto;
  max-width: 100%;
  max-height: 620px;
}

.photo-slot {
  border: 0;
  border-radius: 0;
  background: rgba(237, 242, 229, 0.42);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  color: #617060;
  padding: 0;
  font-size: 0.95rem;
  min-height: 0;
  overflow: hidden;
}

.photo-slot img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 0;
}

.photo-slot img.feed-logo {
  width: 100%;
  max-height: none;
  margin: 0;
  object-fit: contain;
}

.photo-slot img.co-op-photo {
  width: 100%;
  max-height: none;
  margin: 0;
  object-fit: contain;
}

.systems-feed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: start;
  width: min(980px, 100%);
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.systems-feed .photo-slot {
  background: rgba(237, 242, 229, 0.28);
  height: auto;
}

.systems-feed .photo-card {
  align-self: start;
  height: auto;
}

.systems-feed .sys-a {
  grid-column: auto;
  grid-row: auto;
}

.systems-feed .sys-e {
  grid-column: auto;
  grid-row: auto;
}

.systems-feed .sys-b {
  grid-column: auto;
  grid-row: auto;
}

.systems-feed .sys-c {
  grid-column: auto;
  grid-row: auto;
}

.systems-feed .sys-d {
  grid-column: auto;
  grid-row: auto;
}

.systems-feed img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.systems-feed img.feed-logo {
  object-fit: contain;
  background: #f7f6f1;
  padding: 0.65rem;
}

.systems-feed .sys-e .photo-slot {
  background: #f7f6f1;
}

@media (max-width: 860px) {
  .film-grid {
    grid-template-columns: 1fr;
  }

  .photo-main,
  .photo-side {
    grid-column: auto;
    margin-top: 0;
  }

  .photo-side .photo-slot,
  .photo-main .photo-slot {
    aspect-ratio: 4 / 3;
  }

  .systems-feed {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    max-width: 100%;
  }

  .systems-feed .sys-a,
  .systems-feed .sys-b,
  .systems-feed .sys-c,
  .systems-feed .sys-d,
  .systems-feed .sys-e {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }

  .systems-feed img {
    height: auto;
  }
}
