:root {
  --bg: #f5f1ea;
  --card: #fff;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(245,241,234,.92);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.brand {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}
.top-meta {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
}
main { max-width: 1100px; margin: 0 auto; padding: 36px 20px 72px; }
.screen.hidden, .hidden { display: none !important; }
.eyebrow {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
h1 {
  font-weight: 500;
  font-size: clamp(28px, 4.5vw, 44px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
h2 {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 8px 0 6px;
}
.lead { color: var(--muted); max-width: 38em; margin: 0 0 28px; font-size: 16px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px; }
.choice.big {
  min-width: 160px;
  padding: 28px 32px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}
.choice.big:hover { border-color: var(--ink); }
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.mood-card {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  font: inherit;
}
.mood-card:hover { border-color: var(--ink); }
.mood-card strong {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  margin-bottom: 4px;
}
.mood-card span { font-size: 13px; color: var(--muted); }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
}
.card:hover { border-color: var(--ink); }
.card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #ebe6de; }
.card .body { padding: 12px 14px 14px; }
.card .tag {
  font-family: system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.card .name { font-size: 16px; margin-top: 2px; }
.card .meta {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.back {
  font-family: system-ui, sans-serif;
  font-size: 13px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 16px;
  padding: 0;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .detail-layout { grid-template-columns: 1fr; }
}
.model {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ebe6de;
}
.model img { width: 100%; display: block; }
.hint { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.item .cat {
  font-family: system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.item .name { font-size: 15px; }
.item .brand {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.item .price {
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.buy {
  grid-row: span 3;
  align-self: center;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  background: var(--ink);
  color: #fafaf9;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
}
.feedback { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.feedback-label {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.feedback-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fb {
  font-family: system-ui, sans-serif;
  font-size: 13px;
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fafaf9;
  cursor: pointer;
}
.fb.ghost { background: transparent; color: var(--ink); }
.fb-note { min-height: 1.2em; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px 24px;
  font-family: system-ui, sans-serif;
  font-size: 11px;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.chip {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.chip.on {
  background: var(--ink);
  color: #fafaf9;
  border-color: var(--ink);
}
.choice.big {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}


/* === gender v6 === */
main.flush {
  max-width: 1100px;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 48px;
}
.home-intro {
  padding: 8px 20px 18px;
}
.home-feed .lead { margin-bottom: 8px; }
.rail {
  margin: 0 0 28px;
}
.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 10px;
}
.rail-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
}
.rail-open {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: #78716c;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rail-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0 20px 6px;
  scrollbar-width: none;
}
.rail-scroller::-webkit-scrollbar { display: none; }
.rail-card {
  flex: 0 0 42vw;
  max-width: 220px;
  min-width: 140px;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.rail-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  background: #d6d3d1;
}
.rail-card .cap {
  padding: 8px 2px 0;
  font-size: 13px;
}
.rail-card .cap small {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 11px;
  color: #78716c;
  margin-top: 2px;
}
@media (min-width: 860px) {
  .rail-card { flex-basis: 180px; }
}

/* === detail v7 === */
.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 20px 12px;
}
.detail-arrows { display: flex; gap: 8px; }
.nav-btn {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid #1c1917;
  background: #fff;
  color: #1c1917;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-btn:disabled {
  opacity: .35;
  cursor: default;
}
#detailScreen .detail-layout {
  padding: 0 20px;
}
.more-block {
  margin-top: 28px;
  padding-bottom: 12px;
}
.more-block .rail-head { padding-left: 20px; padding-right: 20px; }
.more-end {
  padding: 8px 20px 0;
  font-size: 14px;
  color: #78716c;
}
.model { touch-action: pan-y; }

/* === docs v9 === */
.site-nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: #78716c;
  text-decoration: none;
}
.site-nav a:hover { color: #1c1917; }
a.brand { text-decoration: none; color: inherit; }
main.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}
main.doc h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  text-transform: none;
  letter-spacing: 0;
  margin: 28px 0 8px;
}
main.doc p { color: #44403c; }
.steps { padding-left: 1.2em; color: #44403c; }
.steps li { margin: 10px 0; }
