* { box-sizing: border-box; }
:root {
  --fs-body: clamp(1rem, 0.94rem + 0.2vw, 1.06rem);
  --fs-small: clamp(0.92rem, 0.88rem + 0.12vw, 0.98rem);
  --fs-h3: clamp(1.1rem, 1.02rem + 0.32vw, 1.28rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.1vw, 2.2rem);
  --lh-body: 1.72;
  --lh-tight: 1.3;
  --ls-body: 0.005em;
}
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  background: #fdf4f0;
  color: #1f1a17;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.container { width: min(1080px, 92vw); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 251, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f1e2db;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.brand { font-family: "Cormorant Garamond", serif; font-size: clamp(1.8rem, 1.55rem + 0.75vw, 2.25rem); font-weight: 600; color: inherit; text-decoration: none; line-height: 1.06; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: #7f6f66; text-decoration: none; font-size: var(--fs-small); line-height: 1.4; }
.nav-links a.active { color: #c8572d; }
.page-main { padding: 24px 0 48px; }
.section-title { margin: 0 0 14px; color: #2a211c; text-transform: lowercase; font-family: "Cormorant Garamond", serif; font-size: var(--fs-h2); font-weight: 600; line-height: 1.08; letter-spacing: 0.01em; }
.about-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.profile-image { width: 100%; border-radius: 18px; object-fit: cover; border: 1px solid #f1e2db; }
.bio { font-size: clamp(1.04rem, 0.96rem + 0.25vw, 1.18rem); line-height: 1.8; max-width: 62ch; }
.contact-list p { margin: 0.4rem 0; }
.contact-list a { color: inherit; text-decoration: none; }
.inline-icon { display: inline-flex; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; color: #c8572d; }
.inline-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-links { display: flex; gap: 0.75rem; margin-top: 12px; }
.social-links a {
  border: 1px solid #eed8cd;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.social-links a:hover { border-color: #c8572d; color: #c8572d; transform: translateY(-1px); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.wave-divider {
  height: 12px;
  width: min(560px, 64%);
  margin: 48px auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M0 6 C 10 0, 20 0, 30 6 S 50 12, 60 6 S 80 0, 90 6 S 110 12, 120 6' fill='none' stroke='%23e8a7b7' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 12px;
}
.timeline { margin-top: 8px; }
.timeline p { margin: 0.8rem 0; display: flex; align-items: center; gap: 10px; line-height: 1.55; }
.timeline-content { display: inline; }
.muted { color: #7f6f66; }
.primary { color: #c8572d; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #d98d72; display: inline-block; }
.gallery-filters { display: flex; gap: 0.6rem; margin-bottom: 1rem; }
.filter-btn {
  border: 1px solid #eed8cd;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.filter-btn.active { background: #c8572d; color: #fff; border-color: #c8572d; }
.gallery-grid { columns: 1; column-gap: 1rem; }
.gallery-card { break-inside: avoid; margin: 0 0 1rem; }
.gallery-card img { width: 100%; border-radius: 10px; cursor: pointer; }
.blog-list article { border-left: 2px solid #eed8cd; padding-left: 1rem; margin-bottom: 2rem; }
.blog-list a { color: inherit; text-decoration: none; }
.blog-list h2 { margin: 0 0 0.35rem; font-size: var(--fs-h3); line-height: var(--lh-tight); }
.blog-list p { margin: 0.3rem 0 0; }
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.project-card {
  border: 1px solid #f2d9cc;
  border-radius: 10px;
  padding: 18px;
  background: #fffcfa;
  min-height: 180px;
  cursor: pointer;
}
.project-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.project-head h3 { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-tight); }
.project-card p { margin: 0.55rem 0 0; line-height: 1.62; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none !important; }
.lightbox figure { margin: 0; max-width: 88vw; }
.lightbox-layout { display: flex; gap: 20px; align-items: center; }
.lightbox img { max-height: 78vh; max-width: 100%; border-radius: 10px; }
.lightbox figcaption { color: #fff; margin-top: 8px; }
.lightbox-caption { max-width: 280px; margin-top: 0; line-height: 1.6; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}
.project-modal-layout { width: min(980px, 92vw); display: flex; gap: 24px; align-items: center; }
.project-modal-layout img { order: 2; max-height: 80vh; max-width: min(62vw, 760px); border-radius: 10px; object-fit: cover; }
.project-modal-text { order: 1; color: #fff; max-width: 340px; line-height: 1.7; }
.project-modal-text .muted { color: rgba(255, 255, 255, 0.72); }
.project-modal-text h3 { margin: 0 0 0.35rem; color: #fff; font-size: clamp(1.28rem, 1.12rem + 0.42vw, 1.48rem); line-height: 1.2; }
.project-modal-text p { margin: 0.45rem 0 0; }
.project-modal-text a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.55); }
.back-link { color: #7f6f66; text-decoration: none; }
.back-link::before { content: "< "; color: #c8572d; }
@media (min-width: 760px) { .gallery-grid { columns: 2; } }
@media (min-width: 1024px) { .gallery-grid { columns: 3; } }
@media (min-width: 760px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  body { line-height: 1.68; }
  .header-inner { padding: 14px 0; }
  .nav-links { gap: 1rem; }
  .page-main { padding: 20px 0 40px; }
  .about-layout { grid-template-columns: 1fr; }
  .profile-image { max-width: 220px; }
  .lightbox-layout { flex-direction: column; align-items: flex-start; }
  .lightbox-caption { max-width: none; }
  .timeline p { display: grid; grid-template-columns: 84px 12px 1fr; align-items: start; gap: 8px; line-height: 1.45; }
  .timeline .muted { white-space: nowrap; }
  .timeline .dot { margin-top: 0.45em; }
  .project-modal-layout { flex-direction: column; align-items: flex-start; }
  .project-modal-layout img { order: 1; max-width: 100%; margin-left: 0; }
  .project-modal-text { order: 2; }
}
