/* ============================================
   Mutual Information – Landing Page
   Using Milling (205.tf)
   ============================================ */

/* -------------------------------
   Custom font: Milling
   ------------------------------- */
/* Adjust paths if your folder structure differs */
/* This file is assumed to be at /assets/css/mimain.css
   and fonts at /assets/fonts/*.otf */

@font-face {
  font-family: "Milling";
  src: url("../fonts/MillingTrial-Duplex1mm.otf") format("opentype");
  font-weight: 300;           /* lighter / Simplex */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Milling";
  src: url("../fonts/MillingTrial-Triplex1mm.otf") format("opentype");
  font-weight: 600;           /* heavier / Triplex */
  font-style: normal;
  font-display: swap;
}

/* -------------------------------
   Tokens
   ------------------------------- */

:root {
  --mi-bg: #f7f3ea;             /* warm, paper-like background */
  --mi-ink: #222222;
  --mi-muted: #666666;
  --mi-rule: rgba(0, 0, 0, 0.18);
  --mi-accent: #f0774b;         /* warm accent, tweak if you like */
  --mi-max-width: 900px;
  --mi-space: 18px;
}

/* -------------------------------
   Base
   ------------------------------- */

html {
  font-family: "Milling", -apple-system, Helvetica, arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mi-ink);
  background: var(--mi-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
}

a {
  color: var(--mi-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Utility container */
.mi-wrap {
  max-width: var(--mi-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Main wrapper */
.mi-main {
  padding-bottom: 60px;
}

/* ======= Stacked masthead: MUTUAL / logo / INFORMATION ======= */

.mi-header {
  padding: 32px 0 14px;
  background: var(--mi-bg);
  border-bottom: 1px solid var(--mi-rule);
}

/* Vertical stack centered */
.mi-masthead-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;          /* spacing between word/logo/word */
  margin-bottom: 10px;
}

/* Both words identical */
.mi-masthead-word {
  font-family: "Milling", sans-serif;
  font-weight: 600;              /* Triplex */
  font-size: 2.9rem;             /* consistent size */
  text-transform: uppercase;
  letter-spacing: 0.10em;
  line-height: 1;
  white-space: nowrap;
}

/* Centered large logo */
.mi-masthead-logo {
  width: 110px;                  /* adjust as needed */
  height: 110px;
  object-fit: contain;
  display: block;
}

/* Nav centered underneath */
.mi-nav {
  text-align: center;
  margin-top: 0px;
  margin-bottom: 4px;
}

.mi-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mi-nav li {
  display: inline-block;
  margin: 0 10px;
}

.mi-nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mi-muted);
}

.mi-nav a:hover {
  color: var(--mi-ink);
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 720px) {
  .mi-masthead-word {
    font-size: 2.1rem;
    letter-spacing: 0.08em;
  }

  .mi-masthead-logo {
    width: 80px;
    height: 80px;
  }
}




/* -------------------------------
   Hero
   ------------------------------- */

.mi-hero {
  padding: 32px 0 18px;
}

.mi-hero h1 {
  font-family: "Milling", sans-serif;
  font-weight: 600;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

.mi-hero-text {
  max-width: 800px;
  font-weight: 300;
  font-size: 0.98rem;
  color: var(--mi-muted);
  margin: 0 0 10px;
}

.mi-hero-deck {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--mi-muted);
  margin: 0;
}

/* Inline-ish actions, not big app buttons */
.mi-hero-actions {
  margin-top: 14px;
  font-size: 0.9rem;
}

.mi-hero-actions a {
  margin-right: 16px;
}

.mi-hero-actions a:first-child {
  font-weight: 600;
}

/* -------------------------------
   Sections
   ------------------------------- */

.mi-section {
  padding: 24px 0;
  border-top: 1px solid var(--mi-rule);
}

.mi-section:first-of-type {
  border-top: none;
}

.mi-section h2 {
  font-family: "Milling", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
}

.mi-section p {
  margin: 0 0 10px;
  font-weight: 300;
  font-size: 0.98rem;
}

/* Split layout: 2 columns on desktop, stack on mobile */
.mi-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 32px;
}

