/* AdCoelum — science / astronomy startup layout */
/* Fonts: preconnect in HTML; fallback stack for offline / file:// */

:root {
  --bg-void: #070b12;
  --bg-card: rgba(12, 18, 32, 0.78);
  --bg-elevated: rgba(20, 32, 56, 0.55);
  --border-subtle: rgba(160, 192, 255, 0.12);
  --text: #e8edf7;
  --text-muted: #9aacbf;
  --text-dim: #6a7a8c;
  --accent: #7cc4ff;
  --accent-warm: #c9a86c;
  --accent-glow: rgba(124, 196, 255, 0.15);
  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --r-pad: clamp(1rem, 4vw, 2rem);
  --content-max: 44rem;
  --content-wide: 52rem;
  --header-h: auto;
  --orb: linear-gradient(135deg, rgba(124, 196, 255, 0.08) 0%, transparent 50%, rgba(201, 168, 108, 0.06) 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg-void);
  background-image:
    var(--orb),
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(100, 140, 200, 0.18), transparent),
    url("../backgr.jpeg");
  background-size: auto, 100% 40%, cover;
  background-position: 0 0, top, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #a8ddff;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-subtle);
}

.skip-link:focus {
  left: var(--r-pad);
  top: 0.5rem;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  background: rgba(7, 11, 18, 0.82);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem var(--r-pad) 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 800px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: block;
}

.brand:hover,
.brand:focus-visible {
  color: #fff;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0;
}

.brand__tagline {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Nav */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.2rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 0.35rem;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-glow);
  border-color: var(--border-subtle);
}

/* Main */
main {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--r-pad) 5rem;
}

/* Prose in cards / sections */
.prose {
  color: var(--text-muted);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose h2,
.prose h3 {
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.prose h2:first-child,
.prose h3:first-child,
.prose .section-head:first-child {
  margin-top: 0;
}

.prose h2 {
  font-size: 1.4rem;
}

.prose h3 {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.prose p {
  margin: 0 0 1em;
  max-width: 65ch;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
  max-width: 65ch;
}

.prose li {
  margin-bottom: 0.5em;
}

/* Panel (glass card) */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.65rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.panel--hero {
  max-width: var(--content-wide);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  border-color: rgba(124, 196, 255, 0.2);
  background: linear-gradient(160deg, rgba(15, 24, 42, 0.92) 0%, rgba(10, 16, 28, 0.88) 100%);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 0.6rem;
}

.panel--hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.75em;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 60ch;
}

/* Pillars (home) */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: var(--content-wide);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 700px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  text-align: left;
}

.pillar h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

.pillar p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* Section label */
.section-head {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

/* Team cards */
.card-grid {
  display: grid;
  gap: 1rem;
  max-width: var(--content-wide);
}

.person-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
}

.person-card h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.person-card p {
  margin: 0;
  max-width: none;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* TBD / placeholder */
.tbd {
  background: rgba(201, 168, 108, 0.08);
  border: 1px dashed rgba(201, 168, 108, 0.45);
  border-radius: 0.4rem;
  padding: 0.9rem 1rem;
  margin: 1rem 0 0;
  text-align: left;
  font-size: 0.88rem;
  color: #d4c4a8;
  line-height: 1.5;
}

.tbd strong {
  color: var(--accent-warm);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Contact */
.contact-block {
  text-align: left;
  max-width: 32rem;
  margin: 0 auto;
}

.address-lines {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.address-lines li {
  margin: 0;
}

.contact-actions {
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg-void);
  background: var(--accent);
  border: none;
  border-radius: 0.4rem;
  padding: 0.65rem 1.15rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover {
  background: #9dd4ff;
  color: var(--bg-void);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1rem var(--r-pad) 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 11, 18, 0.75);
}

.site-footer p {
  margin: 0;
}

/* Subtle divider */
.rule {
  height: 1px;
  background: var(--border-subtle);
  margin: 1.5rem 0;
  border: none;
}

/* Services: merge lists visually */
.prose .flat-list {
  list-style: none;
  padding-left: 0;
  max-width: 65ch;
}

.prose .flat-list li {
  position: relative;
  padding-left: 1.1em;
  margin-bottom: 0.6em;
}

.prose .flat-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.5em;
  top: 0.45em;
  opacity: 0.7;
}
