:root {
  --carow-red: #B31B1B;
  --carow-red-dark: #8C1515;
  --uoft-blue: #002A5C;
  --ink: #222222;
  --muted: #5b5b5b;
  --border: #e0e0e0;
  --bg: #ffffff;
  --bg-alt: #f7f5f2;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--carow-red-dark); }
a:hover { color: var(--carow-red); }

.site-header {
  border-bottom: 3px solid var(--carow-red);
}
.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-header__crest-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.site-header__crest-badge--cornell { border: 2px solid var(--carow-red); order: 1; }
.site-header__crest-badge--uoft { border: 2px solid var(--uoft-blue); order: 2; }
.site-header__crest-badge img { width: 60%; height: 60%; object-fit: contain; }
.site-header__title {
  display: flex;
  flex-direction: column;
  order: 3;
  text-decoration: none;
  color: var(--ink);
}
.site-header__title-main { font-weight: 700; font-size: 1.1rem; }
.site-header__title-sub { font-size: 0.8rem; color: var(--muted); }
.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.site-header__nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}
.site-header__nav a:hover { color: var(--carow-red); }

.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.hero { margin: 0 0 2rem; }
.hero__banner {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.hero__text { padding: 1.5rem 0 0; }
.hero__text h1 { margin: 0 0 0.5rem; font-size: 1.9rem; }
.hero__tagline { color: var(--muted); font-size: 1.1rem; margin: 0; }

.scope-note { margin-bottom: 2.5rem; }

.paper-list { list-style: none; margin: 0; padding: 0; }
.paper-list__item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.paper-list__number {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.paper-list__title {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.paper-list__authors { color: var(--muted); font-size: 0.95rem; }
.paper-list__date { font-size: 0.85rem; color: var(--muted); }

.page h1 { font-size: 1.7rem; border-bottom: 3px solid var(--carow-red); padding-bottom: 0.5rem; }

.paper__number { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.25rem; }
.paper__title { font-size: 1.6rem; margin: 0 0 0.75rem; }
.paper__authors { list-style: none; margin: 0 0 0.5rem; padding: 0; font-size: 1.05rem; }
.paper__affiliation { color: var(--muted); font-size: 0.95rem; }
.paper__meta { color: var(--muted); margin-bottom: 1.5rem; }
.paper__abstract { background: var(--bg-alt); padding: 1.25rem 1.5rem; border-radius: 4px; margin-bottom: 1.5rem; }
.paper__jel, .paper__keywords { font-size: 0.95rem; margin: 0.5rem 0; }
.paper__download .button {
  display: inline-block;
  background: var(--carow-red);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin: 1rem 0;
}
.paper__download .button:hover { background: var(--carow-red-dark); color: #fff; }
.paper__citation { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.95rem; }

.site-footer {
  background: var(--carow-red-dark);
  color: #f2f2f2;
  margin-top: 3rem;
}
.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer__crest-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.site-footer__crest-badge img { width: 60%; height: 60%; object-fit: contain; }
.site-footer__inst-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.site-footer__crest-label {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #fff;
  white-space: nowrap;
}
.site-footer__text a { color: #fff; }
.site-footer__text p { margin: 0.25rem 0; font-size: 0.9rem; }

.footer-subscribe {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.5rem;
}
.footer-subscribe__text { width: 100%; }
.footer-subscribe h2 { font-size: 1rem; margin: 0 0 0.75rem; color: #fff; }

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 420px;
}
.subscribe-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}
.subscribe-form button {
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: var(--carow-red-dark);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.subscribe-form button:hover { background: #f2f2f2; }
.subscribe-form button:disabled { opacity: 0.6; cursor: default; }
.subscribe-status {
  flex-basis: 100%;
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.page .subscribe-form input[type="email"] { border-color: var(--border); }
.page .subscribe-form button { background: var(--carow-red); color: #fff; }
.page .subscribe-form button:hover { background: var(--carow-red-dark); }
.page .subscribe-status { color: var(--muted); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 600px) {
  .site-header__inner { padding: 0.85rem 1rem; gap: 0.6rem; }
  .site-header__crest-badge { width: 32px; height: 32px; }
  .site-header__title-main { font-size: 1rem; }
  .site-header__title-sub { font-size: 0.72rem; }
  .site-header__nav { gap: 0.4rem 0.9rem; font-size: 0.9rem; }

  .site-main { padding: 0 1rem 2rem; }

  .hero__banner { max-height: 160px; border-radius: 0; }
  .hero__text { padding-top: 1.25rem; }
  .hero__text h1 { font-size: 1.4rem; }

  .hero__tagline { font-size: 1rem; }

  .page h1 { font-size: 1.35rem; }
  .paper__title { font-size: 1.25rem; }
  .paper__abstract { padding: 1rem; }

  .site-footer__inner { padding: 1.5rem 1rem; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
