
/* === Right Now IA — Pro Layout layer (CSS-only) === */
/* Goal: better rhythm + readability without touching content */
/* Safe, low-specificity, additive styles */

:root{
  --rn-width: min(1120px, 92vw);
  --rn-text: #e6edf3;
  --rn-muted: #9fb0c3;
  --rn-title: #f7fafc;
  --rn-border: rgba(255,255,255,.08);
  --rn-soft: rgba(255,255,255,.035);
  --rn-pad: clamp(16px, 3vw, 32px);
  --rn-gap: clamp(14px, 2.2vw, 20px);
}

/* Base typography — avoid aggressive overrides */
html{ hanging-punctuation: first last }
body{ color: var(--rn-text); line-height: 1.65; }
p{ margin: .6rem 0 1rem; }
small, .muted{ color: var(--rn-muted) }

/* Titles, balanced sizes */
h1, h2, h3{
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--rn-title);
  margin: 0 0 .6rem;
}
h1{ font-size: clamp(2rem, 4.8vw, 3rem) }
h2{ font-size: clamp(1.35rem, 3vw, 2rem); margin-top: 1.2rem }
h3{ font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin-top: .8rem }

/* Containers: center the main flows without relying on custom classes */
:where(header, main, footer) > :where(section, .section, .container, .wrap, .wrapper, .content, article){
  width: var(--rn-width);
  margin-inline: auto;
  padding-inline: var(--rn-pad);
}

/* Sections rhythm */
:where(section, .section){ padding-block: clamp(40px, 8vw, 76px) }
:where(section, .section) > :where(h1, h2, .section-title){ margin-bottom: .9rem }

/* Better lists */
ul, ol{ padding-left: 1.2rem; margin: .6rem 0 1rem }
li{ margin: .25rem 0 }

/* Images */
img{ max-width: 100%; height: auto; border-radius: 10px }

/* Links */
a{ color: inherit; text-underline-offset: 3px; text-decoration-thickness: .08em }
a:hover{ text-decoration-thickness: .12em }

/* Cards (if any exist) */
:where(.card, .feature, .tile){
  background: var(--rn-soft);
  border: 1px solid var(--rn-border);
  border-radius: 16px;
  padding: clamp(12px, 2vw, 18px);
}

/* Forms — unify spacing */
form :where(label){ display:block; margin-bottom: .35rem; color: var(--rn-muted) }
form :where(input, textarea, select){
  width: 100%; padding: .7rem .85rem; border-radius: 10px;
  border: 1px solid var(--rn-border); background: rgba(255,255,255,.03); color: var(--rn-text);
}
form :where(input, textarea, select):focus{ outline: none; box-shadow: 0 0 0 6px rgba(124,92,255,.15); border-color: rgba(124,92,255,.45) }
form :where(button, [type="submit"]){ margin-top: .5rem }

/* Tables */
table{ width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 12px }
th, td{ padding: .7rem .8rem; border-bottom: 1px solid var(--rn-border) }
th{ text-align: left; color: var(--rn-title) }
tr:hover td{ background: rgba(255,255,255,.02) }

/* Footer alignment (gentle) */
footer{ padding-block: 28px }
footer :where(.container, .wrap, .wrapper){ display:flex; gap: var(--rn-gap); align-items:center; justify-content:space-between; flex-wrap:wrap }

/* Responsive helpers */
@media (max-width: 900px){
  :where(header, main, footer) > :where(section, .section, .container, .wrap, .wrapper, .content, article){ padding-inline: 16px }
}
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important }
}
