/* Ciyuan Photography — simple portfolio stylesheet */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Georgia, 'Times New Roman', serif; color: #222; background: #fafafa; line-height: 1.6; }
a { color: #1a5276; text-decoration: none; }
a:hover { text-decoration: underline; }
header { background: #fff; border-bottom: 1px solid #e5e5e5; }
.nav { max-width: 960px; margin: 0 auto; padding: 18px 20px; display: flex; justify-content: space-between; align-items: baseline; }
.brand { font-size: 1.4rem; letter-spacing: 2px; color: #222; font-weight: bold; }
.brand small { display: block; font-size: 0.7rem; letter-spacing: 4px; color: #888; font-weight: normal; }
nav a { margin-left: 22px; font-size: 0.95rem; color: #444; }
nav a.active { color: #1a5276; border-bottom: 2px solid #1a5276; padding-bottom: 2px; }
main { max-width: 960px; margin: 0 auto; padding: 28px 20px 40px; }
.hero { margin-bottom: 28px; }
.hero img { width: 100%; height: auto; display: block; border-radius: 4px; }
.hero figcaption { color: #777; font-size: 0.85rem; margin-top: 8px; }
h1 { font-size: 1.8rem; margin-bottom: 10px; }
h2 { font-size: 1.3rem; margin: 26px 0 12px; }
p { margin-bottom: 14px; color: #333; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 16px; }
.card img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 4px; }
.card p { font-size: 0.9rem; color: #666; margin-top: 6px; }
figure.full img { width: 100%; height: auto; display: block; border-radius: 4px; margin-bottom: 6px; }
figure.full figcaption { color: #777; font-size: 0.9rem; margin-bottom: 20px; }
.about-photo { width: 100%; max-width: 520px; height: auto; border-radius: 4px; margin: 10px 0 16px; }
footer { border-top: 1px solid #e5e5e5; background: #fff; }
footer .inner { max-width: 960px; margin: 0 auto; padding: 18px 20px; color: #888; font-size: 0.85rem; display: flex; justify-content: space-between; }
