/* =====================================================
   isthisaisafe.net — shared styles
   ===================================================== */

/* Baskerville is loaded from Google Fonts (Libre Baskerville)
   via the <link> in each page's <head>. Aliasing it here so
   existing 'Baskerville' font-family declarations still work. */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #fff;
  color: #000;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* =====================================================
   Red dot — fixed bottom-right, links back to /
   ===================================================== */

.dot-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.dot-wrap:hover { transform: scale(1.3); }
.dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e63946, #b71c1c);
}

/* =====================================================
   Breadcrumb (shared by /blog and /blog/* )
   ===================================================== */

.breadcrumb {
font-family: 'Libre Baskerville', Georgia, serif;
   font-size: 16px;
  color: #888;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 36px;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.breadcrumb:hover {
  color: #000;
  border-bottom-color: #000;
}

/* =====================================================
   Reading-page layout (used by /blog and /blog/* )
   The front page uses its own .intro / .searching layout.
   ===================================================== */

body.reading {
  min-height: 100vh;
  padding: 40px 24px 80px;
}
body.reading main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* =====================================================
   Blog index — listing page
   ===================================================== */

.page-title {
  font-family: 'Baskerville', Georgia, serif;
  font-size: clamp(38px, 6vw, 52px);
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 56px;
}

.empty {
  font-family: 'Baskerville', Georgia, serif;
  font-style: italic;
  color: #888;
  font-size: 18px;
  padding: 32px 0;
}

.post-list {
  list-style: none;
  border-top: 1px solid #eee;
}
.post-list li {
  border-bottom: 1px solid #eee;
}
.post-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 28px 0;
}
.post-list a:hover .post-title-link {
  text-decoration: underline;
}
.post-title-link {
  font-family: 'Baskerville', Georgia, serif;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #000;
}
.post-list .post-date {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}
.post-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* =====================================================
   Individual post page
   ===================================================== */

h1.post-title {
  font-family: 'Baskerville', Georgia, serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.post-page-date {
  font-size: 13px;
  color: #999;
  letter-spacing: 0.2px;
  margin-bottom: 48px;
}

article {
  font-size: 16px;
  line-height: 1.75;
  color: #222;
}
article p {
  margin-bottom: 22px;
}
article h2 {
  font-family: 'Baskerville', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 18px;
  color: #000;
}
article h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 36px;
  margin-bottom: 14px;
  color: #000;
}
article a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}
article a:hover {
  color: #555;
}
article ul, article ol {
  margin: 0 0 22px 24px;
}
article li {
  margin-bottom: 10px;
}
article blockquote {
  font-family: 'Baskerville', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: #444;
  border-left: 2px solid #000;
  padding-left: 20px;
  margin: 28px 0;
}
article code {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
}
article hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 48px 0;
}

.post-cta {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid #eee;
  font-family: 'Baskerville', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: #555;
  line-height: 1.6;
}
.post-cta a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 1px;
  font-style: normal;
  font-family: 'Inter', sans-serif;
}
.post-cta a:hover {
  color: #555;
  border-bottom-color: #555;
}

.back-to-blog {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px;
  color: #888;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.back-to-blog:hover {
  color: #000;
  border-bottom-color: #000;
}

/* =====================================================
   Mobile
   ===================================================== */

@media (max-width: 560px) {
  .page-title { font-size: 36px; margin-bottom: 40px; }
  .post-title-link { font-size: 19px; }
  h1.post-title { font-size: 30px; }
  article { font-size: 15px; }
  article h2 { font-size: 22px; }
  article blockquote { font-size: 17px; }
}
