/* ============================================================
   Antecedent Labs — Site Styles
   Light institutional theme. No template aesthetics.
   ============================================================ */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/inter-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #fdfcfb;
  --bg-subtle: #f6f5f3;
  --bg-card: #efeeec;
  --text: #1a2332;
  --text-body: #2d3748;
  --text-secondary: #3e4a5a;
  --text-muted: #7a8494;
  --accent: #4a90a4;
  --accent-hover: #3a7a8e;
  --border: #dfe2e6;
  --border-light: #ecedef;
  --top-rule: #4a90a4;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --content-w: 860px;
  --header-w: 1080px;
  --header-h: 64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg);
  border-top: 3px solid var(--top-rule);
}
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }

/* --- Layout --- */
.wrap {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(253, 252, 251, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.header-inner {
  max-width: var(--header-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  height: 28px;
  width: auto;
}
.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand-name span {
  font-weight: 300;
  color: var(--text-secondary);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.header-nav a:hover {
  color: var(--text);
}
.header-nav a.nav-cta {
  color: var(--accent);
  padding: 6px 18px;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.header-nav a.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(74, 144, 164, 0.04);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 32px 100px;
}
.hero-mark {
  width: 88px;
  height: auto;
  margin-bottom: 40px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 32px;
  text-transform: uppercase;
}
.hero h1 span {
  font-weight: 300;
  color: var(--text-secondary);
}
.hero-tagline {
  font-size: 18px;
  font-weight: 450;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 15px;
  font-weight: 450;
  color: var(--text-muted);
  margin-bottom: 44px;
}
.hero-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.hero-link:hover {
  color: var(--accent-hover);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.sec {
  padding: 96px 0;
}
.sec-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.sec-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.sec-heading {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 36px;
}
.sec p {
  color: var(--text-body);
  margin-bottom: 20px;
  max-width: 720px;
  line-height: 1.75;
}
.sec p:last-child { margin-bottom: 0; }
.sec p strong { color: var(--text); font-weight: 500; }

/* ============================================================
   RESEARCH / PAPER LISTINGS
   ============================================================ */
.paper-listing {
  margin-top: 12px;
}
.paper-entry {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.paper-entry:first-child {
  border-top: 1px solid var(--border);
}
.paper-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
}
.paper-title a {
  color: var(--text);
}
.paper-title a:hover {
  color: var(--accent);
}
.paper-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.paper-desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 680px;
}
.paper-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
}
.paper-links a {
  color: var(--accent);
  font-weight: 450;
}
.paper-links .sep {
  color: var(--border);
  user-select: none;
}
.paper-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74, 144, 164, 0.08);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

/* ============================================================
   DOMAIN CARDS
   ============================================================ */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.domain-card {
  padding: 36px 28px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: border-color 0.15s ease;
}
.sec-alt .domain-card {
  background: var(--bg);
}
.domain-card:hover {
  border-color: #c8ccd0;
}
.domain-card .domain-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.domain-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.domain-card p {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 20px;
}
.domain-card .card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

/* ============================================================
   FOUNDER PREVIEW
   ============================================================ */
.founder-preview {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}
.founder-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.founder-credential {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.founder-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

/* ============================================================
   CALLOUT
   ============================================================ */
.callout {
  text-align: center;
  padding: 72px 32px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-subtle);
}
.callout p {
  font-size: 19px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}
.callout strong {
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 32px;
}
.footer-contact {
  margin-bottom: 28px;
}
.footer-contact a {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}
.footer-contact a:hover {
  color: var(--accent);
}
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-meta a {
  color: var(--text-muted);
}
.footer-meta a:hover {
  color: var(--accent);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-orcid {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================================
   PAGE: ABOUT
   ============================================================ */
.page-header {
  padding: 140px 0 64px;
}
.page-title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}
.page-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 400;
}
.about-body {
  padding-bottom: 96px;
}
.about-body p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 720px;
}
.credential-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
}
.credential-list li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}
.credential-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================================================
   PAGE: RESEARCH
   ============================================================ */
.research-intro {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.research-intro p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 680px;
}
.research-orcid {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 24px;
}
.research-orcid a {
  color: var(--text-muted);
}
.research-orcid a:hover {
  color: var(--accent);
}
.paper-card {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.paper-card h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.paper-card .paper-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.paper-card .paper-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.paper-card .paper-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 680px;
}
.paper-card .paper-ids {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.paper-card .paper-ids a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.paper-card .paper-ids a:hover {
  color: var(--accent);
}
.paper-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all 0.15s ease;
}
.btn:hover {
  border-color: var(--accent);
  background: rgba(74, 144, 164, 0.04);
  color: var(--accent-hover);
}
.paper-license {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ============================================================
   PAGE: INTELLIGENCE
   ============================================================ */
.intel-body p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 720px;
}
.intel-note {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 20px;
  margin: 36px 0;
  max-width: 680px;
  line-height: 1.7;
}

/* ============================================================
   PAGE: INSIGHTS
   ============================================================ */
.post-list {
  margin-top: 12px;
}
.post-entry {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.post-entry:first-child {
  border-top: 1px solid var(--border);
}
.post-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.post-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}
.post-title a {
  color: var(--text);
}
.post-title a:hover {
  color: var(--accent);
}
.post-summary {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   PAGE: CONTACT
   ============================================================ */
.contact-body {
  padding: 0 0 96px;
}
.contact-body p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.contact-email {
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
}
.contact-email:hover {
  color: var(--accent);
}

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
  border: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .wrap, .header-inner, .footer-inner { padding: 0 24px; }
  .hero { padding: 120px 24px 80px; }
  .hero h1 { font-size: 38px; }
  .hero-tagline { font-size: 16px; }
  .sec { padding: 72px 0; }
  .sec-heading { font-size: 26px; }
  .domain-grid { grid-template-columns: 1fr; gap: 16px; }
  .header-nav { gap: 16px; }
  .header-nav a { font-size: 12px; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-header { padding: 120px 0 48px; }
  .page-title { font-size: 32px; }
}
@media (max-width: 480px) {
  .wrap, .header-inner, .footer-inner { padding: 0 20px; }
  .hero { padding: 100px 20px 64px; min-height: 90vh; }
  .hero h1 { font-size: 32px; }
  .brand-name { display: none; }
  .header-nav a:not(.nav-cta) { display: none; }
  .sec { padding: 56px 0; }
  .callout { padding: 48px 20px; }
  .callout p { font-size: 17px; }
}
