/* thefaceoffice.com, the pages the API renders (container_api/public_pages).
   Discover's language (spec 2026-11-17-public-site-design.md): Helvetica Neue, ink on a warm ground, a soft
   stone for light boxes, square corners, no shadows. Whitespace separates things; rules only inside tables. */
:root {
  --ink: #171715;
  --ground: #f8f8f6;
  --muted: #686863;
  --stone: #efefeb;
  --card-stone: #d9d6cf;
  --on-stone: #55554f;
  --on-ink: #a9a9a2;
  --text: #3a3a37;
  --rule: #dedcd5;
  --white: #ffffff;
  --error: #a01818;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --width: 1344px;
  --card: 140px;
}
* { box-sizing: border-box; }
html { min-width: 320px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
[hidden] { display: none !important; }

.site-header, main, .site-footer {
  width: 100%; max-width: calc(var(--width) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
}

/* Header: the black tile, the claim small beside it, the way in on the right. */
.site-header { display: flex; align-items: center; gap: 20px; padding-top: 28px; }
.logo {
  flex: none; background: var(--ink); color: var(--white); text-decoration: none;
  font-size: 40px; font-weight: 700; letter-spacing: .04em; line-height: 1; padding: 12px 16px 10px;
}
.claim { flex: 0 1 340px; min-width: 0; font-size: 13px; font-weight: 400; line-height: 1.35; color: var(--ink); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 13px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.button, .site-nav .button {
  display: inline-block; background: var(--ink); color: var(--white); text-decoration: none;
  font-weight: 500; padding: 10px 16px; border: 1px solid var(--ink);
}
.site-nav .button:hover { text-decoration: none; background: var(--ground); color: var(--ink); }

main { padding-top: 72px; }

/* Shared text */
.meta { font-size: 12px; color: var(--muted); }
.meta a { color: var(--muted); }
.page-title { font-size: clamp(32px, 4.2vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05;
  max-width: 20ch; margin-bottom: 56px; }
.prose { max-width: 36rem; }
.prose p { font-size: 17px; line-height: 1.6; color: var(--text); }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: 28px; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 16px; }
.empty { font-size: 17px; color: var(--muted); }
.preview-note { display: inline-block; background: var(--stone); font-size: 13px; padding: 10px 14px;
  margin-bottom: 40px; }

/* Key-figure card: portrait like a model card, alternating black and stone, the number large. */
.figure-card {
  aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: 14px; background: var(--ink); color: var(--white); min-width: 0;
}
.figure-card.stone { background: var(--card-stone); color: var(--ink); }
.figure-label { font-size: 11px; line-height: 1.3; color: var(--on-ink); }
.figure-card.stone .figure-label { color: var(--on-stone); }
.figure-value { font-size: 34px; font-weight: 400; letter-spacing: -.04em; line-height: 1; overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums; }

/* An insight: the card beside date, headline and teaser. The headline is the link. */
.insight { display: grid; grid-template-columns: var(--card) minmax(0, 1fr); gap: 24px; align-items: start; }
.insight + .insight { margin-top: 48px; }
.insight.no-figure .insight-text { grid-column: 2; }
.insight h2 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 12px;
  max-width: 34rem; }
.insight h2 a { text-decoration: none; }
.insight h2 a:hover { text-decoration: underline; }
.teaser { font-size: 15px; line-height: 1.55; color: var(--text); max-width: 520px; }
.more { margin-top: 48px; font-size: 13px; }

/* Home: the newest insights on the left; figures and open castings on the right. */
.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.home-about { max-width: 36rem; }
.home-about p { font-size: 19px; line-height: 1.55; color: var(--text); }
.home-about p:first-child { font-size: 26px; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.home-about p + p { margin-top: 1em; }
.home-side > * + * { margin-top: 24px; }

.figures {
  background: var(--ink); color: var(--white); padding: 34px 32px 30px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px;
}
.stat { display: flex; flex-direction: column; min-width: 0; }
.stat-value { font-size: clamp(28px, 8cqi, 46px); font-weight: 400; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-label { font-size: 12px; color: var(--on-ink); margin-top: 8px; }
.figures-box { container-type: inline-size; }
/* Both boxes on the right: the same small heading inside, the same small note under the box. */
.box-title { font-size: 12px; font-weight: 400; color: var(--muted); margin: 0 0 10px; }
.figures .box-title { grid-column: 1 / -1; color: var(--on-ink); margin-bottom: -14px; }
.box-note { margin-top: 10px; font-size: 11px; color: var(--muted); text-align: right; }
.box-note a { color: var(--muted); }

.castings { background: var(--stone); padding: 26px 32px; container-type: inline-size; }
.casting-list { list-style: none; padding: 0; }
.casting { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: baseline;
  padding: 6px 0; font-size: 14px; }
.casting-city, .casting-month { font-size: 12px; color: var(--muted); }
.casting-city { min-width: 0; max-width: 14rem; overflow-wrap: anywhere; }
/* A narrow castings box puts city and month under the title. */
@container (max-width: 460px) {
  .casting { grid-template-columns: minmax(0, 1fr) auto; }
  .casting-title { grid-column: 1 / -1; }
  .casting-city { max-width: none; }
}

/* Recent searches (dev #62): stored summaries only; date and place, the line, then the traits. */
.searches { background: var(--white); padding: 26px 32px; }
.search-list { list-style: none; padding: 0; }
.search { padding: 7px 0; min-width: 0; }
.search-meta { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 12px; color: var(--muted); }
.search-place::before { content: "·"; margin-right: 8px; }
.search-line { font-size: 14px; color: var(--ink); }
.search-traits { font-size: 12px; color: var(--muted); }

/* Insights */
.insights-page .insight-list { max-width: 880px; --card: 160px; }
.pager { display: flex; gap: 32px; margin-top: 72px; font-size: 14px; }

/* One insight: the card beside the text, the body in a readable measure. */
.insight-full { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 56px; max-width: 1000px; }
.insight-full > * { grid-column: 2; }
.insight-full > .figure-card { grid-column: 1; grid-row: 1 / span 6; align-self: start; }
.insight-full h1 { font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -.035em; line-height: 1.06; margin: 8px 0 0;
  max-width: 22ch; }
.figure-card.large { padding: 18px; }
.figure-card.large .figure-label { font-size: 12px; }
.figure-card.large .figure-value { font-size: 48px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--text); max-width: 40rem; margin-top: 28px; }
.body { font-size: 17px; line-height: 1.65; color: var(--text); max-width: 40rem; margin-top: 32px; }
.body p, .body ul, .body ol, .body table { margin: 0 0 1.1em; }
.body ul, .body ol { padding-left: 1.2em; }
.body li + li { margin-top: .3em; }
.body strong { color: var(--ink); font-weight: 500; }
.body table, .figures-table {
  display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.body th, .body td, .figures-table th, .figures-table td {
  text-align: left; padding: 9px 28px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline;
}
.body th, .figures-table th { font-size: 12px; font-weight: 400; color: var(--muted); padding-top: 0; }
.source { font-size: 12px; color: var(--muted); margin-top: 40px; }
.post-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; max-width: 744px;
  margin: 112px 0 0 256px; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.post-nav .newer { grid-column: 2; text-align: right; }
.post-nav-title { font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.post-nav a:hover .post-nav-title { text-decoration: underline; }

/* Monthly overview: the four figures, then quiet bar lists and tables two by two. */
.overview-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px;
  align-items: start; }
.overview-page > * { grid-column: 1 / -1; }
.overview-page > h1 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.035em; line-height: 1.05; }
.overview-page > .meta { margin-top: 12px; }
.overview-page > .figures-box { margin-top: 40px; }
.overview-page > .empty { margin-top: 32px; }
.overview-page .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.overview-page > .overview-section { grid-column: auto; margin-top: 80px; }
.overview-section h2 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.section-note { font-size: 13px; color: var(--muted); margin-top: 6px; max-width: 36rem; }
.overview-section > .bars, .overview-section > .figures-table { margin-top: 20px; }
.bars { list-style: none; padding: 0; }
.bar { display: grid; grid-template-columns: minmax(5rem, 11rem) minmax(0, 1fr) 3.5rem; gap: 14px; align-items: center;
  padding: 5px 0; font-size: 14px; }
.bar-label { min-width: 0; overflow-wrap: anywhere; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.bar-meter {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; margin: 0;
  background: var(--stone); border: 0; border-radius: 0;
}
.bar-meter::-webkit-meter-inner-element { display: block; }
.bar-meter::-webkit-meter-bar { background: var(--stone); border: 0; border-radius: 0; height: 8px; }
.bar-meter::-webkit-meter-optimum-value,
.bar-meter::-webkit-meter-suboptimum-value,
.bar-meter::-webkit-meter-even-less-good-value { background: var(--ink); border-radius: 0; }
.bar-meter::-moz-meter-bar { background: var(--ink); border-radius: 0; }

/* Charts inside an insight: a range per row (low to high, a mark at the median) or a percent bar list.
   The highlighted row is ink; the others recede. */
.body .chart { margin: 36px 0 40px; }
.chart figcaption { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.chart .ranges, .chart .bars { list-style: none; padding: 0; margin: 0; }
.chart li + li { margin-top: 0; }
.range { display: grid; grid-template-columns: minmax(5rem, 11rem) minmax(0, 1fr) 7.5rem; gap: 14px; align-items: center;
  padding: 5px 0; font-size: 15px; }
.range-label { min-width: 0; overflow-wrap: anywhere; color: var(--muted); }
.range-track { display: block; width: 100%; height: 12px; }
.range-span { fill: var(--on-ink); }
.range-mid { fill: var(--muted); }
.range.is-key .range-span, .range.is-key .range-mid { fill: var(--ink); }
.range-value { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); white-space: nowrap; }
.range-from { color: var(--muted); }
.range.is-key .range-label, .range.is-key .range-value, .bar.is-key .bar-label, .bar.is-key .bar-value {
  color: var(--ink); font-weight: 500; }
.chart .bar:not(.is-key) .bar-meter::-webkit-meter-optimum-value { background: var(--on-ink); }
.chart .bar:not(.is-key) .bar-meter::-moz-meter-bar { background: var(--on-ink); }
.range-axis { padding-top: 2px; }
.range-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums; }
/* A map of types for two cities side by side (markdown 'map'): circles placed by likeness, area = share;
   the city's clearly more common types in ink and numbered, the rest grey, the other city as a thin ring. */
.map-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.map-name { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.map-plot { display: block; width: 100%; height: auto; }
.map-ground { fill: var(--stone); }
.map-dot { fill: var(--card-stone); }
.map-dot.is-key { fill: var(--ink); }
.map-ring { fill: none; stroke: var(--muted); stroke-width: .35; stroke-dasharray: 1 .8; }
.map-number { font-size: 3.6px; font-weight: 500; fill: var(--ink); font-variant-numeric: tabular-nums;
  paint-order: stroke; stroke: var(--stone); stroke-width: 1.2px; stroke-linejoin: round; }
.body .map-list { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; line-height: 1.4; counter-reset: none; }
.map-list li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); column-gap: 4px; padding: 3px 0; }
.map-list li::before { content: attr(value); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.map-label { color: var(--ink); }
.map-share { grid-column: 2; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); margin-top: 16px; }
.body .map-legend { margin-bottom: 0; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend svg { width: 12px; height: 12px; flex: none; }
.map-legend .map-ring { stroke-width: .9; stroke-dasharray: 2 1.4; }
@media (max-width: 560px) { .map-panels { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.figures-table td:last-child, .figures-table th:last-child { text-align: right; padding-right: 0; }
.overview-section > .figures-table { display: table; width: 100%; }

/* Castings and contact: text on the left, the form on the right. */
.castings-page > .casting-list { background: var(--stone); padding: 24px 28px; max-width: 880px; }
.castings-page .casting { font-size: 17px; padding: 10px 0; }
.castings-page .casting-city, .castings-page .casting-month { font-size: 14px; }
.castings-page > .empty { max-width: 36rem; }
.agency-request, .contact-section {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start;
}
.agency-request { margin-top: 120px; }
.agency-request > h2 { grid-column: 1; font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.agency-request > p { grid-column: 1; margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--text);
  max-width: 30rem; }
.agency-request > form { grid-column: 2; grid-row: 1 / span 3; }
.contact-section + .contact-section { margin-top: 120px; }

/* Request forms (forms.js sends them) */
form.request { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white); width: 100%; min-width: 0;
  padding: 11px 12px; border: 1px solid var(--muted); border-radius: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { margin: 3px 0 0; accent-color: var(--ink); }
button.submit {
  justify-self: start; font: inherit; font-size: 14px; font-weight: 500; color: var(--white);
  background: var(--ink); border: 1px solid var(--ink); border-radius: 0; padding: 13px 24px; cursor: pointer;
}
button.submit:hover { background: var(--ground); color: var(--ink); }
button.submit:disabled { background: var(--muted); border-color: var(--muted); color: var(--white); cursor: wait; }
.status { min-height: 1.5em; font-size: 14px; }
.status.ok { color: var(--ink); font-weight: 500; }
.status.error { color: var(--error); }

/* About and errors */
.about-page .prose { max-width: 40rem; }
.about-page .prose p { font-size: 19px; line-height: 1.55; }
.about-page .prose p:first-child { font-size: 26px; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
/* Team: square photos on black, the name in a black tile like the logo, the role below. */
.team { margin-top: 120px; }
.team h2 { font-size: 28px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 32px; }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.person figure { margin: 0; }
.person-photo { position: relative; aspect-ratio: 1 / 1; background: var(--ink); overflow: hidden; }
.person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person-name {
  position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--white);
  font-size: 24px; font-weight: 700; letter-spacing: .04em; line-height: 1; padding: 10px 14px 8px;
}
.person-role { margin-top: 12px; font-size: 15px; line-height: 1.4; color: var(--text); }
.error-page h1 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 24px; }
.error-page p { font-size: 17px; color: var(--text); max-width: 36rem; }

/* Footer: small and quiet, space above instead of a rule. */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 160px;
  padding-bottom: 40px; font-size: 13px; color: var(--muted);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 1100px) {
  .overview-page .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .home { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .home-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; }
  .home-side > * + * { margin-top: 0; }
  .insight-full { grid-template-columns: minmax(0, 1fr); }
  .insight-full > *, .insight-full > .figure-card { grid-column: 1; grid-row: auto; }
  .insight-full > .figure-card { width: 180px; margin-top: 32px; }
  .post-nav { margin-left: 0; max-width: 1000px; }
  .overview-page { grid-template-columns: minmax(0, 1fr); }
  .agency-request, .contact-section { grid-template-columns: minmax(0, 1fr); }
  .agency-request > form { grid-column: 1; grid-row: auto; margin-top: 32px; }
  .contact-section > form { margin-top: 32px; }
}
@media (max-width: 720px) {
  main { padding-top: 48px; }
  .site-header { flex-wrap: wrap; gap: 16px; padding-top: 20px; }
  .claim { flex: 1 1 170px; }
  .site-nav { margin-left: 0; width: 100%; gap: 20px; }
  .site-nav .button { margin-left: auto; }
  .home-side { grid-template-columns: minmax(0, 1fr); }
  .page-title { margin-bottom: 40px; }
  .agency-request, .contact-section + .contact-section { margin-top: 96px; }
  .site-footer { margin-top: 120px; }
  .team { margin-top: 96px; }
  .team-list { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 420px; }
}
@media (max-width: 560px) {
  :root { --card: 104px; }
  .insights-page .insight-list { --card: 104px; }
  .insight { gap: 16px; }
  .figure-card { padding: 10px; }
  .figure-value { font-size: 24px; }
  .figures { padding: 28px 22px 24px; gap: 28px 18px; }
  .castings { padding: 22px; }
  .searches { padding: 22px; }
  .castings-page > .casting-list { padding: 18px 20px; }
  .bar { grid-template-columns: minmax(4.5rem, 7.5rem) minmax(0, 1fr) 3rem; gap: 10px; }
  .range { grid-template-columns: minmax(4.5rem, 6.5rem) minmax(0, 1fr) 6.5rem; gap: 10px; font-size: 14px; }
  .post-nav { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 80px; }
  .post-nav .newer { grid-column: 1; text-align: left; }
  .insight-full > .figure-card { width: 150px; }
  .figure-card.large .figure-value { font-size: 36px; }
}
/* Below 390 px the card sits above the text. */
@media (max-width: 389px) {
  .logo { font-size: 32px; padding: 10px 13px 8px; }
  .site-header { gap: 14px; }
  .site-nav { gap: 16px; }
  .insight, .insights-page .insight-list .insight { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .insight .figure-card { width: 120px; }
  .insight.no-figure .insight-text { grid-column: 1; }
  .figure-value { font-size: 26px; }
}
