/* aud.css · the two audience pages: /energy (energy.html) and /accounts (accounts.html).
   Loaded after /art.css and /tools.css. It adds only what these pages need that the Tools gallery does not have:

     .aud-wrap            the page column (same width and gutters as the gallery).
     .aud-head            the masthead: eyebrow, the headline on one line, then the pitch (.aud-pitch) in two columns. One column under 900px.
     .aud-body            the ruled part under the masthead; holds .aud-sec ("Try these now", "Built").
     .aud-plates          on ul.plates: four gallery plates in one row. Under 600px each plate is a row: small drawing, name, line.
     .aud-built           the "Built" cards: article.aud-card (h3 + .aud-tag, .aud-say, .aud-text, .aud-meta, .aud-links, .aud-impact).
     .aud-close           the last row: one line of background, then the CV actions and the email address.

   Everything else is the gallery's own: the tokens, .bar, .eyebrow, .group-title, a.plate and its parts, .btn, .label, .private-mark.
   No new colours, no new fonts. Light theme only, no external requests.
   Aim: the whole page in one screen at 1440 by 900, and a short scroll at 390 wide.
   JavaScript off: every word and link is plain HTML; only the drawings are missing (tools.css closes the plates up). */

.aud-wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.bar-links { display: flex; align-items: center; gap: 26px; }

/* ---------- masthead ---------- */
.aud-head { padding-top: 14px; }
.aud-head .eyebrow { display: flex; flex-wrap: wrap; gap: 0 .75em; }
.aud-head .eyebrow i { font-style: normal; color: var(--clay); }
/* 48px: the longer headline still fits one line of the page column in a wider serif than the first choice */
.aud-head h1 { font-size: 48px; line-height: 1.06; margin-top: 8px; text-wrap: balance; }
.aud-pitch { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: baseline; gap: 8px 56px; margin-top: 12px; }
.aud-pitch.has-list { grid-template-areas: "lead list" "rule list"; grid-template-rows: auto 1fr; }
.aud-pitch.has-list .aud-lead { grid-area: lead; }
.aud-pitch.has-list .aud-hard { grid-area: list; }
.aud-pitch.has-list .aud-rule { grid-area: rule; }
.aud-lead { font-family: var(--serif); font-size: 19px; line-height: 1.34; }
.aud-more { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.aud-nb { white-space: nowrap; }
.aud-hard li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.48; }
.aud-hard li::before { content: ""; position: absolute; left: 0; top: .74em; width: 10px; height: 1px; background: var(--clay); }
.aud-rule { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.3; }

/* ---------- the ruled body: sections with a gallery group title ---------- */
.aud-body { margin-top: 16px; padding-top: 13px; border-top: 1.5px solid var(--ink); }
.aud-sec + .aud-sec { margin-top: 18px; }
.aud-sec-head { display: flex; align-items: center; gap: 16px; }
.aud-sec-head .group-title { flex: 1; min-width: 0; }
.aud-aside { flex: none; display: flex; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); }

/* ---------- "Try these now": four plates in one row ---------- */
.aud-plates { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 12px; }
.aud-plates .plate { padding: 11px 18px 15px; }
.aud-plates .plate-art { height: 110px; margin: 0 auto 8px; }
@media (min-width: 1021px) {
  .aud-plates.is-tall .plate-art { height: 130px; }   /* a page with room to spare shows the drawings larger */
}
.aud-plates .plate-name { font-size: 21px; padding-top: 10px; }
.aud-plates .plate-line { font-size: 14.5px; margin-top: 6px; }
/* names and lines sit on shared rows, so the four plates line up whatever a name wraps to */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1021px) {
    .aud-plates { grid-template-rows: auto auto 1fr; row-gap: 0; }
    .aud-plates > li, .aud-plates .plate { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  }
}

/* ---------- "Built": project cards ---------- */
.aud-built { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 12px; }
.aud-built.is-two { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.aud-card { min-width: 0; padding: 14px 20px 16px; background: var(--cream); border: 1px solid var(--rule); border-radius: 2px; }
.aud-card.is-wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); grid-template-areas: "head text" "links meta"; align-items: start; gap: 6px 44px; }
.aud-card.is-wide .aud-card-head { grid-area: head; }
.aud-card.is-wide .aud-text { grid-area: text; margin-top: 3px; }
.aud-card.is-wide .aud-meta { grid-area: meta; margin-top: 0; align-self: center; }
.aud-card.is-wide .aud-links { grid-area: links; margin-top: 0; }
.aud-card h3 { font-family: var(--serif); font-weight: 700; font-size: 23px; line-height: 1.16; letter-spacing: -.012em; }
.aud-tag {
  margin-left: 8px; vertical-align: .26em; white-space: nowrap;
  font-family: var(--sans); font-weight: 600; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-deep);
}
.aud-say { margin-top: 3px; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.3; }
.aud-text { margin-top: 6px; font-size: 14.5px; line-height: 1.48; color: var(--ink-soft); }
.aud-meta { margin-top: 7px; font-size: 12.5px; line-height: 1.45; color: var(--ink-faint); }
.aud-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 8px; font-size: 14px; }
.aud-links a { padding: 3px 0 2px; border-bottom: 1px solid var(--rule-strong); }
.aud-links a:hover { border-bottom-color: var(--clay); }
/* the figures: the CV's impact row */
/* column weights follow the captions, so each one sets in two lines; a wider font only costs a third line */
.aud-impact { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, .98fr) minmax(0, 1.4fr); gap: 12px 14px; margin-top: 12px; }
.aud-impact li { padding-top: 7px; border-top: 1.5px solid var(--clay); font-size: 12px; line-height: 1.38; color: var(--ink-soft); text-wrap: balance; }
.aud-impact strong { display: block; margin-bottom: 2px; font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; color: var(--ink); font-variant-numeric: lining-nums; }

