/* Willow Desk — Phong cách tạp chí góc làm việc tại nhà & công thái học */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-alt: #f4f0e8;
  --primary: #244234;
  --primary-dark: #192f25;
  --accent: #b87333;
  --accent-light: #faede1;
  --text: #212924;
  --text-muted: #5e6b63;
  --border: #e3ded5;
  --border-light: #ede8e0;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1120px;
  --radius: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(36, 66, 52, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Skip link */
.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  z-index: 9999;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top ticker / strip */
.topstrip {
  background-color: var(--surface-alt);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 7px 0;
}
.topstrip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topstrip a {
  color: var(--text-muted);
  text-decoration: none;
}
.topstrip a:hover {
  color: var(--primary);
}

/* Masthead */
.masthead {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 22px 0 18px;
}
.masthead .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}
.brand .logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
}
.brand-title {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.15;
}
.brand-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.mast-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.2s;
}
.mast-action:hover {
  background-color: var(--primary-dark);
  color: #fff;
}

/* Main Navigation (CSS-only responsive) */
.mainnav {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-toggle-label,
#nav-toggle {
  display: none;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.nav-list li a {
  display: block;
  padding: 13px 14px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-list li a:hover,
.nav-list li a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--border-light);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background-color: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 16px;
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}
.hero-img-wrap img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* Editorial Highlights / Section Header */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--primary);
}
.section-head .section-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.section-head .section-link:hover {
  color: var(--accent);
}

/* Article Card Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 48px;
}
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(36, 66, 52, 0.08);
  border-color: var(--accent);
}
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--surface-alt);
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-thumb img {
  transform: scale(1.03);
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-decoration: none;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.35;
  margin-bottom: 10px;
}
.card-title a {
  color: var(--text);
  text-decoration: none;
}
.card-title a:hover {
  color: var(--primary);
}
.card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Single Article Layout */
.article-container {
  padding: 44px 0 64px;
}
.article-header {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: left;
}
.article-kicker {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-decoration: none;
}
.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 16px;
}
.article-standfirst {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 22px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.article-byline strong {
  color: var(--text);
}

.article-feature-img {
  max-width: 920px;
  margin: 0 auto 36px;
}
.article-feature-img figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--surface);
}
.article-feature-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.img-credit {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 8px 14px;
  background-color: var(--surface-alt);
  border-top: 1px solid var(--border-light);
}
.img-credit a {
  color: var(--text-muted);
}

/* Article Prose */
.prose {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2a342e;
}
.prose p {
  margin-bottom: 22px;
}
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--primary);
  line-height: 1.35;
  margin: 40px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 28px 0 12px;
}
.prose ul, .prose ol {
  margin: 0 0 24px 24px;
}
.prose li {
  margin-bottom: 8px;
}
.prose strong {
  color: var(--text);
  font-weight: 600;
}
.prose blockquote {
  margin: 26px 0;
  padding: 16px 20px;
  background-color: var(--surface-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--primary-dark);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 0.94rem;
}
.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.prose th {
  background-color: var(--surface-alt);
  font-weight: 600;
  color: var(--primary);
}

/* Callout Box */
.callout {
  background-color: #f2f7f4;
  border: 1px solid #c9ded3;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0;
}
.callout-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout p:last-child {
  margin-bottom: 0;
}

/* Internal Read More Box */
.read-more-box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 28px 0;
}
.read-more-box .read-more-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.read-more-box a {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.read-more-box a:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* Static Page Hero & Prose */
.page-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.page-header .page-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: #d1ddd5;
  padding: 48px 0 28px;
  margin-top: 60px;
  border-top: 4px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 9px;
}
.footer-col a {
  color: #b5c7bc;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
  color: #b5c7bc;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #92a498;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span {
  margin: 0 6px;
}

/* Responsive styles */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .topstrip {
    display: none;
  }
  .masthead {
    padding: 16px 0;
  }
  .mast-action {
    display: none;
  }
  /* Mobile CSS-only toggle */
  .nav-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
  }
  .nav-toggle-label svg {
    width: 22px;
    height: 22px;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
  }
  #nav-toggle:checked ~ .nav-list {
    display: flex;
  }
  .nav-list li a {
    padding: 10px 4px;
    border-bottom: 1px solid var(--border-light);
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .article-header h1 {
    font-size: 1.75rem;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
