/* 50-index.css - the home page. One long page of type instead of the field grid: a title as
   wide as the page, a word per style fitted to the measure, one line per weight, the features
   on the inverted field. Vlak supplies the paint, the bar, the controls and the footer.
   Class prefix: ho-. */

.ho-page {
  --ho-pad: clamp(20px, 3.2vw, 48px);
  padding-top: calc(var(--pl-bar) + env(safe-area-inset-top, 0px));
  background: var(--bg);
}
.ho-page > section { padding: clamp(56px, 8vw, 128px) var(--ho-pad); }
.ho-page > section + section { border-top: 1px solid var(--divider); }

/* small labels: a name on the left, a number on the right */
.ho-row-label {
  margin: 0;
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--pe-sans);
  font-size: 12px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3;
  color: var(--text-secondary);
}
.ho-row-label b { font-weight: 500; }
.ho-row-label span { font-variant-numeric: tabular-nums; }
.ho-eyebrow {
  margin: 0;
  font-size: 12px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3;
  color: var(--text-secondary);
}
.ho-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 0 clamp(28px, 4vw, 56px);
}
.ho-h { margin: 0; font-size: clamp(1.25rem, 1.9vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.ho-more {
  font-size: 13px; font-weight: 500; letter-spacing: -.01em;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--divider);
}
.ho-more:hover { border-color: var(--text); }
.ho-more:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ── The title ───────────────────────────────────────────────────────────── */
.ho-page > .ho-hero { overflow: hidden; padding-top: clamp(28px, 4vw, 72px); padding-bottom: clamp(48px, 6vw, 96px); }
.ho-title {
  margin: 0 0 0 -0.045em;
  font-size: 20.4vw;               /* until 30-index.js fits the longer line to the measure */
  font-weight: 600; letter-spacing: -.035em; line-height: .86;
  white-space: nowrap;
}
.ho-title span { display: block; }
.ho-intro {
  margin-top: clamp(36px, 5.5vw, 88px);
  display: grid; gap: 28px var(--gutter);
  grid-template-columns: minmax(0, 1fr);
  font-size: 15px; line-height: 1.6; letter-spacing: -.01em;
}
.ho-intro p { margin: 0; max-width: 34em; text-wrap: pretty; }

.ho-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
.ho-actions a { text-decoration: none; }
@media (min-width: 760px) {
  .ho-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr); }
}

/* ── A word per style, as wide as the page ───────────────────────────────── */
.ho-page > .ho-stack { padding-top: clamp(28px, 3vw, 48px); padding-bottom: clamp(28px, 3vw, 48px); }
.ho-row {
  display: block; color: var(--text); text-decoration: none;
  padding: clamp(14px, 1.6vw, 24px) 0 clamp(6px, 1vw, 16px);
  overflow: hidden;
}
.ho-row + .ho-row { border-top: 1px solid var(--divider); }
.ho-row:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.ho-fit {
  margin: 0;
  font-family: var(--pe-spec);
  font-size: 18vw;                 /* until 30-index.js fits the word to the measure */
  font-weight: 500; line-height: .98; letter-spacing: var(--pe-track);
  white-space: nowrap;
  /* Room for descenders (about .2em: the p's in Dauwtrappen, the j in
     Mijmeren) above the row's clipping edge. */
  padding-bottom: .05em;
  transition: opacity .2s ease;
}
.ho-row:hover .ho-fit { opacity: .62; }

