/* /format/ (format.php): the .wavelength song format in plain words. Layout only: colours,
   type and code blocks come from style.css. */

/* display-font headings wait for Anybody like the rest of the site's (header.php) */
.wl-fonts-pending :is(.fmt-hero h1, .fmt-section h2, .fmt-card h3) { visibility: hidden; }

.fmt-hero { padding: 56px 0 8px; }
.fmt-hero h1 {
  --display: "Anybody", "Anybody 800 118", "Instrument Sans", system-ui, sans-serif;
  font: 800 clamp(2.4rem, 6.4vw, 4.6rem)/0.95 var(--display);
  font-variation-settings: "wdth" 118;
  margin: 0;
  letter-spacing: -0.01em;
}
.fmt-lede { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.4; max-width: 38ch; margin: 18px 0 0; font-weight: 500; }
.fmt-lede code { font-size: 0.9em; }
.fmt-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--slate); margin: 0 0 18px; font-size: 0.95rem; }
.fmt-status span { font: 600 0.78rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); border: 1px solid var(--amber); border-radius: 999px; padding: 6px 10px; }
.fmt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.fmt-section { padding: 56px 0 0; }
.fmt-last { padding-bottom: 72px; }
.fmt-section h2 {
  --display: "Anybody", "Anybody 700 105", "Instrument Sans", system-ui, sans-serif;
  font: 700 clamp(1.5rem, 3vw, 2rem)/1.1 var(--display);
  font-variation-settings: "wdth" 105;
  margin: 0 0 14px;
}
.fmt-section p { max-width: var(--measure); }
.fmt-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: start; }
.fmt-split > div p { margin: 0 0 14px; }
.fmt-split pre { font-size: 0.8rem; }

.fmt-tree { line-height: 1.8; }
.fmt-figure { margin: 0; }
.fmt-figure figcaption { color: var(--slate); font-size: 0.88rem; margin-top: 8px; }
.fmt-tree-name { display: inline-block; min-width: 18ch; color: #fff; }
.fmt-tree-what { color: #9aa1b6; }

.fmt-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.fmt-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; background: var(--paper-2); }
.fmt-card h3 {
  --display: "Anybody", "Anybody 700 105", "Instrument Sans", system-ui, sans-serif;
  font: 700 1.2rem/1.2 var(--display);
  font-variation-settings: "wdth" 105;
  margin: 0 0 8px;
}
.fmt-card p { margin: 0; color: var(--slate); font-size: 0.95rem; }

.fmt-rules ul, .fmt-list { max-width: var(--measure); padding-left: 1.2em; margin: 14px 0 0; }
.fmt-rules li, .fmt-list li { margin: 6px 0; }

@media (max-width: 900px) {
  .fmt-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .fmt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .fmt-cards { grid-template-columns: minmax(0, 1fr); }
  .fmt-tree-name { min-width: 0; display: block; }
  .fmt-tree-what { display: block; padding-left: 4ch; margin-bottom: 4px; }
}
