/*
Theme Name: GUO XI Archive
Theme URI: http://154.19.185.96/
Author: GUO XI
Description: A conversion-focused editorial storefront for one-of-one Chinese embroidered garments.
Version: 1.0.0
Text Domain: guoxi-archive
*/

:root {
  --ink: #171612;
  --paper: #f3efe6;
  --paper-deep: #e9e1d3;
  --cinnabar: #8c2f28;
  --jade: #244d43;
  --gold: #b79759;
  --muted: #726c61;
  --line: rgba(23, 22, 18, 0.16);
  --white: #fffdf8;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }

.announcement {
  padding: 9px 20px;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(243, 239, 230, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.brand strong { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: .28em; margin-right: -.28em; }
.brand small { margin-top: 7px; font-size: 8px; letter-spacing: .25em; text-transform: uppercase; }
.nav-links { display: flex; gap: 26px; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.header-action { justify-self: end; }
.text-link { border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 106px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #15120f;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; opacity: .8; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,10,8,.82), rgba(13,10,8,.2) 58%, rgba(13,10,8,.08)), linear-gradient(0deg, rgba(13,10,8,.62), transparent 55%); }
.hero-copy { position: relative; z-index: 2; width: min(750px, 92%); padding: clamp(70px, 9vw, 130px) clamp(22px, 7vw, 100px); }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; }
h1 { max-width: 690px; margin: 0; font-size: clamp(52px, 8vw, 104px); letter-spacing: -.045em; }
.hero-copy > p:not(.eyebrow) { max-width: 560px; margin: 24px 0 34px; color: rgba(255,255,255,.86); font-size: clamp(16px, 2vw, 19px); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  color: var(--white);
  background: var(--cinnabar);
  border: 1px solid var(--cinnabar);
  border-radius: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: .2s ease;
}
.button:hover { background: #a73c33; border-color: #a73c33; transform: translateY(-1px); }
.button.light { color: var(--ink); background: var(--white); border-color: var(--white); }
.button.outline { color: var(--ink); background: transparent; border-color: var(--ink); }
.button.full { width: 100%; }

.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.trust-item { padding: 25px 22px; border-right: 1px solid var(--line); text-align: center; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.trust-item span { color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }

.atmosphere {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 76px);
  background: var(--white);
}
.atmosphere-copy h2 {
  max-width: 520px;
  margin: 0 0 20px;
  font-size: clamp(40px, 5vw, 70px);
  letter-spacing: -.035em;
}
.atmosphere-copy p:not(.eyebrow) { max-width: 500px; margin: 0; color: var(--muted); }
.atmosphere-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 260px;
  gap: 14px;
}
.atmosphere-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.atmosphere-grid img:first-child { grid-row: span 2; }
.atmosphere-grid img:nth-child(3) { object-position: center center; }

.section { padding: clamp(78px, 10vw, 140px) clamp(18px, 5vw, 76px); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(260px, 560px); gap: 50px; align-items: end; margin-bottom: 50px; }
.section-heading h2 { margin: 0; font-size: clamp(42px, 6vw, 74px); letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); }
.section-note { margin-top: 13px !important; font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter {
  padding: 8px 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.filter.active, .filter:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 18px; }
.product-card[hidden] { display: none; }
.product-media { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #d8d0c3; }
.product-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-media img { transform: scale(1.025); }
.piece-label { position: absolute; top: 12px; left: 12px; padding: 6px 8px; color: var(--white); background: rgba(22,20,16,.72); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(6px); }
.image-count { position: absolute; right: 12px; bottom: 12px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--white); background: rgba(22,20,16,.72); border-radius: 50%; font-size: 10px; }
.product-info { padding-top: 16px; }
.product-topline { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.product-info h3 { margin: 0; font-size: 23px; }
.price { flex: 0 0 auto; font-size: 13px; font-weight: 750; }
.meta { min-height: 40px; margin: 8px 0 14px; color: var(--muted); font-size: 12px; }
.reserve-link { padding: 0 0 3px; color: var(--cinnabar); background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.detail-link { padding: 0 0 3px; color: var(--jade); border-bottom: 1px solid currentColor; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.journal-section { background: var(--white); }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.journal-card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); }
.journal-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #d8d0c3; }
.journal-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.journal-card:hover .journal-media img { transform: scale(1.025); }
.journal-card-copy { padding: 22px; }
.journal-date { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.journal-card h3 { margin: 0 0 12px; font-size: 27px; }
.journal-card-copy p:not(.journal-date) { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.article-page { background: var(--paper); }
.article-hero { padding: clamp(72px, 9vw, 125px) clamp(18px, 6vw, 90px) 0; }
.article-hero h1 { max-width: 930px; color: var(--ink); font-size: clamp(48px, 7vw, 92px); }
.article-date { margin: 22px 0 34px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-hero-image { width: min(1180px, 100%); aspect-ratio: 16 / 9; overflow: hidden; background: #d8d0c3; }
.article-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.article-content { width: min(760px, calc(100% - 36px)); margin: 0 auto; padding: clamp(42px, 7vw, 82px) 0; color: #29261f; font-family: var(--serif); font-size: clamp(19px, 2vw, 22px); line-height: 1.78; }
.article-content h2 { margin: 54px 0 16px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.02em; }
.article-content p { margin: 0 0 24px; }
.article-content figure { margin: 40px 0; }
.article-content img { width: 100%; height: auto; }
.article-content figcaption { margin-top: 10px; color: var(--muted); font-family: var(--sans); font-size: 12px; text-align: center; }
.article-footer-nav { display: flex; justify-content: space-between; gap: 20px; width: min(760px, calc(100% - 36px)); margin: 0 auto; padding: 0 0 80px; }
.article-listing { background: var(--white); }

.product-page {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.05fr);
  min-height: calc(100vh - 76px);
  background: var(--white);
}
.product-detail-media {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  background: #d8d0c3;
}
.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.product-detail-copy {
  padding: clamp(48px, 7vw, 96px);
}
.product-detail-copy h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: -.035em;
}
.product-detail-price {
  margin: 0 0 30px;
  color: var(--cinnabar);
  font-size: 22px;
  font-weight: 800;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.product-detail-grid div { padding: 18px; background: var(--white); }
.product-detail-grid span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-detail-grid strong { display: block; margin-top: 5px; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.product-detail-content {
  max-width: 680px;
  color: var(--muted);
}
.product-enquiry {
  max-width: 680px;
  margin-top: 36px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.product-detail-nav { width: auto; margin: 28px 0 0; padding: 0; }

.story { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 720px; padding: 0; background: var(--jade); color: var(--white); }
.story-image img { width: 100%; height: 100%; min-height: 720px; object-fit: cover; object-position: center top; }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(55px, 8vw, 120px); }
.story-copy h2 { margin: 0 0 24px; font-size: clamp(44px, 6vw, 78px); letter-spacing: -.04em; }
.story-copy p { color: rgba(255,255,255,.78); }
.story-points { display: grid; gap: 18px; margin-top: 30px; }
.story-point { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); }
.story-point strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.story-point span { color: rgba(255,255,255,.68); font-size: 13px; }

.private-chat-section {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding: clamp(74px, 10vw, 135px) clamp(18px, 5vw, 76px);
  background: #211b16;
  color: var(--white);
}
.chat-image-stack {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: end;
  gap: 14px;
}
.chat-image-stack img {
  width: 100%;
  height: min(58vw, 660px);
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
}
.chat-image-stack img:first-child { height: min(48vw, 540px); min-height: 340px; }
.private-chat-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(43px, 6vw, 78px);
  letter-spacing: -.04em;
}
.private-chat-copy p { max-width: 660px; color: rgba(255,255,255,.76); }
.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  max-width: 720px;
  margin: 34px 0;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
}
.decision-grid div { padding: 24px; background: #211b16; }
.decision-grid strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}
.decision-grid span { color: rgba(255,255,255,.65); font-size: 13px; }

.process { background: var(--paper-deep); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.process-step { min-height: 260px; padding: 34px; background: var(--paper-deep); }
.process-step span { color: var(--cinnabar); font-family: var(--serif); font-size: 42px; }
.process-step h3 { margin: 28px 0 10px; font-size: 27px; }
.process-step p { margin: 0; color: var(--muted); font-size: 14px; }

.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; }
.faq-wrap h2 { margin: 0; font-size: clamp(46px, 6vw, 74px); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 23px 0; cursor: pointer; font-family: var(--serif); font-size: 21px; list-style: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--cinnabar); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: -8px 0 24px; color: var(--muted); font-size: 14px; }

.closing { position: relative; display: grid; place-items: center; min-height: 560px; padding: 60px 20px; overflow: hidden; color: var(--white); text-align: center; }
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: brightness(.42); }
.closing-copy { position: relative; z-index: 2; max-width: 720px; }
.closing h2 { margin: 0 0 22px; font-size: clamp(48px, 7vw, 88px); letter-spacing: -.04em; }
.closing p { margin: 0 auto 30px; color: rgba(255,255,255,.78); }

.site-footer { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; padding: 60px clamp(22px, 5vw, 72px); color: rgba(255,255,255,.68); background: var(--ink); font-size: 12px; }
.footer-brand { color: var(--white); font-family: var(--serif); font-size: 29px; letter-spacing: .25em; }
.footer-title { display: block; margin-bottom: 12px; color: var(--white); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.site-footer a { display: block; margin: 5px 0; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 18px; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12,11,9,.76); backdrop-filter: blur(5px); }
.modal-panel { position: relative; z-index: 2; width: min(920px, 100%); max-height: calc(100vh - 36px); display: grid; grid-template-columns: .8fr 1.2fr; overflow: auto; background: var(--paper); box-shadow: 0 28px 90px rgba(0,0,0,.36); }
.modal-image { min-height: 100%; background: #d4ccbf; }
.modal-image img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; object-position: center top; }
.modal-content { padding: clamp(30px, 5vw, 58px); }
.modal-close { position: absolute; z-index: 3; top: 14px; right: 16px; width: 40px; height: 40px; background: var(--white); border: 1px solid var(--line); cursor: pointer; font-size: 24px; }
.modal-content h2 { margin: 0 0 8px; font-size: 43px; }
.modal-subtitle { margin: 0 0 25px; color: var(--muted); font-size: 13px; }
.success { margin-bottom: 24px; padding: 14px 16px; color: #1f4d3f; background: #dfece5; border: 1px solid #a9c8b7; font-size: 13px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 13px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 0; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--jade); box-shadow: 0 0 0 2px rgba(36,77,67,.12); }
.consent { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 18px; color: var(--muted); font-size: 11px; }
.consent input { margin-top: 4px; }
.form-note { margin-top: 12px; color: var(--muted); font-size: 11px; }
.hp-field { position: absolute !important; left: -9999px !important; }

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  color: var(--white);
  background: var(--jade);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 34px rgba(0,0,0,.24);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.chat-panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  justify-content: flex-end;
  align-items: stretch;
}
.chat-panel.open { display: flex; }
.chat-backdrop { position: absolute; inset: 0; background: rgba(12,11,9,.52); }
.chat-card {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  min-height: 100%;
  padding: 52px 34px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -20px 0 70px rgba(0,0,0,.28);
}
.chat-card h2 { margin: 0 0 16px; font-size: 46px; }
.chat-card p { color: var(--muted); }
.chat-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 24px;
}
.chat-actions { display: grid; gap: 12px; margin: 28px 0 14px; }
.chat-note { font-size: 12px; }

@media (max-width: 1050px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-copy { padding: 60px 42px; }
}
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 66px; padding: 0 18px; }
  .site-header .brand { justify-self: start; }
  .header-action { display: none; }
  .nav-links { display: none; }
  .brand strong { font-size: 21px; }
  .hero { min-height: 690px; }
  .hero-media img { object-position: 57% top; }
  .hero-copy { padding: 80px 22px 66px; }
  .hero-copy > p:not(.eyebrow) { font-size: 15px; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .atmosphere { grid-template-columns: 1fr; }
  .atmosphere-grid { grid-auto-rows: 190px; gap: 10px; }
  .section { padding: 76px 16px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 34px; }
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 34px 10px; }
  .journal-grid { grid-template-columns: 1fr; }
  .journal-card-copy { padding: 18px; }
  .product-info h3 { font-size: 18px; }
  .product-topline { display: block; }
  .price { display: block; margin-top: 4px; }
  .meta { min-height: 52px; font-size: 11px; }
  .story { grid-template-columns: 1fr; }
  .story-image img { min-height: 520px; }
  .story-copy { padding: 70px 22px; }
  .private-chat-section { grid-template-columns: 1fr; }
  .product-page { grid-template-columns: 1fr; }
  .product-detail-media { position: relative; top: auto; height: 72vh; min-height: 460px; }
  .product-detail-copy { padding: 52px 20px; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .chat-image-stack img { min-height: 300px; height: 390px; }
  .chat-image-stack img:first-child { min-height: 260px; height: 320px; }
  .decision-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 220px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; }
  .modal-panel { grid-template-columns: 1fr; }
  .modal-image { display: none; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .chat-launcher { right: 14px; bottom: 14px; }
  .chat-card { padding: 48px 24px; }
  .article-footer-nav { display: grid; }
}
@media (max-width: 390px) {
  .announcement { padding-inline: 12px; font-size: 9px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 4 / 5; }
}
