* { box-sizing:border-box; }
:root { color-scheme:light; }
body { margin:0; min-width:0; background:var(--bg); color:var(--ink); font:16px/1.55 system-ui,sans-serif; overflow-wrap:anywhere; }
.theme-editorial { --bg:#f5eee2; --ink:#26352a; --accent:#863f30; --tile:#344c33; --tile-alt:#e99d5a; }
.theme-minimal { --bg:#f9f8f3; --ink:#222723; --accent:#4b5c53; --tile:#e6e6dd; --tile-alt:#dbd2c2; }
.theme-executive { --bg:#f2f7f6; --ink:#173950; --accent:#28596a; --tile:#38637a; --tile-alt:#a5c7cd; }
.theme-monochrome { color-scheme:dark; --bg:#191919; --ink:#f8f8f8; --accent:#efefef; --tile:#454545; --tile-alt:#606060; }
.profile { max-width:1040px; margin:auto; padding:0 max(18px,6vw) 36px; }
.profile-nav { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid color-mix(in srgb, var(--ink) 23%, transparent); padding:16px 0; }
.profile-nav span { font-weight:800; }
a { color:inherit; text-underline-offset:3px; }
.intro { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(55px,1fr); gap:clamp(10px,4vw,45px); align-items:center; padding-block:clamp(22px,7vw,80px); }
h1,h2,h3,p { margin:0; }
h1 { font:400 clamp(2rem,10vw,7rem)/.94 Georgia,serif; letter-spacing:-.075em; margin:5px 0 13px; }
h2 { font-size:1.25rem; margin-bottom:10px; }
h3 { font-size:1.025rem; }
.role { color:var(--accent); font-size:.9rem; font-weight:650; }
.bio { max-width:520px; }
.avatar { width:100%; max-width:290px; margin-inline:auto; aspect-ratio:1; object-fit:cover; border-radius:50% 50% 3px 3px; }
.initials { display:grid; place-items:center; color:white; background:#a95643; font:400 clamp(1.3rem,7vw,5rem)/1 Georgia,serif; }
.links { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:10px; }
.links:empty { margin-top:0; }
#projects { border-top:1px solid color-mix(in srgb, var(--ink) 23%, transparent); padding-top:14px; }
.projects { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.projects p { font-size:.9rem; }
.project-art { aspect-ratio:2.3; margin-bottom:7px; background:linear-gradient(139deg,var(--tile) 52%, var(--tile-alt) 52%); border-radius:7px; }
article:nth-child(even) .project-art { background:radial-gradient(ellipse at 64% 80%,var(--tile) 42%,var(--tile-alt) 43%); }
.theme-minimal .intro { text-align:center; grid-template-columns:1fr; }
.theme-minimal .bio,.theme-minimal .links { margin-inline:auto; justify-content:center; }
.theme-minimal .avatar { grid-row:1; width:90px; border-radius:50%; }
.theme-minimal .projects,.theme-monochrome .projects { grid-template-columns:1fr; }
.theme-minimal .project-art,.theme-monochrome .project-art { display:none; }
.theme-executive .intro { grid-template-columns:minmax(55px,1fr) minmax(0,1.65fr); }
.theme-executive .avatar { grid-column:1; grid-row:1; border-radius:50%; background:#28596a; }
.theme-executive h1 { font:650 clamp(1.8rem,7vw,5rem)/1 system-ui,sans-serif; }
.theme-monochrome .avatar { border-radius:0; background:#444; }
.theme-monochrome article { border-bottom:1px solid #555; padding-bottom:9px; }
@media(max-width:380px) { .profile { padding-inline:12px; } .intro { gap:9px; } .bio { font-size:.875rem; } }

/* Phòng trưng bày */
@font-face {
  font-family:"Be Vietnam Pro"; src:url("/fonts/BeVietnamPro-Regular.ttf") format("truetype");
  font-style:normal; font-weight:400; font-display:swap;
}
@font-face {
  font-family:"Be Vietnam Pro"; src:url("/fonts/BeVietnamPro-Bold.ttf") format("truetype");
  font-style:normal; font-weight:700; font-display:swap;
}
.theme-gallery {
  --bg:#f8f5ee;
  --ink:#232624;
  --gallery-dim:#565d58;
  --gallery-rule:#dcd9d0;
  --gallery-accent:#a54229;
  font-family:"Be Vietnam Pro",system-ui,sans-serif;
}
.gallery-profile {
  width:min(calc(100% - 32px),780px);
  margin-inline:auto;
  padding-bottom:12px;
}
.gallery-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:56px;
  margin-bottom:14px;
  border-bottom:1px solid var(--gallery-rule);
}
.gallery-header nav { display:flex; flex-wrap:wrap; gap:clamp(12px,3vw,32px); }
.gallery-header a,.gallery-footer a {
  display:inline-flex; align-items:center; min-height:44px;
  font-size:.83rem; font-weight:700; text-decoration:none;
}
.gallery-header a:hover,.gallery-footer a:hover { text-decoration:underline; }
.gallery-signature { font-size:1.15rem; font-weight:700; letter-spacing:-.07em; }
.gallery-signature span { color:var(--gallery-accent); }
.gallery-profile a:focus-visible { outline:2px solid var(--gallery-accent); outline-offset:3px; }
.gallery-hero {
  --card-padding:clamp(14px,4vw,30px);
  --card-ink:#fbf8f0;
  --card-accent:#f6af86;
  --card-muted:#bacac0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(58px,25%);
  grid-template-areas:"identity portrait";
  align-items:center;
  column-gap:10px;
  border-radius:12px;
  overflow:hidden;
  background:radial-gradient(ellipse at right top,#3b5c52,#243731 68%);
  color:var(--card-ink);
}
.gallery-hero--contact { grid-template-areas:"identity portrait" "details details"; }
.gallery-intro {
  grid-area:identity;
  display:flex;
  flex-direction:column;
  align-items:start;
  min-width:0;
  padding:15px 0 13px var(--card-padding);
}
.gallery-intro h1 {
  margin:3px 0 5px;
  color:inherit;
  font:700 clamp(1.68rem,8.1vw,2.9rem)/1.14 "Be Vietnam Pro",system-ui,sans-serif;
  letter-spacing:-.057em;
}
.gallery-role {
  margin:0;
  color:#e4ebe0;
  font-size:clamp(.8rem,2.8vw,1rem);
  line-height:1.4;
}
.namecard-organization {
  order:-1;
  margin:0;
  color:var(--card-accent);
  font-size:clamp(.72rem,2.6vw,.88rem);
  font-weight:700;
}
.namecard-portrait {
  grid-area:portrait;
  display:grid;
  place-items:center;
  justify-self:end;
  width:calc(100% - var(--card-padding));
  max-width:137px;
  aspect-ratio:1;
  margin:14px var(--card-padding) 13px 0;
  border:1px solid #aabcad;
  border-radius:7px;
  overflow:hidden;
  background:#345145;
}
.namecard-portrait img {
  display:block; width:100%; height:100%; min-height:0;
  object-fit:cover; object-position:50% 37%;
}
.namecard-portrait span {
  color:#ececdc; font-size:clamp(1.1rem,6vw,2.5rem); font-weight:700; letter-spacing:-.06em;
}
.namecard-details {
  grid-area:details;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.18fr);
  gap:8px 12px;
  margin:0;
  padding:11px var(--card-padding) 13px;
  border-top:1px solid #6c8275;
  background:#1c2d27;
}
.namecard-details > div { min-width:0; }
.namecard-details > div:only-child { grid-column:1/-1; }
.namecard-details dt { color:var(--card-muted); font-size:.72rem; line-height:1.42; }
.namecard-details dd {
  margin:1px 0 0; color:var(--card-ink);
  font-size:clamp(.78rem,2.45vw,.94rem); line-height:1.42; white-space:pre-line;
}
.namecard-details a { text-decoration-color:#b8cabd8c; text-decoration-thickness:1px; text-underline-offset:2px; }
.namecard-details a:hover { color:var(--card-accent); }
.gallery-hero a:focus-visible { outline-color:var(--card-accent); }
.gallery-about { margin-top:17px; }
.gallery-about h2,.gallery-section-head h2,.gallery-contact h2 {
  margin:0;
  color:inherit;
  font:700 clamp(1rem,2.9vw,1.35rem)/1.35 "Be Vietnam Pro",system-ui,sans-serif;
  letter-spacing:-.026em;
}
.gallery-about p { margin-top:3px; max-width:65ch; color:var(--gallery-dim); font-size:.86rem; }
.gallery-work { margin-top:18px; scroll-margin-top:8px; }
.gallery-section-head {
  display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap;
  gap:3px 12px; padding-bottom:6px; border-bottom:1px solid var(--gallery-rule);
}
.gallery-section-head p { color:var(--gallery-dim); font-size:.71rem; }
.gallery-projects {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start; gap:clamp(9px,2vw,18px);
  padding-top:9px;
}
.gallery-project { min-width:0; }
.gallery-cover {
  display:block; width:100%; height:auto; aspect-ratio:1.66;
  object-fit:cover; object-position:center 46%; border-radius:6px; background:#d3c4a9;
}
.gallery-project-info {
  display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between;
  column-gap:10px; margin-top:6px;
}
.gallery-project-info h3 {
  color:inherit;
  font:700 clamp(.84rem,2.5vw,1.15rem)/1.4 "Be Vietnam Pro",system-ui,sans-serif;
}
.gallery-project-info p { color:var(--gallery-dim); font-size:.74rem; line-height:1.45; }
.gallery-project-link {
  display:inline-flex; align-items:center; min-height:44px;
  font-size:.8rem; color:var(--gallery-accent);
}
.gallery-project--text .gallery-project-info {
  margin:0; padding:10px; background:#eee8dd; border-radius:6px;
}
.gallery-contact { margin-top:20px; padding-block:12px; border-top:1px solid var(--gallery-rule); }
.gallery-contact ul { display:flex; gap:10px 20px; flex-wrap:wrap; padding:0; margin:8px 0 0; list-style:none; }
.gallery-footer {
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px;
  margin-top:24px;
  border-top:1px solid var(--gallery-rule);
}
.gallery-footer span { font-size:.82rem; font-weight:700; }
@media(max-width:345px) {
  .gallery-profile { width:calc(100% - 24px); }
  .gallery-header { min-height:49px; margin-bottom:11px; }
  .gallery-hero { --card-padding:10px; }
  .namecard-details { gap:7px 10px; padding-block:9px 11px; }
  .gallery-about,.gallery-work { margin-top:14px; }
  .gallery-cover { aspect-ratio:1.8; }
}
