:root {
  --nen: #FAF7F2;
  --xanh: #2F5D50;
  --cam: #C8793A;
  --chu: #262626;
  --nhe: #6E6E6E;
  --vien: #E6DED0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--nen);
  color: var(--chu);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.7;
}

.khung {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Đầu trang */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
}

.thuong-hieu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  color: var(--xanh);
  text-decoration: none;
}
.thuong-hieu img { width: 40px; height: 40px; display: block; }
.thuong-hieu .ten { font-size: 26px; font-weight: 700; line-height: 1; }
.thuong-hieu .phu { flex-basis: 100%; margin-top: 4px; font-size: 14px; font-style: italic; color: var(--cam); }

nav a {
  margin-left: 16px;
  color: var(--chu);
  text-decoration: none;
  font-size: 15px;
}
nav a:hover { color: var(--xanh); }

/* Nội dung chung: bài viết và trang giới thiệu hẹp, vừa để đọc */
main:not(.trang-chu) {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 20px;
}

h1 {
  font-size: 32px;
  line-height: 1.25;
  color: var(--xanh);
  margin: 10px 0 8px;
}
h2 { font-size: 22px; line-height: 1.35; color: var(--xanh); margin: 28px 0 8px; }
h3 { font-size: 19px; margin: 22px 0 6px; }

.nhan {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cam);
}

.ngay { font-size: 14px; color: var(--nhe); margin: 0 0 20px; }

article p { margin: 0 0 18px; }
article p:first-child::first-letter {
  float: left;
  font-size: 4.2em;
  line-height: 0.8;
  padding: 6px 10px 0 0;
  color: var(--xanh);
}

/* Trang chủ: khối đầu trang và lưới bài */
.hero {
  height: 300px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2F5D50 0%, #6E9B88 55%, #E7B98A 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
  margin-bottom: 36px;
  color: #fff;
}
.hero-chu {
  background: rgba(20, 40, 35, 0.45);
  padding: 18px 22px;
  border-radius: 14px;
  max-width: 480px;
}
.hero-chu h1 { color: #fff; font-size: 34px; margin: 0 0 6px; }
.hero-chu p { margin: 0; font-size: 15px; }

.luoi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.the {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.the:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.the h2 { font-size: 20px; margin: 6px 0; line-height: 1.3; }
.the p { margin: 0; font-size: 14px; color: var(--nhe); }

/* Ô ảnh bìa: đang là khối màu, thay bằng ảnh thật khi có */
.anh { height: 150px; }
.anh.a { background: linear-gradient(160deg, #DCE7DF, #9DBFAE); }
.anh.b { background: linear-gradient(160deg, #F3E1CF, #E0A979); }
.anh.c { background: linear-gradient(160deg, #E4E0F0, #A9A0CC); }

.noi-dung { padding: 16px 18px 20px; }

/* Bình luận và chân trang */
.binh-luan {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--vien);
  color: var(--nhe);
  font-size: 16px;
}

footer {
  text-align: center;
  color: var(--nhe);
  font-size: 14px;
  padding: 20px 0 40px;
}
