/* The « Gabarits » section of the Unisson model: its rules copied from the model, colours read from the --pack-*
   tokens. The cards are slotted bythium-pack-template elements, grid items of .tpls. */
:host {
  display: block;
  min-inline-size: 0;
  max-inline-size: 100%;
  color: var(--pack-ink);
  font:
    16px / 1.6 Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}
:host([hidden]) {
  display: none;
}
h2,
p {
  margin: 0;
}

/* section.sec and .container */
.sec {
  padding: 84px 0 0;
}
.container {
  inline-size: min(1200px, 100% - 32px);
  margin-inline: auto;
}

/* Section head: .kicker, h2.h, .lead, .sec-head */
.sec-head {
  margin-block-end: 34px;
}
.kicker {
  font:
    700 12px ui-monospace,
    "JetBrains Mono",
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pack-link);
}
.h {
  margin-block-start: 10px;
  font:
    800 clamp(30px, 4.4vw, 48px) / 1.1 Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  letter-spacing: -0.035em;
}
.lead {
  margin-block-start: 14px;
  max-inline-size: 64ch;
  color: var(--pack-mut);
  font-size: 17px;
}

/* .tpls */
.tpls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* The wide variant, the overview of the « Gabarits » page: its .sec, .container.wide, .sec-head, h2.h and .lead. */
.wide {
  padding-block-start: 72px;
}
.wide .container {
  inline-size: min(1408px, 100% - 32px);
}
.wide .sec-head {
  margin-block-end: 30px;
}
.wide .h {
  font-size: clamp(28px, 4vw, 44px);
}
.wide .lead {
  max-inline-size: 66ch;
}

@media (max-width: 980px) {
  .tpls {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .tpls {
    grid-template-columns: 1fr;
  }
  .sec {
    padding-block-start: 64px;
  }
  .wide {
    padding-block-start: 56px;
  }
}
