/* ===== Academic Theme (light, print-friendly, serif body) ===== */
:root{
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #1a1a1a;
  --muted: #4a4a4a;
  --accent: #0b57d0;      /* academic blue */
  --accent-2: #14532d;    /* deep green for emphasis */
  --border: #e5e7eb;
  --radius: 10px;
  --maxw: 820px;
  --line: 1.7;
  --shadow: 0 6px 18px rgba(0,0,0,0.06);
}

*,
*::before,
*::after{ box-sizing: border-box; }
.home:hover, .post-title:hover{
    color: blue;
    transition: .5s;
}

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/var(--line) ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container{ width: min(92vw, var(--maxw)); margin-inline: auto; }

.site-header{
  padding: 26px 0 8px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.header-grid{ display: grid; gap: 14px; }

.author{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
}
.link_name{
    text-decoration: none;
    color: #1a1a1a;
}

.passport{
  width: 92px;
  height: 110px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #f3f4f6;
  /* padding: 20px; */
}
.passport:hover{
    height: 120px;
    width: 100px;
    transition: 2s;
}


.site-title{
  margin: 0 0 4px;
  font-size: 1.15rem;
  letter-spacing: .2px;
  color: var(--muted);
  font-weight: 700;
}

.author-name, .post-date{ margin: 0; }
.author-name strong{ color: var(--ink); font-weight: 800; }
.post-date{ color: var(--muted); font-size: .98rem; }

.social{
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.social a{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-size: .95rem;
}
.social a:hover{ border-color: var(--accent); }

.crumbs{
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: .92rem;
  color: var(--muted);
}

.crumbs a{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.crumbs a:hover{ border-color: var(--muted); }

main{ padding: 26px 0 40px; }

.post{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.post-header{ margin-bottom: 10px; }

.post-title{
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  line-height: 1.25;
}

.dek{
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.post-body h3{
  font-size: 1.15rem;
  margin: 20px 0 8px;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.post-body h4{
  font-size: 1.02rem;
  margin: 16px 0 6px;
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.post-body p,
.post-body ul,
.post-body ol{
  margin: 12px 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.post-body ul, .post-body ol{ padding-left: 1.2rem; }

abbr[title]{ text-decoration: none; border-bottom: 1px dotted #d1d5db; cursor: help; }

.mini-figure{
  margin: 18px 0 10px;
  background: #fbfbfb;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 10px;
}

.mini-figure figcaption{
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.perf-table{ width: 100%; border-collapse: collapse; font-size: .98rem; }
.perf-table th, .perf-table td{
  border: 1px solid var(--border);
  padding: 8px;
}
.perf-table th{
  text-align: left;
  background: #f7f7f7;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.figure-note{ color: var(--muted); font-size: .9rem; }

.post-footer{
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.citation{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .98rem;
}

.cta-block{
  margin: 22px 0 0;
  background: #f6f9ff;
  border: 1px solid #dbe7ff;
  border-radius: 8px;
  padding: 14px 12px;
}
.cta-block a{
  color: var(--accent);
  border-bottom: 1px solid #c0d4ff;
  text-decoration: none;
}

.site-footer{
  padding: 22px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: #fafafa;
}

.footer-grid{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.top-link{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.top-link:hover{ border-color: var(--accent); }

/* Accessibility focus */
a:focus, button:focus, .top-link:focus{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 900px){
  .author{ grid-template-columns: 76px 1fr; }
  .passport{ width: 76px; height: 76px; }
}

@media (max-width: 620px){
  .post-body h3{ font-size: 1.08rem; }
}

/* Print-safe */
@media print{
  :root{
    --bg:#fff; --panel:#fff; --ink:#000; --muted:#333; --accent:#000; --accent-2:#000; --border:#000;
  }
  body{ background:#fff; color:#000; }
  .site-header, .site-footer{ background:#fff; }
  .post, .site-header, .site-footer{ box-shadow:none; border: 1px solid #000; }
  .passport{ border: 1px solid #000; }
  a{ color:#000; text-decoration:none; }
  .crumbs, .top-link{ display:none !important; }
}
