/* ===========================================================
   Albert Hwang — personal site (alberthwang.me)
   Static rebuild for GitHub Pages. Plain HTML/CSS, no build.
   Type: Poppins (matches the prior Squarespace site).
   =========================================================== */

:root {
  --ink:      #1d1d1f;   /* headings / primary text */
  --body:     #33333a;   /* body text */
  --muted:    #6b6b72;   /* secondary text */
  --accent:   #6c86b2;   /* steel blue — matches the Squarespace theme accent */
  --accent-d: #57709c;   /* hover */
  --line:     #e7e3dd;   /* subtle border */
  --sand:     #f5f2ed;   /* warm tint background */
  --white:    #ffffff;
  --maxw:     960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Poppins", sans-serif; color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }

p { margin: 0 0 1.1rem; }
a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
/* Body-content links: black + thin underline (understated, matches the source) */
.page a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.page a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 680px; }
.muted { color: var(--muted); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--accent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { font-weight: 700; font-size: 1.4rem; color: #fff; border: none; }
.brand:hover { color: #fff; }
.site-nav { display: flex; gap: 1.8rem; }
.site-nav a { color: #fff; font-size: 1rem; border: none; }
.site-nav a:hover { color: rgba(255,255,255,0.72); }
.site-nav a.active { color: #fff; border-bottom: 2px solid rgba(255,255,255,0.6); }

/* ---------- Hero (home) ---------- */
.hero { padding: 3.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero-photo img { border-radius: 14px; box-shadow: 0 14px 40px rgba(29,29,31,0.12); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-bottom: 0.6rem; }
.hero .lede { font-size: 1.15rem; color: var(--muted); }
.intro-list { list-style: none; padding: 0; margin: 1.8rem 0 0; }
.intro-list li { font-size: 1.15rem; color: var(--ink); margin-bottom: 1.1rem; line-height: 1.6; }
.intro-list li:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 0.8rem 1.8rem; border-radius: 999px; font-weight: 500; font-size: 0.95rem; border: none; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.btn:hover { background: var(--accent-d); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { background: var(--sand); color: var(--ink); }
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- Generic page sections ---------- */
.page { padding: 3.5rem 0 2rem; }
.page h1 { margin-bottom: 1.5rem; }
.about-block { margin-bottom: 2.8rem; }
.about-block h2 { margin: 0 0 0.7rem; }
.about-intro { font-size: 1.3rem; color: var(--ink); margin-bottom: 2.6rem; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 1rem; margin-top: 1.8rem; }
.contact-form label { font-size: 0.9rem; font-weight: 500; color: var(--ink); display: block; margin-bottom: 0.35rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--body);
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-alt { margin-top: 1.6rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- Social row ---------- */
.social { display: flex; gap: 1.3rem; margin-top: 1.8rem; }
.social a { color: var(--muted); font-size: 0.9rem; font-weight: 500; border: none; }
.social a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.6rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.footer-inner a { color: var(--muted); border: none; }
.footer-inner a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo { order: -1; max-width: 320px; }
  .site-nav { gap: 1.1rem; }
}
