/**
 * MWBF site styles - vertical article structure, newspaper editorial look.
 * .article-list, .article-item for single-column article feeds.
 */

:root {
  --ed-bg: #fafafa;
  --ed-surface: #ffffff;
  --ed-text: #0a0a0a;
  --ed-muted: #737373;
  --ed-accent: #c41e3a;
  --ed-border: #e5e5e5;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--ed-bg);
  color: var(--ed-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* Layout */
.site-header {
  border-bottom: 1px solid var(--ed-border);
  background: var(--ed-surface);
}

.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .site-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
  }
}

.site-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ed-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

@media (min-width: 640px) {
  .site-logo-icon { width: 3rem; height: 3rem; }
}

@media (min-width: 1024px) {
  .site-logo-icon { width: 3.5rem; height: 3.5rem; }
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .site-logo { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .site-logo { font-size: 1.875rem; }
}

.site-logo:hover {
  color: var(--ed-accent);
}

.site-tagline {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ed-muted);
  display: block;
  margin-top: 0.25rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .site-nav { gap: 1.25rem; }
}

.site-nav a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ed-text);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--ed-accent);
}

.site-main {
  flex: 1;
  width: 100%;
}

.site-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
  .site-content { padding: 2rem 1.5rem; }
}

@media (min-width: 1024px) {
  .site-content { padding: 2.5rem 3rem; }
}

.site-footer {
  border-top: 1px solid var(--ed-border);
  background: var(--ed-surface);
  padding: 1.5rem 1rem;
}

.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .site-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
  }
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.875rem;
}

.site-footer-links a {
  color: var(--ed-muted);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--ed-accent);
  text-decoration: underline;
}

.site-footer-links a:first-child {
  font-weight: 600;
  color: var(--ed-text);
}

.site-footer-copy {
  font-size: 0.875rem;
  color: var(--ed-muted);
}

/* Section headings */
.section-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ed-text);
  border-bottom: 1px solid var(--ed-accent);
  padding-bottom: 0.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .section-heading { font-size: 1.5rem; }
}

.section-heading a {
  color: inherit;
  text-decoration: none;
}

.section-heading a:hover {
  color: var(--ed-accent);
}

.section-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ed-accent);
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

.content-section {
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .content-section { margin-bottom: 3rem; }
}

/* Vertical article list */
.article-list {
  max-width: 720px;
  margin: 0 auto;
}

.article-item {
  border-bottom: 1px solid var(--ed-border);
}

.article-item:last-child {
  border-bottom: none;
}

.article-item a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
}

.article-item a:hover .article-title {
  color: var(--ed-accent);
}

/* Flex: image left (stretches to full content height), content right */
.article-item-header {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
}

@media (min-width: 640px) {
  .article-item-header { gap: 2rem; }
}

.article-cover-img-wrap {
  flex-shrink: 0;
  width: 7rem;
}

@media (min-width: 640px) {
  .article-cover-img-wrap { width: 9rem; }
}

.article-cover-img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--ed-border);
  overflow: hidden;
}

.article-cover-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ed-muted);
  font-size: 0.875rem;
  background: var(--ed-border);
}

.article-item-content {
  flex: 1;
  min-width: 0;
}

.article-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ed-text);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .article-title { font-size: 1.25rem; }
}

.article-excerpt {
  font-size: 0.9375rem;
  color: var(--ed-muted);
  line-height: 1.5;
  margin: 0.25rem 0 0;
}

.article-meta {
  font-size: 0.8125rem;
  color: var(--ed-muted);
  margin: 0.25rem 0 0;
}

.article-date {
  font-size: 0.8125rem;
  color: var(--ed-muted);
  margin: 0.125rem 0 0;
}

/* Page title (section pages) */
.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ed-text);
  margin: 0 0 2.5rem;
}

@media (min-width: 640px) {
  .page-title { font-size: 3rem; margin-bottom: 3rem; }
}

@media (min-width: 1024px) {
  .page-title { font-size: 3.75rem; }
}

/* Editorial label */
.editorial-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ed-accent);
  margin-bottom: 0.75rem;
}

/* Move + Press section */
.move-press-section {
  border-top: 1px solid var(--ed-border);
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  .move-press-section { padding: 3rem 1.5rem; }
}

@media (min-width: 1024px) {
  .move-press-section { padding: 4rem 2rem; }
}

.move-press-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .move-press-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }
}

.move-press-text {
  flex: 1;
  min-width: 0;
}

.move-press-text p {
  color: var(--ed-muted);
  max-width: 720px;
  line-height: 1.6;
  margin: 0;
}

.move-press-text a {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ed-accent);
  text-decoration: none;
}

.move-press-text a:hover {
  text-decoration: underline;
}

