/* =============================================
   VARIABLES
   ============================================= */
:root {
  --brand-main: #0b3c49;
  --brand-deep: #2b2f61;
  --brand-soft: #4a4f9e;

  --surface-base: #ffffff;
  --surface-light: #f7f8fd;
  --surface-muted: #f2f3fa;

  --highlight-accent: #e6b94c;

  --content-primary: #1e1f2b;
  --content-secondary: #6b6e8a;
  --content-inverse: #ffffff;

  --line-subtle: #d8daeb;

  --font-display: 'Lora', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--surface-base);
  color: var(--content-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.site-header {
  background-color: var(--surface-base);
  border-bottom: 1px solid var(--line-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  height: 62px;
  padding: 0 1rem;
}

/* Brand */
.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand-main);
  letter-spacing: -0.02em;
}

/* Nav links */
.nav-links li a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--content-secondary);
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: var(--brand-main);
}

/* Subscribe button */
.btn-subscribe {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--content-inverse);
  background-color: var(--brand-main);
  padding: 0.45rem 1.1rem;
  border-radius: 3px;
  letter-spacing: 0.01em;
  transition: background-color 0.2s;
}

.btn-subscribe:hover {
  background-color: var(--brand-deep);
  color: var(--content-inverse);
}

/* =============================================
   MAIN LAYOUT
   ============================================= */
.site-main {
  flex: 1;
  padding: 2.5rem 0 3rem;
  background-color: var(--surface-base);
}

.layout-row {
  min-height: 600px;
}

/* =============================================
   LEFT — FEATURED ARTICLE
   ============================================= */
.featured-col {
  padding-right: 2.5rem;
}

.featured-article {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Image */
.featured-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 10;
  background-color: var(--surface-muted);
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-article:hover .featured-image {
  transform: scale(1.02);
}

/* Tag badge */
.featured-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--highlight-accent);
  color: var(--content-primary);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
}

/* Body */
.featured-body {
  padding-top: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Meta row — shared */
.meta-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.category {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.dot {
  color: var(--line-subtle);
  font-size: 0.75rem;
}

.read-time {
  font-size: 0.75rem;
  color: var(--content-secondary);
}

/* Title */
.featured-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.22;
  color: var(--content-primary);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

/* Excerpt */
.featured-excerpt {
  font-size: 0.95rem;
  color: var(--content-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Author row */
.author-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-subtle);
  margin-top: auto;
}

.author-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.author-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--content-primary);
}

.author-date {
  font-size: 0.75rem;
  color: var(--content-secondary);
}

.read-more-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand-main);
  transition: letter-spacing 0.2s;
}

.read-more-link:hover {
  letter-spacing: 0.03em;
  color: var(--brand-deep);
}

/* =============================================
   DIVIDER
   ============================================= */
.divider-col {
  justify-content: center;
  padding: 0;
}

.vertical-divider {
  width: 1px;
  background-color: var(--line-subtle);
  height: 100%;
  margin: 0 auto;
}

/* =============================================
   RIGHT — SIDEBAR / ARTICLE LIST
   ============================================= */
.sidebar-col {
  padding-left: 2rem;
}

/* Sidebar header */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.sidebar-header span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--content-secondary);
}

/* Side article */
.side-article {
  padding: 0.15rem 0;
}

.side-article-inner {
  align-items: flex-start;
}

/* Thumbnail */
.side-thumb-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 3px;
  overflow: hidden;
  background-color: var(--surface-muted);
}

.side-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.side-article:hover .side-thumb {
  transform: scale(1.06);
}

/* Side body */
.side-body {
  flex: 1;
  min-width: 0;
}

.side-title {
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--content-primary);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.side-article:hover .side-title {
  color: var(--brand-main);
}

.side-excerpt {
  font-size: 0.8rem;
  color: var(--content-secondary);
  line-height: 1.55;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-date {
  font-size: 0.73rem;
  color: var(--content-secondary);
}

/* Rule between articles */
.side-rule {
  border: none;
  border-top: 1px solid var(--line-subtle);
  margin: 1.1rem 0;
}

/* View all */
.view-all-wrap {
  padding-top: 0.2rem;
}

.view-all-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand-soft);
  transition: color 0.2s, letter-spacing 0.2s;
}

.view-all-link:hover {
  color: var(--brand-main);
  letter-spacing: 0.02em;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  border-top: 1px solid var(--line-subtle);
  background-color: var(--surface-light);
  padding: 1.3rem 0;
}

.footer-inner {
  padding: 0 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-main);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--content-secondary);
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--content-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--brand-main);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
  .featured-col {
    padding-right: 0;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--line-subtle);
  }

  .sidebar-col {
    padding-left: 0;
  }
}

@media (max-width: 575.98px) {
  .featured-title {
    font-size: 1.55rem;
  }

  .site-main {
    padding: 1.5rem 0 2rem;
  }
}
