/* Index pages (blog, careers), role pages, and pages without a dedicated layout. */

/* entries: each post in its own ground block; text left, the peek glyph right */
.entries { margin: var(--sp-8) 0 var(--sp-10); }
.entry { margin: 0 0 var(--sp-6); background: var(--ground); padding: var(--sp-6) var(--sp-8) var(--sp-4); }
.entry--peek {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-8);
  grid-template-areas: "meta peek" "title peek" "desc peek";
}
.entry--peek .entry__meta { grid-area: meta; }
.entry--peek .entry__title { grid-area: title; }
.entry--peek .entry__desc { grid-area: desc; }
.entry--peek .entry__peek { grid-area: peek; align-self: center; }
.entry__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) 0;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  margin-bottom: var(--sp-2);
}
.entry__meta span + span::before { content: '\00B7'; margin: 0 var(--sp-2); }
.entry__title {
  font-family: var(--font-sans); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 var(--sp-2);
}
.entry__title a { color: var(--ink); text-decoration: none; }
.entry__title a:hover { color: var(--accent); }
.entry__title code { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0.02em; }
.entry__desc { margin: 0 0 var(--sp-2); font-size: 13.5px; line-height: 1.55; color: var(--ink); max-width: 62ch; }
.entry__desc code { font-family: var(--font-mono); font-size: 0.92em; }
/* peek: a flat brand glyph derived from the post's signature figure (static/peeks/, inlined
   so currentColor is the brand token); the card is its ground */
.entry__peek { display: block; width: 96px; height: 96px; color: var(--brand); }
.entry__peek svg { display: block; width: 100%; height: 100%; }

/* prose on index, role, and plain pages */
.prose--page > h1 { margin: 0 0 var(--sp-4); }
.prose--page h3 { margin-top: var(--sp-7); }
.prose--page ul { padding-left: 1.2em; }
.prose--page li { margin-bottom: var(--sp-2); }

/* role page */
.role-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) 0;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  margin: -6px 0 var(--sp-6);
}
.role-meta span + span::before { content: '\00B7'; margin: 0 var(--sp-2); }
.lede { font-weight: 600; font-size: 15.5px; line-height: 1.55; margin: 0 0 var(--sp-6); max-width: 60ch; }
.role .prose h2 { font-size: 1.15rem; margin-top: var(--sp-8); }
.role .readmore { margin-top: var(--sp-2); }

/* two widths on the site: the 840px reading column (--column, every text page, the careers
   page included) and 1200px for the Translation Explorer's graph only. The explorer page's
   eyebrow, title, and description (.explorer-intro, explorer.css) sit on the reading column. */
.explorer-page { --column: 1200px; }

/* careers page: the content splits into two columns (one div per column in the Markdown) at
   ≥ 900px; the roles block below runs the full column */
.cols { display: grid; align-items: start; column-gap: var(--sp-12); margin-top: var(--sp-8); }
.cols > div > :first-child { margin-top: 0; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } .roles > h3 { margin-top: var(--sp-9); } }
.careers-index .prose h3 { font-size: 20px; line-height: 1.3; margin-bottom: var(--sp-4); }
/* Open roles: compact headings beside readable descriptions, stacked on phones. */
.role-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.role-summary {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--sp-6); padding: var(--sp-4) var(--sp-5); background: var(--ground);
}
.role-summary h4 { margin: 0 0 var(--sp-2); font-size: 17px; line-height: 1.3; }
.role-summary .role-summary__salary {
  margin: 0; font-family: var(--font-mono); font-size: 12px;
}
.role-summary .role-summary__description { margin: 0; font-size: 15px; line-height: 1.6; }
@media (max-width: 640px) {
  .role-summary { grid-template-columns: 1fr; gap: var(--sp-2); }
}

@media (max-width: 640px) {
  .entry__title { font-size: 1.25rem; }
  .entry { padding: var(--sp-5) var(--sp-5) var(--sp-3); }
  /* phone: the peek sits beside the date and title; the description runs the full width */
  .entry--peek { column-gap: var(--sp-4); grid-template-areas: "meta peek" "title peek" "desc desc"; }
  .entry__peek { width: 64px; height: 64px; }
}

/* blog index: a card whose post has a headline result (data/blog_headlines.yaml) leads with it. On
   desktop the numbers stand in their own column, so reading down the page is reading the results;
   the title, description and date follow at the right, and the peek glyph shrinks to a corner mark. */
