/* ============================================================
   Institute for Law & AI — base tokens, reset, typography
   Direction: "Lab Notebook" + W&L institutional color
   ============================================================ */

:root{
  /* institutional (W&L brand) */
  --wl-blue: #13284a;
  --wl-blue-deep: #0a1830;
  --wl-grey: #707372;

  /* research accent (Lab Notebook) */
  --accent: #0e8a7d;
  --accent-soft: #e6f4f2;
  --amber: #c9781f;
  --amber-soft: #faf1e5;

  /* neutrals */
  --ink: #12161c;
  --muted: #5f6462;
  --faint: #8d928f;
  --line: #e2e3e2;
  --paper: #ffffff;
  --dotpaper: #fdfdfc;
  --card: #ffffff;

  /* text tints for content sitting on the navy (--wl-blue/--wl-blue-deep)
     surfaces — hero, page-hero, event/CTA cards, footer */
  --on-dark-heading: #7fd9c9;
  --on-dark-body: #d7ddf0;
  --on-dark-muted: #cfd9ee;
  --on-dark-faint: #b9c6e6;

  /* type */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --maxw: 1180px;
  --nav-h: 68px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p{ margin: 0; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  /* padding-inline (not the `padding` shorthand): elements combine this
     class with .section below, which sets its own vertical padding via
     padding-block. Two shorthand `padding` declarations on the same
     element don't merge per-side — whichever rule is later in the
     cascade wins ALL FOUR sides, silently zeroing out the other rule's
     sides. Logical inline/block properties never collide like that. */
  padding-inline: clamp(22px, 6vw, 28px);
}

.section{
  padding-block: 88px;
}
@media (max-width: 680px){
  .section{ padding-block: 56px; }
}
@media (max-width: 480px){
  .section{ padding-block: 40px; }
}

/* clamp(min, preferred, max): holds at today's width on normal screens,
   grows a bit further on wide ones instead of leaving a big empty gap
   next to a narrow column, caps out before a line gets too long to read. */
.prose p{ font-size: 16px; color: var(--ink); max-width: clamp(720px, 62vw, 860px); margin-bottom: 16px; }
.prose p:last-child{ margin-bottom: 0; }
.section-intro{ font-size: 15.5px; color: var(--muted); max-width: clamp(680px, 58vw, 820px); margin-bottom: 24px; }

.link{ color: var(--wl-blue); font-weight: 600; }
.link-underline{ text-decoration: underline; }

.kicker{
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.kicker img{ width: 15px; height: 15px; object-fit: contain; }

/* margin-block, not the `margin` shorthand: this element also carries
   .container (margin:0 auto, for centering). A shorthand `margin` here
   would set left/right to 0 too and override that centering entirely —
   same class-collision pattern as the earlier padding/.section bug. */
.eyebrow-line{ margin-block: 44px; }
.eyebrow-line img{
  /* No forced height/object-fit here on purpose: the source PNG is a thin
     line with dots sitting in a lot of transparent vertical padding, so
     scaling it by width alone (real aspect ratio, no stretch) already
     reads as a slim divider — forcing a fixed height with object-fit:fill
     stretched the dots into ellipses as the container got wider. */
  display: block;
  width: 100%;
  opacity: .9;
}
@media (max-width: 680px){
  .eyebrow-line{ margin-block: 28px; }
}

/* reveal-on-scroll (progressive enhancement — see js/main.js).
   Was disabled for a diagnosis (2026-09-09) — the real bug turned out to be
   a padding/container issue below, not this. Restored. */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 20px;
  min-height: 44px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-amber{ background: var(--amber); color: #fff; }
.btn-amber:hover{ box-shadow: 0 6px 16px -6px rgba(201,120,31,.55); }
.btn-outline{ background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-outline:hover{ border-color: #fff; }

.visually-hidden{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
