/* Góc Chọn Máy (dien-thoai-may-tinh 4.5): a gadget review magazine that also sells. Cream paper, black ink and an
   orange rule, a centred nameplate, a cover story with a boxed headline, products as rows of a review table with two key
   specs, an index of groups with dotted leaders, reader letters. Fonts: Playfair Display (titles) + Lora (text). */
:root {
  --paper: #fbf6ea;
  --paper-2: #f3ebd9;
  --ink: #17140f;
  --ink-2: #2b261d;
  --orange: #e8590c;
  --orange-2: #c44a08;
  --muted: #6a6354;
  --line: #ddd2b6;
  --k-font: 'Lora', Georgia, serif;
  --k-font-display: 'Playfair Display', Georgia, serif;
  --k-accent: #17140f;
  --k-accent-ink: #fbf6ea;
  --k-ink: #17140f;
  --k-paper: #fffdf6;
  --k-muted: #6a6354;
  --k-line: #ddd2b6;
  --k-radius: 3px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font:
    400 16px/1.65 'Lora',
    Georgia,
    serif;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}
.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kicker {
  display: block;
  margin: 0 0 8px;
  color: var(--orange);
  font-family: 'Be Vietnam Pro', 'Lora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker-light {
  color: #ffb27a;
}
.fine {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font:
    700 15px/1.2 'Lora',
    serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--orange-2);
  border-color: var(--orange-2);
}
.btn-line {
  background: transparent;
  color: var(--ink);
}
.btn-line:hover {
  background: var(--paper-2);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-sm {
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}
.link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.link-big {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
}
.more-block {
  margin-top: 12px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--orange-2);
  font-weight: 700;
  text-decoration: none;
}

/* Masthead */
.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 3px double var(--ink);
}
.hdr-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 1128px;
  margin: 0 auto;
  padding: 5px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.hdr-main {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  max-width: 1128px;
  margin: 0 auto;
  padding: 6px 16px;
}
.mast {
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.hdr-menu,
.hdr-cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.hdr-cart b {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
}
.menu {
  display: none;
  flex-direction: column;
  padding: 0 16px 8px;
}
.menu[data-open] {
  display: flex;
}
.menu a {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
}
.menu .menu-cta {
  color: var(--orange-2);
}

/* Sections */
.sec {
  padding: 44px 16px;
}
.sec > * {
  max-width: 1128px;
  margin-left: auto;
  margin-right: auto;
}
.page {
  max-width: 1160px;
  margin: 0 auto;
}
.sec-paper {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-ink {
  background: var(--ink);
  color: var(--paper);
}
.h1 {
  font-size: 32px;
}
.h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-size: 27px;
}
.h3 {
  margin: 24px 0 10px;
  font-size: 21px;
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}
.sec-head .h2 {
  margin: 0;
  border: 0;
}
.sec-head .more {
  margin-bottom: 10px;
}

/* Cover story */
.lead {
  padding: 0;
}
.lead-story {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  padding: 16px;
  background-size: cover;
  background-position: center 30%;
  text-decoration: none;
}
.lead-box {
  display: block;
  max-width: 560px;
  padding: 20px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--orange);
}
.lead-title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.12;
}
.lead-excerpt {
  display: block;
  margin: 10px 0;
  color: var(--muted);
  font-size: 15px;
}
.lead-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  border-bottom: 2px solid var(--orange);
}

/* Intro */
.intro {
  text-align: center;
}
.intro > * {
  max-width: 760px;
}
.intro .h1 em {
  color: var(--orange-2);
  font-weight: 400;
}
.intro-text {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
}
.intro .actions {
  justify-content: center;
}

