﻿/* Proficio Consulting Group: the inner pages (services, people, posts, lists, Join Our Team).
   Reads tokens.css and builds on base.css. Order: the page head, reading text, side lists, the contact band,
   then each page type. Every page is a run of full-width zones: navy, white and the light ground. */

/* ---------- the page head: every inner page opens on solid navy ---------- */
.page-head { padding-block: var(--s-8) var(--s-7); }
.page-head__in { display: grid; gap: var(--s-4); align-content: start; }
.page-head h1 { font-size: var(--size-page); font-weight: 500; font-stretch: 100%; line-height: var(--leading-tight);
  letter-spacing: -0.02em; max-width: 24ch; color: var(--on-navy); }
.page-head .lead { color: var(--on-navy-soft); }

/* A line of kinds or a role under the h1: small capitals on a thin green rule, part of the heading block. */
.kinds { font-family: var(--font-head); font-size: var(--size-label); font-stretch: var(--wdth-label); font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--track-label); line-height: 1.6; color: var(--on-navy-soft);
  padding-top: var(--s-4); border-top: var(--rule) solid var(--accent-on-navy); justify-self: start; }

/* The meta line of a post, under its title: category, date, author. Each item wraps whole. */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-5); min-height: var(--tap); }
.meta > * { white-space: nowrap; }
.meta a { display: inline-flex; align-items: center; min-height: var(--tap); }
.meta__cat { color: var(--accent-ink); }
.page-head .meta { color: var(--on-navy-soft); }
.page-head .meta__cat { color: var(--accent-on-navy); }

/* ---------- the body grid: a reading column and a side column ---------- */
.page-body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s-7) var(--s-8);
  padding-block: var(--block); align-items: start; }
.page-side { display: grid; gap: var(--s-6); align-content: start; }
@media (min-width: 62.01rem) { .page-body--list .page-side { position: sticky; top: var(--s-6); } }

/* Reading text: 62 to 68 characters a line, more space above a heading than below it. */
.prose { max-width: var(--measure); font-size: var(--size-lead); line-height: 1.65; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2, .prose h3 { font-size: var(--size-h3); font-weight: 600; line-height: 1.25; margin-top: var(--s-7); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .ticks { display: grid; gap: var(--s-3); }
.prose li, .ticks li { position: relative; padding-left: var(--s-5); }
.prose li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: var(--s-3);
  height: var(--rule); background: var(--accent); }
/* The opening paragraph of an article, a news item or a biography, set as its lead. */
.prose--lead > p:first-child { font-size: var(--size-lead-lg); line-height: 1.5; color: var(--ink); margin-bottom: var(--s-5); }
.prose--lead > p:not(:first-child), .prose--lead > ul { color: var(--ink-soft); }

/* A second level: indented, quieter, with its own hairline marker. A third level steps in again. */
.ticks ul, .prose ul ul { display: grid; gap: var(--s-2); margin-top: var(--s-3); color: var(--ink-soft); font-size: var(--size-small); }
.ticks ul li::before, .prose ul ul li::before { width: var(--s-2); height: var(--hair); background: var(--ink-soft); }

/* Side lists: a small heading on a thin green rule, each entry on a hairline; the page you are on drawn solid. */
.side-list h2, .facts h2 { margin-bottom: var(--s-3); }
.side-list ul, .facts ul { border-top: var(--rule) solid var(--accent); }
.side-list li { border-bottom: var(--hair) solid var(--line); }
.side-list a { display: flex; align-items: center; min-height: 3rem; padding: var(--s-2) 0; color: var(--ink);
  font-family: var(--font-head); font-size: var(--size-small); font-weight: 500; line-height: 1.35; text-decoration-color: transparent; }
.side-list a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.side-list a[aria-current] { background: var(--navy); color: var(--on-navy); padding-inline: var(--s-3); }

/* ---------- the contact band: who to reach, near the foot of the page ---------- */
/* Navy, full width: the photograph with the name and role, then the old site's own sentence as the band's statement
   and every way to reach the person as plain links on a thin green underline. */
.contact-band { padding-block: var(--block); }
.contact-band__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-6) var(--s-8); align-items: center; }
.contact-band__who { display: grid; gap: var(--s-4); }
.contact-band__photo { width: var(--portrait-md-band); }
.contact-band__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.contact-band__name { font-family: var(--font-head); font-stretch: var(--wdth-head); font-weight: 700; font-size: var(--size-h3);
  letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; margin-bottom: var(--s-1); }
