/* artimins Journal — quiet gallery-style layout.
   Everything is scoped to Journal pages (body.aj-page) with enough weight to override
   theme and page-builder styles (Astra, Elementor…) without touching the rest of the site. */

body.aj-page .aj-root {
  --aj-ink: #111111;
  --aj-muted: #6f6f6f;
  --aj-line: #e2e2e2;
  --aj-paper: #ffffff;
  --aj-soft: #f5f5f3;
  --aj-gutter: clamp(20px, 4vw, 64px);
  --aj-col: clamp(20px, 2.4vw, 40px);
  --aj-font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: flow-root; width: 100%; max-width: none; flex: 1 1 100%; min-width: 0; float: none;
  color: var(--aj-ink);
  background: var(--aj-paper);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Themes that place content in a side-by-side (sidebar) container: give the Journal the full width */
body.aj-page .ast-container,
body.aj-page .site-content > .ast-container,
body.aj-page .site-content > .container,
body.aj-page .site-content > .wrap { display: block; max-width: none; width: 100%; padding-left: 0; padding-right: 0; }
body.aj-page .site-content { padding-top: 0; padding-bottom: 0; background: #fff; }

/* One typeface, regular weight, for every element of the Journal */
body.aj-font .aj-root,
body.aj-font .aj-root :is(h1, h2, h3, h4, h5, h6, p, a, span, time, li, dt, dd, label, input, select, button, figcaption, blockquote, strong, em, div, nav) { font-family: var(--aj-font); }
body.aj-page .aj-root * { box-sizing: border-box; }
body.aj-page .aj-root :is(h1, h2, h3, h4, h5, h6) { color: inherit; font-weight: 400; text-transform: none; font-style: normal; padding: 0; margin: 0; letter-spacing: -0.01em; }
body.aj-page .aj-root :is(p, dl, dd, figure, blockquote) { margin: 0; }
body.aj-page .aj-root a { color: inherit; text-decoration: none; box-shadow: none; border: 0; }
body.aj-page .aj-root img { max-width: 100%; height: auto; display: block; border-radius: 0; box-shadow: none; }
body.aj-page .aj { display: flow-root; max-width: 1680px; margin: 0 auto; padding: 0 var(--aj-gutter) 1px; background: var(--aj-paper); }
body.aj-page .aj-root .aj-related { margin-bottom: 96px; }

/* small uppercase labels (section names, headings of info blocks) */
body.aj-page .aj-root .aj-card__cat,
body.aj-page .aj-root .aj-crumbs,
body.aj-page .aj-root .aj-credits h2,
body.aj-page .aj-root .aj-related h2,
body.aj-page .aj-root .aj-ad__label,
body.aj-page .aj-root .aj-partnership { font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--aj-muted); }

/* ---------- Journal page ---------- */
body.aj-page .aj-root .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.aj-page .aj-root .aj-banner { display: block; margin: clamp(24px, 3vw, 40px) 0 clamp(48px, 6vw, 88px); }
body.aj-page .aj-root .aj-banner img { width: 100%; height: auto; max-height: 80vh; object-fit: cover; }
body.aj-page .aj-root .aj-banner--empty { aspect-ratio: 8 / 3; display: flex; align-items: center; justify-content: center; text-align: center; border: 1px dashed #b5b5b5; background: var(--aj-soft); color: var(--aj-muted); font-size: 14px; line-height: 1.6; }
body.aj-page .aj-root .aj-banner--empty strong { color: var(--aj-ink); font-weight: 500; }
body.aj-page .aj-root .aj-page-title { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: clamp(40px, 6vw, 88px) 0 clamp(24px, 3vw, 40px); }
body.aj-page .aj-root .aj-presented { display: flex; gap: 10px; align-items: center; margin: -12px 0 28px; color: var(--aj-muted); font-size: 14px; }
body.aj-page .aj-root .aj-presented img { max-height: 24px; width: auto; display: inline-block; }
body.aj-page .aj-root .aj-intro { max-width: 640px; margin: -8px 0 32px; color: var(--aj-muted); font-size: 17px; }
body.aj-page .aj-root .aj-toolbar { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-top: 1px solid var(--aj-ink); padding: 14px 0 0; margin-bottom: clamp(40px, 5vw, 72px); }
body.aj-page .aj-root .aj-sections { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; }
body.aj-page .aj-root .aj-sections a { color: var(--aj-muted); padding-bottom: 2px; }
body.aj-page .aj-root .aj-sections a:hover, body.aj-page .aj-root .aj-sections a[aria-current] { color: var(--aj-ink); border-bottom: 1px solid var(--aj-ink); }
body.aj-page .aj-root .aj-search input { border: 0; border-bottom: 1px solid var(--aj-line); background: transparent; padding: 4px 0; font-size: 15px; width: 180px; outline: none; border-radius: 0; box-shadow: none; color: var(--aj-ink); }
body.aj-page .aj-root .aj-search input:focus { border-color: var(--aj-ink); }
body.aj-page .aj-root .aj-empty { color: var(--aj-muted); margin: 40px 0 140px; }

/* cards */
body.aj-page .aj-root .aj-card { display: flex; flex-direction: column; min-width: 0; }
body.aj-page .aj-root .aj-card__img { position: relative; overflow: hidden; background: var(--aj-soft); aspect-ratio: 4 / 5; margin-bottom: 18px; }
body.aj-page .aj-root .aj-card__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
body.aj-page .aj-root .aj-card:hover .aj-card__img img { opacity: .88; }
body.aj-page .aj-root .aj-card__cat { margin-bottom: 8px; display: block; }
body.aj-page .aj-root .aj-card__title { font-size: 21px; line-height: 1.28; letter-spacing: -0.005em; margin: 0 0 10px; }
body.aj-page .aj-root .aj-card:hover .aj-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
body.aj-page .aj-root .aj-card time { display: block; font-size: 15px; color: var(--aj-muted); }
body.aj-page .aj-root .aj-card__excerpt { font-size: 17px; line-height: 1.5; color: #333; margin: 0 0 14px; max-width: 460px; }
body.aj-page .aj-root .aj-play { position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.5); }
body.aj-page .aj-root .aj-play::after { content: ""; position: absolute; left: 16px; top: 12px; border: 8px solid transparent; border-left: 12px solid #fff; border-right: 0; }

/* lead story: large image, text beside it */
body.aj-page .aj-root .aj-lead { margin-bottom: clamp(64px, 8vw, 120px); }
body.aj-page .aj-root .aj-card--lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--aj-col) calc(var(--aj-col) * 1.5); align-items: end; }
body.aj-page .aj-root .aj-card--lead .aj-card__img { margin: 0; aspect-ratio: 4 / 5; max-height: 82vh; }
body.aj-page .aj-root .aj-card--lead .aj-card__title { font-size: clamp(28px, 2.6vw, 42px); line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 16px; }

/* grid */
body.aj-page .aj-root .aj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) var(--aj-col); margin-bottom: 72px; }
body.aj-page .aj-root .aj-grid > .aj-ad { grid-column: 1 / -1; margin: 0; }
body.aj-page .aj-root .aj-more { margin: 8px 0 120px; }
body.aj-page .aj-root .aj-more__btn { display: inline-block; font-size: 15px; border-bottom: 1px solid var(--aj-ink); padding-bottom: 2px; cursor: pointer; }
body.aj-page .aj-root .aj-more__btn[aria-busy="true"] { opacity: .4; }

