/* MARI News & Insights — refined editorial typography
   Red Hat Display headings; Helvetica Neue for article reading.
   Replace /www/assets/mari-news.css after backing up the existing file.
*/
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;500;600;700&display=swap');

:root {
  --mari-font: 'Red Hat Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mari-ink: #30382f;
  --mari-muted: #626b61;
  --mari-paper: #f5f3ee;
  --mari-rule: #dedbd2;
  --mari-accent: #88725f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mari-paper);
  color: var(--mari-ink);
  font-family: var(--mari-font);
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--mari-rule);
  padding: 22px max(25px, calc((100vw - 1200px)/2));
}
.mark {
  font-family: var(--mari-font);
  font-size: 35px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: .2em;
  color: var(--mari-ink);
  text-decoration: none;
}
.mark small {
  display: block;
  margin-top: 7px;
  font-family: var(--mari-font);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .13em;
}
.site-head nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-head nav a, .back {
  color: #4f594e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .07em;
}
.site-head nav a:hover, .back:hover { text-decoration: underline; text-underline-offset: 4px; }
.shell { max-width: 1200px; margin: 65px auto 100px; padding: 0 25px; }
.kicker {
  margin: 0 0 16px;
  color: var(--mari-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .19em;
  text-transform: uppercase;
}
h1 {
  max-width: 980px;
  margin: 15px 0 18px;
  font-family: var(--mari-font);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.lead {
  max-width: 780px;
  margin: 0 0 40px;
  color: var(--mari-muted);
  font-size: 18px;
  line-height: 1.75;
}
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story-card { overflow: hidden; background: #fffdfa; border: 1px solid #e8e3d9; border-radius: 12px; }
.story-card a { display: block; color: inherit; text-decoration: none; }
.story-card img { display: block; width: 100%; height: 210px; object-fit: cover; }
.story-copy { padding: 24px; }
.date { color: #937b65; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.story-copy h2 {
  margin: 12px 0;
  font-family: var(--mari-font);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.story-copy p { color: #656b62; font-size: 14px; line-height: 1.75; }
.more { display: inline-block; margin-top: 12px; padding-bottom: 4px; color: #7f614e; border-bottom: 1px solid #b89d8c; font-size: 13px; font-weight: 600; }
.back { display: inline-block; margin-bottom: 16px; }
.hero { margin: 28px 0 45px; }
.hero img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 12px; }
.hero figcaption { margin-top: 10px; color: #948a7e; font-size: 11px; letter-spacing: .08em; }
.story-body {
  max-width: 730px;
  color: #444b42;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: .002em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.story-body p { margin: 0 0 23px; }
.story-body h2, .story-body h3 {
  margin: 45px 0 18px;
  color: var(--mari-ink);
  font-family: var(--mari-font);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.story-body h2 { font-size: clamp(25px, 3vw, 34px); }
.story-body h3 { font-size: clamp(21px, 2.4vw, 27px); }
.story-body a { color: #725e4e; text-underline-offset: 3px; }
.story-body blockquote { margin: 36px 0; padding: 5px 0 5px 25px; border-left: 2px solid #b89d8c; font-size: 1.08em; }
/* Optional editorial module: activates only when markup is added later. */
.right-moment { margin: 50px 0; padding: 28px 30px; border-top: 1px solid var(--mari-rule); border-bottom: 1px solid var(--mari-rule); }
.right-moment h2 { margin: 0 0 14px; font-size: 24px; font-weight: 500; }
.right-moment p:last-child { margin-bottom: 0; }
.site-foot { border-top: 1px solid var(--mari-rule); padding: 28px 32px; color: #687069; text-align: center; font-size: 12px; }
.site-foot a { color: inherit; }
@media (max-width: 850px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-card img { height: 230px; }
  .shell { margin: 45px auto 70px; }
  .site-head { padding: 18px 22px; }
  .mark { font-size: 27px; }
  .mark small { max-width: 170px; font-size: 7px; }
  .site-head nav { gap: 12px; }
}
@media (max-width: 480px) {
  .shell { padding: 0 20px; }
  .story-copy { padding: 20px; }
  .story-body { font-size: 15.5px; line-height: 1.75; }
  .right-moment { padding: 22px 0; }
}

/* Right Moment copy follows the article reading typography. */
.right-moment p { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.78; text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 480px) { .right-moment p { font-size: 15.5px; line-height: 1.75; } }


/* MARI News — editorial layout v3: coherent image and reading column */
@media (min-width: 701px) {
  .shell:has(> .hero) > .hero,
  .shell:has(> .hero) > .story-body,
  .shell:has(> .hero) > .right-moment { width: min(100%, 800px); max-width: 800px !important; margin-left: auto; margin-right: auto; }
  .shell:has(> .hero) > .hero { margin-top: 30px; margin-bottom: 36px; }
  .shell:has(> .hero) > .hero img { height: 360px; max-height: none; object-fit: cover; object-position: center; }
}
.story-body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.78; text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
/* Visual destination note; specific rules override the PHP's embedded stylesheet. */
.right-moment {
  position: relative;
  box-sizing: border-box;
  margin-top: 58px !important;
  margin-bottom: 24px;
  padding: 30px 32px 32px 36px !important;
  border-top: 1px solid #cfc9be;
  border-bottom: 1px solid #cfc9be;
  border-left: 3px solid #88725f;
  background: transparent;
}
.right-moment__eyebrow { margin: 0 0 12px; font-family: "Red Hat Display", Arial, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; color: #88725f; }
.right-moment h2 { margin: 0 0 18px; font-family: "Red Hat Display", Arial, sans-serif; font-size: clamp(26px,3vw,33px); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; }
.right-moment p:last-child,
.shell .right-moment p:last-child { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important; font-size: 16px !important; font-weight: 400; line-height: 1.78 !important; letter-spacing: .002em; color: #444b42; text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 700px) {
  .shell > .hero, .shell > .story-body, .shell > .right-moment { max-width: 100%; }
  .shell > .hero img { width: 100%; height: auto; max-height: 320px; object-fit: cover; }
  .right-moment { padding: 22px 18px 24px 20px !important; margin-top: 44px; }
  .right-moment p:last-child, .shell .right-moment p:last-child { font-size: 16px; }
}


/* V4 — align article heading, introduction and navigation with the editorial column. */
.shell:has(> .hero) > .kicker,
.shell:has(> .hero) > .back,
.shell:has(> .hero) > h1,
.shell:has(> .hero) > .lead {
  box-sizing: border-box;
  width: min(100%, 800px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
/* Preserve the magazine's original left-aligned headline typography. */
.shell:has(> .hero) > h1,
.shell:has(> .hero) > .lead { text-align: left; }
@media (max-width: 700px) {
  .shell:has(> .hero) > .kicker,
  .shell:has(> .hero) > .back,
  .shell:has(> .hero) > h1,
  .shell:has(> .hero) > .lead { width: 100%; }
}
