:root{
  --bg: #FAFAF8;
  --text: #1F2933;
  --muted: #6B7280;
  --border: #E5E7EB;
  --accent: #1E3A8A;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a{ color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover{ text-decoration: underline; }

.container{ max-width: 75ch; padding: 0 18px; margin: 0 auto; }

main.container {
  padding-top: 12px;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 18px 0;
  border-bottom: 2px solid var(--border);
  background: var(--bg);

  /* subtle visual separation when scrolling */
  backdrop-filter: saturate(1) blur(0);
}

.nav{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: baseline;
}

.brand{
  margin-right: auto;
  font-weight: 700;              /* slightly stronger */
  font-size: 1.05rem;            /* subtle size increase */
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 700px) {
  .nav {
    display: flex;
    flex-direction: row;     /* keep row */
    flex-wrap: wrap;         /* allow wrapping */
    justify-content: center; /* center the wrapped lines */
    align-items: center;
    gap: 8px 12px;           /* row gap, column gap */
  }

  .brand {
    margin-right: 0;         /* remove desktop push */
    flex: 0 0 100%;          /* brand takes full width = first row */
    text-align: center;
    font-size: 1.1rem;
    padding: 4px 0;
  }

  .nav a:not(.brand) {
    font-size: 0.95rem;
    white-space: nowrap;     /* keep each link on one piece */
    padding: 6px 8px;
  }
}

.nav a{ color: var(--text); text-decoration: none; padding: 6px 8px; border-radius: 10px; }
.nav a:hover{ background: rgba(229,231,235,.7); }

.hero{
  padding: 34px 0 22px 0;
}
.hero h1{ font-size: 2.1rem; line-height: 1.15; margin: 0 0 10px 0; letter-spacing: -0.02em; }
.hero p{ margin: 0 0 12px 0; color: var(--muted); }
.btnrow{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn{
  display:inline-block;
  border: 1px solid var(--border);
  background: white;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
}
.btn.primary{ border-color: rgba(30,58,138,.25); color: var(--accent); }
.btn:hover{ border-color: rgba(31,41,51,.25); }

.section{ padding: 22px 0; border-top: 1px solid var(--border); }
.section h2{ font-size: 1.35rem; margin: 0 0 10px 0; letter-spacing: -0.01em; }
.kicker{ color: var(--muted); font-size: 0.95rem; margin-top: -4px; }

.list{
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}
.list li{ padding: 10px 0; border-top: 1px solid var(--border); }
.list li:first-child{ border-top: none; }
.meta{ color: var(--muted); font-size: 0.9rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Center all footer content */
.footer-container {
  text-align: center;
}

/* Top copyright line */
.footer-top {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Footer links (centered, inline) */
.footer-links {
  margin: 10px 0;
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Dot separators */
.footer-links span {
  margin: 0 6px;
  color: var(--muted);
}

/* Attribution line */
.footer-attribution {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Small helper */
.small {
  font-size: 0.9rem;
  color: var(--muted);
}


/* =========================
   Contact page
   ========================= */

/* Intro text */
.contact-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Contact form */
.contact-form {
  border: 1px solid var(--border);
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0 18px 0;
}

.contact-form label {
  display: block;
  margin: 12px 0;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(30, 58, 138, 0.35);
}

/* Affiliation cards grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

/* Individual card */
.contact-card {
  border: 1px solid var(--border);
  background: white;
  border-radius: 16px;
  padding: 14px;
}

.contact-card-title {
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.contact-card-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-card-body {
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-card-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive: stack cards on small screens */
@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
