html {
    font-size: 62.5%;
}

body {
  max-width: 800px;
  margin: auto;
  padding: 1em;
  font-size: 1.6rem;
  line-height: 1.6;
}

/* links: explicit browser-style blue, visited purple (was relying on defaults) */
a { color: #1D4ED8; }
a:visited { color: #7A1DD7; }
a:hover { text-decoration: none; }

p {
  font-size: 1.8rem;
  margin: 2.88rem 0 0 0;
}

h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
  margin-top: 1.44rem;
}

h2 {
  font-size: 2.88rem;
  margin: 2.88rem 0 0 0;
}

/* header and footer areas — matches the Ghost "digest" theme */
.site-header {
  box-sizing: border-box;
  width: min(1000px, 100vw);
  margin: 1.6rem 0 4.8rem 50%;
  transform: translateX(-50%);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.site-title {
  color: #15171a;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-title:visited { color: #15171a; }
.site-nav .menu {
  list-style: none;
  display: flex;
  gap: 2.4rem;
  margin: 0;
  padding: 0;
}
.site-nav .menu li { display: inline-block; }
.site-nav .menu a {
  color: #15171a;
  font-size: 1.7rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav .menu a:visited { color: #15171a; }
.site-nav .menu a:hover { color: #15171a; }

.site-footer {
  color: #999;
  font-size: 1.3rem;
  margin-top: 6.4rem;
  padding: 3.2rem 0;
  border-top: 1px solid #eee;
  text-align: center;
}
.title { font-size: 1.1em; }

/* blog post header — matches the old Ghost "digest" theme */
.post-header {
  text-align: left;
  margin: 3.2rem 0 2.4rem 0;
}
.post-meta {
  display: flex;
  align-items: center;
  color: #999;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 1.6rem 0;
}
.post-title, .page-title {
  color: #15171a;
  font-size: 4.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.post-author {
  color: #999;
  font-size: 1.4rem;
  margin: 0.8rem 0 0 0;
}
.post-image {
  margin: 0 0 2.4rem 0;
}
.post-image img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  .post-title, .page-title { font-size: 3.2rem; }
}

/* Page template: full-bleed #f6f6f6 band behind the header + title */
body.page-template { padding-top: 0; }
.page-template .site-header,
.page-template .page-header {
  background-color: #f6f6f6;
  box-shadow: 0 0 0 100vmax #f6f6f6;
  clip-path: inset(0 -100vmax);
}
.page-template .site-header {
  margin-top: 0;
  margin-bottom: 0;
  padding: 2.4rem 2rem;
}
.page-template .page-header {
  margin: 0;
  padding: 5.6rem 0 4rem 0;
}
.page-template main {
  padding-top: 2.4rem;
}

/* home page — blog post previews (whole card links to the post) */
.post-summary { position: relative; }
.post-summary + .post-summary {
  margin-top: 4.8rem;
  padding-top: 4.8rem;
  border-top: 1px solid #eee;
}
.post-summary .post-title { margin: 0 0 2.4rem 0; }
.post-summary .post-title a { color: inherit; text-decoration: none; }
.post-summary .post-title a:visited { color: #15171a; }
.post-summary .post-title a:hover { color: #1D4ED8; }
/* stretched link: the title's overlay makes the entire summary clickable */
.post-summary .post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

footer a { text-decoration: none; }
hr {
  border-style: dashed;
  color: #ddd;
}

/* code */
pre {
  border: 1px solid #ddd;
  box-shadow: 5px 5px 5px #eee;
  padding: 1em;
  overflow-x: auto;
}
code { background: #f9f9f9; }
pre code { background: none; }

/* misc elements */
img, iframe, video { max-width: 100%; }
main { hyphens: auto; }
blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  padding: 3px 1em 3px;
}

table {
  margin: auto;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}
table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; }
thead, tfoot, tr:nth-child(even) { background: #eee; }

ol, ul { margin-top: 0.5rem }