/* ---------- ads & partners: quiet, always labelled ---------- */
body.aj-page .aj-root .aj-ad { margin: 0 0 clamp(56px, 7vw, 100px); padding: 14px 0 0; border-top: 1px solid var(--aj-line); text-align: center; }
body.aj-page .aj-root .aj-ad__label { display: block; text-align: left; margin-bottom: 14px; }
body.aj-page .aj-root .aj-ad__label strong { color: var(--aj-ink); font-weight: 500; }
body.aj-page .aj-root .aj-ad img { margin: 0 auto; }
body.aj-page .aj-root .aj-ad--journal_billboard img, body.aj-page .aj-root .aj-ad--journal_infeed img, body.aj-page .aj-root .aj-ad--article_end img { width: 100%; max-width: 970px; max-height: 250px; object-fit: contain; }
body.aj-page .aj-root .aj-ad ins { min-height: 90px; }
body.aj-page .aj-root .aj-ad--article_inline { margin: 40px 0; padding: 14px 0; border-bottom: 1px solid var(--aj-line); }
body.aj-page .aj-root .aj-ad--article_sidebar { margin: 0; border-top: 0; padding: 0; }
body.aj-page .aj-root .aj-ad--article_sidebar img { width: 300px; max-width: 100%; }
body.aj-page .aj-root .aj-ad--article_sidebar ins { min-height: 600px; }
body.aj-page .aj-root .aj-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* ---------- story page ---------- */
body.aj-page .aj-root .aj-crumbs { display: flex; gap: 10px; margin-top: clamp(32px, 5vw, 64px); }
body.aj-page .aj-root .aj-crumbs a:hover { color: var(--aj-ink); }
body.aj-page .aj-root .aj-article__head { max-width: 1100px; margin: 20px 0 clamp(36px, 4vw, 56px); }
body.aj-page .aj-root .aj-article__head > .aj-card__cat { display: none; } /* section already shown in the breadcrumb */
body.aj-page .aj-root .aj-article__head h1 { font-size: clamp(34px, 4vw, 60px); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 20px; }
body.aj-page .aj-root .aj-dek { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.4; color: #444; max-width: 780px; margin: 0 0 20px; }
body.aj-page .aj-root .aj-byline { font-size: 15px; color: var(--aj-muted); }
body.aj-page .aj-root .aj-byline a { color: var(--aj-ink); }
body.aj-page .aj-root .aj-byline a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.aj-page .aj-root .aj-partnership { display: inline-block; border: 1px solid var(--aj-line); padding: 5px 9px; margin: 0 0 16px; color: var(--aj-ink); }

body.aj-page .aj-root .aj-gallery { margin: 0 0 clamp(48px, 6vw, 80px); }
body.aj-page .aj-root .aj-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 16px; }
body.aj-page .aj-root .aj-gallery__track::-webkit-scrollbar { display: none; }
body.aj-page .aj-root .aj-gallery__slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; justify-content: flex-start; }
body.aj-page .aj-root .aj-gallery__slide img { max-height: 84vh; width: auto; max-width: 100%; object-fit: contain; }
body.aj-page .aj-root .aj-video { display: block; max-height: 84vh; width: auto; max-width: 100%; background: #000; }
body.aj-page .aj-root .aj-gallery__video { position: relative; display: block; cursor: pointer; outline: none; -webkit-user-drag: none; user-select: none; }
body.aj-page .aj-root .aj-gallery__video img { -webkit-user-drag: none; pointer-events: none; }
body.aj-page .aj-root .aj-gallery__video .aj-play { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%) scale(1.4); }
body.aj-page .aj-root .aj-gallery__nav { display: flex; align-items: center; gap: 18px; margin-top: 14px; font-size: 14px; color: var(--aj-muted); }
body.aj-page .aj-root .aj-gallery__nav button { background: none; border: 0; color: var(--aj-ink); padding: 0; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: none; }
body.aj-page .aj-root .aj-gallery__nav button:hover { opacity: .6; }
body.aj-page .aj-root .aj-gallery figcaption { color: var(--aj-muted); font-size: 14px; margin-top: 10px; }
body.aj-page .aj-root .aj-gallery figcaption a { text-decoration: underline; text-underline-offset: 3px; }

