/* ==========================================================================
   The Sống Living Collection — stylesheet
   1. Design tokens   2. Base   3. Components & responsive (original)
   4. Page styles (moved from inline style="" attributes)
   ========================================================================== */

/* 1. Design tokens */
:root {
  /* Jost has no Vietnamese glyphs: Be Vietnam Pro only fills in the missing characters. */
  --font-body: "Cormorant Garamond", "Times New Roman", serif;
  /* Cormorant Garamond already includes the Vietnamese subset. */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-size-h3: 38px;
}

/* 2. Base */
html {
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
}

/* 3. Components & responsive */
body {
  margin: 0;
  background: #faf8f5;
  font-family: var(--font-body);
  font-size: 18px;
}
a {
  color: #6e5a4b;
}
a:hover {
  color: #4c3d32;
}
.c-nav a {
  color: #2b2724;
  text-decoration: none;
}
.c-nav a:hover {
  color: #8c7461;
}
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  box-sizing: border-box;
  background: #2b2724;
  color: #faf8f5 !important;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  padding: 15px 30px;
}
.c-btn:hover {
  background: #6e5a4b;
}
.car {
  position: relative;
}
.car .sl {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.car .sl.on {
  opacity: 1;
  z-index: 1;
}
.car .sl img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(250, 248, 245, 0.88);
  color: #2b2724;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.car-btn:hover {
  background: #faf8f5;
}
.car-prev {
  left: 14px;
}
.car-next {
  right: 14px;
}
.car-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 2px;
}
.dot {
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.55);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}
.dot.on span {
  background: #faf8f5;
}
.c-readmore {
  display: none;
}
.c-more > p + p {
  margin-top: 18px !important;
}
.c-sm {
  display: none;
}
.c-monly {
  display: none;
}
.c-cards {
  display: none;
}
.c-cards-hint {
  display: none;
}
.c-bar {
  display: none;
}
.c-btn-ghost {
  background: transparent;
  color: #2b2724 !important;
  border: 1px solid #2b2724;
}
.c-btn-ghost:hover {
  background: #2b2724;
  color: #faf8f5 !important;
}
.c-btn-light {
  background: #faf8f5;
  color: #2b2724 !important;
  min-width: 210px;
}
.c-btn-light:hover {
  background: #e9e1d8;
}
.c-index a {
  color: #2b2724;
  text-decoration: none;
}

