/* Royer Research Labs — static marketing site
   Dark, technical aesthetic. Web-safe fonts only (no external font dependency). */

:root {
  --bg:        #0B1220;  /* near-black slate */
  --bg-raised: #111A2B;  /* card / raised surface */
  --border:    #1E2A40;  /* hairline borders */
  --text:      #F4F7FB;  /* primary light cool text */
  --text-soft: #CFE8FF;  /* secondary cool text */
  --muted:     #8FA3BF;  /* muted captions */
  --accent:    #76B900;  /* single accent — used sparingly */
  --accent-dim:#5C9000;

  --maxw: 64rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  --font-head: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #06210A;
  padding: 0.5rem 0.9rem;
  z-index: 100;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark { color: var(--accent); flex: none; }
.brand-name { white-space: nowrap; }

.site-nav {
  display: flex;
  gap: clamp(0.9rem, 3vw, 1.6rem);
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--text-soft);
}
.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Hero */
.hero {
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
  max-width: 52rem;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.lede {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-soft);
  max-width: 44rem;
}
.lede-sub {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 44rem;
}

/* Sections */
.section {
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
  border-top: 1px solid var(--border);
}
.section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
/* the repeating motif: a short accent tick before each section title */
.section-rule {
  flex: none;
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}
.section-intro {
  color: var(--text-soft);
  max-width: 46rem;
  margin-bottom: 2rem;
}

/* Prose blocks */
.prose {
  max-width: 46rem;
  color: var(--text-soft);
}
.prose p + p { margin-top: 1.1rem; }

/* Technique cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.4rem 1.5rem;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
  color: var(--text);
}
.card p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* News */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 46rem;
}
.news-item {
  padding-block: 1.6rem;
  border-top: 1px solid var(--border);
}
.news-item:first-child {
  padding-top: 0;
  border-top: 0;
}
.news-item:last-child {
  padding-bottom: 0;
}
.news-date {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.news-title {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.news-body {
  color: var(--text-soft);
}
.news-body + .news-body { margin-top: 0.9rem; }
.news-body strong { color: var(--text); font-weight: 600; }
.news-links {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Contact */
.contact-email {
  margin-top: 1.4rem;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
}
.contact-email a { word-break: break-word; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Progressive reveal (enhancement only — content visible without JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
