/* Rock Creek. The shared foundation for every page on rolaw.co.
   Colours sampled from assets/rock-creek/source; see
   docs/rock-creek-design-direction.html for how each one was arrived at.
   Page specific rules stay inline on the page that needs them. */

:root{
  /* ---- depth ladder, deepest first ---- */
  --rc-void:#050505;        /* deep canopy shadow, page base and footer */
  --rc-floor:#051919;       /* forest floor, the default section base */
  --rc-understory:#0F2323;  /* cards and raised panels */
  --rc-canopy:#0F2D2D;      /* nav once scrolled, raised surfaces */
  --rc-stone-shadow:#2D372D;/* dividers and hairlines only, never a boundary */
  --rc-stone:#647567;       /* derived: field borders, anything that is an edge */
  --rc-lichen:#9FB0A6;      /* derived: muted and secondary text */
  /* lichen stone was derived for edges, not text: it is 3.69:1 on the forest
     floor and fails AA at 0.72rem. This is the shallowest lift that clears it. */
  --rc-stone-text:#7C8D80;  /* 5.16:1 on #051919, 4.65:1 on #0F2323 */
  /* ---- atmosphere ---- */
  --rc-brand:#025C5D;       /* the one brand green */
  --rc-creek:#377D87;       /* headings and graphics at 24px and up, never body */
  --rc-dusk:#5FA5A5;--rc-horizon:#7DC3AF;--rc-arch:#B9FFFF;
  --rc-mist:#D6F2F0;        /* body */
  --rc-paper:#E8F4F2;       /* headings */
  --rc-lamp-deep:#915F2D;--rc-lamp:#EA965A;--rc-lamp-glow:#FFAE66;--rc-lamp-core:#FFD79B;
  --rc-firefly:#FFF5A5;
  /* The reading face. It is a monospace on purpose: the artwork is 16 bit pixel
     art and a warm humanist grotesque beside it read as a different project.
     Plex Mono is the institutional end of the monospace range rather than the
     developer end, which is the register a law firm wants. Named --rc-text
     rather than --rc-sans because it is not a sans. */
  --rc-text:'IBM Plex Mono',ui-monospace,'SF Mono',Menlo,monospace;
  /* Silkscreen carries the small tracked marks: the wordmark, kickers, section
     numerals, field labels and buttons. It is a bitmap face, so it only has 400
     and 700 and it only stays crisp at a fixed size. Every rule below therefore
     pins a size and never asks for a weight it does not have. Headlines and body
     stay on the reading face: a pixel headline reads as a game interface, and
     this is where a client decides whether the firm is serious. */
  --rc-pixel:Silkscreen,ui-monospace,'Courier New',monospace;
  /* native controls, scrollbars and form widgets follow the page, not the OS */
  color-scheme:dark;
  --ease-dusk:cubic-bezier(.22,.61,.36,1);
  --ease-breathe:cubic-bezier(.45,0,.55,1);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:76px}
/* the page ends in the forest: anything below the footer, and any overscroll, is void */
body{background:var(--rc-void);color:var(--rc-mist);font-family:var(--rc-text);
  font-size:16px;line-height:1.75;font-weight:400;-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
em{font-style:normal;color:inherit}
a{color:var(--rc-horizon);text-decoration:underline;text-underline-offset:3px}
a:hover{color:var(--rc-lamp-core)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible{outline:2px solid var(--rc-lamp-core);outline-offset:3px}
.skip-link{position:absolute;left:-9999px;top:0;z-index:400;background:var(--rc-paper);
  color:var(--rc-void);padding:.75rem 1.25rem;font-size:.85rem;font-weight:600;text-decoration:none}
.skip-link:focus{left:.75rem;top:.75rem}
.col{max-width:1180px;margin:0 auto;padding:0 28px}
.anchor-alias{display:block;height:0;overflow:hidden}

/* ---------------- nav ----------------
   Canopy once scrolled, transparent over the hero artwork. No bracket
   chrome. The consult link is horizon green rather than a lamp fill, because a
   warm button in the chrome would spend intake's one warm moment on every screen. */
nav#nav{position:sticky;top:0;z-index:200;background:var(--rc-canopy);
  border-bottom:1px solid var(--rc-stone-shadow);
  transition:background .24s var(--ease-dusk),border-color .24s var(--ease-dusk)}
nav#nav .col{display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  padding-top:16px;padding-bottom:16px}
.glyph{width:24px;height:24px;color:var(--rc-paper);flex:none}
.word{font-family:var(--rc-pixel);font-weight:400;letter-spacing:.09em;font-size:.95rem;
  color:var(--rc-paper);text-decoration:none}
/* the nav is the chrome you see on every screen of the site, so it carries the
   face too. Uppercase, because a bitmap face needs the caps height to read */
nav#nav .links{margin-left:auto;display:flex;flex-wrap:wrap;gap:24px;
  font-family:var(--rc-pixel);font-size:.76rem;font-weight:400;letter-spacing:.05em;
  text-transform:uppercase}
