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

/* ============================================================
   style-updates.de — Editorial Fashion Magazine Theme
   Playfair Display (serif) + Jost (geometric sans)
   Brand: #b66b46 terracotta on warm cream #faf8f5
============================================================ */

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  --cu-brand:        #b66b46;
  --cu-brand-dark:   #8a4a28;
  --cu-brand-light:  #d4956b;
  --cu-brand-pale:   #f5ede7;

  --cu-black:        #0a0807;
  --cu-text:         #1c1210;
  --cu-text-2:       #5c4840;
  --cu-text-3:       #8a6c62;
  --cu-bg:           #faf8f5;
  --cu-bg-warm:      #f2ede7;
  --cu-card-bg:      #ffffff;
  --cu-border:       #e8ddd7;
  --cu-border-light: #f0e9e4;

  --cu-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --cu-sans:    'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --cu-nav-h:    80px;
  --cu-radius:   4px;
  --cu-radius-m: 8px;
  --cu-radius-l: 12px;

  --cu-ease:   0.22s ease;
  --cu-ease-m: 0.35s ease;

  --cu-shadow-s: 0 2px 8px rgba(10,8,7,.06);
  --cu-shadow-m: 0 4px 20px rgba(10,8,7,.09);
}

/* ─────────────────────────────────────────
   GLOBAL RESETS & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--cu-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--cu-text);
  background: var(--cu-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--cu-brand);
  text-decoration: none;
  transition: color var(--cu-ease);
}
a:hover { color: var(--cu-brand-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cu-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cu-text);
  margin-bottom: .75rem;
}

p { margin-bottom: 1rem; }

.container { max-width: 1200px; }

/* ─────────────────────────────────────────
   SITE WRAPPER (body-top/bottom-extra)
───────────────────────────────────────── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main { flex: 1 0 auto; }

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.mainMenuWrapper {
  background: var(--cu-card-bg);
  border-bottom: 2px solid var(--cu-brand);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 10px rgba(10,8,7,.07);
}

.mainMenuWrapper .navbar {
  min-height: var(--cu-nav-h);
  padding: 0;
}

/* Logo — explicit aspect-ratio prevents CLS */
.mainMenuWrapper .logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 1.5rem;
}
.mainMenuWrapper .logo {
  height: 48px;
  width: auto;
  display: block;
  aspect-ratio: 184 / 120;
}

/* Nav items */
.mainMenuWrapper .navbar-nav {
  align-items: center;
  gap: 0;
}
.mainMenuWrapper .nav-item { position: relative; }

.mainMenuWrapper .nav-link {
  font-family: var(--cu-sans);
  font-size: .775rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cu-text) !important;
  padding: .5rem .875rem !important;
  transition: color var(--cu-ease);
  position: relative;
}
.mainMenuWrapper .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--cu-brand);
  transition: left var(--cu-ease), right var(--cu-ease);
}
.mainMenuWrapper .nav-link:hover,
.mainMenuWrapper .nav-link.active {
  color: var(--cu-brand) !important;
}
.mainMenuWrapper .nav-link:hover::after,
.mainMenuWrapper .nav-link.active::after {
  left: .875rem;
  right: .875rem;
}

/* Mobile toggler */
.mainMenuWrapper .navbar-toggler {
  border: none;
  padding: .375rem .5rem;
  transition: opacity var(--cu-ease);
}
.mainMenuWrapper .navbar-toggler:focus { box-shadow: none; outline: none; }
.mainMenuWrapper .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231c1210' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5rem;
  height: 1.5rem;
}

/* Dropdown */
.mainMenuWrapper .dropdown-menu {
  border: 1px solid var(--cu-border);
  border-radius: var(--cu-radius-m);
  box-shadow: var(--cu-shadow-m);
  padding: .375rem 0;
  min-width: 200px;
}
.mainMenuWrapper .dropdown-item {
  font-size: .85rem;
  color: var(--cu-text);
  padding: .45rem 1.125rem;
  transition: background var(--cu-ease), color var(--cu-ease);
}
.mainMenuWrapper .dropdown-item:hover,
.mainMenuWrapper .dropdown-item:focus,
.mainMenuWrapper .dropdown-item.active {
  background: var(--cu-brand-pale);
  color: var(--cu-brand-dark);
}

/* Mobile nav */
@media (max-width: 991.98px) {
  .mainMenuWrapper .navbar-collapse {
    border-top: 1px solid var(--cu-border-light);
    padding: .75rem 0;
  }
  .mainMenuWrapper .nav-link {
    padding: .5rem 0 !important;
    font-size: .875rem;
  }
  .mainMenuWrapper .nav-link::after { display: none; }
  .mainMenuWrapper .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0 0 .5rem 1rem;
  }
}

/* ─────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────── */
.breadcrumb-area {
  padding: .5rem 0;
  background: var(--cu-bg);
  border-bottom: 1px solid var(--cu-border-light);
}
.breadcrumb {
  font-family: var(--cu-sans);
  font-size: .775rem;
  color: var(--cu-text-3);
  margin-bottom: 0;
  --bs-breadcrumb-divider-color: var(--cu-text-3);
}
.breadcrumb-item a {
  color: var(--cu-text-3);
  text-decoration: none;
  transition: color var(--cu-ease);
}
.breadcrumb-item a:hover { color: var(--cu-brand); }
.breadcrumb-item.active { color: var(--cu-text-2); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--cu-text-3); }

