.projects-editorial {
  --pe-night: var(--black);
  --pe-muted: #ddd0bf;
  --pe-line: #b69a7666;
  --pe-ink: #271f17;
  --pe-brown: #64492f;
  --pe-paper-line: #9472516b;
  background: var(--pe-night);
  color: var(--bone);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.pe-shell {
  width: min(100% - 2 * var(--gutter), 78rem);
  margin-inline: auto;
}

.pe-hero { padding-block: clamp(2.2rem, 5vw, 4.8rem) clamp(2rem, 6vw, 6rem); }

.pe-hero h1 {
  margin-bottom: clamp(1.35rem, 4vw, 3.1rem);
  font-size: var(--type-hero);
  line-height: .96;
  text-wrap: balance;
}

.pe-index, .pe-founder-summary, .pe-founder-references, .pe-founder-gallery ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pe-index { display: grid; }
.pe-index li { min-width: 0; border-top: 1px solid var(--pe-line); }
.pe-entry {
  display: grid;
  grid-template-columns: minmax(0, .66fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.85rem, 3.5vw, 1.5rem);
  height: 100%;
  padding-block: 1rem;
  color: inherit;
  text-decoration: none;
}

.pe-entry-media { display: block; position: relative; }
.pe-entry-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #261f18;
}

#pe-kmethic .pe-entry-media img { object-position: center top; }
.pe-image-note {
  position: absolute;
  inset: auto 0 0;
  padding: .8rem .5rem .3rem;
  color: #fff;
  background: linear-gradient(transparent, rgb(0 0 0 / 85%));
  font: 400 .75rem/1.3 var(--sans);
}
.pe-entry h2 {
  font-size: clamp(1.65rem, 4.7vw, 2.45rem);
  line-height: 1.03;
  text-wrap: balance;
}
.pe-entry-copy p {
  max-width: 36ch;
  margin-block: .4rem .55rem;
  color: var(--pe-muted);
  font: 400 1rem/1.45 var(--sans);
  text-wrap: pretty;
}
.pe-entry-link, .pe-text-link {
  font: 500 .95rem/1.4 var(--sans);
  text-decoration: underline;
  text-underline-offset: .25em;
}
.pe-entry:hover .pe-entry-link, .pe-text-link:hover { color: var(--gold); }
.pe-text-link { display: inline-flex; align-items: center; min-height: 44px; }

.pe-film { display: none; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .pe-film {
    display: block;
    position: relative;
  }
  .pe-film video {
    display: block;
    position: absolute;
    inset: 0;
    margin-inline: auto;
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
@media (scripting: none) { .pe-film { display: none; } }

.pe-founder, .pe-contact { padding-block: var(--space-section); }
.pe-founder {
  background: var(--paper);
  color: var(--pe-ink);
  color-scheme: light;
}
.pe-founder :focus-visible { outline-color: var(--pe-brown); }
.pe-founder-opening, .pe-call-layout { display: grid; gap: clamp(2rem, 5vw, 5.2rem); }
.pe-status, .pe-founder-location, .pe-founder-gallery h3 {
  color: var(--pe-brown);
  font: 500 var(--type-label)/1.45 var(--sans);
  letter-spacing: .095em;
  text-transform: uppercase;
}
.pe-restaurant-logo { width: min(100%, 19rem); margin-block: .6rem; }
.pe-restaurant-logo img {
  width: 100%;
  height: auto;
  aspect-ratio: 266 / 148;
  margin-inline-start: -13.9%;
  object-fit: cover;
}
.pe-founder-subtitle {
  margin-top: .9rem;
  max-width: 26ch;
  font: 500 var(--type-subtitle)/1.24 var(--sans);
  text-wrap: pretty;
}

.pe-founder-summary { border-top: 1px solid var(--pe-paper-line); }
.pe-founder-chapter {
  display: grid;
  gap: .55rem;
  padding-block: clamp(1rem, 2vw, 1.65rem);
  border-bottom: 1px solid var(--pe-paper-line);
}
.pe-founder-chapter h3 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.pe-founder-chapter p { max-width: 48ch; text-wrap: pretty; }
.pe-founder-references, .pe-contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .1rem 1.4rem;
  margin-top: .5rem;
}
.pe-founder-references a { color: var(--pe-brown); }
.pe-founder-references a:hover { color: var(--pe-ink); }

.pe-founder-gallery { margin-block-start: clamp(2.5rem, 5vw, 4.5rem); }
.pe-founder-gallery h3 { margin-bottom: 1rem; }
.pe-founder-gallery ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.4rem, 1vw, .9rem);
}
.pe-founder-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e3d5bd;
}

.pe-contact { background: radial-gradient(ellipse at 86% 30%, #35261b80, transparent 56%), var(--pe-night); }
.pe-contact h2 { max-width: 19ch; font-size: var(--type-section); text-wrap: balance; }
.pe-contact p { max-width: 45ch; color: var(--pe-muted); }
.pe-contact-actions { margin-top: 1rem; gap: .65rem 1.4rem; }

@media (min-width: 761px) {
  .pe-index { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 2.6vw, 2.4rem); }
  .pe-index li { border-top: 0; }
  .pe-entry { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 1.15rem; padding: 0; }
  .pe-entry-media img { aspect-ratio: 3 / 2; }
  .pe-entry h2 { font-size: clamp(1.9rem, 3.6vw, 3.15rem); }
  .pe-entry-copy { padding-top: .9rem; border-top: 1px solid var(--pe-line); }
  .pe-founder-opening, .pe-call-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
  .pe-founder-gallery ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
