@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --bg: #faf8f5;
  --bg-elevated: #ffffff;
  --ink: #1a1612;
  --ink-soft: #5c534a;
  --ink-muted: #8a8178;
  --accent: #b45309;
  --accent-dark: #92400e;
  --accent-soft: #fef3c7;
  --line: #e8e2da;
  --shadow: 0 18px 50px rgba(26, 22, 18, 0.08);
  --shadow-sm: 0 4px 20px rgba(26, 22, 18, 0.06);
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(180, 83, 9, 0.07), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(146, 64, 14, 0.05), transparent);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--accent-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.logo-block:hover { text-decoration: none; }

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.3;
}

.logo-block:hover .logo { color: var(--accent-dark); }

.logo:hover { color: var(--accent-dark); text-decoration: none; }

.main-nav { display: flex; gap: 28px; }

.main-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.main-nav a:hover { color: var(--ink); text-decoration: none; }

.header-search {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.header-search input {
  width: 220px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color .2s, box-shadow .2s;
}

.header-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12);
}

.header-search button {
  padding: 11px 20px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.header-search button:hover { background: var(--accent-dark); }

/* Breadcrumbs */
.breadcrumbs {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

.breadcrumbs ol { display: flex; gap: 8px; list-style: none; flex-wrap: wrap; }
.breadcrumbs li::after { content: '›'; margin-left: 8px; opacity: .5; }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span { color: var(--ink-muted); }

/* Layout */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  padding: 48px 0 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; padding: 32px 0 48px; }
  .header-search { margin-left: 0; width: 100%; }
  .header-search input { flex: 1; width: auto; }
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Category pills */
.category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.pill {
  padding: 8px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .2s;
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Article grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-image { display: block; overflow: hidden; aspect-ratio: 16/10; background: #e8e2da; }

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card:hover .card-image img { transform: scale(1.04); }

.card-body { padding: 24px; }

.card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.card h2 a { color: var(--ink); }
.card h2 a:hover { color: var(--accent-dark); text-decoration: none; }

.card-excerpt {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* Single article */
.single-article {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
}

.featured-image { margin: 0; aspect-ratio: 16/9; overflow: hidden; background: #e8e2da; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }

.article-header { padding: 40px 40px 0; }

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.category-link {
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 4px 12px;
  border-radius: 999px;
}

.toc, .article-content, .article-tags, .related-articles {
  padding-left: 40px;
  padding-right: 40px;
}

.toc {
  margin: 32px 40px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.toc h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.toc ol { margin-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 0.92rem; }

.article-content {
  padding-top: 32px;
  padding-bottom: 40px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.article-content p { margin-bottom: 1.25em; }
.article-content ul, .article-content ol { margin: 12px 0 20px 28px; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--accent-dark); border-bottom: 1px solid rgba(180,83,9,.3); }
.article-content a:hover { border-bottom-color: var(--accent); }
.article-content strong { color: var(--ink); font-weight: 600; }

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin: 0 40px;
}

.tag {
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.tag:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }

.related-articles {
  padding-bottom: 40px;
  margin: 0 40px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.related-articles h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.related-articles ul { list-style: none; }
.related-articles li { margin-bottom: 10px; padding-left: 16px; border-left: 2px solid var(--accent-soft); }

/* Sidebar */
.sidebar-widget {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 10px; }
.sidebar-list a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.sidebar-list a:hover { color: var(--accent-dark); text-decoration: none; }
.sidebar-list .count { color: var(--ink-muted); font-size: 0.82rem; }

/* Pages */
.page-header { margin-bottom: 36px; text-align: center; padding-top: 24px; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
}

.static-page {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.static-page h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.static-page h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 32px 0 12px;
}

.static-page p { margin-bottom: 16px; color: var(--ink-soft); }

.search-form { display: flex; gap: 10px; margin-top: 16px; max-width: 560px; margin-left: auto; margin-right: auto; }
.search-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  background: var(--bg-elevated);
}

.search-form button {
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.article-list { list-style: none; }
.article-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.article-list li:last-child { border-bottom: none; }
.article-list h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 6px; }
.article-list p { font-size: 0.92rem; color: var(--ink-soft); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg-elevated);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.pagination { display: flex; gap: 8px; margin-top: 40px; justify-content: center; }
.pagination a {
  padding: 10px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.pagination a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 40px;
  margin-top: 0;
}

.footer-inner { text-align: center; }

.footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-copy { font-size: 0.85rem; opacity: .6; }

.empty-state {
  text-align: center;
  padding: 80px 24px;
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.empty-state p { max-width: 420px; margin: 0 auto; }

/* Footer v2 */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p { font-size: 0.92rem; line-height: 1.6; margin-bottom: 8px; }
.footer-desc { font-size: 0.85rem !important; opacity: 0.75; }

.footer-col h3 {
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Hero compact */
.hero-compact { padding: 40px 0 28px; }
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.pill span {
  opacity: 0.6;
  font-size: 0.8em;
  margin-left: 4px;
}

.pill-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Featured */
.featured-section { margin-bottom: 48px; }

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.featured-image { aspect-ratio: 16/10; overflow: hidden; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }

.featured-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.featured-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--ink);
}

.featured-body p { color: var(--ink-soft); margin-bottom: 16px; }
.featured-cta { font-weight: 700; color: var(--accent-dark); font-size: 0.92rem; }

/* Sections */
.section-block { margin-bottom: 56px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.section-link { font-size: 0.88rem; font-weight: 700; color: var(--accent-dark); }

.article-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
  display: inline-block;
}

.content-grid-full { grid-template-columns: 1fr; }
.content-grid-full .main-content { max-width: 900px; margin: 0 auto; width: 100%; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.header-nav-wrap { display: flex; align-items: center; gap: 32px; margin-left: auto; }

/* Static pages */
.static-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px; }
.page-lead { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.65; max-width: 640px; }

.static-content h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 28px 0 12px; }
.static-content h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.static-content p, .static-content li { color: var(--ink-soft); margin-bottom: 12px; line-height: 1.75; }
.static-content ul { margin: 0 0 16px 20px; }

.contact-layout { display: grid; gap: 32px; }
.contact-list { list-style: none; margin: 16px 0; padding: 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

.search-form-lg { display: flex; gap: 10px; max-width: 560px; margin: 20px auto 0; }
.search-form-lg input { flex: 1; padding: 14px 18px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.search-form-lg button { padding: 14px 24px; border: none; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.search-results-count { text-align: center; color: var(--ink-muted); margin-bottom: 28px; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--ink);
  color: rgba(255,255,255,0.9);
  padding: 18px 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p { font-size: 0.88rem; line-height: 1.55; max-width: 720px; margin: 0; }
.cookie-inner a { color: #fde68a; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie {
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
}

.btn-cookie-primary { background: var(--accent); color: #fff; }
.btn-cookie-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }

body.cookie-visible { padding-bottom: 90px; }

@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-image { max-height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .header-nav-wrap {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px 24px;
    gap: 20px;
    box-shadow: var(--shadow-sm);
  }
  .header-nav-wrap.is-open { display: flex; }
  .main-nav { flex-direction: column; gap: 12px; }
  .header-search { width: 100%; }
  .header-search input { width: 100%; flex: 1; }
  .header-inner { position: relative; flex-wrap: nowrap; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; text-align: center; }
}
