@import './fonts/fonts.css';

/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --red:       #de0001;
  --red-dark:  #a80001;

  /* Chrome/header stays dark */
  --chrome:    #111111;
  --chrome2:   #1c1c1c;
  --chrome3:   #2a2a2a;

  /* Main content area – light */
  --bg:        #f2f1ef;
  --card:      #ffffff;
  --border:    #e0ddd9;
  --border2:   #ccc9c4;

  /* Text */
  --text:      #1a1a1a;
  --text-sub:  #4a4a4a;
  --muted:     #7a7874;

  --ff-head:   'Barlow Condensed', sans-serif;
  --ff-body:   'Lora', Georgia, serif;
  --radius:    3px;
  --shadow:    0 4px 20px rgba(0,0,0,.10);
  --shadow-hv: 0 8px 32px rgba(0,0,0,.16);
}

/* ─── Reset / Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1240px; padding-inline: 20px; }

/* ─── Top bar ───────────────────────────────────────────────────────────── */
.site-topbar {
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome3);
  padding: 8px 0;
}
.site-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-topbar .topbar-logo a {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-topbar .topbar-logo img {
  height: 56px;
  width: auto;
}
.site-topbar .topbar-slogan {
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #888;
}

/* ─── Main navigation ───────────────────────────────────────────────────── */
.site-nav {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.site-nav .container {
  display: flex;
  align-items: stretch;
  height: 52px;
}
.site-nav ul {
  list-style: none;
  display: flex;
  align-items: stretch;
  flex: 1;
  padding-left: 0;
}
.site-nav ul li a {
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  height: 100%;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.site-nav ul li a:hover,
.site-nav ul li a.active {
  background: rgba(0,0,0,.2);
  color: #fff;
}
.site-nav ul li a.active {
  border-bottom: 3px solid #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 18px;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  height: 52px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav .container { position: relative; }
  .site-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 52px; left: 0; right: 0;
    background: var(--red-dark);
    z-index: 200;
    padding: 8px 0;
  }
  .site-nav ul.open { display: flex; }
  .site-nav ul li a { padding: 12px 24px; height: auto; font-size: 17px; }
}

/* ─── Breadcrumb ────────────────────────────────────────────────────────── */
.breadcrumb-wrap {
  background: #e8e6e3;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.breadcrumb-wrap .container {
  font-family: var(--ff-head);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb-wrap a { color: var(--muted); transition: color .15s; }
.breadcrumb-wrap a:hover { color: var(--red); }
.breadcrumb-wrap .sep { margin: 0 8px; color: var(--border2); }

/* ─── Main wrapper ──────────────────────────────────────────────────────── */
.inner-wrapper {
  padding: 48px 0 72px;
  min-height: 60vh;
}

/* ─── Category intro ────────────────────────────────────────────────────── */
.cat-intro {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.cat-intro h1 {
  font-family: var(--ff-head);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
}
.cat-intro p {
  font-family: var(--ff-head);
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ─── Section label ─────────────────────────────────────────────────────── */
.section-label {
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-label a {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  transition: color .15s;
}
.section-label a:hover { color: var(--red); }

/* ─── Article cards ─────────────────────────────────────────────────────── */
.article-list { margin-bottom: 52px; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) { .articles-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow .25s;
}
.article-card:hover {
  box-shadow: var(--shadow-hv);
}
.article-card .card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #ddd;
  position: relative;
}
.article-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s;
}
.article-card:hover .card-img img { opacity: .88; }
.article-card .card-img .cat-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: #fff;
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}
.article-card .card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card .card-date {
  font-family: var(--ff-head);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: none;
}
.article-card h3,
.article-card h2 {
  font-family: var(--ff-head);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 10px;
  transition: color .18s;
}
.article-card:hover h3,
.article-card:hover h2 { color: var(--red); }
.article-card .card-excerpt {
  font-family: var(--ff-head);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-sub);
  flex: 1;
}

.card-img.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.card-img.no-img svg { opacity: .15; }

/* ─── Home intro ────────────────────────────────────────────────────────── */
.home-intro {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.home-intro h1 {
  font-family: var(--ff-head);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--text);
  line-height: .95;
  margin-bottom: 12px;
}
.home-intro h1 span { color: var(--red); }
.home-intro p {
  font-family: var(--ff-head);
  font-size: 17px;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ─── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.sidebar-block h4 {
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-cats { list-style: none; }
.sidebar-cats li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
  transition: color .15s, padding-left .15s;
}
.sidebar-cats li:last-child a { border-bottom: none; }
.sidebar-cats li a:hover { color: var(--red); padding-left: 6px; }
.sidebar-cats li a::after {
  content: '›';
  color: var(--border2);
  font-size: 18px;
  transition: color .15s;
}
.sidebar-cats li a:hover::after { color: var(--red); }

/* Newsletter block */
.newsletter-block {
  background: var(--red);
  border: none;
}
.newsletter-block h4 {
  color: rgba(255,255,255,.8);
  border-bottom-color: rgba(255,255,255,.2);
}
.newsletter-block p {
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .02em;
  color: rgba(255,255,255,.9);
  margin-bottom: 16px;
  line-height: 1.5;
}
.btn-nl {
  display: inline-block;
  background: #fff;
  color: var(--red);
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background .18s, color .18s;
}
.btn-nl:hover { background: var(--chrome); color: #fff; }

/* ─── Article page ──────────────────────────────────────────────────────── */
.article-header { margin-bottom: 28px; }
.article-header .article-cat-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.article-header h1 {
  font-family: var(--ff-head);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.article-meta {
  font-family: var(--ff-head);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  display: none;
}
.article-meta .sep { color: var(--border2); }

.article-hero-img {
  margin-bottom: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/7;
  box-shadow: var(--shadow-hv);
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.article-content {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.article-content h2 {
  font-family: var(--ff-head);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin: 36px 0 14px;
  letter-spacing: .04em;
}
.article-content h3 {
  font-family: var(--ff-head);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text);
  margin: 28px 0 10px;
}
.article-content p { margin-bottom: 20px; }
.article-content strong { color: var(--text); }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--red-dark); }
.article-content blockquote {
  border-left: 4px solid var(--red);
  padding: 14px 20px;
  margin: 24px 0;
  background: #f9f8f6;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-sub);
}
.article-content img { border-radius: var(--radius); margin: 24px 0; max-width: 100%; }

.related-wrap {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ─── Pagination ────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--ff-head);
  font-size: 14px;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-sub);
  border-radius: var(--radius);
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
}
.page-item.active .page-link,
.page-item .page-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.page-item.disabled .page-link { opacity: .4; pointer-events: none; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--chrome);
  border-top: 3px solid var(--red);
  padding: 40px 0 28px;
}
.site-footer .footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.site-footer .footer-brand .logo-footer {
  height: 42px;
  width: auto;
  margin-bottom: 10px;
}
.site-footer .footer-brand p {
  font-family: var(--ff-head);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #aaa;
}
.site-footer .footer-bottom {
  border-top: 1px solid var(--chrome3);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .footer-copy {
  font-family: var(--ff-head);
  font-size: 12px;
  color: #999;
  letter-spacing: .06em;
}
.site-footer .footer-cats { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer .footer-cats a {
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #aaa;
  transition: color .15s;
}
.site-footer .footer-cats a:hover { color: var(--red); }
.site-footer .footer-nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer .footer-nav a {
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #aaa;
  transition: color .15s;
}
.site-footer .footer-nav a:hover { color: var(--red); }

/* ─── Static pages ──────────────────────────────────────────────────────── */
.page-content {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  max-width: 720px;
}
.page-content h1 {
  font-family: var(--ff-head);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: .02em;
}
.page-content h2 {
  font-family: var(--ff-head);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin: 32px 0 12px;
}
.page-content p { margin-bottom: 18px; }
.page-content a { color: var(--red); }

/* ─── Layout helpers ─────────────────────────────────────────────────────── */
.row { display: flex; flex-wrap: wrap; gap: 32px; }
.col-main { flex: 1 1 0; min-width: 0; }
.col-side { width: 300px; flex-shrink: 0; }
@media (max-width: 960px) { .col-side { width: 100%; } }
@media (max-width: 960px) { .row { flex-direction: column; } }

/* ─── Cookie icon ───────────────────────────────────────────────────────── */
.cookieicon { background-color: var(--red) !important; }

/* ─── Misc ──────────────────────────────────────────────────────────────── */
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
