/* Metr Grotesk specimen page (/specimen/). Built with style.css; generated markup comes from the specimen build script. */

.spec .cap { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.spec .sl { margin-bottom: 32px; padding-bottom: 10px; border-bottom: 2px solid currentColor; }
.top nav a[aria-current] { text-decoration: underline; }

/* hero */
.spec-hero .top { position: relative; z-index: 2; }
.spec-hero .fitbox { margin-top: 24px; }
.spec-hero .fit { font-weight: 700; line-height: .8; letter-spacing: -.02em; }
.spec-hero .fit.m { color: var(--kraft); }
.hero-foot { align-items: center; padding: 28px 0 40px; border-top: 2px solid var(--ink); margin-top: 28px; }
.hero-foot .btn { margin-top: 0; }
.spec-hero .btn, .spec-cta .btn { background: var(--ink); color: var(--kraft); }
.spec-hero .btn:hover, .spec-cta .btn:hover { background: var(--kraft); color: var(--ink); }
.btn.ghost { background: transparent !important; color: var(--ink) !important; border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink) !important; color: var(--kraft) !important; }

/* about */
.about { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; }
.about h2 { margin-top: 0; }
.about .lede { margin-bottom: 16px; max-width: 34em; }
.fact { border-top: 2px solid var(--ink); padding: 10px 0 12px; display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.fact .k { font-size: 14px; font-weight: 700; }
.fact .v { font-size: 17px; line-height: 1.35; }

/* family */
.family { list-style: none; }
.family li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 110px; align-items: baseline; gap: 16px;
  border-top: 1.5px solid rgba(226,181,133,.5); padding: 8px 0 10px;
  font-size: clamp(32px, 5vw, 64px); line-height: 1.1;
}
.family .smp { font-size: .55em; opacity: .75; white-space: nowrap; overflow: hidden; }
.family .n { font-size: 14px; font-weight: 700; font-style: normal; text-align: right; }

/* variable */
.vgrid { display: grid; grid-template-columns: repeat(7, 1fr); margin: 32px 0 12px; }
.vgrid span { font-size: clamp(34px, 8.6vw, 132px); line-height: 1.08; }
.vaxis { display: flex; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 8px; font-size: 14px; font-weight: 700; }

/* display */
.dline + .dline { margin-top: clamp(32px, 6vw, 72px); }
.dline .fit { line-height: .98; letter-spacing: -.01em; }
.dline .cap { margin-top: 8px; border-top: 2px solid currentColor; padding-top: 6px; color: var(--ink); }
.c-red { color: var(--red); }

/* waterfall */
.wf { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: baseline; border-top: 1.5px solid rgba(28,28,28,.35); padding: 4px 0; }
.wf .wt { white-space: nowrap; overflow: hidden; line-height: 1.12; letter-spacing: -.005em; }

/* editorial */
.ed { display: grid; grid-template-columns: 9fr 3fr; gap: 40px; }
.ed-head { font-size: clamp(40px, 6vw, 80px); line-height: 1; font-weight: 700; letter-spacing: -.01em; margin-bottom: 16px; }
.ed-deck { font-size: clamp(20px, 2.2vw, 28px); font-weight: 300; line-height: 1.25; margin-bottom: 28px; max-width: 30em; }
.ed-body { columns: 3 240px; column-gap: 28px; font-size: 16px; line-height: 23px; hyphens: auto; }
.ed-body p { text-indent: 1.4em; }
.ed-body p:first-child { text-indent: 0; }
.ed-body p:first-child::first-letter { font-weight: 700; font-size: 66px; float: left; line-height: .82; margin: 4px 8px 0 0; color: var(--red); }
.ed-body .sc { font-feature-settings: 'c2sc', 'smcp'; }
.ed-body .frac { font-feature-settings: 'frac'; }
.ed-quote { border-top: 6px solid var(--red); padding-top: 16px; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 500; font-style: oblique 10deg; color: var(--red); align-self: start; }
.caps { display: flex; flex-wrap: wrap; gap: 8px 32px; border-top: 2px solid currentColor; padding-top: 8px; font-size: 13px; font-weight: 700; margin-top: 32px; }

