@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg: #FAFAFA;
  --fg: #0A0A0A;
  --primary: #E63946;
  --primary-fg: #FFFFFF;
  --secondary: #F1F5F9;
  --muted: #64748B;
  --border: #E2E8F0;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --slate-950: #020617;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--primary);
  color: white;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container { padding: 0 24px; }
}
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 640px) {
  .header-inner { height: 80px; }
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

@media (min-width: 640px) {
  .site-logo { font-size: 1.875rem; }
}

.site-logo span {
  color: var(--primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--slate-900);
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-900);
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--slate-200);
  padding: 16px 0;
}

.nav-mobile.open {
  display: block;
}

@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}

.nav-mobile a {
  display: block;
  padding: 12px 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--slate-900);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--primary);
}

/* ===== HERO ===== */
.hero {
  border-bottom: 1px solid var(--slate-200);
  background: white;
}

.hero-inner {
  padding: 48px 0;
  max-width: 768px;
}

@media (min-width: 640px) {
  .hero-inner { padding: 64px 0; }
}

@media (min-width: 1024px) {
  .hero-inner { padding: 80px 0; }
}

.hero-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--slate-900);
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; }
}

.hero-desc {
  font-size: 1rem;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 560px;
}

@media (min-width: 640px) {
  .hero-desc { font-size: 1.125rem; }
}

/* ===== SECTIONS ===== */
.section {
  padding: 40px 0;
}

@media (min-width: 640px) {
  .section { padding: 56px 0; }
}

.section-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--slate-400);
  margin-bottom: 24px;
}

.section-bottom {
  padding-bottom: 64px;
}

@media (min-width: 640px) {
  .section-bottom { padding-bottom: 96px; }
}

/* ===== ARTICLE CARDS ===== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .articles-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--slate-200);
  background: white;
  overflow: hidden;
  transition: all 0.3s;
}

.article-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.article-card.featured {
  flex-direction: column;
}

@media (min-width: 768px) {
  .article-card.featured { flex-direction: row; }
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.article-card.featured .card-image-wrap {
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .article-card.featured .card-image-wrap {
    width: 50%;
    aspect-ratio: auto;
    min-height: 360px;
  }
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.article-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 12px;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 640px) {
  .card-body { padding: 32px; }
}

.article-card.featured .card-body {
  justify-content: center;
}

@media (min-width: 768px) {
  .article-card.featured .card-body { width: 50%; }
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--slate-400);
  font-weight: 500;
  margin-bottom: 12px;
}

.card-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--slate-300);
}

.card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  font-size: 1.25rem;
  transition: color 0.3s;
}

@media (min-width: 640px) {
  .card-title { font-size: 1.5rem; }
}

.article-card.featured .card-title {
  font-size: 1.5rem;
}

@media (min-width: 640px) {
  .article-card.featured .card-title { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
  .article-card.featured .card-title { font-size: 2.25rem; }
}

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

.card-excerpt {
  color: var(--slate-500);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .card-excerpt { font-size: 1rem; }
}

.card-readmore {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.card-readmore svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

.article-card:hover .card-readmore svg {
  transform: translateX(4px);
}

/* ===== BLOG POST ===== */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--slate-500);
  transition: color 0.3s;
  padding-top: 32px;
}

.post-back:hover {
  color: var(--primary);
}

.post-back svg {
  width: 14px;
  height: 14px;
}

.post-header {
  padding: 32px 0 0;
  max-width: 896px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .post-header { padding: 48px 0 0; }
}

.post-category {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  margin-bottom: 24px;
}

.post-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--slate-900);
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .post-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .post-title { font-size: 3rem; }
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--slate-400);
}

@media (min-width: 640px) {
  .post-meta { gap: 24px; }
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-meta-item svg {
  width: 14px;
  height: 14px;
}

.post-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  margin: 32px auto 40px;
  max-width: 896px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  max-width: 896px;
  margin: 0 auto;
  padding-bottom: 64px;
}

@media (min-width: 640px) {
  .post-content { padding-bottom: 96px; }
}

.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--fg);
  line-height: 1.3;
}

.post-content h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--slate-800);
  line-height: 1.4;
}

.post-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #334155;
}

.post-content ul {
  margin: 20px 0;
  padding-left: 24px;
}

.post-content li {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 8px;
  color: #334155;
  list-style-type: disc;
}

.post-content strong {
  color: var(--fg);
  font-weight: 600;
}

/* ===== CONTACT PAGE ===== */
.contact-card {
  border: 1px solid var(--slate-200);
  background: white;
  padding: 32px;
  max-width: 480px;
}

@media (min-width: 640px) {
  .contact-card { padding: 40px; }
}

.contact-icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--slate-400);
  font-weight: 500;
}

.contact-email {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-900);
  transition: color 0.3s;
}

.contact-email:hover {
  color: var(--primary);
}

.contact-desc {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 896px;
  margin: 0 auto;
  padding-bottom: 64px;
}

@media (min-width: 640px) {
  .legal-content { padding-bottom: 96px; }
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--fg);
}

.legal-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--slate-800);
}

.legal-content p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
  color: #475569;
}

.legal-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-content li {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 6px;
  color: #475569;
  list-style-type: disc;
}

.legal-content a {
  color: var(--primary);
  font-weight: 500;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--slate-950);
  color: var(--slate-300);
  padding: 48px 0;
  border-top: 4px solid var(--primary);
  margin-top: auto;
}

@media (min-width: 640px) {
  .site-footer { padding: 64px 0; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 64px; }
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand-name span {
  color: var(--primary);
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate-400);
  max-width: 280px;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color 0.3s;
}

.footer-email:hover {
  color: white;
}

.footer-email svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding-top: 32px;
  text-align: center;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--slate-500);
  letter-spacing: 0.05em;
}

/* ===== PAGE HEADER (reusable) ===== */
.page-header {
  border-bottom: 1px solid var(--slate-200);
  background: white;
}

.page-header-inner {
  padding: 48px 0;
}

@media (min-width: 640px) {
  .page-header-inner { padding: 64px 0; }
}

.page-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--slate-900);
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .page-title { font-size: 3rem; }
}

.page-subtitle {
  font-size: 1rem;
  color: var(--slate-500);
  line-height: 1.7;
}

@media (min-width: 640px) {
  .page-subtitle { font-size: 1.125rem; }
}

.page-date {
  font-size: 0.875rem;
  color: var(--slate-400);
}

/* Utility */
.main-content {
  flex-grow: 1;
}
