:root {
  --ink:    #1A1A1A;
  --paper:  #F5F0E8;
  --white:  #FFFFFF;
  --volt:   #D4F53C;
  --ash:    #9B9B9B;
  --light-ash: #E8E4DC;
  --font-display: 'Playfair Display', serif;
  --font-body:    'Cormorant Garamond', serif;
  --font-ui:      'DM Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.top-bar {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.top-bar span { color: var(--volt); margin: 0 6px; }
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--light-ash);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 64px;
}
.nav-left { display: flex; gap: 28px; align-items: center; }
.nav-left a {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); opacity: 0.75; transition: opacity 0.2s;
}
.nav-left a:hover { opacity: 1; }
.nav-logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-logo em { font-style: italic; font-weight: 400; color: var(--ash); font-size: 22px; }
.nav-right { display: flex; gap: 20px; align-items: center; }
.nav-right a {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); opacity: 0.75; transition: opacity 0.2s;
}
.nav-right a:hover { opacity: 1; }
.btn-subscribe {
  background: var(--ink); color: var(--white) !important;
  opacity: 1 !important; padding: 9px 20px; border-radius: 2px;
  font-size: 10px !important; letter-spacing: 0.15em !important;
}
.btn-subscribe:hover { background: #333 !important; }
.category-strip {
  border-bottom: 1px solid var(--light-ash);
  display: flex; justify-content: center; gap: 40px;
  padding: 14px 40px; overflow-x: auto;
}
.category-strip a {
  font-family: var(--font-ui); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ash); white-space: nowrap; transition: color 0.2s;
  padding-bottom: 2px;
}
.category-strip a:hover, .category-strip a.active {
  color: var(--ink); border-bottom: 1.5px solid var(--ink);
}
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 580px; border-bottom: 1px solid var(--light-ash);
}
.hero-image { position: relative; overflow: hidden; background: var(--light-ash); }
.hero-image img { transition: transform 0.6s ease; }
.hero-image:hover img { transform: scale(1.03); }
.hero-badge {
  position: absolute; top: 24px; left: 24px;
  background: var(--volt); color: var(--ink);
  font-family: var(--font-ui); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px;
}
.hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 64px; background: var(--paper);
}
.hero-category {
  font-family: var(--font-ui); font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ash); margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display); font-size: 46px; font-weight: 500;
  line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; font-weight: 400; }