nav#nav .links a{color:var(--rc-mist);text-decoration:none;transition:color .24s var(--ease-dusk)}
nav#nav .links a:hover{color:var(--rc-lamp-core)}
nav#nav .links a.nav-cta{color:var(--rc-horizon)}
/* over the hero artwork there is no bar at all: it would cut the canopy off */
body.rc-top nav#nav{background:transparent;border-bottom-color:transparent}
body.rc-top #nav .word,body.rc-top #nav .glyph{color:#fff}
body.rc-top #nav .links a{color:var(--rc-mist)}
body.rc-top #nav .links a:hover{color:var(--rc-lamp-core)}
body.rc-top #nav .links a.nav-cta{color:var(--rc-horizon)}

/* ---------------- section chrome ---------------- */
.rc{background:var(--rc-floor);color:var(--rc-mist);font-family:var(--rc-text);
  padding:76px 0;border:0}
.rc p,.rc li{font-size:1rem;line-height:1.75;max-width:66ch}
/* Silkscreen already carries its own spacing, so the tracking comes down from
   the 0.34em the proportional numeral needed */
.rc .sec-no{display:block;font-family:var(--rc-pixel);font-size:.8rem;font-weight:400;
  letter-spacing:.22em;color:var(--rc-stone-text);margin:0 0 1.15em}
.rc .kicker{font-family:var(--rc-pixel);font-size:.78rem;font-weight:400;letter-spacing:.07em;
  line-height:1.5;text-transform:uppercase;color:var(--rc-dusk);margin:0 0 1em}
.rc .kicker::before{content:none}
.rc .h2,.rc h1{font-family:var(--rc-text);font-size:clamp(1.35rem,2.8vw,1.95rem);font-weight:600;
  letter-spacing:-.03em;line-height:1.22;color:var(--rc-paper);margin:0 0 .7em;max-width:26ch;
  text-transform:none}
.rc .h2::before{content:none}
.rc h3{font-family:var(--rc-text);font-size:1.08rem;font-weight:600;letter-spacing:-.02em;
  line-height:1.4;color:var(--rc-paper);margin:0 0 .5em}
.rc a{color:var(--rc-horizon)}
.rc a:hover{color:var(--rc-lamp-core)}

/* ---------------- buttons ---------------- */
/* The lamps in the artwork are small warm points, not floodlights. A solid
   #FFAE66 slab read as a traffic cone against them. The button is dark with a
   warm hairline and a warm label, and the fill and glow only come up on hover,
   so it reads as light rather than as paint. */
.btn-primary{display:inline-block;font-family:var(--rc-pixel);font-weight:400;font-size:.8rem;
  letter-spacing:.06em;text-transform:uppercase;background:rgba(255,174,102,.06);color:var(--rc-lamp-core);
  padding:.8em 1.5em;border:1px solid rgba(255,215,155,.45);border-radius:2px;
  text-decoration:none;cursor:pointer;
  transition:background .22s var(--ease-dusk),border-color .22s var(--ease-dusk),
             box-shadow .28s var(--ease-dusk),transform .1s var(--ease-dusk)}
.btn-primary::before{content:none}
.btn-primary:hover{background:rgba(255,174,102,.13);border-color:var(--rc-lamp-core);
  color:var(--rc-lamp-core);box-shadow:0 0 28px -10px rgba(255,174,102,.6)}
.btn-primary:active{transform:translateY(1px)}
.btn-primary:focus-visible{outline:2px solid var(--rc-lamp-core);outline-offset:3px}
.btn-outline{display:inline-block;font-family:var(--rc-pixel);font-weight:400;font-size:.8rem;
  letter-spacing:.06em;text-transform:uppercase;background:none;border:1px solid var(--rc-stone);
  color:var(--rc-mist);padding:.8em 1.5em;
  border-radius:2px;text-decoration:none;
  transition:color .22s var(--ease-dusk),border-color .22s var(--ease-dusk)}
.btn-outline:hover{border-color:var(--rc-horizon);color:var(--rc-horizon)}

/* ---------------- artwork plates ----------------
   The picture never meets an edge: it fades into the surface top and bottom so
   the section and the scene read as one ground. */