.contact-band .label { color: var(--on-navy-soft); }
.contact-band__say { display: grid; gap: var(--s-5); }
.contact-band__about { font-family: var(--font-head); font-size: var(--size-title); font-weight: 300; line-height: 1.2;
  letter-spacing: -0.01em; max-width: 26ch; text-wrap: balance; }
.contact-band__reach { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-7); }
.contact-band__reach .icon-link { font-size: var(--size-lead); font-weight: 600; text-decoration-line: underline;
  text-decoration-color: var(--accent-on-navy); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.contact-band__reach .icon-link:hover { text-decoration-color: currentColor; }
.contact-band--plain .contact-band__in { grid-template-columns: minmax(0, 1fr); }
.contact-band--plain .contact-band__about { max-width: 34ch; }

/* ---------- service pages ---------- */
/* The head: the words on the left; the banner photograph from the middle of the page to its right edge, the full
   height of the head. The box carries the file's own size as its limit, so the picture is never drawn above it. */
.page-head--service { display: grid; align-items: center; min-height: var(--head-min); }
.page-head--service .page-head__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
.page-head__say { display: grid; gap: var(--s-4); align-content: start; }
.page-head__say .lead { font-size: var(--size-lead-lg); line-height: 1.5; max-width: 55ch; margin-top: var(--s-2); }
.page-head__pic { position: absolute; top: 0; bottom: 0; right: 0; width: calc(50vw - var(--s-6)); overflow: hidden; }

/* The capabilities: a grid of blocks, each a heading on a thin green rule with its list beneath. */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-8); align-items: start; }
.group { display: grid; gap: var(--s-4); align-content: start; padding-top: var(--s-4); border-top: var(--rule) solid var(--accent); }
.group h2 { font-size: var(--size-h3); font-weight: 700; line-height: 1.25; max-width: 28ch; }
.group .ticks { color: var(--ink-soft); }
.group .ticks > li::before { background: var(--ink-soft); height: var(--hair); }

/* Related case studies: rows with the home page's wipe. */
.related__title { font-size: var(--size-h2); font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--s-5); }

/* ---------- person pages ---------- */
/* The photograph at its own size on the left, the name and role beside it. */
.person-head { display: grid; grid-template-columns: var(--portrait-lg) minmax(0, 1fr); gap: var(--s-7); align-items: end; }
.person-head__photo { width: var(--portrait-lg); max-width: 100%; }
.person-head__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person-head__say { display: grid; gap: var(--s-4); padding-bottom: var(--s-2); }
.person-head h1 { max-width: none; }
/* The biography: its first paragraph as the lead on a thin green rule in the left column, the rest beside it. */
.bio { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-8); align-items: start; }
.bio > p:first-child { grid-column: 1; grid-row: 1 / span 12; margin: 0; padding-top: var(--s-5); border-top: var(--rule) solid var(--accent); }
.bio > p:not(:first-child) { grid-column: 2; max-width: var(--measure); }
.bio > p:nth-child(2) { margin-top: 0; padding-top: var(--s-5); }
/* The fact lists as one block on the light ground: short lists side by side, a long list across the sheet in columns. */
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); align-items: start; }
.facts li { padding-block: var(--s-3); line-height: 1.45; font-size: var(--size-small); border-bottom: var(--hair) solid var(--line);
  break-inside: avoid; }
.facts--wide { grid-column: 1 / -1; }
.facts--wide ul { columns: 3; column-gap: var(--s-7); padding-top: var(--s-1); }

/* ---------- posts ---------- */
.page-head--post h1 { max-width: 24ch; }
.post-pic { display: block; overflow: hidden; }
/* A case study's picture: a wide band under the head. */
.post-band { height: var(--band-pic); margin-inline: auto; }
/* An article's or news item's picture: whole, at the top of the side column. */
.page-body--post { grid-template-areas: "main pic" "main side"; grid-template-rows: auto 1fr; }
.page-body--post > .post { grid-area: main; }
.page-body--post > .post-pic { grid-area: pic; }
.page-body--post > .page-side { grid-area: side; }
.post-side-pic.is-photo img { height: auto; }
.post-side-pic.is-graphic { padding: var(--s-5); }

/* A case study's parts as zones: the problem on the light ground, the solution on white, the benefits on navy.
   The heading stands in its own column on a thin green rule, the words beside it. */
