/* =========================================================
   Lisa Hsu — personal site
   Aqua/teal palette · refined · technical-respectable
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter+Tight:wght@400;500;600&display=swap");

:root {
  /* Aqua/teal scale */
  --aqua-deepest: #074a4c;
  --aqua-deep:    #0a8a8a;
  --aqua:         #14a3a1;
  --aqua-soft:    #4fc4c0;
  --aqua-mist:    #cfe8e5;
  --aqua-pale:    #e6f3f1;

  /* Functional roles */
  --ink:        #0d2b2a;
  --ink-soft:   #4a6664;
  --rule:       #c9dedb;
  --bg:         #f5faf9;
  --link:       #0a8a8a;
  --link-hover: #14a3a1;
  --accent:     #0a8a8a;

  /* Type */
  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:    "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  /* Subtle gradient atmosphere — two gentle washes, no drama */
  background-image:
    radial-gradient(ellipse 70% 50% at 85% 0%, rgba(20, 163, 161, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(10, 138, 138, 0.06) 0%, transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  position: relative;
}

/* =========================================================
   Nav — quiet, with active state in aqua
   ========================================================= */
nav.topnav {
  font-family: var(--sans);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 2.8rem;
  border-bottom: 1px solid var(--rule);
}

nav.topnav .brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin-right: 0.5rem;
  letter-spacing: -0.005em;
}

nav.topnav .brand a {
  color: inherit;
  text-decoration: none;
  border: none;
  background: none;
}

nav.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  border: none;
  background: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

nav.topnav a:hover {
  color: var(--aqua-deep);
}

nav.topnav a.active {
  color: var(--aqua-deep);
  border-bottom-color: var(--aqua-deep);
}

nav.topnav .sep {
  color: var(--rule);
}

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3rem);
  font-weight: 700;
  margin-top: 0.3rem;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

h2 {
  font-size: 1.55rem;
  margin-top: 2.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
  color: var(--aqua-deepest);
}

h3 {
  font-size: 1.2rem;
  color: var(--aqua-deep);
  font-style: italic;
  font-weight: 500;
}

p { margin: 0.8rem 0; }

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 138, 138, 0.3);
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

em { font-style: italic; }

/* =========================================================
   Home hero
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.hero .tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--aqua-deep);
  margin: 0.4rem 0 1.2rem;
}

.hero ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.hero ul li {
  margin: 0.45rem 0;
  font-size: 1rem;
}

/* Square portrait with rounded corners, subtle aqua-tinted shadow */
.hero .portrait-wrap {
  position: relative;
  width: 260px;
  height: 260px;
}

.hero .portrait {
  width: 260px;
  height: 260px;
  border-radius: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, var(--aqua-mist) 0%, var(--aqua-soft) 55%, var(--aqua-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 5.5rem;
  font-weight: 600;
  font-style: italic;
  color: white;
  border: none;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(13, 43, 42, 0.06),
    0 12px 32px rgba(10, 138, 138, 0.10);
}

/* When a real photo is present, fill the square cleanly */
.hero .portrait:has(img) {
  background: none;
  padding: 0;
}

.hero .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  border-radius: 0;
}

.links-row {
  font-size: 0.95rem;
  margin-top: 1rem;
  color: var(--ink-soft);
}

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

/* =========================================================
   Section heads with [More] tag
   ========================================================= */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

.section-head h2 {
  border: none;
  margin: 0;
  padding: 0;
}

.section-head .more {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-bottom: none;
}

.section-head .more:hover {
  color: var(--aqua-deep);
}

/* =========================================================
   Entry lists (publications, writings) — subtle cards
   ========================================================= */
ul.entries {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}

ul.entries li {
  margin: 0.7rem 0;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--aqua-soft);
  border-radius: 6px;
  transition: border-left-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

ul.entries li:hover {
  border-left-color: var(--aqua-deep);
  transform: translateX(2px);
  box-shadow: 0 2px 10px rgba(10, 138, 138, 0.06);
}

ul.entries .title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  line-height: 1.3;
}

a.title {
  border-bottom: none;
  color: var(--ink);
}

a.title:hover {
  color: var(--aqua-deep);
}

ul.entries .meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

ul.entries .venue {
  font-size: 0.88rem;
  color: var(--aqua-deep);
}

ul.entries strong { color: var(--ink); }

/* =========================================================
   Footer
   ========================================================= */
footer {
  margin-top: 4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .hero .portrait-wrap,
  .hero .portrait {
    width: 200px;
    height: 200px;
  }
  .hero .portrait { font-size: 4rem; }
  .hero .portrait-wrap { margin: 0 auto; }
  h1 { font-size: 2.2rem; }
}