.mi-bullets h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.mi-bullets ul {
  padding-left: 16px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
}

/* -------------------------------
   Recent articles – list style
   ------------------------------- */

.mi-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.mi-link-subtle {
  font-size: 0.8rem;
  color: var(--mi-muted);
}

.mi-link-subtle:hover {
  color: var(--mi-ink);
}

.mi-article-list {
  border-top: 1px solid var(--mi-rule);
}

.mi-article-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--mi-rule);
}

.mi-article-row a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mi-article-row a:hover h3 {
  text-decoration: underline;
}

.mi-article-row h3 {
  font-size: 1rem;
  margin: 0 0 4px;
  font-weight: 600;
}

.mi-article-subtitle {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--mi-muted);
  font-weight: 300;
}

.mi-article-meta {
  font-size: 0.8rem;
  color: var(--mi-muted);
  font-weight: 300;
}

/* ============================================
   Home Page Article Cards
   ============================================ */

.mi-home-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mi-home-card {
  border-bottom: 1px solid var(--mi-rule);
  padding: 16px 0;
}

.mi-home-card:first-child {
  padding-top: 0;
}

.mi-home-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mi-home-card-link:hover {
  text-decoration: none;
}

.mi-home-card-link:hover h3 {
  color: var(--mi-accent);
}

.mi-home-card h3 {
  font-family: "Milling", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 8px;
  transition: color 0.15s ease;
}

.mi-home-card .mi-article-subtitle {
  font-size: 0.9rem;
  color: var(--mi-muted);
  font-weight: 300;
  margin: 0 0 10px;
  line-height: 1.5;
}

.mi-home-card .mi-article-meta {
  font-size: 0.78rem;
  color: var(--mi-muted);
  margin: 0;
}

/* -------------------------------
   Contribute section
   ------------------------------- */

.mi-contribute h2 {
  margin-top: 0;
}

.mi-contribute p {
  max-width: 640px;
  margin-bottom: 8px;
  font-weight: 300;
}

/* Emphasized “call to action” but still texty */
.mi-contribute a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--mi-ink);
}

/* -------------------------------
   Footer
   ------------------------------- */

.mi-footer {
  border-top: 1px solid var(--mi-rule);
  padding: 10px 0 14px;
  font-size: 0.8rem;
  color: var(--mi-muted);
}

.mi-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.mi-footer-right a {
  color: var(--mi-muted);
}

.mi-footer-right a:hover {
  color: var(--mi-ink);
}



/* ============================================
   Blog / Articles index page
   ============================================ */

#blog-page {
  padding-bottom: 60px;
}

/* Header block for the blog page */
.mi-blog-header {
  border-top: none;
  padding-top: 28px;
  padding-bottom: 10px;
}

.mi-blog-title {
  font-family: "Milling", sans-serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.mi-blog-intro {
  margin: 0;
  max-width: 620px;
  font-size: 0.98rem;
  color: var(--mi-muted);
  font-weight: 300;
}

/* List section (full page version of recent-articles list) */
.mi-blog-list-section {
  padding-top: 8px;
}

/* Reuse mi-article-list but allow a bit more breathing room */
.mi-article-list-page {
  border-top: 1px solid var(--mi-rule);
}

/* Each row is a full-width article entry */
.mi-article-row-page {
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--mi-rule);
}

.mi-article-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Title for each article in the list */
.mi-article-title {
  font-family: "Milling", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 4px;
}

/* Subtitle styling (you already have .mi-article-subtitle but we tweak for index) */
.mi-article-row-page .mi-article-subtitle {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--mi-muted);
  font-weight: 300;
}

/* Meta line: date and optional author */
.mi-article-row-page .mi-article-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mi-muted);
  margin: 0;
}

/* Hover behavior */
.mi-article-row-page:hover .mi-article-title {
  text-decoration: underline;
}

/* Mobile tweaks */
@media (max-width: 720px) {
  .mi-blog-title {
    font-size: 1.7rem;
    letter-spacing: 0.06em;
  }

  .mi-article-row-page {
    padding: 12px 0 10px;
  }

  .mi-article-title {
    font-size: 1.1rem;
  }
}


