/* Ken Moon — academic site */

:root {
  --ink: #1c1c1e;
  --muted: #556069;
  --accent: #b31b1b;        /* Cornell carnelian */
  --name: #1b4f82;          /* deep academic navy */
  --rule: #d9e2ea;
  --rule-strong: #4177a6;   /* header divider */
  --bg: #f2f7fb;
  --maxw: 46rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
header {
  border-bottom: 2px solid var(--rule-strong);
  padding: 2.5rem 0 1.5rem;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.portrait {
  width: 140px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

header h1 {
  margin: 0 0 0.35rem;
  font-size: 2.1rem;
  font-weight: normal;
  letter-spacing: 0.01em;
}

header h1 a { color: var(--name); }
header h1 a:hover { text-decoration: none; }

.tagline {
  margin: 0;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
}

nav {
  margin-top: 1.1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
}

nav a {
  margin-right: 1.4rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

nav a.active, nav a:hover { color: var(--accent); text-decoration: none; }

/* Main */
main { padding: 2rem 0 3rem; }

h2 {
  font-size: 1.25rem;
  font-weight: normal;
  color: var(--accent);
  margin: 2.2rem 0 0.9rem;
  letter-spacing: 0.01em;
}

main > .wrap > h2:first-child { margin-top: 0.5rem; }

p { margin: 0 0 1rem; }

/* Publications */
.paper { margin: 0 0 1.35rem; }

.paper .title {
  margin: 0;
  font-weight: bold;
}

.paper .authors {
  margin: 0.1rem 0 0;
  color: var(--ink);
}

.paper .venue {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-style: italic;
}

.paper .venue .status { font-style: normal; }

.paper .links {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
}

/* Contact */
.contact address {
  font-style: normal;
  color: var(--muted);
}

.links-row {
  margin-top: 0.8rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
}

.links-row a { margin-right: 1.2rem; }

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 1.2rem 0 2.5rem;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
}

@media (max-width: 480px) {
  header { padding-top: 1.8rem; }
  header h1 { font-size: 1.7rem; }
  body { font-size: 1rem; }
  .header-flex { flex-direction: column-reverse; align-items: flex-start; }
  .portrait { width: 110px; }
}