/* ---------- the closing row: background, then the CV and the address ---------- */
.aud-close {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 40px;
  margin-top: 14px; padding: 12px 0 20px; border-top: 1px solid var(--rule);
}
.aud-bg { flex: 1 1 0; min-width: 0; max-width: 46em; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.aud-bg .label { margin-right: 10px; }
.aud-actions { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.aud-mail { margin-left: 10px; padding: 6px 0 4px; border-bottom: 1px solid var(--rule-strong); font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.aud-mail:hover { border-bottom-color: var(--clay); }

/* ---------- narrower screens ---------- */
@media (max-width: 1020px) {
  .aud-plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aud-plates .plate-art { height: 132px; }
  .aud-close { display: block; padding-bottom: 30px; }
  .aud-bg { max-width: none; }
  .aud-actions { margin-top: 14px; }
}
@media (max-width: 900px) {
  .aud-pitch, .aud-pitch.has-list { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; grid-template-rows: none; }
  .aud-pitch.has-list .aud-lead, .aud-pitch.has-list .aud-hard, .aud-pitch.has-list .aud-rule { grid-area: auto; }
  .aud-built.is-two { grid-template-columns: minmax(0, 1fr); }
  .aud-card.is-wide { display: block; }
  .aud-card.is-wide .aud-text { margin-top: 6px; }
  .aud-card.is-wide .aud-meta { margin-top: 7px; }
  .aud-card.is-wide .aud-links { margin-top: 8px; }
  .aud-impact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .aud-wrap { padding: 0 16px; }
  .bar-links { gap: 8px; }
  .bar-links a { min-width: 44px; text-align: center; }
  .aud-head { padding-top: 16px; }
  .aud-head .eyebrow { display: block; letter-spacing: .1em; }
  .aud-head .eyebrow span { display: block; }
  .aud-head .eyebrow i { display: none; }
  .aud-head h1 { font-size: 36px; line-height: 1.04; margin-top: 6px; }
  .aud-pitch { margin-top: 10px; gap: 9px; }
  .aud-lead { font-size: 18.5px; }
  .aud-more, .aud-hard li { font-size: 15.5px; }
  .aud-body { margin-top: 18px; }
  .aud-sec + .aud-sec { margin-top: 24px; }
  .aud-sec-head .group-title { padding: 0; }
  .aud-card { padding: 14px 16px 16px; }
  .aud-tag { display: block; margin: 5px 0 0; white-space: normal; font-size: 10.5px; }
  .aud-say { margin-top: 5px; }
  .aud-text { font-size: 15.5px; }
  .aud-meta { font-size: 13.5px; }
  .aud-links { font-size: 15.5px; }
  .aud-links a { padding: 10px 0 8px; }
  .aud-impact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .aud-impact li { font-size: 13.5px; }
  .aud-card.is-wide .aud-links { margin-top: 4px; }
  .aud-close { margin-top: 22px; padding: 16px 0 34px; }
  .aud-bg { font-size: 15px; }
  .aud-bg .label { display: block; margin: 0 0 4px; }
  .aud-actions .btn { flex: 1 1 100%; min-height: 46px; font-size: 15px; }
  .aud-mail { margin-left: 0; padding: 9px 0 7px; }
}
@media (max-width: 600px) {
  .aud-sec-head { flex-wrap: wrap; gap: 6px 16px; }
  .aud-sec-head .group-title { flex: 1 1 100%; }
  /* a plate becomes a row: the drawing small on the left, the name and the line beside it */
  .aud-plates { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .aud-plates .plate { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; column-gap: 14px; padding: 13px 14px 14px; }
  .aud-plates .plate-art { grid-column: 1; grid-row: 1 / span 2; width: 112px; height: 68px; margin: 1px 0 0; }
  .aud-plates .plate-name { grid-column: 2; grid-row: 1; padding-top: 0; border-top: 0; font-size: 20px; }
  .aud-plates .plate-line { grid-column: 2; grid-row: 2; margin-top: 4px; font-size: 15px; }
  .aud-aside { margin-left: 4px; }
  html:not(.js) .aud-plates .plate { display: flex; }
  html:not(.js) .aud-plates .plate-name { padding-top: 0; }
}
@media print {
  .aud-actions .btn { border-color: var(--rule-strong); }
}