/* ─────────────────────────────────────────
   PAGE WRAPPER
───────────────────────────────────────── */
.inner-wrapper { padding: 2.5rem 0 3rem; }

/* ─────────────────────────────────────────
   HOMEPAGE
───────────────────────────────────────── */
.home-intro {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--cu-border);
}
.home-intro::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--cu-brand);
  margin-bottom: 1.25rem;
}
.home-intro h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--cu-black);
  margin-bottom: .875rem;
  letter-spacing: -.01em;
}
.home-intro .intro-body {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--cu-text-2);
  max-width: 580px;
  line-height: 1.75;
}
.home-intro .intro-body p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────
   CATEGORY SECTION HEADERS
───────────────────────────────────────── */
.category-section { margin-bottom: 3.5rem; }

.category-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: .875rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--cu-border);
  position: relative;
}
.category-section-head::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--cu-brand);
}
.category-section-head h2 {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--cu-black);
  margin-bottom: 0;
  letter-spacing: -.01em;
}
.category-section-head .all-link {
  font-family: var(--cu-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cu-text-3);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--cu-ease);
}
.category-section-head .all-link:hover { color: var(--cu-brand); }

/* ─────────────────────────────────────────
   ARTICLE CARDS
───────────────────────────────────────── */
.article-item {
  background: var(--cu-card-bg);
  border-radius: var(--cu-radius-m);
  overflow: hidden;
  border: 1px solid var(--cu-border-light);
  transition: box-shadow var(--cu-ease-m), transform var(--cu-ease-m);
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-item:hover {
  box-shadow: var(--cu-shadow-m);
  transform: translateY(-4px);
}
.article-item > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

/* Fixed-ratio image container → prevents CLS */
.article-item .image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cu-bg-warm);
  flex-shrink: 0;
}
.article-item .image.image--empty { background: var(--cu-bg-warm); }
.article-item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--cu-ease-m);
  will-change: transform;
}
.article-item:hover .image img { transform: scale(1.04); }

/* Card body */
.article-card-body {
  padding: 1rem 1.125rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card-body .date {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cu-brand);
  margin-bottom: .5rem;
}
.article-card-body h2,
.article-card-body h3 {
  font-family: var(--cu-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cu-text);
  margin-bottom: .5rem;
  transition: color var(--cu-ease);
}
.article-item:hover .article-card-body h2,
.article-item:hover .article-card-body h3 {
  color: var(--cu-brand);
}
.article-card-body .excerpt {
  font-size: .875rem;
  font-weight: 300;
  color: var(--cu-text-2);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-col { display: flex; }

/* ─────────────────────────────────────────
   ARTICLE DETAIL
───────────────────────────────────────── */
.article-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cu-black);
  margin-bottom: 1rem;
}
.article-page .date {
  display: block;
  font-family: var(--cu-sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cu-brand);
  margin-bottom: 1.75rem;
}
.article-page .date .modified-date {
  color: var(--cu-text-3);
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
}
.article-page .image {
  border-radius: var(--cu-radius-m);
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--cu-bg-warm);
}
.article-page .image img {
  width: 100%;
  height: auto;
  display: block;
}
.article-page .content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--cu-text);
}
.article-page .content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: .875rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--cu-border-light);
}
.article-page .content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
}
.article-page .content p { margin-bottom: 1.25rem; }
.article-page .content a {
  color: var(--cu-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(182,107,70,.4);
  transition: text-decoration-color var(--cu-ease), color var(--cu-ease);
}
.article-page .content a:hover {
  color: var(--cu-brand-dark);
  text-decoration-color: var(--cu-brand-dark);
}
.article-page .content ul,
.article-page .content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-page .content li { margin-bottom: .375rem; }
.article-page .content img {
  border-radius: var(--cu-radius);
  margin: 1.5rem 0;
}
.article-page .content blockquote {
  border-left: 3px solid var(--cu-brand);
  padding: .75rem 0 .75rem 1.5rem;
  margin: 1.75rem 0;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--cu-text-2);
}

/* Related articles */
.related-articles {
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--cu-border);
}
.related-articles .category-section { margin-bottom: 0; }
.related-articles-title {
  font-family: var(--cu-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cu-black);
  margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────
   CATEGORY PAGE
───────────────────────────────────────── */
.category-intro {
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--cu-border);
}
.category-intro h1 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  margin-bottom: .625rem;
}
.category-intro p {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--cu-text-2);
  max-width: 600px;
  margin-bottom: 0;
}

