/* Built from the mockups' shared/base.css by tools/build-css.mjs. Do not edit by hand. */
/* The shared foundation every magazine gets. It sets how pages behave (reading width, text size, image loading,
   the takeaways box), never how a magazine looks: fonts, colours and layout live in each site's own file. */

.hqm *, .hqm *::before, .hqm *::after { box-sizing: border-box; }
.hqm { -webkit-text-size-adjust: 100%; }
.hqm {
  margin: 0; background: var(--bg); color: var(--ink); display: flow-root; /* no margin gap above the first section */
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.hqm img { display: block; max-width: 100%; height: auto; }
.hqm a { color: inherit; text-decoration: none; }
.hqm h1, .hqm h2, .hqm h3, .hqm h4, .hqm h5, .hqm h6 { margin: 0; font-weight: inherit; color: inherit; } /* the sites' theme paints every heading #333 */
.hqm p { margin: 0; }
.hqm ul, .hqm ol { margin: 0; padding: 0; }
.hqm button { font: inherit; }

.hqm .wrap { max-width: var(--max, 1240px); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .hqm .wrap { padding: 0 32px; } }
.hqm > main:last-child { padding-bottom: 80px; } /* room between the last section and the site's footer */

/* Every image reserves its space before it loads, so the page never jumps. */
.hqm .fit { width: 100%; height: 100%; object-fit: cover; background: var(--img-bg, #ddd); }
.hqm .r-16x9 { aspect-ratio: 16 / 9; } .hqm .r-3x2 { aspect-ratio: 3 / 2; } .hqm .r-4x5 { aspect-ratio: 4 / 5; }
.hqm .r-1x1 { aspect-ratio: 1 / 1; } .hqm .r-2x3 { aspect-ratio: 2 / 3; } .hqm .r-21x9 { aspect-ratio: 21 / 9; }
.hqm .clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hqm .clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Article reading rules: about 66 characters a line, 18-19px text, generous line height. */
.hqm .prose { max-width: var(--measure, 680px); margin: 0 auto; font-family: var(--prose-font, var(--body));
  font-size: var(--prose-size, 19px); line-height: 1.72; color: var(--prose-ink, var(--ink)); }
.hqm .prose > * + * { margin-top: 1.15em; }
.hqm .prose h2 { font-family: var(--display); font-size: 1.45em; line-height: 1.2; margin-top: 1.9em; color: var(--ink); }
.hqm .prose h3 { font-family: var(--display); font-size: 1.15em; line-height: 1.3; margin-top: 1.5em; color: var(--ink); }
.hqm .prose a { color: var(--link, var(--accent)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hqm .prose ul, .hqm .prose ol { padding-left: 1.25em; }
.hqm .prose li + li { margin-top: .45em; }
.hqm .prose blockquote { margin-left: 0; margin-right: 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--accent); font-style: italic; }
.hqm .prose img { border-radius: var(--radius, 0); }
.hqm .prose strong { font-weight: 700; }

/* "Key takeaways" arrives from the Magazine Desk as a bold line and a list; the theme turns it into a box. */
.hqm .takeaways { background: var(--tk-bg); border: var(--tk-border, 0); border-radius: var(--tk-radius, 0);
  padding: 22px 26px; margin: 0 0 1.8em; font-size: .93em; line-height: 1.6; }
.hqm .takeaways .tk-label { display: block; font-family: var(--label, var(--body)); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--tk-label, var(--accent)); margin-bottom: 10px; }
.hqm .takeaways ul { padding-left: 1.1em; margin: 0; }

/* Cover features: two magazine covers on the homepage, so readers and prospective clients see what a
   cover looks like. Fonts and colours come from the site; --cv-mast sets the tint behind the logo. */
.hqm .covers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: center;
  margin-top: 88px; padding: 56px 0 8px; border-top: 1px solid var(--line); }
.hqm .covers .cv-label { font-family: var(--label); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hqm .covers h2 { font-family: var(--display); font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; margin: 12px 0 14px; }
.hqm .covers p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 42ch; }
.hqm .covers .cv-btn { display: inline-block; margin-top: 22px; background: var(--accent); color: #fff; font-family: var(--label); font-weight: 700;
  font-size: 14.5px; padding: 12px 20px; border-radius: var(--btn-radius, 0); }
.hqm .covers .cv-mail { margin-top: 14px; font-size: 15px; }
.hqm .covers .cv-mail a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hqm .cv-cover:has(> img:only-child) { aspect-ratio: 1638 / 2048; }
.hqm .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
/* Covers are for show only: not links, no hover effect. */
.hqm .cv-cover { position: relative; display: block; margin: 0; aspect-ratio: 8.5 / 11; overflow: hidden; background: var(--img-bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 18px 40px rgba(0,0,0,.18); }
.hqm .cv-cover > img.cv-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hqm .cv-cover .cv-mast { position: absolute; inset: 0 0 auto; height: 30%; padding: 9% 8% 0; display: flex; justify-content: center; align-items: flex-start;
  background: linear-gradient(var(--cv-mast, rgba(255,255,255,.94)) 0%, var(--cv-mast-mid, rgba(255,255,255,.55)) 55%, transparent 100%); }
.hqm .cv-cover .cv-mast img { max-width: 92%; max-height: 64%; width: auto; height: auto; object-fit: contain; }
.hqm .cv-cover .cv-issue { position: absolute; top: 3%; right: 5%; font-family: var(--label); font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cv-issue, var(--ink)); }
.hqm .cv-cover .cv-lines { position: absolute; inset: auto 0 0; padding: 22% 8% 8%; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.hqm .cv-cover .cv-name { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.02; }
.hqm .cv-cover .cv-line { display: block; margin-top: 8px; font-family: var(--label); font-size: 12.5px; font-weight: 600; line-height: 1.35; letter-spacing: .02em; }
.hqm .cv-cover .cv-line::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); margin-bottom: 8px; }
.hqm .cv-cover .cv-sample { position: absolute; top: 3%; left: 5%; background: rgba(0,0,0,.6); color: #fff;
  font: 700 8.5px/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px; }
/* Layouts, so the magazines don't all show their covers the same way (each homepage also places them at a different depth).
   band: full-width dark band. offset: second cover set lower. stacked: centred text above the covers.
   trio: cover | text | cover between double rules. panel: tinted panel with smaller covers. */
.hqm .covers--band { margin: 72px 0; padding: 72px 0; border-top: 0; /* full-width colour without widening the page */
  border-image: conic-gradient(var(--cv-band, #111) 0 0) fill 0 / / 0 100vmax; }
.hqm .covers--band h2 { color: #fff; } .hqm .covers--band p { color: rgba(255,255,255,.72); } .hqm .covers--band .cv-mail a { color: #fff; }
.hqm .covers--band .cv-cover { box-shadow: 0 18px 44px rgba(0,0,0,.55); }
.hqm .covers--offset { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); padding-bottom: 72px; }
.hqm .covers--offset > div:first-child { order: 2; }
.hqm .covers--offset .cv-row { gap: 36px; } .hqm .covers--offset .cv-row > :nth-child(2) { transform: translateY(56px); }
.hqm .covers--stacked { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 36px; margin-top: 16px; padding-bottom: 0; border-top: 0; }
.hqm .covers--stacked p { margin-inline: auto; } .hqm .covers--stacked .cv-row { width: min(620px, 100%); }
.hqm .covers--trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; text-align: center;
  margin-top: 64px; padding: 48px 0; border-top: 4px double var(--ink); border-bottom: 4px double var(--ink); }
.hqm .covers--trio .cv-row { display: contents; } .hqm .covers--trio .cv-row > :first-child { order: -1; } .hqm .covers--trio p { margin-inline: auto; }
.hqm .covers--panel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; margin-top: 64px; padding: 44px; border-top: 0;
  background: var(--cv-panel, #f1f3f5); }
.hqm .covers--panel .cv-row { gap: 22px; }
@media (max-width: 860px) {
  .hqm .covers { grid-template-columns: 1fr; gap: 28px; }
  .hqm .covers--offset > div:first-child { order: 0; }
  .hqm .covers--offset .cv-row > :nth-child(2) { transform: translateY(28px); }
  .hqm .covers--trio .cv-row { display: grid; } .hqm .covers--band { padding: 48px 0; } .hqm .covers--panel { padding: 28px 20px; }
}
@media (max-width: 480px) { .hqm .cv-row { gap: 14px; } .hqm .cv-cover .cv-line { font-size: 11px; } }

/* Mockup-only navigation, not part of any design. */
.hqm-unused-mocknav { position: fixed; left: 12px; bottom: 12px; z-index: 999; display: flex; gap: 2px; padding: 4px;
  background: rgba(20,20,20,.88); border-radius: 999px; font: 600 12px/1 system-ui, sans-serif; backdrop-filter: blur(6px); }
.hqm-unused-mocknav { color: #fff; padding: 8px 12px; border-radius: 999px; }
.hqm-unused-mocknav { background: #fff; color: #111; }

@media (max-width: 640px) {
  .hqm { font-size: 16px; }
  .hqm .prose { --prose-size: 18px; }
  .hqm .takeaways { padding: 18px 18px; }
}
