/* georgegui.com — layout is agents' territory; content comes from data/. */

:root {
  --text: #1a1a1a;
  --muted: #555;
  --link: #1a4f9c;
  --rule: #e3e3e3;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Charter, Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
}

header nav,
main,
footer p {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

header {
  border-bottom: 1px solid var(--rule);
}

nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-name {
  font-weight: bold;
  text-decoration: none;
  color: var(--text);
}

.nav-links a {
  margin-left: 1.25rem;
  text-decoration: none;
  color: var(--muted);
}

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

main { padding-top: 2.5rem; padding-bottom: 3rem; }

a { color: var(--link); }

h1 { font-size: 1.7rem; margin: 0 0 0.75rem; }
h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.25rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}
section:first-of-type h2 { margin-top: 1rem; }

/* Homepage */
.intro {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.portrait {
  width: 180px;
  max-width: 40vw;
  border-radius: 4px;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .intro { flex-direction: column; }
  .portrait { width: 160px; }
}

/* Research page */
.paper { margin: 1.4rem 0; }
.paper p { margin: 0.1rem 0; }

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

.paper-title a {
  color: var(--text);
  text-decoration: none;
}
.paper-title a:hover { color: var(--link); }
.paper-note { font-style: italic; font-weight: normal; }
.paper-authors { color: var(--muted); }
.paper-venue { font-style: italic; }

.paper-awards {
  margin: 0.3rem 0 0;
  padding-left: 1.3rem;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--rule);
}

footer p {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { color: var(--muted); }
