.page-custom {
  --custom-rule: var(--border-thin) solid var(--color-line);
  --custom-rule-dark: var(--border-thin) solid var(--color-contrast-line);
  --custom-col-index: calc(var(--space-8) + var(--space-3));
  --custom-col-tag: calc(var(--space-8) + var(--space-4));
  --custom-col-key: calc(var(--space-8) + var(--space-6));
}

.page-custom .custom-hero {
  background: var(--color-surface);
  border-bottom: var(--custom-rule);
}

.page-custom .custom-hero__grid {
  display: grid;
  gap: var(--space-6);
}

.page-custom .custom-hero__title {
  margin: var(--space-3) 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-ink);
  overflow-wrap: break-word;
}

.page-custom .custom-hero__intro {
  max-width: var(--measure);
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-custom .custom-hero__note {
  max-width: var(--measure);
  margin: 0 0 var(--space-4);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-muted);
}

.page-custom .custom-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.page-custom .custom-hero__actions .btn {
  border-radius: var(--radius-sm);
}

.page-custom .custom-hero__aside {
  background: var(--color-contrast-surface);
  color: var(--color-contrast-ink);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.page-custom .custom-hero__stats {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  border-top: var(--custom-rule-dark);
}

.page-custom .custom-hero__stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: var(--custom-rule-dark);
}

.page-custom .custom-hero__num {
  min-width: calc(var(--space-8) + var(--space-2));
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: var(--weight-heading);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--color-contrast-ink);
}

.page-custom .custom-hero__stat-label {
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  color: var(--color-contrast-accent);
}

.page-custom .custom-hero__figure {
  margin: 0;
  border: var(--custom-rule-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.page-custom .custom-hero__figure .figure__frame {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-custom .custom-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-custom .custom-hero__figure .figure__caption {
  margin: 0;
  padding: var(--space-2) var(--space-2) var(--space-3);
  border-top: var(--custom-rule-dark);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-contrast-ink);
  opacity: 0.76;
}

.page-custom .custom-directions__head,
.page-custom .custom-showcase__head,
.page-custom .custom-groups__head {
  max-width: var(--measure);
  margin-bottom: var(--space-6);
}

.page-custom .custom-directions__title,
.page-custom .custom-showcase__title,
.page-custom .custom-groups__title {
  margin: var(--space-2) 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.page-custom .custom-directions__intro,
.page-custom .custom-showcase__intro,
.page-custom .custom-groups__intro {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-custom .custom-directions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--custom-rule);
}

.page-custom .custom-direction {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) 0;
  border-bottom: var(--custom-rule);
}

.page-custom .custom-direction__index {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}

.page-custom .custom-direction__title {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-heading);
  letter-spacing: 0.04em;
  color: var(--color-ink);
}

.page-custom .custom-direction__for,
.page-custom .custom-direction__what {
  margin: 0 0 var(--space-1);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}

.page-custom .custom-direction__for {
  color: var(--color-ink-soft);
}

.page-custom .custom-direction__what {
  color: var(--color-ink);
}

.page-custom .custom-direction__tag {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.page-custom .custom-directions__foot {
  margin: var(--space-6) 0 0;
  padding-top: var(--space-3);
  border-top: var(--custom-rule);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-custom .custom-directions__foot a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: var(--border-thin) solid var(--color-accent);
}

.page-custom .custom-showcase {
  background: var(--color-surface);
}

.page-custom .custom-case {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: var(--custom-rule);
}

.page-custom .custom-case__media .figure {
  margin: 0;
}

.page-custom .custom-case__media .figure__frame {
  padding: 0;
  border: var(--custom-rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface-deep);
}

.page-custom .custom-case__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-custom .custom-case__media .figure__caption {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-ink-muted);
}

.page-custom .custom-case__index {
  margin: 0 0 var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.page-custom .custom-case__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: 0.06em;
  color: var(--color-ink);
}

.page-custom .custom-fields {
  margin: 0 0 var(--space-3);
  border-top: var(--custom-rule);
}

.page-custom .custom-fields__row {
  display: grid;
  gap: 2px;
  padding: var(--space-2) 0;
  border-bottom: var(--custom-rule);
}

.page-custom .custom-fields__key {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.page-custom .custom-fields__val {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink);
}

.page-custom .custom-fields__val a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: var(--border-thin) solid var(--color-accent);
}

.page-custom .group {
  border: 0;
}