body.aj-page .aj-root .aj-article__layout { display: grid; grid-template-columns: minmax(0, 680px); gap: 80px; }
body.aj-page .aj-root .aj-article__layout.has-sidebar { grid-template-columns: minmax(0, 680px) 300px; justify-content: space-between; max-width: 1100px; }
body.aj-page .aj-root .aj-sticky { position: sticky; top: 110px; }
body.aj-page .aj-root .aj-body { font-size: 19px; line-height: 1.62; color: #1a1a1a; }
body.aj-page .aj-root .aj-body p { margin: 0 0 1.05em; font-size: inherit; line-height: inherit; }
body.aj-page .aj-root .aj-body > p:first-child { font-size: 22px; line-height: 1.5; }
body.aj-page .aj-root .aj-body a, body.aj-page .aj-root .aj-credits a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
body.aj-page .aj-root .aj-body h2 { font-size: 28px; line-height: 1.2; margin: 1.6em 0 .6em; }
body.aj-page .aj-root .aj-body h3 { font-size: 22px; line-height: 1.3; margin: 1.4em 0 .5em; }
body.aj-page .aj-root .aj-body blockquote { margin: 1.5em 0; padding: 0 0 0 22px; border-left: 1px solid var(--aj-ink); font-size: 24px; line-height: 1.4; font-style: normal; }
body.aj-page .aj-root .aj-body figure { margin: 1.6em 0; }
body.aj-page .aj-root .aj-body figcaption { font-size: 14px; color: var(--aj-muted); margin-top: 8px; }
body.aj-page .aj-root .aj-body strong { font-weight: 500; }

body.aj-page .aj-root .aj-credits { margin: 56px 0 48px; border-top: 1px solid var(--aj-ink); padding-top: 16px; }
body.aj-page .aj-root .aj-credits h2 { margin: 0 0 18px; color: var(--aj-ink); }
body.aj-page .aj-root .aj-credits dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 24px; margin: 0 0 28px; font-size: 15px; line-height: 1.5; }
body.aj-page .aj-root .aj-credits dt { color: var(--aj-muted); font-weight: 400; }
body.aj-page .aj-root .aj-site { color: var(--aj-muted); white-space: nowrap; }
body.aj-page .aj-root .aj-site a { color: var(--aj-muted); }
body.aj-page .aj-root .aj-tags span { color: var(--aj-muted); margin-right: 6px; }
body.aj-page .aj-root .aj-btn { display: inline-block; border: 1px solid var(--aj-ink); padding: 12px 18px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; background: transparent; color: var(--aj-ink); text-decoration: none; }
body.aj-page .aj-root .aj-btn:hover { background: var(--aj-ink); color: var(--aj-paper); }
body.aj-page .aj-root .aj-credits .aj-btn { text-decoration: none; }
body.aj-page .aj-root .aj-author { display: flex; gap: 18px; align-items: flex-start; border-top: 1px solid var(--aj-line); padding-top: 24px; margin-bottom: 72px; font-size: 15px; color: #333; }
body.aj-page .aj-root .aj-author img { border-radius: 50%; flex: 0 0 auto; }
body.aj-page .aj-root .aj-author p { margin: 0 0 6px; }
body.aj-page .aj-root .aj-author__name { color: var(--aj-ink); }
body.aj-page .aj-root .aj-related { border-top: 1px solid var(--aj-ink); padding-top: 16px; margin-top: 24px; }
body.aj-page .aj-root .aj-related h2 { color: var(--aj-ink); margin: 0 0 32px; }

/* ---------- newsletter (only shown when a sign-up form is set) ---------- */
body.aj-page .aj-root .aj-follow { background: var(--aj-soft); padding: clamp(48px, 6vw, 80px) var(--aj-gutter); }
body.aj-page .aj-root .aj-follow h2 { font-size: clamp(22px, 2vw, 30px); line-height: 1.25; max-width: 720px; margin: 0 0 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  body.aj-page .aj-root .aj-article__layout.has-sidebar { grid-template-columns: minmax(0, 680px); }
  body.aj-page .aj-root .aj-article__side { display: none; }
}
@media (max-width: 900px) {
  body.aj-page .aj-root .aj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.aj-page .aj-root .aj-card--lead { grid-template-columns: 1fr; }
  body.aj-page .aj-root .aj-card--lead .aj-card__img { max-height: none; }
  body.aj-page .aj-root .aj-toolbar { flex-direction: column; gap: 14px; }
}
@media (max-width: 560px) {
  body.aj-page .aj-root { font-size: 16px; }
  body.aj-page .aj-root .aj-grid { grid-template-columns: 1fr; gap: 44px; }
  body.aj-page .aj-root .aj-card__title { font-size: 20px; }
  body.aj-page .aj-root .aj-sections { gap: 6px 18px; font-size: 14px; }
  body.aj-page .aj-root .aj-search input { width: 100%; }
  body.aj-page .aj-root .aj-credits dl { grid-template-columns: 1fr; gap: 2px; }
  body.aj-page .aj-root .aj-credits dd { margin-bottom: 12px; }
  body.aj-page .aj-root .aj-body { font-size: 18px; }
  body.aj-page .aj-root .aj-body > p:first-child { font-size: 20px; }
}

/* Plain pages (About, Editorial Policy…) in the Journal style */
body.aj-page .aj-root .aj-plain .aj-article__head { padding-top: clamp(40px, 6vw, 96px); }
body.aj-page .aj-root .aj-plain .aj-body em { font-style: italic; }