/* ── The idea ─────────────────────────────────────────────────────────────── */
.ho-say { text-align: center; }
.ho-statement {
  margin: clamp(20px, 2.4vw, 36px) auto 0;
  max-width: 16em;
  font-family: var(--pe-spec);
  font-size: clamp(2rem, 5.2vw, 5rem);
  font-weight: 400; letter-spacing: -.02em; line-height: 1.04;
  text-wrap: balance;
}
.ho-cols {
  margin: clamp(32px, 4vw, 64px) auto 0;
  max-width: 1040px;
  display: grid; gap: 20px clamp(20px, 3vw, 48px);
  grid-template-columns: minmax(0, 1fr);
  text-align: left;
  font-size: 15px; line-height: 1.6; letter-spacing: -.01em;
}
.ho-cols p { margin: 0; text-wrap: pretty; }
.ho-cols a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--control-border); white-space: nowrap; }
.ho-cols a:hover { border-color: var(--text); }
@media (min-width: 760px) { .ho-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ho-diagram { margin: clamp(40px, 5vw, 80px) auto 0; max-width: 1040px; }

/* ── One line per weight ─────────────────────────────────────────────────── */
.ho-weight { padding: clamp(10px, 1.2vw, 18px) 0 clamp(4px, .6vw, 10px); border-top: 1px solid var(--divider); overflow: hidden; }
.ho-weight:last-child { border-bottom: 1px solid var(--divider); }
.ho-line {
  margin: clamp(2px, .4vw, 8px) 0 0 -0.04em;
  font-family: var(--pe-spec);
  font-size: clamp(2.25rem, 8.6vw, 10.5rem);
  line-height: 1.06; letter-spacing: var(--pe-track);
  white-space: nowrap;
}
.pe-in-mono .ho-line { font-size: clamp(1.75rem, 6.3vw, 7.75rem); }
.pe-in-slab .ho-line { font-size: clamp(2.1rem, 7.9vw, 9.75rem); }
.ho-switch { flex: none; }
/* Vlak's grouped buttons take their type and padding from a base button class; here they stand
   alone, so they are given both (they fell back to the browser's: Arial, 6px) */
.ho-switch button {
  font-family: var(--pe-sans); font-size: 13px; letter-spacing: -.01em; line-height: 1;
  padding: 0 16px; cursor: pointer; transition: var(--transition);
}
.ho-switch button:hover { color: var(--text); }
.ho-head-tools { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.pe-in-slab .ho-abc { font-size: clamp(1.9rem, 4.75vw, 5.9rem); }
.pe-in-mono .ho-abc { font-size: clamp(1.5rem, 3.95vw, 4.9rem); }

/* ── Features, on the inverted field ─────────────────────────────────────── */
.ho-page > .ho-band {
  background: var(--text); color: var(--bg);
  border-top: 0;
  --ho-band-line: color-mix(in srgb, var(--bg) 22%, transparent);
  --ho-band-quiet: color-mix(in srgb, var(--bg) 62%, transparent);
}
.ho-page > .ho-band + section { border-top: 0; }
.ho-band-head { display: grid; gap: 24px var(--gutter); grid-template-columns: minmax(0, 1fr); align-items: end; }
.ho-band-note { margin: 14px 0 0; max-width: 30em; font-size: 15px; line-height: 1.55; letter-spacing: -.01em; color: var(--ho-band-quiet); }
.ho-band-note a { color: var(--bg); text-decoration: none; border-bottom: 1px solid var(--ho-band-line); }
.ho-band-note a:hover { border-color: var(--bg); }
.ho-band-glyphs {
  margin: 0; font-size: clamp(4rem, 12vw, 11rem); font-weight: 300; line-height: .9; letter-spacing: -.02em;
  white-space: nowrap;
}
.ho-table { margin-top: clamp(32px, 4vw, 64px); border-top: 1px solid var(--bg); }
.ho-tr {
  display: grid; gap: 14px var(--gutter);
  grid-template-columns: minmax(0, 1fr);
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--ho-band-line);
  align-items: start;
}
.ho-tr > * { margin: 0; min-width: 0; }
.ho-th { padding: 12px 0; font-size: 12px; font-weight: 500; color: var(--ho-band-quiet); }
.ho-th p { margin: 0; }
.ho-feat { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; }
.ho-feat code {
  font-family: var(--pe-mono); font-size: 12px; font-weight: 400;
  padding: 2px 6px; margin-right: 6px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg) 14%, transparent);
}
.ho-feat-note { margin: 6px 0 0; max-width: 26em; font-size: 13px; line-height: 1.45; letter-spacing: -.01em; color: var(--ho-band-quiet); }
.ho-sample {
  font-family: var(--pe-spec);
  font-size: clamp(1.75rem, 3.5vw, 3.25rem); font-weight: 500; line-height: 1.1; letter-spacing: -.01em;
}
.ho-kern-off { font-kerning: none; }
.ho-case-off { font-feature-settings: "case" 0; }
.ho-case-on { font-feature-settings: "case"; }
.ho-locl-off { font-feature-settings: "locl" 0; }
.ho-num { font-variant-numeric: tabular-nums; letter-spacing: 0; }
@media (max-width: 759px) {
  .ho-th { display: none; }
  .ho-tr > .ho-sample:nth-child(2) { color: var(--ho-band-quiet); }
}
@media (min-width: 760px) {
  .ho-band-head { grid-template-columns: minmax(0, 1fr) auto; }
  .ho-tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr); }
  .ho-tr > .ho-sample:nth-child(2) { color: var(--ho-band-quiet); }
}

