/* ------------------------------------------------
   Chian Gong — Personal Site
   Minimal, warm, text-first
   ------------------------------------------------ */

:root {
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --bg: #fafaf8;
  --link: #2c2c2c;
  --link-hover: #888;
  --border: #e8e8e4;
  --max-width: 600px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  padding: 0 1.5rem;
  -webkit-font-smoothing: antialiased;
}

/* Layout */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

/* Navigation */

nav {
  margin-bottom: 3rem;
}

nav a {
  margin-right: 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

nav a.active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Typography */

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Links */

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Bio */

.bio {
  margin-bottom: 2rem;
}

.bio p {
  color: var(--text);
}

/* Link lists */

.link-list {
  list-style: none;
  margin-bottom: 0.5rem;
}

.link-list li {
  padding: 0.4rem 0;
  line-height: 1.5;
}

.link-list a {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.link-list a:hover {
  text-decoration-color: var(--text-light);
}

.link-list .meta {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

/* Subpage description text */

.description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

/* Restaurant list */

.place-list {
  list-style: none;
}

.place-list li {
  padding: 0.35rem 0;
}

.place-list .cuisine {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Footer */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Responsive */

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .container {
    padding: 3rem 0 4rem;
  }

  nav a {
    margin-right: 1.25rem;
  }
}
