/*
Theme Name: Dũng Art Studio
Theme URI: https://example.com/dung-art-studio
Author: OpenAI Codex
Description: Theme WordPress dành cho studio nghệ sĩ, tập trung vào câu chuyện sáng tác và bộ sưu tập tranh.
Version: 1.1.1
Text Domain: dung-art-studio
*/

:root {
  --paper: #f4f0e7;
  --paper-light: #fbf9f4;
  --ink: #142a27;
  --muted: #68726b;
  --accent: #d94a2f;
  --leaf: #315c45;
  --gold: #dda32b;
  --line: rgba(20, 42, 39, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.site-shell { overflow: hidden; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.28);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: baseline; gap: 11px; }
.brand-mark { font: 700 1.35rem/1 var(--serif); letter-spacing: .16em; }
.brand-sub { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.site-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.site-nav a { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.language-switcher { display: flex; gap: 7px; align-items: center; font-size: .68rem; letter-spacing: .12em; }
.language-switcher a { opacity: .55; }
.language-switcher a.active { opacity: 1; font-weight: 800; border-bottom: 1px solid currentColor; }
.language-switcher span { opacity: .35; }
.menu-toggle { display: none; border: 0; background: transparent; color: inherit; font-size: 1.5rem; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  color: white;
  background: #173f4c;
}
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-shade { background: linear-gradient(90deg, rgba(9,29,29,.84) 0%, rgba(9,29,29,.45) 47%, rgba(9,29,29,.1) 100%), linear-gradient(0deg, rgba(8,20,20,.64), transparent 55%); }
.hero-content { position: relative; z-index: 1; padding: 170px 0 76px; max-width: 780px; }
.eyebrow { margin: 0 0 20px; font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 42px; height: 1px; background: currentColor; margin: 0 14px 4px 0; }
.hero h1 { margin: 0; font: 400 clamp(4.2rem, 10vw, 9.2rem)/.82 var(--serif); letter-spacing: -.055em; }
.hero h1 em { display: block; font-weight: 400; color: #f2bf45; }
.hero-copy { max-width: 560px; margin: 30px 0 34px; font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.84); }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid currentColor; font-size: .73rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; transition: .25s ease; }
.button:hover { background: currentColor; color: var(--ink); }
.button.solid { background: var(--ink); color: white; border-color: var(--ink); }
.button.solid:hover { background: var(--accent); border-color: var(--accent); color: white; }
.hero-note { position: absolute; z-index: 2; right: 4vw; bottom: 42px; font: italic 1rem var(--serif); writing-mode: vertical-rl; }

.intro { padding: 120px 0; background: var(--paper-light); }
.intro-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.portrait-frame { position: relative; padding: 0 0 38px 38px; }
.portrait-frame::before { content: ""; position: absolute; left: 0; bottom: 0; width: 62%; height: 70%; background: var(--gold); }
.portrait-frame img { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 54%; filter: saturate(.88); }
.section-number { color: var(--accent); font: 700 .75rem var(--sans); letter-spacing: .18em; }
.display-title { margin: 14px 0 26px; font: 400 clamp(3rem, 6vw, 6.3rem)/.94 var(--serif); letter-spacing: -.045em; }
.lead { font: 400 clamp(1.2rem, 2vw, 1.65rem)/1.5 var(--serif); }
.body-copy { color: var(--muted); max-width: 610px; }
.signature { margin-top: 34px; font: italic 1.6rem var(--serif); color: var(--accent); }

.collection { padding: 115px 0 130px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 58px; }
.section-head .display-title { margin-bottom: 0; }
.section-head p { max-width: 420px; margin: 0 0 10px; color: var(--muted); }
.art-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.art-card { grid-column: span 4; cursor: zoom-in; }
.art-card.wide { grid-column: span 8; }
.art-card .art-image { overflow: hidden; background: #e6e0d4; }
.art-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.art-card.wide img { aspect-ratio: 16/9; }
.art-card:hover img { transform: scale(1.025); }
.art-meta { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.art-meta h3 { margin: 0; font: 400 1.25rem var(--serif); }
.art-meta span { color: var(--muted); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }

.studio { background: var(--ink); color: white; padding: 120px 0; }
.studio .body-copy { color: rgba(255,255,255,.68); }
.studio-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
.studio-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.studio-collage img { width: 100%; height: 520px; object-fit: cover; }
.studio-collage img:last-child { height: 390px; }
.studio-list { list-style: none; padding: 0; margin: 36px 0 0; }
.studio-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.studio-list b { color: #f2bf45; font-size: .72rem; letter-spacing: .15em; }

.manifesto { padding: 130px 0; background: #d94a2f; color: white; text-align: center; }
.manifesto blockquote { max-width: 1000px; margin: 0 auto; font: 400 clamp(2.4rem, 5vw, 5.4rem)/1.05 var(--serif); letter-spacing: -.035em; }
.manifesto cite { display: block; margin-top: 30px; font-style: normal; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }

.contact { padding: 110px 0; background: var(--paper-light); }
.contact-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.contact .display-title { max-width: 850px; }
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); background: var(--paper-light); color: var(--muted); font-size: .76rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

.lightbox { position: fixed; z-index: 100; inset: 0; display: none; place-items: center; padding: 30px; background: rgba(7,18,18,.94); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 24px; border: 0; background: transparent; color: white; font-size: 2.2rem; cursor: pointer; }
.lightbox-caption { color: white; margin-top: 12px; text-align: center; font: 1rem var(--serif); }

.archive-shell, .single-shell { padding: 150px 0 100px; min-height: 70vh; }
.archive-shell .art-grid { margin-top: 50px; }
.single-artwork { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: start; }
.single-artwork img { width: 100%; }
.single-copy { position: sticky; top: 40px; }
.single-copy h1 { font: 400 clamp(3rem, 6vw, 6rem)/.95 var(--serif); margin: 15px 0 25px; }

@media (max-width: 820px) {
  .wrap { width: min(100% - 28px, 680px); }
  .site-header { position: absolute; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 84px; left: 14px; right: 14px; padding: 20px; background: var(--ink); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 16px; }
  .header-actions { gap: 16px; }
  .hero { min-height: 820px; }
  .hero h1 { font-size: clamp(4rem, 19vw, 7rem); }
  .hero-note { display: none; }
  .intro, .collection, .studio, .manifesto, .contact { padding: 80px 0; }
  .intro-grid, .studio-grid, .single-artwork { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 520px; }
  .section-head, .contact-grid { display: block; }
  .section-head p { margin-top: 20px; }
  .art-card, .art-card.wide { grid-column: span 6; }
  .contact .button { margin-top: 24px; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .hero-content { padding-bottom: 54px; }
  .art-grid { gap: 42px 12px; }
  .art-card, .art-card.wide { grid-column: 1 / -1; }
  .art-card.wide img, .art-card img { aspect-ratio: auto; max-height: 72vh; object-fit: contain; background: #e8e2d8; }
  .studio-collage img { height: 350px; }
  .studio-collage img:last-child { height: 290px; }
  .footer-inner { display: block; }
}
