/* Candö, phiên bản B: trắng đen xám be
   Doi mau o :root ben duoi */

:root {
  --paper: #FFFFFF;
  --ink: #111111;
  --grey: #6F6F6B;
  --line: #DAD8D3;
  --beige: #EDE8DF;

  --font-logo: "Berlin Sans FB", "Montserrat", sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --gap: clamp(64px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.grey { color: var(--grey); }

/* Bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--font-logo); font-size: 22px; font-weight: 600; line-height: 1; }
.bar nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.bar nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color .2s ease;
}
.bar nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) var(--gutter) 0; }
.wordmark {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: clamp(66px, 18vw, 285px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-left: -0.04em;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 40px);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.hero-pic { padding: 0 var(--gutter); }
.hero-pic img { aspect-ratio: 21 / 9; object-fit: cover; }

/* Blocks */
.block, .contact {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 24px var(--gutter);
  padding: var(--gap) var(--gutter) 0;
}
.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  padding-top: 0.6em;
}

/* About */
.lead {
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 22em;
  text-wrap: balance;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  margin-top: clamp(32px, 5vw, 72px);
  color: var(--grey);
  max-width: 900px;
}
.two p + p { margin-top: 14px; }
.sub { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }

/* Products */
.products { margin-top: var(--gap); background: var(--beige); padding-bottom: var(--gap); }
.products-head { padding-top: var(--gap); }
.lines { border-top: 1px solid var(--ink); margin-top: clamp(32px, 5vw, 64px); max-width: 760px; }
.lines li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #CFC9BD;
  color: var(--grey);
}
.lines li.on { color: var(--ink); }
.idx { font-size: 11px; letter-spacing: 0.1em; color: var(--grey); }
.lines .name { font-size: clamp(22px, 2.8vw, 36px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.lines .note { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

.title { font-size: clamp(40px, 7vw, 104px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.intro { margin-top: 20px; max-width: 34em; }

/* Moi mui huong: khung hinh + chu */
.scents { padding: clamp(40px, 6vw, 80px) var(--gutter) 0; display: grid; gap: clamp(48px, 8vw, 120px); }
.scent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: center;
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid #CFC9BD;
}
.scent:nth-child(even) .frame { order: 2; }
.frame { background: #DDD6CA; overflow: hidden; }
.frame img { aspect-ratio: 4 / 5; object-fit: cover; }
.info { max-width: 30em; }
.scent h3 { font-size: clamp(34px, 4.6vw, 68px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.05; margin-top: 10px; }
.base { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 14px; }
.profile { margin-top: 28px; font-size: 17px; }
.story { margin-top: 12px; color: var(--grey); }

/* Contact */
.contact { padding-bottom: var(--gap); }
.contact > .mail, .contact > .contact-row { grid-column: 2; }
.mail {
  font-size: clamp(26px, 5.4vw, 80px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  border-bottom: 1px solid transparent;
  width: fit-content;
  max-width: 100%;
  transition: border-color .3s ease;
}
.mail:hover { border-color: var(--ink); }
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 8px;
  font-size: 13px;
}
.contact-row a { border-bottom: 1px solid var(--ink); }

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--grey);
}
.foot a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (min-width: 761px) { .mail { white-space: nowrap; } }

@media (max-width: 760px) {
  .block, .contact { grid-template-columns: 1fr; }
  .contact > .mail, .contact > .contact-row { grid-column: 1; }
  .hero-pic img { aspect-ratio: 4 / 3; }
  .scent { grid-template-columns: 1fr; }
  .scent:nth-child(even) .frame { order: 0; }
  .lines li, .lines li > a { grid-template-columns: 40px 1fr auto; }
  .two { grid-template-columns: 1fr; gap: 16px; }
  .bar nav a { font-size: 10px; letter-spacing: 0.1em; }
}

/* Dòng bấm được (Candles, A Long Night) */
.lines li > a {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: baseline;
  gap: 16px;
}
.lines li.on { cursor: pointer; transition: background .25s ease, padding .25s ease; }
.lines li.on:hover { background: rgba(0,0,0,.04); padding-left: 12px; padding-right: 12px; }
.page-head .label a:hover { color: var(--ink); }
.page-head .title { margin-top: 10px; }
.collection { margin-top: 0; }

/* Cách đặt hàng */
.order { padding-bottom: var(--gap); }
.lead.small { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.4; }
.order-link { margin-top: 20px; font-size: 13px; }
.order-link a, .order-note a { border-bottom: 1px solid var(--ink); }
.order-note { grid-column: 2; margin-top: 16px; font-size: 13px; color: var(--grey); }
@media (max-width: 760px) { .order-note { grid-column: 1; } }
@media (max-width: 760px) { .lines li > a { grid-template-columns: 40px 1fr auto; } }
.page-head { padding-bottom: var(--gap); } .collection .page-head { padding-bottom: 0; }

/* Menu: muc dang xem */
.bar nav a[aria-current] { color: var(--ink); }

/* Journal */
.entry-title { font-size: clamp(32px, 4.4vw, 60px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.prose { max-width: 40em; margin-top: 32px; color: var(--grey); }
.prose p + p { margin-top: 16px; }
.last { padding-bottom: var(--gap); }

/* Contact */
.contact .mail { display: inline-block; margin-top: 32px; }
.order-line { margin-top: 32px; font-size: 15px; }
.order-line a { border-bottom: 1px solid var(--ink); margin-left: 8px; }

@media (max-width: 760px) {
  .bar { padding-left: 16px; padding-right: 16px; }
  .bar nav { gap: 12px; }
  .bar nav a { font-size: 9.5px; letter-spacing: 0.08em; }
}
.page-head.short { padding-bottom: 0; }
.contact .mail { font-size: clamp(24px, 3.6vw, 52px); }

/* Tieu de dam, co chu thuong (trang About) */
.lead.bold { font-size: 17px; font-weight: 600; line-height: 1.6; letter-spacing: 0; max-width: 40em; }
.lead.bold + .two { margin-top: 20px; }

/* Contact */
.contact-list { margin-top: 8px; font-size: 17px; line-height: 2; }
.contact-list .k { color: var(--grey); }
.contact-list a { border-bottom: 1px solid var(--ink); }

/* Journal: hinh su kien */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.two > p + p { margin-top: 0; }

/* Menu co them Quiz, Calculator: tren dien thoai menu xuong dong rieng, an Home (logo da dan ve Home) */
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; row-gap: 12px; }
  .bar nav { width: 100%; justify-content: space-between; gap: 8px; }
  .bar nav a[href="index.html"] { display: none; }
}
@media (max-width: 340px) { .bar nav { gap: 4px; } .bar nav a { letter-spacing: 0.04em; } }