.move-press-list {
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .move-press-list { width: 20rem; }
}

@media (min-width: 1280px) {
  .move-press-list { width: 24rem; }
}

.move-press-list h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ed-text);
  margin: 0 0 1rem;
}

@media (min-width: 640px) {
  .move-press-list h2 { font-size: 1.5rem; }
}

.move-press-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.move-press-list li {
  margin-bottom: 0.5rem;
}

.move-press-list a {
  color: var(--ed-accent);
  font-weight: 500;
  text-decoration: none;
}

.move-press-list a:hover {
  text-decoration: underline;
}

.move-press-list .date {
  color: var(--ed-muted);
  font-size: 0.875rem;
}

/* Static pages (history, about, contact) */
.static-page {
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  .static-page { padding: 2.5rem 1.5rem; }
}

.static-page-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* Single post article */
.post-article {
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  .post-article { padding: 3rem 1.5rem; }
}

@media (min-width: 1024px) {
  .post-article { padding: 4rem 2rem; }
}

.post-article-inner {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .post-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

.post-header-text {
  flex: 1;
  min-width: 0;
}

.post-header-text .editorial-label {
  margin-bottom: 0.5rem;
}

.post-header-text h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ed-text);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

@media (min-width: 640px) {
  .post-header-text h1 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .post-header-text h1 { font-size: 3rem; }
}

.post-header-text .post-meta {
  font-size: 0.875rem;
  color: var(--ed-muted);
  margin: 0;
}

.post-cover-img {
  flex-shrink: 0;
  width: 10rem;
  border: 1px solid var(--ed-border);
  overflow: hidden;
}

@media (min-width: 640px) {
  .post-cover-img { width: 12rem; }
}

.post-cover-img img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.post-takeaways {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--ed-border);
  border-bottom: 1px solid var(--ed-border);
}

.post-takeaways .editorial-label {
  margin-bottom: 0.75rem;
}

.post-takeaways ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-takeaways li {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  display: flex;
  gap: 0.5rem;
}

.post-takeaways li span {
  color: var(--ed-accent);
}

.post-content-wrap {
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .post-content-wrap { margin-top: 4rem; }
}

/* Blog post content */
.blog-post-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto;
}

.blog-post-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.02em;
}

.blog-post-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.02em;
}

.blog-post-content h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 1.25rem 0 0.375rem;
}

.blog-post-content p {
  margin: 0 0 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.blog-post-content li {
  margin: 0.5rem 0;
}

.blog-post-content pre {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background: var(--ed-border);
  border-left: 4px solid var(--ed-accent);
}

.blog-post-content :not(pre) > code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--ed-border);
}

.blog-post-content a {
  color: var(--ed-accent);
  text-decoration: none;
  font-weight: 600;
}

.blog-post-content a:hover {
  text-decoration: underline;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
}

.blog-post-content blockquote {
  font-style: italic;
  margin: 1.5rem 0;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 4px solid var(--ed-accent);
  color: var(--ed-muted);
  background: rgba(196, 30, 58, 0.04);
}

.blog-post-content strong {
  font-weight: 700;
  color: var(--ed-text);
}

/* Author page */
.author-profile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--ed-border);
}

@media (min-width: 640px) {
  .author-profile {
    flex-direction: row;
    align-items: flex-start;
  }
}

.author-avatar {
  flex-shrink: 0;
  width: 6rem;
  height: 6rem;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ed-border);
}

@media (min-width: 640px) {
  .author-avatar {
    width: 7rem;
    height: 7rem;
  }
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ed-muted);
  font-size: 1.5rem;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-info h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ed-text);
  margin: 0 0 0.5rem;
}

@media (min-width: 640px) {
  .author-info h1 { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .author-info h1 { font-size: 3.75rem; }
}

.author-info p {
  color: var(--ed-muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
}

/* Sidebar (post page) */
.sidebar {
  border-left: 1px solid var(--ed-border);
  padding-left: 1.5rem;
}

.sidebar-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ed-accent);
  margin-bottom: 1rem;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li {
  margin-bottom: 1rem;
}

.sidebar a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ed-text);
  text-decoration: none;
}

.sidebar a:hover {
  color: var(--ed-accent);
}

.sidebar .sidebar-date {
  font-size: 0.75rem;
  color: var(--ed-muted);
  margin-top: 0.125rem;
}

/* Layout with sidebar */
.layout-with-sidebar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .layout-with-sidebar {
    flex-direction: row;
    gap: 3rem;
  }

  .layout-with-sidebar aside {
    width: 14rem;
    flex-shrink: 0;
  }
}

/* Accent link */
.text-accent {
  color: var(--ed-accent);
}

.text-accent:hover {
  text-decoration: underline;
}
