/* ZOMUNI — brand site styles
   Palette: paper / ink / deep green accent. No external fonts, no CDN. */

:root {
  --paper: #f7f5f1;
  --paper-2: #efece6;
  --ink: #14140f;
  --muted: #6b675f;
  --line: #dcd7ce;
  --accent: #1f3d33;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    "Segoe UI", "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma,
    -apple-system, sans-serif;
  line-height: 1.9;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}

.brand {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

html[dir="rtl"] .brand { letter-spacing: 0; }

.nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[dir="rtl"] .nav { text-transform: none; letter-spacing: 0; font-size: 14px; }

.nav a { color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}

.lang-switch button {
  font: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.menu-btn { display: none; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(56px, 11vw, 128px) 0 clamp(40px, 7vw, 80px);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
}

html[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }

.wordmark {
  margin: 0;
  font-size: clamp(44px, 11vw, 116px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[dir="rtl"] .wordmark { letter-spacing: 0; }

.hero p.lead {
  margin: 30px 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- sections ---------- */

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }

.section-title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-note { margin: 0; color: var(--muted); font-size: 14px; max-width: 62ch; }

/* ---------- collection cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.card .thumb {
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.card .thumb span {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: #b9b3a8;
  text-transform: uppercase;
}

html[dir="rtl"] .card .thumb span { letter-spacing: 0; text-transform: none; }

.card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.card .body { padding: 20px 20px 24px; }

.card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; letter-spacing: 0.04em; }

.card p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- prose ---------- */

.prose { max-width: 68ch; }
.prose p { margin: 0 0 18px; }
.prose h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 22px; letter-spacing: 0.02em; }
.prose h2:not(:first-child) { margin-top: 46px; }
.prose h3 { font-size: 16px; margin: 40px 0 10px; letter-spacing: 0.04em; }
.prose ul { margin: 0 0 18px; padding-inline-start: 20px; }
.prose li { margin-bottom: 8px; }
.prose .muted { color: var(--muted); font-size: 14px; }

/* ---------- collections (editorial list) ---------- */

.lines { border-top: 1px solid var(--line); }

.line {
  display: grid;
  grid-template-columns: 56px minmax(0, 220px) 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.line .idx {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.line h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: 0.02em; }
.line p { margin: 0; color: var(--muted); font-size: 15px; }

@media (max-width: 640px) {
  .line { grid-template-columns: 40px 1fr; }
  .line p { grid-column: 2; margin-top: 4px; }
}

.disclosure {
  margin: 26px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 66ch;
  border-inline-start: 2px solid var(--line);
  padding-inline-start: 14px;
}

.text-link { border-bottom: 1px solid var(--ink); padding-bottom: 1px; }

/* ---------- sub-page head ---------- */

.page-head { padding: clamp(44px, 8vw, 88px) 0 clamp(10px, 2vw, 20px); }

.page-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[dir="rtl"] .page-title { letter-spacing: 0; text-transform: none; }

.page-head .lead {
  margin: 18px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
}

/* ---------- contact ---------- */

.contact-block {
  border: 1px solid var(--line);
  background: #fff;
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  gap: 26px 34px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* 4 项时用 2×2，避免桌面端出现「3+1」的孤行 */
.contact-block.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 620px) {
  .contact-block.cols-2 { grid-template-columns: 1fr; }
}

.contact-block h3 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

html[dir="rtl"] .contact-block h3 { letter-spacing: 0; text-transform: none; font-size: 13px; }

.contact-block p { margin: 0; font-size: 16px; }

.mailto {
  display: inline-block;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  direction: ltr;
  unicode-bidi: embed;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  font-size: 13px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer .links { margin-inline-start: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .site-header .wrap { height: 58px; gap: 12px; }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 58px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }

  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 14px; width: 100%; }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    margin-inline-start: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
  }

  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    content: "";
    display: block;
    width: 16px; height: 1.5px;
    background: var(--ink);
    position: relative;
  }
  .menu-btn span::before { position: absolute; top: -5px; }
  .menu-btn span::after { position: absolute; top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
