:root {
  --paper: #f4f0e7;
  --paper-deep: #e9e2d4;
  --ink: #27251f;
  --muted: #716d63;
  --accent: #a7492d;
  --olive: #667054;
  --line: rgba(39, 37, 31, 0.16);
  --white: #fffdf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", sans-serif;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(24px, 6vw, 88px);
  background: rgba(244, 240, 231, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper);
  background: var(--accent);
  border-radius: 50% 48% 44% 52%;
  font-family: serif;
  font-size: 22px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-family: serif; font-size: 20px; letter-spacing: .12em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 8px; letter-spacing: .18em; }
nav { display: flex; gap: 36px; font-size: 14px; }
nav a { position: relative; padding: 10px 0; color: var(--muted); }
nav a.active, nav a:hover { color: var(--ink); }
nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}
.header-actions { display: flex; gap: 12px; }
.icon-button, .primary-button, .category, .language-button {
  cursor: pointer;
  border: 0;
}
.language-button {
  padding: 9px 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
}
.language-button:hover { border-color: var(--ink); }
.icon-button {
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
}
.primary-button {
  padding: 11px 19px;
  color: var(--white);
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  display: grid;
  min-height: 680px;
  grid-template-columns: 1.05fr .95fr;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(30px, 8vw, 130px);
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
}
.hero h1, .section-heading h2, .story-section > h2, dialog h2 {
  margin: 0;
  font-family: "Playfair Display", "Noto Sans SC", serif;
  font-weight: 600;
}
.hero h1 { font-size: clamp(54px, 7vw, 96px); line-height: .98; letter-spacing: -.045em; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-description {
  max-width: 510px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}
.hero-cta { width: fit-content; padding-bottom: 6px; border-bottom: 1px solid var(--ink); font-weight: 600; }
.hero-cta span { margin-left: 25px; color: var(--accent); }
.hero-stats { display: flex; gap: clamp(26px, 5vw, 70px); margin-top: 62px; }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { font-family: "Playfair Display", serif; font-size: 22px; }
.hero-stats span { margin-top: 4px; color: var(--muted); font-size: 11px; }

.hero-art {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #d8c8ac;
}
.sun {
  position: absolute;
  top: 9%;
  right: 9%;
  width: 150px;
  height: 150px;
  background: #c7764f;
  border-radius: 50%;
  opacity: .8;
}
.arch {
  position: absolute;
  right: 13%;
  bottom: 0;
  left: 13%;
  height: 79%;
  overflow: hidden;
  background: #77755f;
  border-radius: 240px 240px 0 0;
  box-shadow: inset 0 0 80px rgba(0,0,0,.2);
}
.arch::after {
  position: absolute;
  right: 0;
  bottom: 20%;
  left: 0;
  height: 5px;
  background: #b09370;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  content: "";
}
.vase {
  position: absolute;
  bottom: 21%;
  left: 14%;
  color: #c97b57;
  font-size: 180px;
  line-height: .7;
  transform: scaleX(.7);
}
.lamp { position: absolute; right: 10%; bottom: 23%; color: #d8c49d; font-size: 120px; transform: rotate(-10deg); }
.camera { position: absolute; right: 18%; bottom: 7%; color: #25251f; font-size: 92px; }
.book { position: absolute; bottom: 6%; left: 15%; width: 150px; height: 24px; background: #a94e36; transform: rotate(-3deg); }
.book-two { bottom: 2%; width: 175px; background: #c8b58a; transform: rotate(2deg); }
.art-note { position: absolute; right: 20px; bottom: 25px; color: rgba(39,37,31,.6); font-size: 10px; letter-spacing: .24em; writing-mode: vertical-rl; }

.market-section { padding: 96px clamp(24px, 6vw, 88px) 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2, .story-section > h2 { font-size: clamp(36px, 4.5vw, 60px); }
.search-box {
  display: flex;
  width: min(390px, 100%);
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--ink);
}
.search-box span { font-size: 25px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; }
.category-row { display: flex; gap: 10px; margin: 42px 0 30px; overflow-x: auto; }
.category {
  flex: 0 0 auto;
  padding: 9px 18px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 40px;
}
.category.active, .category:hover { color: var(--white); background: var(--olive); border-color: var(--olive); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 18px; }
.product-card { min-width: 0; }
.product-image {
  position: relative;
  display: grid;
  height: 330px;
  place-items: center;
  overflow: hidden;
  background: var(--card-color);
}
.product-image::before {
  position: absolute;
  width: 210px;
  height: 210px;
  background: rgba(255,255,255,.21);
  border-radius: 50%;
  content: "";
}
.product-emoji { z-index: 1; font-size: 105px; filter: grayscale(.25) drop-shadow(0 18px 12px rgba(0,0,0,.17)); transition: transform .35s ease; }
.product-card:hover .product-emoji { transform: translateY(-7px) rotate(-2deg); }
.condition {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  padding: 5px 9px;
  background: rgba(255,253,248,.86);
  font-size: 10px;
  letter-spacing: .1em;
}
.favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  cursor: pointer;
  border: 0;
  background: rgba(255,253,248,.85);
  border-radius: 50%;
  font-size: 20px;
}
.favorite.saved { color: var(--accent); }
.product-meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 15px; }
.product-meta p { margin: 0; }
.product-name { font-weight: 600; }
.product-category { margin-top: 4px !important; color: var(--muted); font-size: 12px; }
.product-price { flex: 0 0 auto; font-family: "Playfair Display", serif; font-size: 18px; }
.empty-state { padding: 60px; text-align: center; color: var(--muted); }

.story-section {
  padding: 100px clamp(24px, 10vw, 160px);
  color: var(--paper);
  background: var(--olive);
}
.story-section .eyebrow { color: #dfb18f; }
.story-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 72px; }
.story-points article { border-top: 1px solid rgba(255,255,255,.35); padding-top: 24px; }
.story-points span { color: #dfb18f; font-family: "Playfair Display", serif; }
.story-points h3 { margin: 25px 0 10px; font-size: 18px; }
.story-points p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.7; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 38px clamp(24px, 6vw, 88px); }
footer p { color: var(--muted); font-size: 12px; }

dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
dialog::backdrop { background: rgba(28,27,23,.65); backdrop-filter: blur(3px); }
dialog form { position: relative; display: grid; gap: 17px; padding: 45px; }
dialog h2 { margin-bottom: 10px; font-size: 34px; }
dialog label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
dialog input, dialog select { width: 100%; padding: 13px; color: var(--ink); border: 1px solid var(--line); outline: 0; background: var(--white); }
.close-button { position: absolute; top: 15px; right: 18px; cursor: pointer; border: 0; background: transparent; font-size: 28px; }
.submit-button { margin-top: 8px; padding: 14px; }
.form-note { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 13px 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 620px; }
  .hero-art { min-height: 570px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .site-header { padding: 13px 16px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand strong { font-size: 17px; }
  .header-actions .icon-button { display: none; }
  .language-button { padding: 8px 9px; }
  .primary-button { padding: 9px 12px; font-size: 13px; }
  .hero-copy { min-height: 570px; padding: 70px 24px; }
  .hero h1 { font-size: 58px; }
  .hero-stats { gap: 27px; }
  .hero-art { min-height: 500px; }
  .arch { right: 7%; left: 7%; }
  .market-section { padding-top: 72px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .product-grid { gap: 24px 10px; }
  .product-image { height: 230px; }
  .product-emoji { font-size: 74px; }
  .product-meta { display: block; }
  .product-price { margin-top: 7px !important; }
  .story-points { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  footer { align-items: flex-start; flex-direction: column; }
  dialog form { padding: 40px 24px 28px; }
}
