/* Simin Xie — personal site. One column, no chrome. */

:root {
  --ink:    #1C1C1A;
  --muted:  #5E5E58;
  --link:   #1F5138;
  --paper:  #FFFFFF;
  --serif:  "Newsreader", Georgia, "Times New Roman", serif;
  --sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.4rem;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 1.6rem;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin: 3rem 0 0.4rem;
}

/* ---- intro ---------------------------------------------------------- */

.portrait {
  float: right;
  width: 176px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 0.35rem 0 1.25rem 2rem;
  background: #F2F2EE;
}

.intro p { margin: 0 0 1rem; }

.links {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  clear: none;
}

.links li { margin-bottom: 0.2rem; }

/* ---- papers --------------------------------------------------------- */

.paper {
  clear: both;
  margin: 1.6rem 0 0;
}

.title {
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 0.25rem;
}

.title a { font-weight: 600; }

.with {
  font-weight: 400;
  color: var(--muted);
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 0.35rem;
}

p.with {
  font-size: 0.94rem;
  margin: 0;
}

.abstract {
  margin: 0.4rem 0 0;
  color: #3A3A36;
  font-size: 0.96rem;
  line-height: 1.62;
}

/* ---- footer --------------------------------------------------------- */

footer {
  margin-top: 4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- small screens -------------------------------------------------- */

@media (max-width: 620px) {
  .page { padding: 2.5rem 1.25rem 3.5rem; }
  .name { font-size: 2rem; }
  .portrait {
    float: none;
    display: block;
    width: 140px;
    margin: 0 0 1.25rem;
  }
}

@media print {
  .page { max-width: none; padding: 0; }
  a { color: var(--ink); }
}

.quotes {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0 0 0 0.9rem;
  border-left: 2px solid #E2E2DC;
}

.quotes li {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #4A4A45;
  margin-bottom: 0.45rem;
}

.samplesize {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.8rem 0 0;
}

.subhead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 2rem 0 0.5rem;
}

.ta {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ta li {
  font-size: 0.96rem;
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

.term {
  color: var(--muted);
  font-size: 0.9rem;
}

.term::before { content: " · "; }

@media (max-width: 620px) {
  .term { display: block; }
  .term::before { content: none; }
}