/* ─────────────────────────────────────────
   STATIC PAGE CONTENT
───────────────────────────────────────── */
.page-body { max-width: 700px; }
.page-body h1 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--cu-border-light);
  margin-bottom: 1.75rem;
  position: relative;
}
.page-body h1::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--cu-brand);
}
.page-body h2 { font-size: 1.375rem; margin-top: 2rem; }
.page-body h3 { font-size: 1.125rem; }
.page-body p,
.page-body li {
  font-size: 1rem;
  line-height: 1.8;
}
.page-body a {
  color: var(--cu-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─────────────────────────────────────────
   NEWSLETTER CONFIRMATION
───────────────────────────────────────── */
.confirm-wrap {
  padding: 2.5rem 0 3rem;
  max-width: 560px;
}
.confirm-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cu-brand-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  flex-shrink: 0;
}
.confirm-icon::after {
  content: '✓';
  font-size: 2.25rem;
  color: var(--cu-brand);
  line-height: 1;
  font-weight: 600;
  font-family: var(--cu-sans);
}
.confirm-wrap h1 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}
.confirm-wrap p {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--cu-text-2);
  line-height: 1.75;
}

/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */
.sidebar-inner {
  position: sticky;
  top: calc(var(--cu-nav-h) + 1.25rem);
}

/* Newsletter box */
.sidebar-nl {
  background: var(--cu-brand);
  color: white;
  padding: 1.5rem;
  border-radius: var(--cu-radius-m);
  margin-bottom: 1.375rem;
  overflow: hidden;
  position: relative;
}
.sidebar-nl::before {
  content: '';
  position: absolute;
  top: -28px;
  right: -28px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.sidebar-nl::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -10px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.sidebar-nl h3 {
  font-family: var(--cu-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: white;
  margin-bottom: .5rem;
  position: relative;
}
.sidebar-nl p {
  font-size: .875rem;
  font-weight: 300;
  color: rgba(255,255,255,.85);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  position: relative;
}
.sidebar-nl .nl-btn {
  display: inline-block;
  background: white;
  color: var(--cu-brand-dark);
  font-family: var(--cu-sans);
  font-size: .775rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .575rem 1.25rem;
  border-radius: var(--cu-radius);
  text-decoration: none;
  transition: background var(--cu-ease), color var(--cu-ease), border-color var(--cu-ease);
  border: 2px solid transparent;
  position: relative;
}
.sidebar-nl .nl-btn:hover {
  background: transparent;
  color: white;
  border-color: white;
}

/* Categories */
.sidebar-cats {
  background: var(--cu-card-bg);
  border: 1px solid var(--cu-border);
  border-radius: var(--cu-radius-m);
  overflow: hidden;
}
.sidebar-cats-title {
  font-family: var(--cu-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cu-text-3);
  padding: .875rem 1.125rem;
  border-bottom: 1px solid var(--cu-border);
  margin: 0;
}
.sidebar-cats ul {
  list-style: none;
  padding: .25rem 0;
  margin: 0;
}
.sidebar-cats li { border-bottom: 1px solid var(--cu-border-light); }
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats li a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.125rem;
  font-size: .9375rem;
  font-weight: 400;
  color: var(--cu-text);
  text-decoration: none;
  transition: color var(--cu-ease), padding-left var(--cu-ease);
}
.sidebar-cats li a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cu-border);
  flex-shrink: 0;
  transition: background var(--cu-ease);
}
.sidebar-cats li a:hover {
  color: var(--cu-brand);
  padding-left: 1.375rem;
}
.sidebar-cats li a:hover::before { background: var(--cu-brand); }

@media (max-width: 991.98px) {
  .sidebar-inner {
    position: static;
    margin-top: 2rem;
  }
}

/* ─────────────────────────────────────────
   PAGINATION
───────────────────────────────────────── */
.pagination {
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 2.5rem !important;
}
.page-link {
  font-family: var(--cu-sans);
  font-size: .875rem;
  color: var(--cu-text-2);
  background: var(--cu-card-bg);
  border: 1px solid var(--cu-border);
  padding: .5rem .875rem;
  border-radius: var(--cu-radius) !important;
  transition: all var(--cu-ease);
  line-height: 1.5;
}
.page-link:hover {
  color: var(--cu-brand);
  border-color: var(--cu-brand);
  background: var(--cu-brand-pale);
  box-shadow: none;
}
.page-item.active .page-link {
  background: var(--cu-brand);
  border-color: var(--cu-brand);
  color: white;
  font-weight: 500;
  box-shadow: none;
}
.page-item.disabled .page-link {
  color: var(--cu-text-3);
  background: transparent;
  border-color: var(--cu-border-light);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--cu-black);
  padding: 1.375rem 0;
  flex-shrink: 0;
}
.site-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.site-footer .footer-copyright p {
  font-size: .8125rem;
  font-weight: 300;
  color: rgba(255,255,255,.4);
  margin: 0;
}
.site-footer .footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer .footer-nav a {
  font-size: .8125rem;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color var(--cu-ease);
}
.site-footer .footer-nav a:hover { color: var(--cu-brand-light); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 991.98px) {
  .inner-wrapper { padding: 1.75rem 0 2rem; }
  .category-section { margin-bottom: 2.5rem; }
}

@media (max-width: 767.98px) {
  .home-intro h1 { font-size: 1.625rem; }
  .article-page h1 { font-size: 1.625rem; }
  .site-footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
}