.rc-plate{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.rc-plate img{width:100%;height:100%;object-fit:cover;display:block}
.rc-plate::after{content:'';position:absolute;inset:0}
.rc > .col{position:relative;z-index:1}

/* ---------------- the section dissolve ----------------
   This was a drawn dry stone wall. As a band across the full width it read as a
   pattern sitting on the page rather than a seam in it. The two surfaces simply
   dissolve into each other now, which is the same rule the hero bottom follows. */
hr.stonewall{border:0;margin:0;height:150px;
  background:linear-gradient(to bottom,var(--rc-floor) 0%,var(--rc-understory) 100%)}

/* ---------------- section reveal ----------------
   12px rise, 520ms, 60ms stagger, once only and never on the way back up. An
   animation rather than a transition so it does not fight a hover. */
body.rc-js .rc .rc-reveal{opacity:0}
body.rc-js .rc .rc-reveal.is-in{animation:rc-rise .52s var(--ease-dusk) both}
@keyframes rc-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media print{body.rc-js .rc .rc-reveal{opacity:1}}

/* ---------------- footer ---------------- */
footer.rc{position:relative;padding:0;background:var(--rc-void);color:var(--rc-lichen);
  border:0;overflow:hidden;isolation:isolate}
footer.rc .rc-plate img{object-position:50% 62%;opacity:.08}
footer.rc .rc-plate::after{background:linear-gradient(to bottom,
  var(--rc-void) 0%,rgba(5,5,5,.42) 30%,rgba(5,5,5,.62) 100%)}
footer.rc .col{position:relative;z-index:1;padding:64px 28px 44px}
footer.rc a{color:var(--rc-lichen);text-decoration:none}
footer.rc a:hover{color:var(--rc-lamp-core)}
footer.rc .ftop{display:grid;grid-template-columns:2.1fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px}
footer.rc .f-logo{display:flex;align-items:center;gap:10px}
footer.rc .f-logo .glyph{width:20px;height:20px}
footer.rc .f-logo .logo-word{font-family:var(--rc-pixel);font-weight:400;letter-spacing:.09em;
  font-size:.92rem;color:var(--rc-paper)}
footer.rc .ftagline{font-size:1rem;font-weight:500;color:var(--rc-mist);margin:14px 0 10px;max-width:30ch}
footer.rc .firm-name{font-size:.88rem;color:var(--rc-lichen);margin:0 0 4px}
footer.rc .ftag{font-size:.88rem;color:var(--rc-lichen);margin:0;max-width:34ch}
footer.rc .fsoc{display:flex;gap:22px;margin-top:20px;font-size:.9rem}
footer.rc .fs-link{color:var(--rc-horizon)}
footer.rc .fct{font-family:var(--rc-pixel);font-size:.76rem;font-weight:400;letter-spacing:.07em;
  text-transform:uppercase;color:var(--rc-stone-text);margin-bottom:18px}
footer.rc .fct::before{content:none}
footer.rc .fl-col{display:flex;flex-direction:column;gap:11px;font-size:.92rem}
footer.rc .fdis2{font-size:.8rem;line-height:1.6;color:var(--rc-stone-text);
  margin:0 0 26px;padding-top:26px;border-top:1px solid var(--rc-stone-shadow);max-width:none}
footer.rc .fbot{display:flex;justify-content:space-between;align-items:center;gap:12px;
  flex-wrap:wrap;border-top:0;padding-top:0;margin-top:0}
footer.rc .fcopy{font-size:.8rem;color:var(--rc-stone-text)}
footer.rc .fblinks{display:flex;align-items:center;gap:22px;font-size:.8rem}
footer.rc .f-sig{width:26px;height:auto;margin-left:8px;opacity:.85}
/* the short footer the inner pages carry */
footer.rc .sig{font-size:.82rem;color:var(--rc-stone-text);margin:16px 0 0;max-width:none}
footer.rc .sig a{color:var(--rc-lichen)}

@media (max-width:900px){
  footer.rc .ftop{grid-template-columns:1fr 1fr;gap:32px}
}
@media (max-width:640px){
  .rc{padding:48px 0}
  .col{padding-left:20px;padding-right:20px}
  /* seven uppercase bitmap links wrap to four rows at this width and eat the
     hero, so the face comes down a step and the gaps close up */
  nav#nav .links{margin-left:0;gap:10px 14px;font-size:.66rem;letter-spacing:.02em}
  nav#nav .col{gap:12px;padding-top:13px;padding-bottom:13px}
  footer.rc .col{padding:48px 20px 36px}
  footer.rc .ftop{grid-template-columns:1fr;gap:28px}
  hr.stonewall{height:88px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
  html{scroll-behavior:auto}
  #nav{transition:none}
}