.page-custom .group-toggle {
  display: block;
  width: 100%;
  padding: var(--space-2) 0;
  border: 0;
  border-top: var(--custom-rule);
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.page-custom .group-toggle:hover {
  color: var(--color-focus);
}

.page-custom .group-toggle:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.page-custom .group-toggle[aria-expanded="true"] {
  color: var(--color-primary);
}

.page-custom .group-panel__inner {
  padding: var(--space-2) 0 var(--space-3);
}

.page-custom .group-panel__inner p {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-custom .custom-groups {
  background: var(--color-surface-deep);
  border-top: var(--custom-rule);
}

.page-custom .custom-group {
  display: grid;
  gap: var(--space-3);
}

.page-custom .custom-groups .group-toggle {
  border-top: var(--custom-rule);
  font-size: var(--text-base);
  letter-spacing: 0.16em;
  font-weight: 700;
}

.page-custom .custom-minis {
  display: grid;
  gap: var(--space-3);
}

.page-custom .custom-mini {
  padding: var(--space-3);
  background: var(--color-surface);
  border: var(--custom-rule);
  border-left: calc(var(--space-1) / 2) solid var(--color-primary);
  border-radius: var(--radius-sm);
}

.page-custom .custom-mini__title {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  letter-spacing: 0.03em;
  color: var(--color-ink);
}

.page-custom .custom-mini__desc {
  margin: 0 0 var(--space-2);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-custom .custom-mini__meta {
  margin: 0;
  padding-top: var(--space-1);
  border-top: var(--custom-rule);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--color-ink-muted);
}

.page-custom .custom-groups__foot {
  margin: var(--space-6) 0 0;
  padding-top: var(--space-3);
  border-top: var(--custom-rule);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-custom .custom-start__title {
  margin: var(--space-2) 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: 0.03em;
  color: var(--color-contrast-ink);
}

.page-custom .custom-start__intro {
  max-width: var(--measure);
  margin: 0 0 var(--space-4);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-contrast-ink);
  opacity: 0.82;
}

.page-custom .custom-start__grid {
  display: grid;
  gap: var(--space-6);
}

.page-custom .custom-start .eyebrow {
  color: var(--color-contrast-accent);
}

.page-custom .custom-steps {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  border-top: var(--custom-rule-dark);
}

.page-custom .custom-step {
  display: grid;
  grid-template-columns: calc(var(--space-6) + var(--space-1)) minmax(0, 1fr);
  gap: var(--space-2);
  align-items: baseline;
  padding: var(--space-2) 0;
  border-bottom: var(--custom-rule-dark);
}

.page-custom .custom-step__num {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  font-variant-numeric: tabular-nums;
  color: var(--color-contrast-accent);
}

.page-custom .custom-step__text {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-contrast-ink);
}

.page-custom .custom-prep {
  border: var(--custom-rule-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.page-custom .custom-prep__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  letter-spacing: 0.04em;
  color: var(--color-contrast-ink);
}

.page-custom .custom-prep__list {
  margin: 0;
  padding-left: var(--space-3);
  list-style: square;
}

.page-custom .custom-prep__list li {
  margin-bottom: var(--space-1);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-contrast-ink);
  opacity: 0.86;
}

.page-custom .custom-start .btn--accent {
  border-radius: var(--radius-sm);
}

@media (min-width: 760px) {
  .page-custom .custom-direction {
    grid-template-columns: var(--custom-col-index) minmax(0, 1fr) var(--custom-col-tag);
    gap: var(--space-4);
    align-items: start;
    padding: var(--space-4) 0;
  }

  .page-custom .custom-direction__tag {
    text-align: right;
  }

  .page-custom .custom-fields__row {
    grid-template-columns: var(--custom-col-key) minmax(0, 1fr);
    gap: var(--space-3);
    align-items: baseline;
  }

  .page-custom .custom-minis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-custom .custom-hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: 0;
    align-items: stretch;
  }

  .page-custom .custom-hero__lead {
    padding-right: var(--space-6);
  }

  .page-custom .custom-hero__aside {
    margin-right: calc(-1 * var(--gutter));
    padding: var(--space-6) var(--gutter) var(--space-6) var(--space-6);
    border-radius: 0;
    border-left: var(--custom-rule-dark);
  }

  .page-custom .custom-case {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-6);
    align-items: start;
    padding: var(--space-8) 0;
  }

  .page-custom .custom-case--flip .custom-case__media {
    order: 2;
  }

  .page-custom .custom-case--flip .custom-case__body {
    order: 1;
    padding-right: var(--space-4);
  }

  .page-custom .custom-start__grid {
    grid-template-columns: 4fr 8fr;
    gap: var(--space-8);
    align-items: start;
  }
}

@media (min-width: 1180px) {
  .page-custom .custom-hero__lead {
    padding-right: var(--space-8);
  }

  .page-custom .custom-directions__list,
  .page-custom .custom-fields {
    border-top-color: var(--color-line);
  }
}
<<<END>>>
