/* ModernMagazine Pro - Editorial Grid Layout */
:root {
  --mm-bg: #f3f1eb;
  --mm-paper: #fffdf8;
  --mm-ink: #1f2520;
  --mm-muted: #6d746d;
  --mm-line: #d9d3c8;
  --mm-accent: #a44f2f;
  --mm-accent-dark: #7f3a20;
  --mm-soft: #ece6da;
}

body {
  background: var(--mm-bg);
  color: var(--mm-ink);
}

.mm-main {
  min-height: 60vh;
  padding-bottom: 40px;
}

.mm-topline {
  background: #1f2520;
  color: #f5efe4;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mm-topline .container {
  min-height: 44px;
}

.mm-topline-note {
  opacity: .88;
}

.mm-header {
  background: linear-gradient(180deg, #f9f5ec 0%, #f4efe4 100%);
  border-bottom: 1px solid var(--mm-line);
  position: relative;
}

.mm-header:before,
.mm-header:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(164, 79, 47, .12);
}

.mm-header:before {
  top: 7px;
}

.mm-header:after {
  bottom: 7px;
}

.mm-brand-row {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 20px;
  align-items: center;
  padding: 26px 0 20px;
}

.mm-brand-kicker,
.mm-brand-side {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mm-muted);
}

.mm-brand-side {
  text-align: right;
}

.mm-logo-text {
  text-align: center;
}

.mm-logo-text a {
  color: var(--mm-ink);
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
}

.mm-logo-text p {
  margin: 10px 0 0;
  color: var(--mm-muted);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mm-nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 0 20px;
}

.mm-nav-row a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--mm-line);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: var(--mm-ink);
  font-size: 13px;
  transition: all .2s ease;
}

.mm-nav-row a:hover,
.mm-topline a:hover,
.mm-logo-text a:hover {
  color: var(--mm-accent);
}

.mm-nav-row a:hover {
  border-color: var(--mm-accent);
  background: #fff;
}

.mm-home {
  padding-top: 28px;
}

.mm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .9fr);
  gap: 24px;
  margin-bottom: 26px;
}

.mm-lead-panel,
.mm-hero-side,
.mm-brief-strip,
.mm-column-card,
.mm-stream-wrap,
.mm-detail-wrap,
.mm-list-wrap,
.mm-side-card,
.mm-tags,
.mm-footer {
  background: var(--mm-paper);
  border: 1px solid var(--mm-line);
}

.mm-lead-panel {
  padding: 18px;
}

.mm-lead-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 18px;
}

.mm-lead-image img,
.mm-side-pick-thumb img,
.mm-stream-thumb img,
.mm-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.mm-lead-image:hover img,
.mm-side-pick-thumb:hover img,
.mm-stream-thumb:hover img,
.mm-card-cover:hover img {
  transform: scale(1.04);
}

.mm-kicker {
  display: inline-block;
  padding: 5px 10px;
  background: var(--mm-soft);
  color: var(--mm-accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.mm-lead-title {
  font-size: 38px;
  line-height: 1.08;
  margin: 0 0 12px;
}

.mm-lead-title a,
.mm-side-pick-title a,
.mm-stream-title a,
.mm-card-title a,
.mm-side-list-item a,
.mm-article-list-link,
.mm-page-nav-item a {
  color: var(--mm-ink);
}

.mm-lead-title a:hover,
.mm-side-pick-title a:hover,
.mm-stream-title a:hover,
.mm-card-title a:hover,
.mm-side-list-item a:hover,
.mm-article-list-link:hover,
.mm-page-nav-item a:hover {
  color: var(--mm-accent);
}

.mm-lead-meta,
.mm-stream-meta,
.mm-card-meta,
.mm-side-meta,
.mm-detail-meta,
.mm-search-item p,
.mm-tag-detail-header p {
  color: var(--mm-muted);
  font-size: 13px;
}

.mm-lead-desc {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: #40463f;
}

.mm-hero-side {
  padding: 18px;
}

.mm-block-title {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mm-side-pick {
  padding: 0 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--mm-line);
}

.mm-side-pick:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.mm-side-pick-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 12px;
}

.mm-side-pick-title {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.mm-brief-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 26px;
}

.mm-brief-item {
  padding: 18px;
  border-right: 1px solid var(--mm-line);
}

.mm-brief-item:last-child {
  border-right: 0;
}

.mm-brief-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--mm-accent-dark);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mm-brief-item a {
  color: var(--mm-ink);
  font-weight: 700;
  line-height: 1.55;
}