.zone { padding-block: var(--block); }
.zone--first { background: var(--paper-lot); }
.zone__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-5) var(--s-8); align-items: start; }
.zone__title { font-size: var(--size-h2); font-weight: 600; letter-spacing: -0.01em; line-height: var(--leading-heading);
  padding-top: var(--s-4); border-top: var(--rule) solid var(--accent); }
.zone.navy .zone__title { border-top-color: var(--accent-on-navy); }
.zone.navy .prose li::before { background: var(--accent-on-navy); }
.zone .prose { padding-top: var(--s-4); }

/* What follows a post: where it is filed, then the previous and next posts as two rows. */
.posted-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-5); }
.post--single .posted-in { margin-top: var(--s-7); padding-top: var(--s-3); border-top: var(--hair) solid var(--line); }
.posted-in a { display: inline-flex; align-items: center; min-height: var(--tap); font-family: var(--font-head); font-weight: 600; }
.post-nav { margin-top: var(--s-4); }

/* ---------- list pages: each post in full, one clearly separate article after another ---------- */
.post--listed { display: grid; gap: var(--s-4); }
.post--listed + .post--listed { margin-top: var(--s-8); padding-top: var(--s-7); border-top: var(--rule-top) solid var(--navy); }
.post__title { font-size: var(--size-h2); font-weight: 600; letter-spacing: -0.01em; max-width: 26ch; }
.post--listed .meta { margin-top: calc(-1 * var(--s-3)); }
.post__title a { color: var(--ink); text-decoration-color: transparent; text-decoration-thickness: 2px; }
.post__title a:hover { text-decoration-color: var(--accent); }
.post--listed .post-pic.is-photo { aspect-ratio: 16 / 7; }
.post--listed .post-pic.is-graphic { padding: var(--s-5); width: fit-content; max-width: 100%; }
.post--listed .post-pic.is-graphic img { max-height: 16rem; width: auto; }
/* The zones inside a listed post, at a tighter scale: three blocks, one under another. */
.post--listed .zone { padding: var(--s-5) var(--s-6); margin-top: calc(-1 * var(--s-4)); }
.post--listed .zone:first-of-type { margin-top: 0; }
.post--listed .zone--mid { border-inline: var(--hair) solid var(--line); }
.post--listed .zone__title { font-size: var(--size-h3); }
.post--listed .zone .prose { font-size: var(--size-body); }

/* ---------- Join Our Team ---------- */
.join-text { font-family: var(--font-head); font-size: var(--size-title); font-weight: 300; line-height: 1.25;
  letter-spacing: -0.01em; max-width: 30ch; padding-top: var(--s-5); border-top: var(--rule) solid var(--accent); }
.join-band .contact__big { padding-bottom: 0; border-bottom: 0; }

/* ---------- phones and narrow screens ---------- */
@media (max-width: 62rem) {
  .page-body, .page-head--service .page-head__in, .groups, .zone__in, .bio { grid-template-columns: minmax(0, 1fr); }
  .bio > p:first-child, .bio > p:not(:first-child) { grid-column: 1; grid-row: auto; }
  .bio > p:first-child { margin-bottom: var(--s-4); }
  .bio > p:nth-child(2) { padding-top: 0; }
  .page-body { gap: var(--s-7); }
  .page-body--post { grid-template-areas: "pic" "main" "side"; grid-template-rows: auto; }
  .post-side-pic { max-width: 30rem !important; }
  .page-head--service { display: block; padding-bottom: 0; min-height: 0; }
  .page-head__pic { position: static; width: auto; aspect-ratio: 16 / 9; margin-top: var(--s-7); }
  .contact-band__in { grid-template-columns: minmax(0, 1fr); }
  .contact-band__who { grid-template-columns: auto minmax(0, 1fr); align-items: end; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
  .facts--wide ul { columns: 2; }
}
@media (max-width: 40rem) {
  .page-head { padding-block: var(--s-7) var(--s-6); }
  .page-head--service { padding-bottom: 0; }
  .page-head__pic { margin-top: var(--s-6); }
  .person-head { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .person-head__photo { width: var(--portrait-md); }
  .page-body { padding-block: var(--s-7); }
  .groups { gap: var(--s-6); }
  .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .facts--wide ul { columns: 1; }
  .contact-band__who { grid-template-columns: minmax(0, 1fr); }
  .contact-band__reach { display: grid; gap: 0; }
  .post--listed .zone { padding: var(--s-5) var(--s-4); }
  .post--listed + .post--listed { margin-top: var(--s-7); padding-top: var(--s-6); }
}