.hero-excerpt {
  font-family: var(--font-body); font-size: 18px; font-weight: 300;
  line-height: 1.7; color: #555; margin-bottom: 30px;
}
.hero-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ash);
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ash); }
.read-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink);
  margin-top: 32px; padding-bottom: 3px; border-bottom: 1.5px solid var(--ink);
  width: fit-content; transition: gap 0.2s;
}
.read-more:hover { gap: 14px; }
.read-more::after { content: '→'; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 48px 40px 24px; border-bottom: 1px solid var(--light-ash);
}
.section-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
}
.section-link {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ash);
  border-bottom: 1px solid var(--ash); padding-bottom: 2px; transition: color 0.2s;
}
.section-link:hover { color: var(--ink); border-color: var(--ink); }
.featured-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--light-ash);
}
.card { border-right: 1px solid var(--light-ash); overflow: hidden; cursor: pointer; }
.card:last-child { border-right: none; }
.card-image { height: 240px; overflow: hidden; background: var(--light-ash); }
.card-image img { transition: transform 0.5s ease; }
.card:hover .card-image img { transform: scale(1.04); }
.card-body { padding: 24px 28px 32px; }
.card-tag {
  font-size: 9px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ash); margin-bottom: 10px; display: block;
}
.card-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
  line-height: 1.3; margin-bottom: 12px;
}
.card-title em { font-style: italic; }
.card-excerpt {
  font-family: var(--font-body); font-size: 15px; font-weight: 300;
  color: #666; line-height: 1.6; margin-bottom: 16px;
}
.card-meta { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.volt-banner {
  background: var(--volt);
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 40px;
}
.volt-banner-text { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); }
.volt-banner-text em { font-style: italic; }
.volt-banner-cta {
  background: var(--ink); color: var(--white);
  font-family: var(--font-ui); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 12px 28px; border-radius: 2px; transition: background 0.2s;
  white-space: nowrap; margin-left: 40px; flex-shrink: 0;
}
.volt-banner-cta:hover { background: #333; }
.editorial-wide {
  display: grid; grid-template-columns: 1.4fr 1fr;
  border-bottom: 1px solid var(--light-ash); min-height: 420px;
}
.editorial-wide.reverse { grid-template-columns: 1fr 1.4fr; }
.editorial-wide .ew-image { overflow: hidden; background: var(--light-ash); }
.editorial-wide .ew-image img { height: 100%; transition: transform 0.6s ease; }
.editorial-wide:hover .ew-image img { transform: scale(1.03); }
.editorial-wide .ew-content {
  padding: 56px 60px; display: flex; flex-direction: column;
  justify-content: center; background: var(--white);
}
.editorial-wide.reverse .ew-content { background: var(--paper); }
.asia-letter {
  background: var(--ink); color: var(--white);
  padding: 72px 40px; text-align: center; border-bottom: 1px solid var(--light-ash);
}
.asia-letter .al-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--volt); margin-bottom: 20px;
}
.asia-letter .al-title {
  font-family: var(--font-display); font-size: 48px; font-weight: 400;
  font-style: italic; line-height: 1.2; margin-bottom: 16px;
}
.asia-letter .al-sub {
  font-family: var(--font-body); font-size: 18px; font-weight: 300;
  color: rgba(255,255,255,0.65); max-width: 500px; margin: 0 auto 36px; line-height: 1.7;
}
.al-form { display: flex; justify-content: center; max-width: 420px; margin: 0 auto; }
.al-form input {
  flex: 1; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25); border-right: none;
  color: var(--white); padding: 13px 18px;
  font-family: var(--font-ui); font-size: 13px; outline: none;
  border-radius: 2px 0 0 2px;
}
.al-form input::placeholder { color: rgba(255,255,255,0.4); }
.al-form button {
  background: var(--volt); color: var(--ink); border: none;
  padding: 13px 22px; font-family: var(--font-ui); font-size: 10px;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; border-radius: 0 2px 2px 0; transition: opacity 0.2s;
}
.al-form button:hover { opacity: 0.85; }
.small-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--light-ash);
}
.small-card {
  border-right: 1px solid var(--light-ash); padding: 28px;
  cursor: pointer; transition: background 0.2s;
}
.small-card:last-child { border-right: none; }
.small-card:hover { background: var(--paper); }
.small-card-image { height: 160px; overflow: hidden; background: var(--light-ash); margin-bottom: 18px; }
.small-card-image img { transition: transform 0.4s ease; }
.small-card:hover .small-card-image img { transform: scale(1.05); }
.small-card-tag {
  font-size: 9px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ash); margin-bottom: 8px; display: block;
}
.small-card-title { font-family: var(--font-display); font-size: 16px; font-weight: 500; line-height: 1.35; }
.trending { padding: 40px; border-bottom: 1px solid var(--light-ash); }
.trending-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 28px;
}
.trending-list { display: flex; list-style: none; }
.trending-list li {
  flex: 1; display: flex; gap: 16px; align-items: flex-start;
  padding-right: 32px; border-right: 1px solid var(--light-ash); margin-right: 32px;
}
.trending-list li:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.trending-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 700;
  color: var(--light-ash); line-height: 1; flex-shrink: 0;
}
.trending-info .t-tag {
  font-size: 9px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ash); margin-bottom: 6px;
}
.trending-info .t-title { font-family: var(--font-display); font-size: 16px; font-weight: 500; line-height: 1.35; }
footer { background: var(--ink); color: var(--white); padding: 64px 40px 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-tagline {
  font-family: var(--font-body); font-size: 15px; font-weight: 300;
  color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 24px;
}
.social-links { display: flex; gap: 16px; }
.social-links a {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: border-color 0.2s, background 0.2s;
}
.social-links a:hover { border-color: var(--volt); background: var(--volt); color: var(--ink); }
.footer-col h4 {
  font-family: var(--font-ui); font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
  font-family: var(--font-body); font-size: 15px; font-weight: 300;
  margin-bottom: 10px; color: rgba(255,255,255,0.7); cursor: pointer; transition: color 0.2s;
}
.footer-col ul li:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px; display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); }
.footer-volt { color: var(--volt); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp 0.7s ease both; }
.hero-category   { animation-delay: 0.1s; }
.hero-title      { animation-delay: 0.2s; }
.hero-excerpt    { animation-delay: 0.3s; }
.hero-meta       { animation-delay: 0.4s; }
.read-more       { animation-delay: 0.5s; }
# Step 2 — nav partial
cat > themes/xixi/layouts/partials/nav.html << 'EOF'
<div class="top-bar">
  New drop: The Asia Letter — Weekly intelligence from across the region
  <span>✦</span>
  Subscribe now →
</div>
<nav>
  <div class="nav-left">
    <a href="/fashion">Fashion</a>
    <a href="/culture">Culture</a>
    <a href="/art">Art</a>
    <a href="/capital">Capital</a>
    <a href="/power">Power</a>
  </div>
  <a href="/" class="nav-logo">XIXI<em> 囍</em></a>
  <div class="nav-right">
    <a href="/about">About</a>
    <a href="/newsletter" class="btn-subscribe">Subscribe</a>
  </div>
</nav>
<div class="category-strip">
  <a href="/" class="active">All</a>
  <a href="/fashion">Street Style</a>
  <a href="/culture">Culture</a>
  <a href="/art">Art</a>
  <a href="/capital">Capital</a>
  <a href="/power">Power</a>
  <a href="/newsletter">The Asia Letter</a>
</div>

/* ── MOBILE NAV FIX ── */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
    height: 56px;
    position: relative;
  }
  .nav-left { display: none; }
  .nav-right a:not(.btn-subscribe) { display: none; }
  .nav-logo {
    position: static;
    transform: none;
    font-size: 22px;
  }
  .top-bar {
    font-size: 10px;
    padding: 8px 16px;
    line-height: 1.6;
  }
  .category-strip {
    gap: 20px;
    padding: 12px 20px;
    justify-content: flex-start;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .category-strip::-webkit-scrollbar { display: none; }
}

/* ── MOBILE NAV FIX V2 ── */
@media (max-width: 768px) {
  .nav-logo {
    position: static !important;
    transform: none !important;
    font-size: 22px !important;
  }
  .nav-left { display: none !important; }
  .nav-right a:not(.btn-subscribe) { display: none !important; }
}

@media screen and (max-width: 768px) {
  nav { padding: 0 16px; height: auto; min-height: 52px; flex-wrap: nowrap; justify-content: space-between; }
  .nav-left { display: none; }
  .nav-right a:not(.btn-subscribe) { display: none; }
  .nav-logo { position: static; transform: none; left: auto; font-size: 20px; }
}

@media screen and (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; }
  .small-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .editorial-wide, .editorial-wide.reverse { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.6rem; }
}