/* ── The alphabet ────────────────────────────────────────────────────────── */
.ho-abc {
  margin: 0 0 0 -0.03em;
  font-family: var(--pe-spec);
  font-size: clamp(2rem, 5.25vw, 6.5rem);
  font-weight: 400; line-height: 1.12; letter-spacing: 0;
  overflow-wrap: anywhere;
}
.ho-abc + .ho-abc { margin-top: .12em; }
.ho-abc-quiet { color: var(--text-secondary); }

/* ── Running text ────────────────────────────────────────────────────────── */
.ho-text-cols { display: grid; gap: 40px clamp(20px, 3vw, 48px); grid-template-columns: minmax(0, 1fr); }
.ho-text-cols .pe-label { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--divider); }
@media (min-width: 760px) { .ho-text-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── A line to type over ─────────────────────────────────────────────────── */
.ho-command {
  margin: clamp(14px, 1.6vw, 24px) 0 clamp(18px, 2vw, 28px) -0.04em;
  font-size: clamp(2rem, 6.4vw, 7rem);
  font-weight: 600; letter-spacing: -.03em; line-height: .98;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .ho-page { padding-top: calc(var(--pl-bar-phone) + env(safe-area-inset-top, 0px)); }
  .ho-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .ho-fit { transition: none; } }

/* ── Single page: sections are reached from the bar ──────────────────────── */
.ho-page > section { scroll-margin-top: calc(var(--pl-bar) - 1px); }

/* ── Sizes: one style from display to label ─────────────────────────────── */
.ho-size { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px var(--gutter); padding: clamp(14px, 1.6vw, 24px) 0; border-top: 1px solid var(--divider); }
.ho-size:last-child { border-bottom: 1px solid var(--divider); }
.ho-size .ho-row-label { flex-direction: column; justify-content: flex-start; gap: 2px; padding-top: 4px; }
.ho-size-line { margin: 0; font-family: var(--pe-spec); max-width: 46em; text-wrap: pretty; overflow-wrap: anywhere; }
@media (min-width: 760px) { .ho-size { grid-template-columns: minmax(0, 1fr) minmax(0, 6fr); } }

/* ── Every character ─────────────────────────────────────────────────────── */
.ho-grid-note { margin: clamp(32px, 4vw, 64px) 0 14px; font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.ho-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 1px;
  background: var(--divider); border: 1px solid var(--divider);
  font-family: var(--pe-spec);
}
.ho-grid span {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; background: var(--bg);
  font-size: 26px; font-weight: 400; line-height: 1; letter-spacing: 0;
  transition: var(--transition);
}
.ho-grid span:hover { background: var(--text); color: var(--bg); }
@media (min-width: 900px) { .ho-grid { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); } .ho-grid span { font-size: 30px; } }

/* ── About ───────────────────────────────────────────────────────────────── */
.ho-faq { margin: 0; display: grid; gap: 0 clamp(20px, 3vw, 48px); grid-template-columns: minmax(0, 1fr); }
.ho-faq > div { padding: 18px 0 22px; border-top: 1px solid var(--divider); }
.ho-faq dt { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.ho-faq dd { margin: 6px 0 0; max-width: 34em; font-size: 15px; line-height: 1.6; letter-spacing: -.01em; color: var(--text-secondary); text-wrap: pretty; }
.ho-faq a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--control-border); white-space: nowrap; }
.ho-faq a:hover { border-color: var(--text); }
@media (min-width: 760px) { .ho-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ho-faq { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ho-page > section { scroll-margin-top: calc(var(--pl-bar-phone) - 1px); } }