/* text sizes */
.ts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 40px; }
.ts-row:nth-child(3) { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ts-row3 { margin-bottom: 0; }
.ts .cap { border-top: 2px solid currentColor; padding-top: 6px; margin-bottom: 10px; }
.ts p { hyphens: auto; }
.fit-ts { font-weight: 700; font-size: clamp(32px, 4.5vw, 64px); line-height: 1.05; letter-spacing: -.01em; }

/* italic */
.it-big { font-weight: 700; font-style: oblique 10deg; line-height: .95; letter-spacing: -.01em; }
.it-thin { font-weight: 100; font-style: oblique 10deg; line-height: 1.1; color: var(--kraft); margin-top: 4px; }
.it-aa { display: flex; justify-content: space-between; font-size: clamp(48px, 12vw, 180px); line-height: 1.05; font-style: oblique 10deg; margin: 24px 0; }
.it-row { border-top: 2px solid var(--ink); padding-top: 16px; }
.it-text { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; font-style: oblique 10deg; columns: 2 300px; column-gap: 40px; }

/* character set */
.cs-hint { margin-bottom: 24px; }
.cs-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.cs-group { margin-bottom: 20px; }
.cs-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); border-left: 1px solid rgba(28,28,28,.3); border-top: 1px solid rgba(28,28,28,.3); }
.cs-grid .g {
  height: 58px; display: flex; align-items: center; justify-content: center; font-size: 28px; cursor: pointer;
  border-right: 1px solid rgba(28,28,28,.3); border-bottom: 1px solid rgba(28,28,28,.3);
}
.cs-grid .g:hover, .cs-grid .g.on { background: var(--ink); color: var(--kraft); }
.cs-view { position: sticky; top: 24px; background: var(--ink); color: var(--kraft); padding: 16px 20px 20px; }
.cs-big { font-size: 220px; line-height: 1.2; text-align: center; color: var(--red); }
.cs-info { font-size: 14px; font-weight: 700; border-top: 2px solid var(--kraft); padding-top: 8px; }

/* features */
.feats { width: 100%; border-collapse: collapse; }
.feats td { border-top: 1.5px solid rgba(28,28,28,.4); padding: 10px 0; vertical-align: baseline; }
.feats .code { font-size: 14px; font-weight: 700; width: 70px; }
.feats .desc { font-size: 16px; width: 28%; padding-right: 16px; }
.feats .off, .feats .on { font-size: clamp(22px, 3vw, 40px); line-height: 1.15; }
.feats .on { color: var(--red); }
.feats .arr { font-size: 22px; width: 48px; text-align: center; }

/* figures */
.fig-big { font-weight: 700; line-height: .85; letter-spacing: -.01em; color: var(--red); }
.fig-thin { font-weight: 100; line-height: .9; margin-top: 12px; }
.fig-cap { margin-top: 12px; }
.fig-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; margin-top: 56px; }
.fig-row .cap { border-top: 2px solid currentColor; padding-top: 6px; margin-bottom: 12px; }
.tt { border-collapse: collapse; width: 100%; font-size: 20px; font-variant-numeric: tabular-nums; }
.tt th { text-align: left; font-size: 14px; padding-bottom: 4px; }
.tt td { padding: 4px 0; border-top: 1px solid rgba(226,181,133,.35); }
.tt td:not(:first-child) { text-align: right; }
.fig-frac { font-size: 48px; line-height: 1.2; font-weight: 500; }
.fig-arrows { font-size: 60px; line-height: 1.1; font-weight: 300; letter-spacing: .06em; }

/* languages */
.langs { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; font-weight: 500; margin-bottom: 32px; max-width: 56em; }
.pgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); column-gap: 48px; }
.pg { border-top: 1.5px solid rgba(28,28,28,.4); padding: 8px 0 10px; display: grid; grid-template-columns: 110px 1fr; align-items: baseline; }
.pg .pgt { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.3; }

/* call to action */
.lics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.lic { border-top: 2px solid var(--ink); padding-top: 10px; }
.lic .k { font-size: 36px; font-weight: 700; margin-bottom: 6px; }
.lic .v { font-size: 18px; line-height: 1.4; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }

@media (max-width: 860px) {
  .about, .ed, .cs-wrap { grid-template-columns: 1fr; }
  .cs-view { order: -1; top: 0; z-index: 2; display: flex; align-items: center; gap: 20px; padding: 8px 16px; }
  .cs-big { font-size: 88px; min-width: 1.3em; }
  .cs-info { border-top: 0; padding-top: 0; }
  .family li { grid-template-columns: 1fr auto; }
  .family .smp { display: none; }
  .wf { grid-template-columns: 1fr; }
  .feats .desc { display: none; }
  .feats .arr { width: 28px; }
  .pgs { grid-template-columns: 1fr; }
  .pg { grid-template-columns: 1fr; }
}