.entry__num { margin: 0; color: var(--ink); }
.entry__fig { font-family: var(--font-sans); font-size: 3.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums lining-nums; }
.entry__fig--mono { font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.04em; }
.entry__unit { font-size: 1.25rem; font-weight: 600; color: var(--brand); }
.entry__numlabel { display: block; margin-top: var(--sp-3); font-size: 13px; line-height: 1.45; color: var(--dim, var(--ink)); }
.entry--num {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr) auto; column-gap: var(--sp-8);
  grid-template-areas: "num title peek" "num desc peek" "num meta peek";
  align-items: start; padding: var(--sp-7) var(--sp-8) var(--sp-6);
}
.entry--num .entry__num { grid-area: num; }
.entry--num .entry__title { grid-area: title; font-size: 1.25rem; }
.entry--num .entry__desc { grid-area: desc; color: var(--dim, var(--ink)); }
.entry--num .entry__meta { grid-area: meta; margin: var(--sp-1) 0 0; }
.entry--num .entry__peek { grid-area: peek; width: 40px; height: 40px; align-self: start; opacity: 0.85; }
@media (max-width: 760px) {
  .entry--num {
    grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-4);
    grid-template-areas: "num peek" "title title" "desc desc" "meta meta";
    padding: var(--sp-5) var(--sp-5) var(--sp-4);
  }
  .entry--num .entry__num { margin-bottom: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line, var(--ink)); }
  .entry__fig { font-size: 2.75rem; }
  .entry__numlabel { margin-top: var(--sp-2); }
}
/* placeholder blocks on the launch pages ({{< placeholder >}}): a ground block with a cyan mono
   label, like the text boxes, standing in for copy that has not landed */
.placeholder { background: var(--ground); padding: var(--sp-4) var(--sp-6); margin: 0 0 var(--sp-5); font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--ink); }
.placeholder__label { display: block; color: var(--cyan); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--sp-2); }

/* the inbound form (layouts/partials/contact-form.html): labels in the prose voice, fields ink-framed on
   paper, square; the send button is a chip on its own (the form markup follows the OSS Verifier sign-up
   from #112). Rules from docs/design-principles: 44px controls, 40px rows (48 on phones), groups twice as
   far apart as the things inside them, a measure of about 60 characters, the site's own focus ring */
.signup { max-width: 640px; margin: var(--sp-6) 0 var(--sp-8); }
.signup__field, .signup fieldset { margin: 0 0 var(--sp-6); }
.signup label, .signup legend { display: block; font-weight: 600; font-size: 15px; line-height: 1.5; margin: 0 0 var(--sp-2); }
.signup fieldset { border: 0; padding: 0; min-width: 0; }
.signup legend { padding: 0; }
.signup input[type=text], .signup input[type=url], .signup input[type=email], .signup textarea {
  display: block; width: 100%; min-height: 44px; padding: var(--sp-2) var(--sp-3);
  border: 1.5px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--font-sans);   /* at 16px or more, iOS Safari does not zoom the page on focus */
}
.signup textarea { min-height: 160px; resize: vertical; }
.signup .signup__choice { display: flex; align-items: center; gap: var(--sp-3); font-weight: 400; min-height: 40px; padding: var(--sp-2) 0; margin: 0; }
.signup__choice input { accent-color: var(--accent); flex: 0 0 auto; width: 16px; height: 16px; margin: 0; }
.signup__send {
  display: inline-block; min-height: 44px; margin: var(--sp-2) 0 0; padding: var(--sp-4) var(--sp-5); border: 0; cursor: pointer;
  background: var(--accent); color: var(--paper);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 12px;
  transition: background-color 120ms cubic-bezier(0.2, 0, 0, 1);
}
.signup__send:hover { background: var(--accent-press); }
.signup__send:active { transform: scale(0.97); }
.signup__send:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.signup__aside { font-size: 14px; max-width: 60ch; }
.talktous__oss { font-size: 13.5px; font-style: italic; }   /* the open-source aside under the title */
.signup__reason { margin: 0 0 var(--sp-5); }
@media (max-width: 640px) {
  .signup .signup__choice { min-height: 48px; padding: var(--sp-3) 0; }
}
