/* A single content column for the boutique: logo, section openings and footer. */
body.type-system:not(.management) {
  --site-max-width:1280px;
  --site-gutter:48px;
}
.type-system:not(.management) .wrap {
  width:100%;
  max-width:var(--site-max-width);
  margin-inline:auto;
  padding-inline:var(--site-gutter);
}
.type-system:not(.management) .simple-hero > .wrap {
  width:100%;
  max-width:var(--site-max-width);
  padding-inline:var(--site-gutter);
}

/* Keep the approved alternating story within the logo's shared outer margins. */
.type-system .story-page .story-hero-inner {
  grid-template-columns:minmax(0,1fr) 280px;
  gap:64px;
}
.type-system .story-page .cr-portrait {
  width:100%; max-width:280px; margin:0; justify-self:end;
}
.type-system .story-page .cr-chapter {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:64px;
}
.type-system .story-page .cr-chapter.cr-photo-first {
  grid-template-columns:280px minmax(0,1fr);
}
.type-system .story-page .cr-chapter .cr-copy {
  min-width:0; max-width:720px;
}
.type-system .story-page .cr-chapter .cr-photo {
  margin:0; justify-self:end;
}
.type-system .story-page .cr-chapter.cr-photo-first .cr-photo {
  justify-self:start;
}
.type-system .story-page .cr-finish { padding-inline:0; }
.type-system .story-page .cr-finish .cr-copy { margin-inline:auto; }
.type-system .story-page .cr-dedication { margin-inline:auto; text-align:center; }

/* Contact has its own full photograph; none of the subject is cropped. */
.type-system .contact-page-hero.contact-editorial-hero {
  height:auto; background:#fbf7f8;
}
.type-system .contact-editorial-hero .contact-hero-inner {
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  align-items:center; gap:48px;
  padding-block:38px;
}
.contact-hero-copy { min-width:0; }
.contact-hero-copy .eyebrow { color:#806329; margin-bottom:22px; }
.type-system .contact-hero-copy h1 { font-size:clamp(40px,4.5vw,60px); }
.type-system .contact-hero-copy p { font-size:20px; max-width:370px; line-height:1.7; margin-top:22px; }
.contact-hero-copy .text-link { display:inline-flex; gap:28px; margin-top:28px; min-height:44px; align-items:center; }
.contact-hero-photo { margin:0; min-width:0; }
.contact-hero-photo img { display:block; width:100%; height:auto; object-fit:contain; }
.type-system .contact-form-section { padding-block:56px 72px; }

/* Dalia stays complete, while the heading starts on the same text column. */
.type-system .visual-heading.dalia-full-heading {
  grid-template-columns:minmax(0,1fr) 180px;
  position:relative; isolation:isolate;
  padding:24px 0; border-left:0; background:transparent;
}
.type-system .visual-heading.dalia-full-heading::before { content:""; position:absolute; z-index:-1; inset:0 calc(-1 * var(--site-gutter)); background:#f4e6e7; border-bottom:2px solid #b7985a; }
.type-system .dalia-full-heading h1 { color:#613a43; }
.type-system .dalia-full-heading p { color:#62515a; }
.type-system .dalia-full-heading > img { width:180px; height:180px; }
.type-system .dalia-full-heading > img { grid-column:2; grid-row:1; }
.type-system .dalia-full-heading > div { grid-column:1; grid-row:1; }

@media(max-width:1000px) and (min-width:701px) {
  .type-system .story-page .story-hero-inner { gap:40px; grid-template-columns:minmax(0,1fr) 250px; }
  .type-system .story-page .cr-chapter { gap:40px; grid-template-columns:minmax(0,1fr) 250px; }
  .type-system .story-page .cr-chapter.cr-photo-first { grid-template-columns:250px minmax(0,1fr); }
  .type-system .contact-editorial-hero .contact-hero-inner { gap:30px; }
}
@media(max-width:700px) {
  body.type-system:not(.management) { --site-gutter:22px; }
  .type-system .simple-header .brand-signature { justify-self:start; }
  .type-system .story-page .story-hero-inner { grid-template-columns:minmax(0,1fr); gap:30px; }
  .type-system .story-page .cr-chapter, .type-system .story-page .cr-chapter.cr-photo-first { grid-template-columns:minmax(0,1fr); gap:30px; }
  .type-system .story-page .cr-chapter .cr-copy { grid-column:1; grid-row:auto; order:0; }
  .type-system .story-page .cr-chapter .cr-photo, .type-system .story-page .cr-chapter.cr-photo-first .cr-photo { grid-column:1; grid-row:auto; order:1; justify-self:center; }
  .type-system .story-page .cr-portrait { max-width:300px; justify-self:center; }

  .type-system .contact-editorial-hero .contact-hero-inner { grid-template-columns:minmax(0,1fr); gap:28px; padding-block:32px; }
  .contact-hero-copy .eyebrow { margin-bottom:16px; }
  .type-system .contact-hero-copy p { font-size:18px; max-width:none; margin-top:16px; }
  .contact-hero-copy .text-link { margin-top:16px; }
  .type-system .contact-form-section { padding-block:36px 44px; }
  .type-system .visual-heading.dalia-full-heading { grid-template-columns:minmax(0,1fr) 94px; padding:20px 0; }
  .type-system .dalia-full-heading > img { width:100px; height:135px; }
}
