/* Brown Lab Applications — V1 site styles. Palette: black/charcoal, copper #A05A2C, white. */
:root {
  --ink: #0b0b0b;
  --ink-2: #262626;
  --muted: #565656;
  --line: #e7e5e2;
  --paper: #ffffff;
  --paper-2: #f7f6f4;
  --copper: #a05a2c;
  --copper-deep: #864a23;
  --charcoal: #121212;
  --wrap: 72rem;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--copper-deep); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: 4px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); padding: 0.25rem 0; }
.brand:hover { color: var(--ink); }
.brand-icon { width: 2.6rem; height: auto; }
.brand-name { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.15; }
.brand-name span { font-weight: 500; color: var(--muted); }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a {
  display: inline-block; padding: 0.6rem 0.8rem; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.04em; color: var(--ink-2); border-radius: 4px;
}
.nav a:hover { color: var(--copper-deep); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { position: relative; padding-top: clamp(4rem, 12vw, 9rem); padding-bottom: clamp(4rem, 11vw, 8.5rem); text-align: center; }
.hero-logo { margin: 0 auto; max-width: 48rem; }
.hero-logo picture { display: block; }
@media (max-width: 39.99em) { .hero-logo { max-width: 20rem; } }
.hero-logo img { width: 100%; }
.lede {
  margin: clamp(2.25rem, 5vw, 3.5rem) auto 0; max-width: 40rem; text-wrap: balance;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.sub { margin: 1rem auto 0; max-width: 36rem; text-wrap: pretty; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.125rem); }
.orbit {
  position: absolute; left: 50%; top: 50%; width: max(70rem, 115%); transform: translate(-50%, -50%);
  fill: none; stroke: var(--copper); stroke-width: 1; opacity: 0.22; pointer-events: none;
}
.orbit ellipse + ellipse { opacity: 0.55; }

/* Sections */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); }
.grid { display: grid; gap: 1rem; }
.eyebrow {
  margin: 0; color: var(--copper-deep); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--copper); border-radius: 1px; }
.content { max-width: 40rem; }
h1, h2 { line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 1.25rem; font-weight: 700; }
.content p { margin: 0 0 1rem; color: var(--ink-2); }
.content p:last-child { margin-bottom: 0; }
address { font-style: normal; margin-top: 1.25rem; padding-left: 1rem; border-left: 2px solid var(--copper); color: var(--ink-2); line-height: 1.7; }
.email-link { font-weight: 600; font-size: 1.15rem; color: var(--copper-deep); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.button {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
  padding: 0.8rem 1.25rem; border-radius: 4px;
}
.button:hover { background: var(--copper-deep); color: #fff; }

@media (min-width: 52rem) {
  .grid { grid-template-columns: 14rem 1fr; gap: 3rem; align-items: start; }
  .eyebrow { padding-top: 0.6rem; }
}

/* Inner pages */
.page { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.narrow { max-width: 46rem; }
.page h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 1rem 0 0.5rem; }
.page h2 { font-size: 1.25rem; margin: 2.25rem 0 0.6rem; }
.page p, .page li { color: var(--ink-2); }
.page ul { padding-left: 1.25rem; }
.page li { margin-bottom: 0.35rem; }
.page li::marker { color: var(--copper); }
.meta { color: var(--muted); font-size: 0.95rem; margin-top: 0; }
.page-404 { text-align: left; }

/* Footer */
.site-footer { background: var(--charcoal); color: #d9d9d9; font-size: 0.9rem; line-height: 1.6; border-top: 3px solid var(--copper); }
.footer-inner { padding-top: 2.75rem; padding-bottom: 2.5rem; display: grid; gap: 1.5rem; }
.footer-mark { width: 13.75rem; }
.legal p { margin: 0 0 0.35rem; }
.legal strong { color: #fff; font-weight: 600; }
.sep { color: #8a8a8a; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid #2c2c2c; color: #a8a8a8; }
.footer-meta a { color: #fff; font-weight: 600; }
.footer-meta a:hover { color: #fff; text-decoration-thickness: 2px; }
.site-footer :focus-visible { outline-color: #fff; }

@media (max-width: 30rem) {
  .brand-name span { display: block; font-size: 0.72rem; letter-spacing: 0.2em; }
  .brand-name { font-size: 0.88rem; }
  .nav a { padding: 0.6rem 0.55rem; }
  .sep { display: none; }
  .legal-line > :not(.sep) { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .orbit, .skip-link, nav { display: none; }
  .site-footer { background: none; color: #000; }
}