/* Review rows */
.rows {
  display: grid;
}
.row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.row:first-child {
  border-top: 1px solid var(--line);
}
.row-img img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
}
.row-main {
  min-width: 0;
}
.row-cat {
  margin: 0;
  color: var(--orange);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.row-name {
  margin: 2px 0 6px;
  font-size: 20px;
  line-height: 1.2;
}
.row-name a {
  text-decoration: none;
}
.row-name a:hover {
  color: var(--orange-2);
}
.row-spec {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.row-spec div {
  display: flex;
  gap: 8px;
}
.row-spec dt {
  flex: none;
  font-weight: 700;
  color: var(--ink);
}
.row-spec dd {
  margin: 0;
}
.row-buy {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.row-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin: 0;
}
.row-price b {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
}
.row-price s {
  color: var(--muted);
  font-size: 14px;
}

/* Index of groups */
.index {
  display: grid;
  gap: 4px 48px;
}
.index a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  text-decoration: none;
}
.index-name {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 700;
}
.index-dots {
  flex: 1;
  border-bottom: 2px dotted var(--muted);
  transform: translateY(-4px);
}
.index-count {
  color: var(--muted);
  font-size: 14px;
}
.index a:hover .index-name {
  color: var(--orange-2);
}

/* Bench */
.bench {
  display: grid;
  gap: 24px;
}
.about {
  display: grid;
  gap: 10px;
  color: rgba(251, 246, 234, 0.85);
}
.about p {
  margin: 0;
}
.nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0 0;
}
.nums dd {
  margin: 0;
  color: #ffb27a;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.nums dt {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(251, 246, 234, 0.8);
}
.bench-pics {
  display: grid;
  gap: 12px;
}
.bench-pics img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Stories */
.stories {
  display: grid;
  gap: 24px;
}
.story {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.story img {
  width: 100%;
  height: 190px;
  margin-bottom: 12px;
  object-fit: cover;
}
.story-date {
  color: var(--orange-2);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.story-title {
  margin-top: 2px;
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.22;
}
.story-excerpt {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}
.story:hover .story-title {
  color: var(--orange-2);
}

/* Letters */
.letters {
  display: grid;
  gap: 24px;
}
.letter {
  margin: 0;
  padding-left: 18px;
  border-left: 4px solid var(--orange);
}
.letter-stars {
  margin: 0;
  color: var(--orange);
  letter-spacing: 2px;
}
.letter blockquote {
  margin: 6px 0 8px;
  font-style: italic;
}
.letter figcaption {
  color: var(--muted);
  font-size: 14px;
}
.letter b {
  color: var(--ink);
}

/* FAQ */
.faqs {
  display: grid;
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 15px 40px 15px 0;
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  top: 10px;
  right: 4px;
  color: var(--orange);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 26px;
}
.faq[open] summary::after {
  content: '−';
}
.faq p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--muted);
}

/* Contact */
.contact {
  display: grid;
  gap: 20px;
}
.contact > * {
  max-width: none;
  margin: 0;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 420px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--muted);
}
.map {
  min-height: 280px;
  background: var(--paper);
  border: 1px solid var(--ink);
}

/* List */
.finder {
  display: grid;
  gap: 10px;
  margin: 18px 0 14px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}
.search input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fffdf6;
  color: var(--ink);
  font: inherit;
}
.tabs,
.tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.tabs {
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tab {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  font:
    700 15px/1 'Lora',
    serif;
  cursor: pointer;
}
.tab[aria-pressed='true'] {
  border-bottom-color: var(--orange);
  color: var(--ink);
}
.empty {
  padding: 24px;
  background: var(--paper-2);
  text-align: center;
}

/* Detail */
.dhead {
  max-width: 1128px;
  margin: 0 auto;
  padding: 24px 16px 4px;
}
.dshort {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-style: italic;
}
.dgrid {
  display: grid;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.dgrid > * {
  max-width: none;
  margin: 0;
}
.dphoto img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--ink);
}
.dbuy {
  padding: 18px;
  border: 2px solid var(--ink);
  background: #fffdf6;
  box-shadow: 6px 6px 0 var(--orange);
}
.dprice {
  margin: 0 0 8px;
}
.dprice b {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
}
.dprice s,
.dprice small {
  color: var(--muted);
}
.dtext {
  margin: 0;
}
.spec {
  margin: 0;
  border-top: 2px solid var(--ink);
}
.spec div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  color: var(--muted);
  font-size: 14px;
}
.spec dd {
  margin: 0;
  font-weight: 700;
}

