@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700&display=swap');

:root {
  --primary: #5A7B95;
  --primary-light: #EDF4F8;
  --primary-dark: #3E5E75;
  --accent: #F4A7B0;
  --accent-dark: #E88994;
  --accent-light: #FFF0F2;
  --aqua: #A8E0E8;
  --aqua-light: #E8F7F9;
  --yellow: #E8E0A8;
  --bg: #F6F5F3;
  --card-bg: #ffffff;
  --text: #2C3E50;
  --text-light: #6B7C8D;
  --border: #E5E8EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.09);
  --radius: 16px;
  --max-width: 820px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Header */
header {
  background: linear-gradient(135deg, #3E5E75 0%, #5A7B95 50%, #6E8DA5 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(90,123,149,0.3);
}

header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header h1 a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

header h1 a img {
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  padding: 2px;
}

header nav { display: flex; gap: 6px; }

header nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

header nav a:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

main { padding: 40px 0 60px; }

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--aqua-light) 0%, var(--primary-light) 50%, var(--accent-light) 100%);
  border-radius: var(--radius);
  padding: 44px 40px;
  margin-bottom: 36px;
  border: 1px solid rgba(168,224,232,0.3);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  background: var(--accent);
  opacity: 0.08;
  border-radius: 50%;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 540px;
}

/* Article cards */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--aqua) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.25s;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--aqua);
}

.article-card:hover::before { opacity: 1; }

.article-card .tag {
  display: inline-block;
  background: var(--aqua-light);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-card h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.article-card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.article-card h2 a:hover { color: var(--primary); }

.article-card .meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.article-card p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.6;
}

.article-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 12px;
  transition: gap 0.2s;
}

.article-card .read-more:hover { gap: 8px; color: var(--primary-dark); }

/* Article page */
article {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

article h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

article .meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

article h2 {
  font-size: 1.35rem;
  margin: 36px 0 14px;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}

article h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
  font-weight: 600;
}

article p { margin-bottom: 16px; font-size: 1rem; }
article ul, article ol { margin: 0 0 20px 24px; }
article li { margin-bottom: 8px; font-size: 0.97rem; }

article a { color: var(--primary); font-weight: 500; }
article a:hover { color: var(--primary-dark); text-decoration: none; }

article img {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

/* Product boxes */
.product-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fafbfc 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 24px 0;
  transition: all 0.2s;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.product-box .product-img {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-box .product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-box .product-info {
  flex: 1;
  min-width: 0;
}

.product-box:hover {
  border-color: var(--aqua);
  box-shadow: var(--shadow-sm);
}

.product-box h3 {
  color: var(--primary-dark);
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.product-box p {
  margin-bottom: 12px;
  font-size: 0.93rem;
  color: var(--text-light);
}

.product-box .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(244,167,176,0.3);
}

.product-box .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(244,167,176,0.4);
  color: white;
}

/* Disclosure */
.disclosure {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 0.84rem;
  color: var(--text-light);
  border-radius: 0 10px 10px 0;
  line-height: 1.5;
}

/* Table styling */
article table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

article table th {
  text-align: left;
  background: var(--primary);
  color: white;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-light);
  font-size: 0.84rem;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  background: white;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover { text-decoration: underline; }

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 640px) {
  header .container { flex-direction: column; gap: 12px; }
  header h1 { font-size: 1.2rem; }
  .hero { padding: 28px 24px; }
  .hero h2 { font-size: 1.4rem; }
  article { padding: 28px 22px; }
  article h1 { font-size: 1.5rem; }
  .product-box { padding: 18px 20px; flex-direction: column; align-items: center; text-align: center; }
  .product-box .product-img { width: 120px; height: 120px; }
}
