:root{
  --bg: #ffffff;
  --panel: #f7f7f7;
  --border: #e5e5e5;

  --text: #111111;
  --muted: #555555;
  --muted2: #2f2f2f;

  --accent: #2563eb;   /* clean blue */
  --accent2:#3b82f6;

  --shadow: 0 8px 24px rgba(0,0,0,0.06);
  --radius: 16px;

  --reading: 740px;
}


*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.65;
}

a{ color: inherit; text-decoration: none; }
code{
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 10px;
}
hr{
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner{
  max-width: calc(var(--reading) + 80px);
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.brand{
  font-weight: 800;
  letter-spacing: 0.2px;
}
.topbar__actions{
  display:flex;
  align-items:center;
}

.link{
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
}
.link:hover{ background: rgba(255,255,255,0.06); color: var(--text); }

.page{
  padding: 26px 0 40px;
}
.post{
  max-width: var(--reading);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.post__title{
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  margin: 18px 0 10px;
  letter-spacing: -0.4px;
}
.post__subtitle{
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  margin: 0 0 18px;
  max-width: 65ch;
}

.post__meta{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--border);
}

.author{
  display:flex;
  align-items:center;
  gap: 12px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.author__name{ font-weight: 800; }
.author__line{
  color: var(--muted2);
  font-size: 13px;
}
.dot{ margin: 0 8px; opacity: 0.7; }

.metaActions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.stats{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.pill{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  padding: 6px 10px;
  border-radius: 999px;
}
.pill__num{ color: var(--text); font-weight: 800; }

.hero__cap{
  margin: 10px 2px 0;
  font-size: 13px;
  color: var(--muted2);
}

/* Content typography */
.post__content{
  padding-top: 14px;
  font-size: 17px;
}
.lead{
  font-size: 19px;
  color: rgba(46, 46, 46, 0.88);
}

h2{
  margin: 26px 0 10px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.2px;
}
p{ margin: 0 0 14px; color: rgba(53, 53, 53, 0.86); }
ul{
  margin: 10px 0 18px;
  padding-left: 18px;
}
li{ margin: 8px 0; color: rgba(56, 56, 56, 0.82); }

blockquote{
  margin: 18px 0 22px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: #f8f9ff;
  border-radius: 12px;
  color: #222;
}

/* Callout + CTA */
.callout{
  border: 1px solid var(--border);
  background: #f9f9f9;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 18px 0;
  color: #222;
}

.cta{
  margin-top: 18px;
  border: 1px solid var(--border);
  background: #f8f9ff;
  border-radius: var(--radius);
  padding: 16px;
}

.cta__title{ margin: 0 0 6px; font-size: 18px; }
.cta__desc{ margin: 0 0 12px; color: var(--muted); }
.cta__form{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}

.input{
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.input:focus{
  border-color: rgba(77,163,255,0.55);
  box-shadow: 0 0 0 4px rgba(77,163,255,0.12);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 800;
  cursor: pointer;
}
.btn--primary{
  border: none;
  color:#ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.btn--ghost{
  background: rgba(255,255,255,0.04);
}
.btn--small{
  padding: 9px 12px;
  font-size: 13px;
}

.small{ margin: 10px 2px 0; font-size: 13px; color: var(--muted2); }

/* Footer */
.post__footer{
  padding: 18px 0 0;
}
.backTop{
  display:inline-block;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
}
.backTop:hover{ background: rgba(255,255,255,0.06); color: var(--text); }

.siteFooter{
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
  margin-top: 36px;
}
.siteFooter__inner{
  max-width: calc(var(--reading) + 80px);
  margin: 0 auto;
  padding: 18px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  color: var(--muted2);
  font-size: 14px;
}
.muted{ color: var(--muted2); }

/* Accessibility helper */
.srOnly{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  border:0;
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.is-open { display: flex; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.modal__panel {
  position: relative;
  z-index: 10000;              /* panel above backdrop */
  width: min(520px, calc(100% - 32px));
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}


.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.modal__title {
  margin: 6px 0 6px;
  font-size: 20px;
  color: var(--text);
}

.modal__subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.modal__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.modal__form .input {
  flex: 1;
  min-width: 220px;
}

/* Prevent background scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* Mobile tweaks */
@media (max-width: 540px){
  .hero__img{ height: 190px; }
  .post__meta{ align-items:flex-start; }
  .stats{ justify-content:flex-start; }
}
.home { max-width: var(--reading); margin: 0 auto; }

.homeHero { padding: 28px 0 18px; }
.homeHero__title { font-size: 42px; line-height: 1.08; margin: 0 0 10px; color: var(--text); }
.homeHero__subtitle { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.homeHero__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.homeHero__micro { margin: 10px 0 0; color: var(--muted2); font-size: 13px; }

.homeSection { padding: 18px 0; border-top: 1px solid var(--border); }
.homeSection__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.homeSection__title { margin: 0; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted2); }
.homeSection__link { font-size: 13px; color: var(--muted); text-decoration: none; }
.homeSection__link:hover { text-decoration: underline; }

.featureCard {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  background: #fff;
}
.featureCard:hover { border-color: rgba(0,0,0,0.18); }
.featureCard__kicker { font-size: 12px; color: var(--muted2); margin-bottom: 8px; }
.featureCard__title { font-size: 20px; color: var(--text); margin-bottom: 6px; font-weight: 700; }
.featureCard__desc { color: var(--muted); margin-bottom: 10px; }
.featureCard__meta { font-size: 13px; color: var(--muted2); }

.postList { display: grid; gap: 10px; }
.postRow {
  display: block;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
}
.postRow:hover { border-color: rgba(0,0,0,0.18); }
.postRow__title { color: var(--text); font-weight: 650; margin-bottom: 4px; }
.postRow__meta { color: var(--muted2); font-size: 13px; }

.homeSubscribe { padding: 18px 0; }
.homeSubscribe__inner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.homeSubscribe__title { margin: 0 0 4px; font-size: 18px; color: var(--text); }
.homeSubscribe__desc { margin: 0; color: var(--muted); }

.homeFooter { padding: 18px 0 6px; border-top: 1px solid var(--border); }
.homeFooter__muted { color: var(--muted2); font-size: 13px; }

@media (max-width: 520px) {
  .homeHero__title { font-size: 32px; }
}
.hero {
  width: 100%;
  max-width: 708px;   /* prevents it from stretching beyond original size */
  margin: 2rem auto;  /* centers it */
}

.hero img {
  width: 100%;
  height: auto;       /* preserves aspect ratio */
  display: block;
  border-radius: 16px;
}

