/* ============================================================
   Selvyna Theresia, academic personal site
   Minimal, single-column, no JavaScript.
   Edit colors / fonts in the :root block below.
   ============================================================ */

:root {
  --bg:        #FAFAF8;   /* off-white background             */
  --text:      #2C2C2C;   /* dark grey body text              */
  --muted:     #6E6E68;   /* taglines, dates, captions        */
  --accent:    #2B4A66;   /* subtle navy, links & headings   */
  --accent-hi: #1E3A52;   /* link hover                       */
  --rule:      #E7E4DD;   /* hairlines / borders              */
  --measure:   700px;     /* max content width                */
  --serif:     "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:      "Source Sans 3", "Source Sans Pro", -apple-system,
               BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- layout ---------- */
.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- navigation ---------- */
.site-nav { border-bottom: 1px solid var(--rule); }
.site-nav .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding-top: 28px;
  padding-bottom: 24px;
}
.site-nav .brand {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  border: 0;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.site-nav a.navlink {
  font-size: 0.96rem;
  color: var(--muted);
  text-decoration: none;
  border: 0;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a.navlink:hover { color: var(--accent); }
.site-nav a.navlink[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- main ---------- */
main { padding: 72px 0 64px; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--text);
  line-height: 1.25;
  font-weight: 600;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -0.005em;
  margin: 0 0 0.5rem;
}
h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 3.4rem 0 1.1rem;
}
h3 { font-size: 1.1rem; margin: 2rem 0 0.6rem; }

p { margin: 0 0 1.2em; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 74, 102, 0.30);
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover { color: var(--accent-hi); border-bottom-color: var(--accent); }

strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* ---------- home ---------- */
.tagline {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
ul.interests {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.interests li {
  position: relative;
  padding: 0.32em 0 0.32em 1.3rem;
}
ul.interests li::before {
  content: "";
  position: absolute;
  left: 0.1rem; top: 0.95em;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* optional portrait */
.portrait {
  float: right;
  width: 150px; height: 150px;
  border-radius: 3px;
  object-fit: cover;
  margin: 6px 0 18px 32px;
  border: 1px solid var(--rule);
}

/* ---------- notes list ---------- */
.post-list { margin-top: 6px; }
.post-item { padding: 26px 0; border-top: 1px solid var(--rule); }
.post-item:last-child { border-bottom: 1px solid var(--rule); }
.post-item .post-date {
  font-size: 0.84rem; color: var(--muted);
  letter-spacing: 0.02em; margin: 0 0 0.3em;
}
.post-item .post-title {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  margin: 0 0 0.4em; line-height: 1.3;
}
.post-item .post-title a { color: var(--text); border: 0; }
.post-item .post-title a:hover { color: var(--accent); }
.post-item .post-excerpt { margin: 0; color: #444; }
.empty-note { color: var(--muted); font-style: italic; }

/* ---------- single note ---------- */
.post-header { margin-bottom: 2.2rem; }
.post-header .post-date {
  font-size: 0.86rem; color: var(--muted);
  letter-spacing: 0.03em; margin: 0 0 0.7em;
}
.post-body p { margin: 0 0 1.35em; }
@media (min-width: 640px) {
  .post-body p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }
}
.post-body blockquote {
  margin: 1.7em 0; padding: 0.2em 0 0.2em 1.3rem;
  border-left: 2px solid var(--accent);
  color: #3c3c38; font-style: italic;
}
.post-body .table-wrap { overflow-x: auto; margin: 1.9em 0; }
.post-body table {
  width: 100%; border-collapse: collapse;
  font-size: 0.92rem; line-height: 1.45;
}
.post-body th, .post-body td {
  text-align: left; padding: 0.55em 0.85em;
  border-bottom: 1px solid var(--rule); vertical-align: top;
}
.post-body thead th {
  font-weight: 600; color: var(--text);
  border-bottom: 2px solid #d8d3c8; white-space: nowrap;
}
.post-body tbody th { font-weight: 600; white-space: nowrap; }
.post-body td { color: #3c3c38; }
.post-body .references { margin: 1.3em 0 0; }
.post-body .references p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 0.7em;
  padding-left: 1.5em;
  text-indent: -1.5em;
}
.back-link { font-size: 0.92rem; }
.note-bio {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.6rem;
}
.note-bio strong { color: var(--text); font-weight: 600; }

/* ---------- contact ---------- */
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.contact-list li {
  display: flex; gap: 16px;
  padding: 0.6em 0; border-top: 1px solid var(--rule);
}
.contact-list li:last-child { border-bottom: 1px solid var(--rule); }
.contact-list .label { min-width: 92px; color: var(--muted); font-size: 0.96rem; }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  body { font-size: 17px; }
  main { padding: 48px 0 40px; }
  h1 { font-size: 2rem; }
  h2 { margin-top: 2.6rem; }
  .site-nav .wrap { padding-top: 22px; padding-bottom: 18px; }
  .site-nav ul { gap: 18px; }
  .portrait { float: none; display: block; margin: 0 0 22px; width: 128px; height: 128px; }
}
