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

:root {
  --bg: #F7F5F0;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --accent: #C8501A;
  --accent-light: #F2E8E0;
  --border: #E0DDD7;
  --nav-bg: #1A1A1A;
  --nav-text: #F7F5F0;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  background: var(--nav-bg);
  color: var(--nav-text);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--nav-text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--accent); }

.nav-search {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--nav-text);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.85rem;
  width: 200px;
  outline: none;
  transition: border-color 0.2s;
}

.nav-search::placeholder { color: rgba(255,255,255,0.4); }
.nav-search:focus { border-color: var(--accent); }

/* ── HERO ── */
.hero {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(200,80,26,0.04) 40px,
    rgba(200,80,26,0.04) 41px
  );
}

.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero h1 em { color: var(--accent); font-style: italic; }

.hero p {
  font-size: 1.1rem;
  opacity: 0.7;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.hero-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tag {
  border: 1px solid rgba(200,80,26,0.5);
  color: var(--accent);
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 1px;
}

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }

.page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
}

/* ── SECTION TITLE ── */
.section-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── ARTICLE CARDS ── */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  transition: box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  box-shadow: 6px 6px 0 var(--accent);
  transform: translate(-2px, -2px);
}

.article-card-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
  display: block;
  background: var(--accent-light);
}

.article-card-img-placeholder {
  height: 180px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.article-card-body h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.article-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

/* ── FEATURED CARD ── */
.article-card.featured {
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

.article-card.featured .article-card-img-placeholder {
  height: 280px;
}

.article-card.featured .article-card-body h2 {
  font-size: 1.7rem;
}

/* ── SIDEBAR ── */
.sidebar section { margin-bottom: 2.5rem; }

.sidebar-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 1px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}

.tag:hover { background: var(--accent); color: white; }

.recent-list { list-style: none; }

.recent-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.recent-list a { text-decoration: none; color: var(--text); transition: color 0.2s; }
.recent-list a:hover { color: var(--accent); }
.recent-list span { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── ARTICLE PAGE ── */
.article-header {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 4rem 2rem;
  text-align: center;
}

.article-header .article-category { margin-bottom: 1rem; font-size: 0.85rem; }

.article-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.article-header .article-meta {
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.6;
}

.article-content {
  max-width: 740px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.article-content h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
}

.article-content h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.article-content p { margin-bottom: 1.25rem; }

.article-content ul, .article-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.article-content li { margin-bottom: 0.5rem; }

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-light);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.article-content .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
  font-family: var(--serif);
}

/* ── ABOUT PAGE ── */
.about-hero {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.about-avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  border: 4px solid var(--accent);
  margin: 0 auto;
}

.about-hero h1 {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.about-hero h1 em { color: var(--accent); }

.about-hero p { opacity: 0.8; margin-bottom: 1.5rem; }

.about-content { padding: 3rem 2rem; max-width: 900px; margin: 0 auto; }

.about-content h2 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-content p { margin-bottom: 1.25rem; color: var(--text-muted); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
}

.skill-item .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.skill-item h3 { font-size: 0.9rem; font-weight: 600; }

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h2 { font-family: var(--serif); font-size: 2.2rem; margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item strong { display: block; font-size: 0.85rem; }
.contact-item span { color: var(--text-muted); font-size: 0.9rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  border-radius: 1px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 140px; }

.btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover { background: #a83d12; transform: translateY(-1px); }

/* ── SEARCH PAGE ── */
.search-hero {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 4rem 2rem;
  text-align: center;
}

.search-hero h1 { font-family: var(--serif); font-size: 2.5rem; margin-bottom: 1.5rem; }

.search-box {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.search-box input {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: none;
  outline: none;
  font-family: var(--sans);
}

.search-box button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0 1.5rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.search-results { max-width: 900px; margin: 3rem auto; padding: 0 2rem; }
.search-results-count { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }

/* ── FOOTER ── */
footer {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .nav-logo { display: block; margin-bottom: 1rem; }
.footer-brand p { opacity: 0.5; font-size: 0.9rem; line-height: 1.6; }

footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--accent);
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 0.5rem; }
footer ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
footer ul a:hover { color: white; }

.footer-bottom {
  max-width: 1140px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.4;
}

/* ── SEARCH HIGHLIGHT ── */
.highlight { background: rgba(200,80,26,0.15); padding: 0 2px; border-radius: 1px; }
.no-results { color: var(--text-muted); text-align: center; padding: 3rem; font-style: italic; }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 3rem 0;
}

.page-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.page-btn:hover, .page-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .article-card-img-placeholder { height: 200px; }
  .about-hero { grid-template-columns: 1fr; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .nav-search { display: none; }
}

@media (max-width: 600px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.8rem; }
  .skills-grid { grid-template-columns: 1fr; }
}
