/* Layout for /om, /blog, /blog/[slug] and /ham-fra-marketing.
   The homepage keeps its own inline layout rules. */

.prose { display: grid; gap: 1.15rem; max-width: 62ch; }
.prose p { margin: 0; }
.h2 { margin: 0 0 1.5rem; max-width: 18ch; }
.label + .h2, .label + h2 { margin-top: 0.9rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.photo-block { display: grid; gap: 0.9rem; }
.photo-block img { width: 100%; }
.note { border-top: 2px solid var(--ink); padding-top: 1.15rem; display: grid; gap: 0.9rem; }
.note p { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card p { margin: 0; }
.num { margin: 0 0 0.8rem; font-family: Anton, Impact, sans-serif; font-size: clamp(2rem, 1.4rem + 1.5vw, 3rem); line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 2px solid var(--ink); }
.stats article { padding: 2.4rem 1.4rem 2.2rem; border-left: 2px solid var(--ink); }
.stats article:first-child { border-left: 0; }
.stat { margin: 0 0 0.55rem; font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: 0; text-transform: uppercase; }
.stats p { margin: 0; max-width: 24ch; }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr) minmax(0, 14rem); gap: 0.75rem 1.5rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 2px solid var(--ink); }
.when { color: var(--ink-soft); font-size: var(--fs-small); letter-spacing: 0.04em; }
.role { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; line-height: 1.05; letter-spacing: 0; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.55rem); }
.where { font-weight: 600; }
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.contact .lead { margin: 1.25rem 0 0; max-width: 42ch; }
.avatar { width: min(100%, 280px); justify-self: end; }
.quote { margin: 1.25rem 0 0; }
.quote p { margin: 0; }
.quote cite { display: block; margin-top: 0.7rem; font-style: normal; font-weight: 600; font-size: var(--fs-small); }
.breadcrumb { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1.25rem; }
.breadcrumb a { text-decoration: none; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--blue); }
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero .display { max-width: 16ch; }
.page-hero .lead { margin: 1.25rem 0 0; max-width: 46ch; padding-bottom: 0.45em; }
.section--flush { padding-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
button.pill, a.pill {
  display: inline-block;
  background: var(--cream-2);
  padding: 3px 10px 4px;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(60, 40, 20, 0.12);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--ink);
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
button.pill[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.filters + .cards, .filters + .empty-note, .filters + .case-grid { margin-top: 2rem; }
.cards.block-gap { margin-top: 1.5rem; }
.empty-note { display: grid; gap: 0.9rem; max-width: 62ch; }
.empty-note .h2 { margin-bottom: 0; }
.post-card { display: flex; flex-direction: column; gap: 0.75rem; text-decoration: none; color: var(--ink); height: 100%; }
.post-card:hover { color: var(--ink); }
.post-card .thumb { aspect-ratio: 16 / 10; background: var(--cream-2); border: 2px solid var(--ink); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { font-size: clamp(1.2rem, 1rem + 0.5vw, 1.55rem); line-height: 1.1; margin: 0; }
.post-card .meta { font-size: var(--fs-small); color: var(--ink-soft); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.case-card { background: var(--cream-2); border: 2px solid var(--ink); display: flex; flex-direction: column; }
.case-card .thumb { aspect-ratio: 4 / 3; background: var(--cream); border-bottom: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card .thumb img.contain { width: auto; height: 100%; max-height: 220px; object-fit: contain; }
.case-card .body { padding: 1.25rem 1.4rem 1.5rem; display: grid; gap: 0.5rem; }
.case-card h3 { font-size: 1.35rem; line-height: 1.1; }
.case-card p { margin: 0; }
.article-top { padding-top: clamp(2.5rem, 6vw, 4rem); }
.article-wrap { max-width: 760px; }
.article-cover-wrap { max-width: 960px; }
.article-title { max-width: 22ch; font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.6rem); margin: 0; }
.article-standfirst { margin: 0 0 2rem; max-width: 68ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin: 1.25rem 0 2rem; font-size: var(--fs-small); color: var(--ink-soft); }
.article-meta .byline { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); font-weight: 600; }
.article-meta .byline img { width: 40px; height: 40px; border-radius: 999px; border: 2px solid var(--ink); object-fit: cover; }
.article-cover { width: 100%; border: 2px solid var(--ink); margin: 0 0 2.5rem; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cream-2); }
.article-body { max-width: 68ch; display: grid; gap: 1.25rem; font-size: 1.125rem; line-height: 1.55; }
.article-body h2 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); margin: 1.5rem 0 0.5rem; text-transform: uppercase; }
.article-body h3 { font-size: 1.35rem; margin: 1.25rem 0 0.4rem; text-transform: uppercase; }
.article-body p, .article-body li { margin: 0; }
.article-body ul, .article-body ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.article-body blockquote { margin: 1rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--orange); background: var(--cream-2); font-size: 1.2rem; }
.share { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.share .label { margin-right: 0.5rem; }
.related { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 2px solid var(--ink); }
.related .cards { margin-top: 1.5rem; }

@media (max-width: 980px) {
  .cards, .stats, .case-grid { grid-template-columns: 1fr 1fr; }
  .stats article:nth-child(odd) { border-left: 0; }
  .stats article:nth-child(1), .stats article:nth-child(2) { border-bottom: 2px solid var(--ink); }
}
@media (max-width: 800px) {
  .split, .contact { grid-template-columns: 1fr; }
  .avatar { justify-self: start; }
  .timeline li { grid-template-columns: 1fr; gap: 0.25rem; }
  .cards--3, .case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards, .cards--2, .cards--3, .stats, .case-grid { grid-template-columns: 1fr; }
  .stats article { border-left: 0; border-bottom: 2px solid var(--ink); }
  .stats article:last-child { border-bottom: 0; }
}
