/* Automate Monday - articles. Shared tokens come from styles.css. */

.ar-nav { border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; background: rgba(250,248,244,0.92); backdrop-filter: blur(8px); }
.ar-nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.ar-nav-links { display: flex; align-items: center; gap: 22px; font-size: 14.5px; font-weight: 500; }
.ar-nav .btn.sm { padding: 10px 18px; font-size: 14px; background: linear-gradient(135deg, #F0158A 0%, #7C3AED 100%); }

.ar-foot { border-top: 1px solid var(--border); margin-top: 72px; padding: 32px 0; font-size: 14px; color: var(--ink-soft); }
.ar-foot .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ar-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* index */
.ar-index { padding: 72px 0 0; }
.ar-index h1 { font-size: 44px; letter-spacing: -0.02em; max-width: 720px; }
.ar-stand { font-size: 18.5px; line-height: 1.6; color: var(--ink-soft); max-width: 680px; margin: 18px 0 0; }
.ar-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.ar-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; transition: border-color 160ms, transform 160ms, box-shadow 160ms; }
.ar-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 6px 26px rgba(24,20,15,0.08); opacity: 1; }
.ar-card img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.ar-card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.ar-card-client { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #F0158A; margin-bottom: 12px; }
.ar-card h2 { font-size: 23px; line-height: 1.2; margin-bottom: 12px; }
.ar-card p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 18px; flex: 1; }
.ar-card-date { font-size: 13px; color: var(--ink-soft); }

/* article */
.ar-head { padding-top: 64px; }
.ar-head h1 { font-size: 48px; line-height: 1.08; letter-spacing: -0.022em; max-width: 820px; }
.ar-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 30px 0 0; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ar-meta div { display: flex; flex-direction: column; gap: 4px; }
.ar-meta dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.ar-meta dd { margin: 0; font-size: 15px; }
.ar-meta dd a { text-decoration: underline; text-underline-offset: 3px; }
.ar-shot { margin: 40px auto 0; }
.ar-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 4px; }
.ar-shot figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); }
.ar-body { max-width: 780px; margin-top: 40px; }
.ar-body h2 { font-size: 26px; margin: 44px 0 14px; letter-spacing: -0.015em; }
.ar-body p, .ar-body li { font-size: 17px; line-height: 1.7; color: var(--ink); }
.ar-body p { margin: 0 0 18px; }
.ar-body b { font-weight: 600; }
.ar-body ul, .ar-body ol { padding-left: 22px; margin: 0 0 18px; }
.ar-body li { margin-bottom: 10px; }
.ar-body li::marker { color: #F0158A; font-weight: 600; }
.ar-log li { margin-bottom: 18px; }
.ar-cta { max-width: 780px; margin-top: 48px; padding: 24px 28px; background: var(--bg-alt); border: 1px solid var(--border); border-left: 3px solid #F0158A; border-radius: 4px; }
.ar-cta p { margin: 0; font-size: 16.5px; line-height: 1.6; }
.ar-cta a { font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* the article container is wider than its prose on purpose: the screenshot and
   the header use the full width, the body sits at a reading measure inside it */
.ar-body.container, .ar-cta.container { margin-left: auto; margin-right: auto; }
@media (min-width: 1000px) {
  .ar-body.container, .ar-cta.container { margin-left: calc((100% - 1116px) / 2 + 32px); }
}

@media (max-width: 760px) {
  .ar-index { padding-top: 48px; }
  .ar-index h1 { font-size: 34px; }
  .ar-list { grid-template-columns: 1fr; }
  .ar-head { padding-top: 44px; }
  .ar-head h1 { font-size: 34px; }
  .ar-stand { font-size: 17px; }
  .ar-body h2 { font-size: 23px; }
  .ar-body p, .ar-body li { font-size: 16.5px; }
}