.c-index a:hover {
  color: #8c7461;
}
@media (max-width: 900px) {
  .c-pad {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  .c-navlinks {
    display: none !important;
  }
  .c-hero {
    font-size: 38px !important;
  }
  .c-sub {
    font-size: 19px !important;
  }
  .c-line {
    font-size: 15px !important;
  }
  .c-h2 {
    font-size: 34px !important;
  }
  .c-photo {
    height: 300px !important;
  }
  .c-g,
  .c-g2,
  .c-g3 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .c-g > *,
  .c-g3 > * {
    grid-column: auto !important;
    margin-top: 0 !important;
  }
  .c-ph {
    height: 300px !important;
  }
  .c-g3 > .c-ph:nth-child(2) {
    height: 220px !important;
  }
  .c-col {
    padding-top: 0 !important;
  }
  .c-imgfirst {
    order: -1;
  }
  .c-zstrip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .c-tag {
    font-size: 28px !important;
    line-height: 32px !important;
  }
  .c-chapter {
    padding-top: 56px !important;
    padding-bottom: 64px !important;
  }
  .c-mhide {
    display: none !important;
  }
  .c-herosec {
    height: min(calc(100svh - 150px), 560px) !important;
    min-height: 440px;
  }
  .c-herotext {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 12px !important;
  }
  .c-herotext .c-line {
    display: none !important;
  }
  .c-herotext .c-btn {
    display: none !important;
  }
  header a {
    font-size: 20px !important;
  }
  header img {
    height: 34px !important;
  }
  .car {
    height: 118vw !important;
    max-height: 520px;
  }
  .c-more {
    max-height: 5.7em;
    overflow: hidden;
    position: relative;
  }
  .c-more:not(.open)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.4em;
    background: linear-gradient(rgba(241, 236, 229, 0), var(--fade, #f1ece5));
  }
  .c-more.open {
    max-height: none !important;
  }
  .c-more.open + .c-readmore {
    display: none !important;
  }
  .c-readmore {
    display: inline-flex;
    align-self: flex-start;
    background: none;
    border: 0;
    padding: 10px 0;
    min-height: 44px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6e5a4b;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
  }
  #story .c-more {
    max-height: 8.6em;
  }
  #story,
  #hotram,
  #lecabinet {
    --fade: #faf8f5;
  }
  .c-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 22px;
    margin: 0 -22px;
    padding: 4px 22px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .c-cards::-webkit-scrollbar {
    display: none;
  }
  .c-cards {
    animation: cnudge 1.6s ease-in-out 0.8s 1 both;
  }
  @keyframes cnudge {
    0% {
      transform: translateX(0);
    }
    35% {
      transform: translateX(-44px);
    }
    70% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(0);
    }
  }
  .c-cards-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6e5a4b;
  }
  .c-cards-hint svg {
    animation: carrow 1.8s ease-in-out infinite;
  }
  @keyframes carrow {
    0%,
    100% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(6px);
    }
  }
  .c-cdots {
    display: flex;
    gap: 6px;
    margin-left: auto;
  }
  .c-cdot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d9cfc4;
    transition:
      background 0.3s,
      width 0.3s;
  }
  .c-cdot.on {
    background: #6e5a4b;
    width: 18px;
    border-radius: 3px;
  }
  @media (prefers-reduced-motion: reduce) {
    .c-cards,
    .c-cards-hint svg {
      animation: none;
    }
  }
  .c-card {
    flex: 0 0 72%;
    height: 340px;
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
    color: #faf8f5;
    text-decoration: none;
  }
  .c-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .c-card-t {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(rgba(31, 28, 25, 0), rgba(31, 28, 25, 0.75));
  }
  .c-lg {
    display: none;
  }
  .c-sm {
    display: inline;
  }
  .c-chapter .c-btn {
    flex: 1 1 0;
    padding: 14px 8px !important;
    font-size: 18px !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
  }
  .c-chapter .c-actions {
    flex-wrap: nowrap !important;
    width: 100%;
  }
  .c-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 248, 245, 0.96);
    border-top: 1px solid #e5ddd3;
  }
  .c-bar .c-btn {
    padding: 12px 10px;
  }
  footer {
    padding-bottom: 110px !important;
  }
  .c-zstrip {
    display: none !important;
  }
  .c-logos {
    gap: 14px 22px !important;
  }
  .c-monly {
    display: block !important;
  }
  .c-zslot:not(:first-child) {
    display: none !important;
  }
  .c-zslot {
    height: 118vw !important;
    max-height: 520px;
  }
  .c-chapter {
    padding-top: 36px !important;
    padding-bottom: 40px !important;
  }
  #story {
    padding-top: 48px !important;
  }
  #story .c-photo {
    margin-top: 32px !important;
  }
  #collection {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
  }
  #collection > div {
    gap: 24px !important;
  }
  #contact > div {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
  .c-chapter > div {
    gap: 24px !important;
  }

  #lecabinet .c-center {
    align-items: flex-start !important;
    text-align: left !important;
  }
  #lecabinet .c-center-row {
    justify-content: flex-start !important;
  }
  #lecabinet .c-readmore {
    align-self: flex-start !important;
  }

  .story-title {
    padding: 0;
  }
}

/* 4. Page styles (formerly inline) */
.page {
  font-family: var(--font-body);
  font-weight: 300;
  color: #2b2724;
  background: #faf8f5;
  width: 100%;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 56px;
  background: #faf8f5;
  border-bottom: 1px solid #e5ddd3;
}

a.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #2b2724;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
}

.site-logo-img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 18px;
  letter-spacing: unset;
}

.hero {
  position: relative;
  height: 720px;
  overflow: hidden;
  background: #1f1c19;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 28, 25, 0.38);
}

.hero-content {
  position: absolute;
  inset: 0;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #faf8f5;
  text-align: center;
}

.eyebrow-hero {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 76px;
  line-height: 1.04;
}

.hero-rule {
  width: 56px;
  height: 1px;
  background: rgba(250, 248, 245, 0.7);
}

.hero-sub {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.3;
  max-width: 680px;
}

.hero-line {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  max-width: 640px;
  opacity: 0.92;
}

a.hero-cta {
  margin-top: 10px;
}

.story {
  padding: 120px 56px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.story-inner {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.eyebrow {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #8c7461;
  text-transform: uppercase;
}

.story-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.2;
  padding: 0 10%;
}

.body-text {
  margin: 0;
  font-size: 20px;
  line-height: 1.75;
  color: #4f4842;
}

.story-readmore {
  align-self: center;
}

.story-photo {
  width: 100%;
  max-width: 1240px;
  height: 560px;
  margin-top: 72px;
  overflow: hidden;
}

.story-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 55%;
}

.collection {
  padding: 110px 56px 90px;
}

.collection-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.collection-head {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.collection-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.1;
}

.index-list {
  flex: 2 1 460px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #d9cfc4;
}

