/* rrti.ca — Rostami Research Technologies Inc.
   Palette derived from the company logo: signal blue, deep blue, graphite.
   Green appears ONLY on live-status marks (filing status, product status) —
   it is semantic, not brand.

   The hero is light because the supplied logo files carry a white background;
   a dark band would frame them in a white box. If transparent PNGs arrive,
   the band can go dark again with a one-line change here.

   Structural motif: tick-rule dividers, from the idea of a measurement scale —
   the company builds instruments that measure things. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500&display=swap');

:root {
  --ink:         #16202B;
  --brand-deep:  #0B4F8F;
  --brand:       #1479C9;
  --brand-lite:  #E8F2FB;
  --paper:       #F5F8FB;
  --panel:       #FFFFFF;
  --rule:        #D8E2EC;
  --muted:       #5B6A78;
  --live:        #2E9E6B;

  --display: Archivo, ui-sans-serif, system-ui, sans-serif;
  --body: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 64ch;
  --shell: 54rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16.5px; line-height: 1.66;
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 1.5rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 30;
  background: var(--panel); color: var(--ink); padding: 0.6rem 1rem;
  border-radius: 6px; border: 2px solid var(--brand);
  font-family: var(--mono); font-size: 0.8rem;
}

/* ---------- top bar ---------- */
.topbar { background: var(--panel); border-bottom: 1px solid var(--rule); }
.topbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.9rem 1.5rem; padding: 0.55rem 0;
}
.brand { display: block; text-decoration: none; line-height: 0; }
/* Full lockup carries the company name, so no text wordmark beside it — the
   name was otherwise set twice in the same bar. The supplied PNG has generous
   internal padding, so the rendered mark is smaller than the box height. */
.brand img { display: block; height: 76px; width: auto; max-width: 68vw; object-fit: contain; }

.sitenav { display: flex; gap: 1.4rem; font-family: var(--mono); font-size: 0.78rem; }
.sitenav a { color: var(--muted); text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.sitenav a:hover { color: var(--ink); }
.sitenav a[aria-current='page'] { color: var(--brand-deep); border-bottom-color: var(--brand); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(168deg, var(--brand-lite) 0%, #FFFFFF 62%, var(--paper) 100%);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background-image: repeating-linear-gradient(to right, rgba(20,121,201,0.28) 0 1px, transparent 1px 10px);
}
.hero-inner { padding: 3.2rem 0 3.6rem; }

.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--brand); flex: none; }

.title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem, 1.1rem + 3.2vw, 2.95rem);
  letter-spacing: -0.03em; line-height: 1.07; margin: 0 0 1rem; color: var(--ink);
}
.standfirst { font-size: 1.1rem; color: var(--muted); max-width: var(--measure); margin: 0; }

/* ---------- prose ---------- */
.prose { max-width: var(--measure); padding-top: 2.9rem; }
.prose p { margin: 0 0 1.15rem; }
.prose a { color: var(--brand-deep); }
.prose h2 {
  font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  letter-spacing: -0.015em; margin: 2.6rem 0 0.9rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.prose h2::after {
  content: ''; flex: 1; height: 7px;
  background-image: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 8px);
  background-position: bottom; background-repeat: repeat-x;
}
.prose ul { margin: 0 0 1.15rem; padding-left: 1.1rem; }
.prose li { margin-bottom: 0.55rem; }
.prose strong { font-weight: 500; }

.tag {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: var(--brand-lite); border: 1px solid var(--rule);
  border-radius: 999px; padding: 0.1rem 0.55rem; margin-left: 0.35rem; white-space: nowrap;
}

/* ---------- product entry ---------- */
.entry {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 12px;
  border-left: 4px solid var(--brand); padding: 1.7rem; margin-top: 2.4rem;
}
.entry-name { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; margin: 0 0 0.4rem; }
.entry-name a { color: var(--ink); text-decoration: none; }
.entry-name a:hover { color: var(--brand-deep); }
.entry-status {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.1rem; display: inline-flex; align-items: center; gap: 0.45rem;
}
.entry-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(46,158,107,0.18); }
.entry p { margin: 0 0 1rem; }
.entry p:last-child { margin-bottom: 0; }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 8px;
  border: 1px solid var(--rule); background: var(--brand-lite);
  min-height: 8rem; color: var(--muted); font-size: 0.8rem;
}

/* ---------- contact rows ---------- */
.contacts { margin-top: 2.4rem; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--panel); }
.contact-row { display: grid; grid-template-columns: 14rem 1fr; gap: 0 1.5rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); }
.contact-row:last-child { border-bottom: 0; }
.contact-purpose { font-size: 0.95rem; color: var(--muted); }
.contact-addr { font-family: var(--mono); font-size: 0.88rem; }
.contact-addr a { color: var(--brand-deep); }

/* ---------- corporate record (now at page end) ---------- */
.record {
  margin-top: 3.4rem; background: var(--panel);
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
  box-shadow: 0 14px 34px -26px rgba(22,32,43,0.55);
}
.record-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.25rem; background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.led { display: inline-flex; align-items: center; gap: 0.45rem; color: rgba(255,255,255,0.78); }
.led::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(46,158,107,0.28); }
.record-row { display: grid; grid-template-columns: 12.5rem 1fr; gap: 0 1.5rem; padding: 0.72rem 1.25rem; border-bottom: 1px solid var(--rule); }
.record-row:last-child { border-bottom: 0; }
.record-key { font-size: 0.86rem; color: var(--muted); }
.record-val { font-family: var(--mono); font-size: 0.88rem; word-break: break-word; }
.record-val a { color: var(--brand-deep); }
.record-note { font-size: 0.85rem; color: var(--muted); margin: 0.9rem 0 0; }

/* ---------- footer ---------- */
.footer { margin-top: 3.6rem; border-top: 1px solid var(--rule); padding: 2rem 0 3.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.footer img { width: 96px; height: auto; display: block; flex: none; }
.footer-text { font-family: var(--mono); font-size: 0.75rem; line-height: 1.8; color: var(--muted); }
.footer-text a { color: var(--muted); }
.footer-text a:hover { color: var(--brand-deep); }

a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

@media (max-width: 44rem) {
  .hero-inner { padding: 2.5rem 0 3rem; }
  .brand img { height: 58px; }
}
@media (max-width: 36rem) {
  .record-row, .contact-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .sitenav { gap: 1.1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise 520ms cubic-bezier(0.2,0.7,0.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .hero { background: #fff; }
  .hero::after, .sitenav, .skip { display: none; }
  .record { box-shadow: none; page-break-inside: avoid; }
  .record-head { background: #fff; color: #000; border-bottom: 2px solid #000; }
  a { color: #000; }
}
