/* Shared styles for elizabethkli.github.io
   Palette: warm beige neutrals + muted dusty blue. */
:root {
  --bg-top: #efe7da;
  --bg-bottom: #faf7f1;
  --ink: #2f2b27;
  --muted: #6b645b;
  --blue: #7d93ad;        /* dusty blue: Academic pills, bullets */
  --blue-deep: #3f5876;   /* links, nav, Industry pill */
  --blue-pale: #f0eadf;   /* facts panel */
  --accent: #6f88a6;      /* date pills, heading underlines */
  --accent-soft: #dfe6ee; /* link hover */
  --card: rgba(255, 253, 249, 0.78);
  --rule: #e2d9ca;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 75%, var(--bg-bottom) 100%) fixed;
  background-color: var(--bg-bottom);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

a { color: var(--blue-deep); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; transition: background-color .2s, color .2s; }
a:hover { background-color: var(--accent-soft); color: var(--ink); }
strong { font-weight: 600; }

/* Navigation */
.site-nav { display: flex; justify-content: center; gap: 10px; padding: 24px 16px 0; }
.site-nav a { font-weight: 500; font-size: 15px; text-decoration: none; color: var(--ink); padding: 6px 16px; border-radius: 999px; }
.site-nav a:hover { background: var(--card); }
.site-nav a[aria-current="page"] { background: var(--blue-deep); color: #fff; }

main { max-width: 860px; margin: 0 auto; padding: 48px 24px 72px; }

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 40px; margin: 0 0 16px; }
h2 { font-size: 29px; margin: 0 0 20px; }

/* Pills (dates, category labels, awards) */
.pill { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 13px; line-height: 1; letter-spacing: .02em;
        color: #fff; background: var(--blue); border-radius: 8px; padding: 6px 10px; white-space: nowrap; vertical-align: 2px; }
.pill.accent { background: var(--blue-deep); color: #fff; }

/* ---------- Homepage ---------- */
.hero { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.hero img { width: 220px; height: 220px; object-fit: cover; border-radius: 24px; box-shadow: 0 10px 30px rgba(63, 52, 38, .16); }
.hero h1 { font-size: 40px; }
.hero p { font-size: 17px; margin: 0; }

.bio { background: var(--card); border-radius: 20px; padding: 28px 32px; margin-bottom: 56px; }
.bio p { margin: 0 0 12px; }
.bio p:last-child { margin: 0; }

.updates ul { list-style: none; margin: 0; padding: 0; }
.updates li { padding: 0 0 22px; }
.updates li .pill { margin-right: 8px; }
.feed { position: relative; max-height: 440px; overflow-y: auto; background: var(--card); border-radius: 20px; padding: 24px 28px 4px;
        scrollbar-width: thin; scrollbar-color: var(--blue) transparent; }
.feed:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.feed::-webkit-scrollbar { width: 8px; }
.feed::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 8px; }
.feed-hint { font-size: 13px; color: var(--muted); margin: -12px 0 12px; }

.contact { text-align: center; background: var(--card); border-radius: 20px; padding: 32px 24px; margin-top: 40px; }
.contact h2 { margin-bottom: 8px; }
.contact p { margin: 0; font-size: 17px; }

.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact .contact-buttons { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; text-decoration: none;
       padding: 9px 20px; border-radius: 999px; background: var(--blue-deep); color: #fff; border: 2px solid var(--blue-deep); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--blue-deep); }
.btn-outline:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
@media (max-width: 680px) { .hero .contact-buttons { justify-content: center; } .feed { padding: 20px 18px 4px; max-height: 420px; } }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
            background: var(--blue-deep); color: #fff; text-decoration: none; transition: background-color .2s, transform .2s; }
.icon-btn:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ---------- Portfolio ---------- */
.intro { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 44px; font-size: 17px; }
.page-title { text-align: center; margin-bottom: 36px; }

.overview { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 16px; margin-bottom: 72px; }
.card { display: block; color: var(--ink); text-decoration: none; background: var(--card); padding: 22px; border-radius: 18px;
        border: 1px solid transparent; transition: border-color .2s, transform .2s, background-color .2s; }
.card:hover { background: #fff; border-color: var(--blue); transform: translateY(-2px); color: var(--ink); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.35; margin: 12px 0 8px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }

.case { background: var(--card); border-radius: 22px; padding: 36px 40px; margin-bottom: 40px; scroll-margin-top: 16px; }
.case-header { margin-bottom: 24px; }
.case-header h2 { font-size: 26px; margin: 14px 0 12px; }
.tagline { margin: 0; font-size: 17px; color: #3d4250; }
.award { margin-top: 14px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 28px; padding: 18px 20px; background: var(--blue-pale); border-radius: 14px; }
.facts div { margin: 0; }
.facts dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-deep); }
.facts dd { margin: 2px 0 0; font-size: 14px; line-height: 1.5; }

.case h4 { font-family: var(--serif); font-size: 19px; font-weight: 400; margin: 28px 0 8px; }
.case h4::after { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--accent); margin-top: 6px; }
.case p { margin: 0 0 12px; }
.case ul { margin: 0 0 12px; padding-left: 20px; }
.case li { margin-bottom: 8px; }
.case li::marker { color: var(--blue); }
.links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; font-weight: 500; margin-top: 20px; }

footer { text-align: center; padding: 0 16px 48px; font-weight: 500; }

/* ---------- Phones ---------- */
@media (max-width: 680px) {
  main { padding: 32px 16px 56px; }
  h1, .hero h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .hero { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero img { margin: 0 auto; width: 180px; height: 180px; }
  .bio, .case { padding: 24px 20px; }
  .overview { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .case-header h2 { font-size: 24px; }
}

/* Bigger date pills in the updates feed, like the inspiration */
.updates li .pill { background: var(--accent); font-size: 15px; padding: 6px 11px; border-radius: 9px; vertical-align: 1px; }

/* ---------- Publications ---------- */
.pubs { margin-bottom: 44px; }
.pubs h2 { font-size: 26px; margin-bottom: 22px; }
.pubs h2 .star { color: var(--accent); font-size: .8em; vertical-align: 3px; }
.pubs ol { list-style: none; margin: 0; padding: 0; }
.pubs li { border-left: 5px solid var(--accent); border-radius: 3px; padding: 2px 0 2px 18px; margin-bottom: 26px; }
.pub-title { margin: 0 0 4px; font-weight: 600; font-size: 17px; line-height: 1.45; }
.pub-title a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
.pub-title a:hover { color: var(--blue-deep); }
.pub-authors, .pub-venue { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.pub-authors strong { color: var(--ink); font-weight: 600; font-style: italic; }
.pub-award { color: var(--ink); font-weight: 600; white-space: nowrap; }
.pub-case { font-size: 14px; font-weight: 500; margin-left: 6px; white-space: nowrap; }
.pub-note { font-size: 13px; color: var(--muted); }
@media (max-width: 680px) { .pubs li { padding-left: 14px; } .pub-title { font-size: 16px; } }