/* Order */
.checkout {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.bill {
  padding: 18px;
  border: 1px solid var(--ink);
  background: #fffdf6;
}
.cl {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dotted var(--muted);
}
.cl img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}
.cl-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.cl-info a {
  font-weight: 700;
  text-decoration: none;
}
.cl-info small {
  color: var(--muted);
}
.cl-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.cl-qty button:not(.link) {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  font-size: 20px;
  cursor: pointer;
}
li.empty {
  padding: 16px 0;
  background: none;
  text-align: left;
  color: var(--muted);
}
.sum {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 0;
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
}
.sum b {
  font-size: 24px;
}
.paper {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fffdf6;
}
.paper .h3 {
  margin-top: 0;
}

/* Article */
.read {
  max-width: 740px;
  margin: 0 auto;
}
.read > * {
  max-width: none;
}
.read-lead {
  margin: 12px 0 20px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.45;
}
.read-img {
  width: 100%;
  height: 240px;
  margin-bottom: 20px;
  object-fit: cover;
}
.read-body p {
  margin: 0 0 16px;
  font-size: 17px;
}
.read-body p:first-of-type::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  color: var(--orange);
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  font-weight: 900;
  line-height: 0.8;
}
.read-cta {
  margin: 26px 0 0;
}
.stories-all {
  margin-top: 24px;
}

/* Footer */
.ftr {
  background: var(--ink);
  color: rgba(251, 246, 234, 0.82);
  font-size: 15px;
}
.ftr-in {
  display: grid;
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 16px;
}
.ftr p {
  margin: 0 0 6px;
}
.ftr-brand {
  color: var(--paper);
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
}
.ftr-h {
  color: #ffb27a;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ftr .link-big {
  color: #fff;
}

@media (min-width: 720px) {
  .row {
    grid-template-columns: 120px 1fr auto;
    align-items: center;
  }
  .row-img img {
    width: 120px;
    height: 120px;
  }
  .row-buy {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-end;
    min-width: 190px;
  }
  .index {
    grid-template-columns: 1fr 1fr;
  }
  .bench {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
  }
  .stories {
    grid-template-columns: repeat(3, 1fr);
  }
  .letters {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .ftr-in {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .hdr-main {
    grid-template-columns: 1fr auto 1fr;
    padding: 8px 16px 4px;
  }
  .hdr-menu {
    visibility: hidden;
  }
  .hdr-cart {
    justify-self: end;
  }
  .mast {
    font-size: 46px;
  }
  .menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 34px;
    padding: 4px 16px 10px;
  }
  .menu a {
    padding: 4px 0;
    border: 0;
    font-size: 15px;
  }
  .lead-story {
    min-height: 560px;
    padding: 48px max(16px, calc((100% - 1128px) / 2));
  }
  .lead-box {
    padding: 32px;
  }
  .lead-title {
    font-size: 42px;
  }
  .sec {
    padding: 68px 16px;
  }
  .h1 {
    font-size: 46px;
  }
  .h2 {
    font-size: 34px;
  }
  .index {
    grid-template-columns: repeat(3, 1fr);
  }
  .bench-pics img {
    height: 220px;
  }
  .faqs {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }
  .contact {
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
    max-width: none;
    padding-left: max(16px, calc((100% - 1128px) / 2));
    padding-right: max(16px, calc((100% - 1128px) / 2));
  }
  .finder {
    grid-template-columns: 1fr 260px;
  }
  .dhead {
    padding-top: 40px;
  }
  .dgrid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
  .dphoto {
    position: sticky;
    top: 160px;
  }
  .checkout {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
  .read-img {
    height: 400px;
  }
}
