/* Beauty by Edito - Editorial High-End CSS */
:root {
  --bg-primary: #fcfbf9;
  --bg-surface: #ffffff;
  --bg-subtle: #f4f1ea;
  --text-main: #181818;
  --text-muted: #5e5b53;
  --text-light: #8a867c;
  --accent: #94683c;
  --accent-hover: #734e28;
  --line: #e6e2d8;
  --line-strong: #181818;
  --font-serif: "Playfair Display", Didot, "Bodoni MT", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1240px;
  --article-w: 820px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.68;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }

/* Header & Nav */
.top-bar {
  background: var(--text-main);
  color: #f7f6f2;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
  font-weight: 500;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.site-brand { text-align: center; }
.logo-title {
  font-family: var(--font-serif);
  font-size: 42px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}
.logo-tagline {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
  font-weight: 600;
}
.main-nav {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  width: 100%;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  flex-wrap: wrap;
}
.main-nav a { padding: 4px 8px; position: relative; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--accent);
}

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.article-container {
  max-width: var(--article-w);
  margin: 0 auto;
  padding: 40px 20px 100px;
}

/* Hero Section */
.hero-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  padding: 32px;
  margin-bottom: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 750;
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.22;
  margin-bottom: 16px;
  font-weight: 600;
}
.hero-excerpt {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.hero-image-box {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  height: 380px;
}
.hero-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.hero-feature-img:hover {
  transform: scale(1.02);
}

/* Section Titles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--text-main);
  padding-bottom: 12px;
  margin-bottom: 36px;
  margin-top: 20px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.section-sub {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Article Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 36px;
  margin-bottom: 60px;
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.06);
}
.card-media {
  height: 230px;
  overflow: hidden;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-img {
  transform: scale(1.04);
}
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-category {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 750;
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.35;
  margin-bottom: 12px;
  font-weight: 600;
}
.card-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* Article Page Details */
.article-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.article-tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 750;
  display: inline-block;
  margin-bottom: 16px;
}
.article-headline {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.22;
  margin-bottom: 20px;
  font-weight: 600;
}
.article-deck {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 400;
}
.byline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
}
.article-hero-box {
  margin-bottom: 36px;
  border-radius: 2px;
  overflow: hidden;
  height: 440px;
  border: 1px solid var(--line);
}
.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article Typography */
.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: #242424;
}
.article-content p { margin-bottom: 26px; }
.article-content h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.3;
  margin: 44px 0 18px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.article-content h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 30px 0 14px;
  font-weight: 600;
  color: var(--text-main);
}
.article-content ul, .article-content ol { margin: 0 0 26px 28px; }
.article-content li { margin-bottom: 10px; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 36px 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-style: italic;
  color: var(--text-main);
  background: var(--bg-surface);
  line-height: 1.55;
}

/* Callout Box */
.editorial-callout {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 24px;
  margin: 36px 0;
}
.callout-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Author Box */
.author-card {
  margin-top: 60px;
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: center;
}
.author-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
}
.author-info h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 6px;
}
.author-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Disclosure Notice */
.affiliate-notice {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 14px 20px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.5;
  text-align: center;
}

/* Footer */
.site-footer {
  background: #111111;
  color: #a8a49c;
  padding: 60px 20px 30px;
  font-size: 14px;
  border-top: 1px solid #262626;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h5 {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid #262626;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #706c64;
}

@media (max-width: 900px) {
  .hero-feature { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
  .article-headline { font-size: 30px; }
  .hero-image-box { height: 260px; }
  .article-hero-box { height: 260px; }
}

/* Responsive Mobile Navigation & Touch-Scroll Tabs */
@media (max-width: 768px) {
  .top-bar {
    font-size: 10px;
    padding: 6px 10px;
    letter-spacing: 0.1em;
  }
  .header-inner {
    padding: 16px 12px 10px;
    gap: 12px;
  }
  .logo-title {
    font-size: 28px;
    letter-spacing: 0.05em;
  }
  .logo-tagline {
    font-size: 9px;
    letter-spacing: 0.18em;
    margin-top: 3px;
  }
  .main-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 4px 6px;
    scrollbar-width: none;
    border-top: 1px solid var(--line);
    width: 100%;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .main-nav a {
    white-space: nowrap;
    font-size: 11px;
    padding: 6px 14px;
    background: var(--bg-subtle);
    border-radius: 20px;
    border: 1px solid var(--line);
    font-weight: 650;
    color: var(--text-main);
    flex-shrink: 0;
  }
  .main-nav a.active {
    background: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
  }
  .main-nav a.active::after {
    display: none;
  }
  .hero-feature {
    padding: 18px;
    gap: 20px;
  }
  .hero-title {
    font-size: 24px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-headline {
    font-size: 28px;
  }
  .article-hero-box {
    height: 240px;
  }
  .article-content {
    font-size: 16px;
    line-height: 1.75;
  }
}

/* Official Outbound Reference Box */
.official-sources-box {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  padding: 24px;
  margin: 36px 0;
  border-radius: 4px;
}
.official-sources-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 750;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.official-sources-list {
  list-style: none;
  margin: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.official-sources-list li {
  margin: 0 !important;
  font-size: 13px;
}
.official-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.official-link:hover {
  color: var(--accent);
}
.official-tag {
  font-size: 10px;
  text-transform: uppercase;
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
