/* === Layrix shared design system — Marquee edition === */
:root {
  --paper: #f1efe7;
  --paper-2: #fffefa;
  --ink: #161614;
  --muted: rgba(22,22,20,0.62);
  --rule: rgba(22,22,20,0.12);
  --accent: #2f6f4a;
  --rust: #a23a1b;
  --indigo: #3a4a6b;
  --display: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter Tight', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.marq-link { text-decoration: none; }
.marq-link:hover { color: var(--accent); }
.marq-cta { transition: transform .12s ease, background .15s ease, color .15s ease; }
.marq-cta:hover { transform: translateY(-1px); }
.marq-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.marq-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(22,22,20,0.06); border-color: rgba(22,22,20,0.22); }
.marq-strip { animation: stripScroll 38s linear infinite; }
@keyframes stripScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marq-strip { animation: none; }
  .marq-dot { animation: none !important; }
}
.marq-dot { animation: marqDot 2.4s ease-in-out infinite; }
@keyframes marqDot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.4; } }
h1, h2, h3 { letter-spacing: -0.03em; }
nav a { white-space: nowrap; }
.marq-underline { background-image: linear-gradient(to top, var(--accent) 0, var(--accent) 4px, transparent 4px); background-repeat: no-repeat; background-size: 100% 100%; background-position: 0 0.08em; padding-bottom: 0.08em; }
::selection { background: var(--accent); color: var(--paper); }
details { border-top: 1px solid var(--rule); }
details summary { padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-family: var(--sans); font-size: 24px; color: var(--accent); font-weight: 300; }
details[open] summary::after { content: '−'; }
details .ans { padding: 0 0 24px; font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 760px; }
.marq-tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1px solid var(--ink); border-radius: 999px; font-size: 12px; letter-spacing: 0.04em; }
.marq-kicker { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; }
.marq-prose p { font-size: 16.5px; line-height: 1.65; color: var(--muted); margin-bottom: 14px; max-width: 760px; }
.marq-prose strong { color: var(--ink); font-weight: 600; }
.marq-prose h3 { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.15; margin: 40px 0 16px; letter-spacing: -0.025em; }
.marq-prose ul { list-style: none; padding: 0; margin: 8px 0 18px; max-width: 760px; }
.marq-prose ul li { font-size: 15.5px; line-height: 1.65; color: var(--muted); padding: 6px 0 6px 24px; position: relative; }
.marq-prose ul li::before { content: '→'; position: absolute; left: 0; top: 6px; color: var(--accent); font-weight: 500; }
.marq-prose ul li strong { color: var(--ink); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--rule); }
@media (max-width: 900px) {
  .marq-grid-3 { grid-template-columns: 1fr !important; }
  .marq-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .marq-grid-2 { grid-template-columns: 1fr !important; }
  .marq-section-row { grid-template-columns: 1fr !important; }
  .marq-section-row > div:first-child { font-size: 80px !important; }
  .marq-h2 { font-size: 44px !important; }
  .marq-h1 { font-size: 60px !important; }
}