.mm-stage {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: 24px;
}

.mm-column-card,
.mm-stream-wrap,
.mm-side-card,
.mm-tags,
.mm-detail-wrap,
.mm-list-wrap {
  padding: 20px;
}

.mm-column-card + .mm-column-card,
.mm-side-card + .mm-side-card,
 .mm-tags + .mm-tags {
  margin-top: 20px;
}

.mm-column-title,
.mm-side-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mm-line);
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mm-side-list-item {
  padding: 0 0 14px;
  margin: 0 0 14px;
  border-bottom: 1px dashed var(--mm-line);
}

.mm-side-list-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.mm-topic-link {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 8px 12px;
  background: var(--mm-soft);
  color: var(--mm-ink);
  border-radius: 8px;
  font-size: 13px;
}

.mm-stream-wrap {
  counter-reset: streamitem;
}

.mm-stream-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--mm-line);
}

.mm-stream-item:first-child {
  padding-top: 0;
}

.mm-stream-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mm-stream-num {
  font-size: 34px;
  line-height: 1;
  color: #c2b4a0;
  font-weight: 800;
  letter-spacing: -.05em;
}

.mm-stream-title {
  margin: 6px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.mm-stream-desc {
  margin: 0;
  color: #454b45;
  line-height: 1.8;
}

.mm-stream-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eae3d8;
}

.mm-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mm-article-card {
  background: var(--mm-paper);
  border: 1px solid var(--mm-line);
}

.mm-card-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.mm-card-body {
  padding: 16px;
}

.mm-card-title {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.mm-article-detail {
  line-height: 1.95;
}

.mm-detail-wrap {
  max-width: 100%;
}

.mm-detail-head {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--mm-line);
}

.mm-detail-title {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.1;
}

.mm-detail-cover {
  margin-bottom: 24px;
}

.mm-detail-cover img {
  width: 100%;
  height: auto;
}

.mm-article-content {
  font-size: 17px;
  color: #2f352f;
}

.mm-article-content img {
  max-width: 100%;
  height: auto;
}

.mm-detail-tags a,
.mm-tags a {
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 7px 12px;
}

.mm-page-nav-item {
  height: 100%;
  border: 1px solid var(--mm-line);
}

.mm-search-item:last-child,
.mm-article-list-item:last-child {
  border-bottom: 0 !important;
}

.mm-tag-cloud a {
  margin-bottom: 10px;
}

.mm-footer {
  letter-spacing: .05em;
  margin-top: 32px;
}

.mm-friend-link a {
  color: rgba(255,255,255,.82);
  margin: 0 8px;
}

@media (max-width: 1199px) {
  .mm-stage {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .mm-stage-right {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  .mm-brand-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }

  .mm-brand-side,
  .mm-brand-kicker {
    text-align: center;
  }

  .mm-logo-text a {
    font-size: 30px;
  }

  .mm-hero-grid,
  .mm-stage,
  .mm-brief-strip,
  .mm-stream-item,
  .mm-card-grid {
    grid-template-columns: 1fr;
  }

  .mm-stream-thumb {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767px) {
  .mm-home {
    padding-top: 16px;
  }

  .mm-lead-title,
  .mm-detail-title {
    font-size: 28px;
  }

  .mm-stream-title,
  .mm-card-title,
  .mm-side-pick-title {
    font-size: 20px;
  }

  .mm-lead-panel,
  .mm-hero-side,
  .mm-column-card,
  .mm-stream-wrap,
  .mm-detail-wrap,
  .mm-list-wrap,
  .mm-side-card,
  .mm-tags {
    padding: 16px;
  }
}