/* ---------------------------------------------------------------
   Jennifer Ku — Portfolio
   Minimal, gallery-style stylesheet
--------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b6b6b;
  --hairline: #ececec;
  --max: 1400px;
  --gutter: clamp(24px, 4vw, 56px);
  --nav-space: 0.32em;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.55; }

/* ---------- Header / Navigation ---------- */
.site-header {
  padding: 40px var(--gutter) 28px;
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-brand {
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: clamp(28px, 5vw, 72px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--nav-space);
  text-transform: uppercase;
}

.nav-links a[aria-current="page"] { opacity: 0.45; }

/* ---------- Main ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) 120px;
}

/* ---------- Homepage statement ---------- */
.statement {
  max-width: 620px;
  margin: 0 auto clamp(56px, 8vw, 96px);
  text-align: center;
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Grid ---------- */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 32px);
}

@media (max-width: 900px) { .masonry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .masonry { grid-template-columns: 1fr; } }

.masonry .tile {
  display: block;
  overflow: hidden;
}

.masonry .tile img {
  width: 100%;
  height: auto;
}

/* ---------- About page ---------- */
.prose {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.75;
  color: #222;
}

.prose h1 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 32px;
  text-align: center;
}

.prose p { margin: 0 0 1.2em; }

/* ---------- Contact page ---------- */
.contact {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.contact h1 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 28px;
}
.contact a.email {
  display: inline-block;
  font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.contact .secondary {
  margin-top: 36px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Work detail page ---------- */
.work {
  max-width: 1100px;
  margin: 0 auto;
}
.work .image-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}
.work .image-wrap img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
}
.work .caption {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.work .back {
  display: block;
  text-align: center;
  margin-top: 56px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