.index-item {
  border-bottom: 1px solid #d9cfc4;
}

a.index-link {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  min-height: 44px;
  box-sizing: border-box;
}

.index-num {
  font-size: 13px;
  color: #8c7461;
  width: 24px;
}

.index-name {
  font-family: var(--font-display);
  font-size: 26px;
  flex: 1;
}

.index-place {
  font-size: 17px;
  color: #6e655d;
}

.card-meta {
  font-size: 18px;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

.card-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
}

.chapter-alt {
  background: #f1ece5;
  padding: 110px 56px 120px;
}

.chapter-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.chapter-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid #d9cfc4;
  padding-bottom: 18px;
}

.chapter-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
}

.chapter-num {
  color: #8c7461;
}

.chapter-place {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #6e655d;
  text-transform: uppercase;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.col-span-8 {
  grid-column: span 8;
}

.ph-580 {
  height: 580px;
  overflow: hidden;
}

.col-span-4 {
  grid-column: span 4;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chapter-grid-text {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}

.col-1-6 {
  grid-column: 1 / span 6;
}

.copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-h3);
  line-height: 1.25;
}

.actions {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.col-8-5 {
  grid-column: 8 / span 5;
  margin-top: 56px;
}

.ph-300 {
  height: 300px;
  overflow: hidden;
}

.chapter {
  background: #faf8f5;
  padding: 110px 56px 120px;
}

.chapter-grid-stretch {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.col-span-5 {
  grid-column: span 5;
}

.ph-760 {
  height: 760px;
  overflow: hidden;
}

.pos-35-50 {
  object-position: 35% 50%;
}

.pos-30-50 {
  object-position: 30% 50%;
}

.col-7-6 {
  grid-column: 7 / span 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.ph-360 {
  height: 360px;
  overflow: hidden;
}

.chapter-grid-start {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.col-copy-narrow {
  grid-column: span 4;
  padding-top: 24px;
}

.col-6-7 {
  grid-column: 6 / span 7;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ph-460 {
  height: 460px;
  overflow: hidden;
}

.pos-50-40 {
  object-position: 50% 40%;
}

.duo-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
}

.ph-240 {
  height: 240px;
  overflow: hidden;
}

.ph-320 {
  height: 320px;
  overflow: hidden;
}

.trio-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 24px;
  align-items: end;
}

.ph-520 {
  height: 520px;
  overflow: hidden;
}

.ph-380 {
  height: 380px;
  overflow: hidden;
  position: relative;
}
/* .ph-380::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f00;
  mix-blend-mode: multiply;
} */
.ph-600 {
  height: 600px;
  overflow: hidden;
}

.cabinet-copy-wrap {
  max-width: 700px;
  margin: 24px auto 0;
}

.copy-center {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}

.actions-center {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ph-400 {
  height: 400px;
  overflow: hidden;
}

.slide-placeholder {
  width: 100%;
  height: 100%;
  background: #e2d9ce;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: #8a7f74;
}

.zstrip {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr) minmax(
      0,
      2fr
    );
  gap: 16px;
}

.zslot {
  height: 400px;
  overflow: hidden;
  background: #e2d9ce;
}

.zslot-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: #8a7f74;
}

.zenna-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 96px;
  align-items: flex-start;
  margin-top: 16px;
}

.tagline-flex {
  flex: 1 1 360px;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-h3);
  line-height: 1.25;
}

.copy-flex {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

a.flex-fill {
  flex: 1;
}

.contact {
  position: relative;
  overflow: hidden;
  background: #1f1c19;
}

.contact-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.contact-inner {
  position: relative;
  padding: 130px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  color: #faf8f5;
}

.eyebrow-light {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.14em;
}

.contact-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.1;
}

.contact-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  max-width: 570px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}

.site-footer {
  background: #1f1c19;
  color: #b9afa5;
  padding: 64px 56px 32px;
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  color: #faf8f5;
  line-height: 1.2;
}

.footer-brand-sub {
  font-size: 17px;
  color: #b9afa5;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 36px;
  max-width: 820px;
}

a.footer-logo-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  opacity: 0.85;
}

.footer-logo-40 {
  height: 40px;
  width: auto;
}

.footer-logo-22 {
  height: 22px;
  width: auto;
}

a.footer-logo-link-text {
  display: flex;
  align-items: center;
  min-height: 44px;
  opacity: 0.85;
  color: #e5ddd3;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0;
}

.footer-logo-18 {
  height: 18px;
  width: auto;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  border-top: 1px solid #3a3530;
  padding-top: 22px;
}

.no-margin {
  margin: 0;
}

a.footer-link {
  color: #b9afa5;
}