/* ============================================
   Global nav styling (for default layout)
   ============================================ */

/* Site header navigation - scoped to avoid affecting TOC */
.mi-site-nav {
  margin: 0;
}

.mi-site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  max-width: var(--mi-max-width);
}

.mi-site-nav li {
  text-align: center;
}

.mi-site-nav li:first-child {
  text-align: left;
}

.mi-site-nav li:last-child {
  text-align: right;
}

.mi-site-nav a {
  font-family: "Milling", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mi-muted);
  text-decoration: none;
}

.mi-site-nav a:hover {
  color: var(--mi-ink);
  text-decoration: underline;
}

/* On the blog page, pull the Articles heading closer to the nav */
#blog-page .mi-blog-header,
#posts.section,
#blog-page h1 {
  margin-top: 8px;
}

/* ============================================
   Article layout
   ============================================ */

#post-page {
  padding-bottom: 80px;
}

/* Main article container */
.mi-article-page {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Header block */
.mi-article-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--mi-rule);
  padding-bottom: 16px;
}

/* Optional small kicker above title */
.mi-article-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mi-muted);
  margin: 0 0 6px;
}

/* Big title */
.mi-article-title-main {
  font-family: "Milling", sans-serif;
  font-weight: 600;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.1;
}

/* Subtitle below title */
.mi-article-subtitle-main {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--mi-muted);
}

/* Authors + date line */
.mi-article-meta-main {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mi-muted);
}

.mi-article-authors-main + time::before {
  content: " · ";
  padding: 0 0.25em;
}

/* Body typography */
.mi-article-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mi-ink);
}

.mi-article-body p {
  margin: 0 0 1.1em;
}

.mi-article-body h2 {
  font-family: "Milling", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin: 2.0em 0 0.6em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mi-article-body h3 {
  font-family: "Milling", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 1.6em 0 0.4em;
}

/* Blockquotes */
.mi-article-body blockquote {
  margin: 1.4em 0;
  padding: 0 1.1em;
  border-left: 3px solid var(--mi-rule);
  color: var(--mi-muted);
}

/* Figures + captions */
.mi-article-body .figure,
.mi-article-body figure {
  margin: 2em 0;
  padding: 20px 0;
  border-top: 1px solid var(--mi-rule);
  border-bottom: 1px solid var(--mi-rule);
}

.mi-article-body .figure img,
.mi-article-body figure img {
  max-width: 100%;
  height: auto;
  display: block;
}

.mi-article-body .caption,
.mi-article-body figcaption {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--mi-muted);
}

.mi-article-body .caption-label {
  font-weight: 600;
}

/* Callout box */
.mi-article-body .callout {
  position: relative;
  border-left: 4px solid var(--mi-ink);
  background: rgba(0, 0, 0, 0.03);
  padding: 1em 1.2em;
  margin: 1.8em 0;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* Simple footnotes area */
.mi-article-body .footnotes {
  margin-top: 2.5em;
  border-top: 1px solid var(--mi-rule);
  padding-top: 1em;
  font-size: 0.85rem;
  color: var(--mi-muted);
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .mi-article-page {
    padding-top: 28px;
  }

  .mi-article-title-main {
    font-size: 1.8rem;
    letter-spacing: 0.03em;
  }

  .mi-article-subtitle-main {
    font-size: 1rem;
  }
}

/* ============================================
   Simple header (non-homepage)
   ============================================ */

.mi-header-simple {
  padding: 10px 0 14px;
}

.mi-header-simple .mi-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mi-header-simple .mi-nav {
  margin: 0;
}

.mi-site-logo-link {
  display: block;
  margin-bottom: 10px;
}

.mi-site-logo-link img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.mi-site-logo-link:hover img {
  opacity: 1;
}

/* Page hero without bottom border */
.mi-hero-simple {
  padding: 32px 0 18px;
  border-bottom: none;
}

.mi-hero-simple h1 {
  font-family: "Milling", sans-serif;
  font-weight: 600;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

@media (max-width: 720px) {
  .mi-site-logo-link img {
    width: 30px;
    height: 30px;
  }
}
