/* Pure CSS file for GitHub Pages compatibility */

/**************/
/* BASE RULES */
/**************/

body {
  color: #111;
}

.container {
  margin: 0 auto;
  max-width: 760px;
  padding: 0 20px;
  width: 100%;
}

/* Modern link styling */
a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0366d6;
  text-decoration: underline;
}

a:visited {
  color: #555;
}

/* Typography and other base rules are handled by the Jekyll theme */

/* Article content styling */
.post h1, .post h2, .post h3, .post h4, .post h5, .post h6 {
  color: #333;
}

/* Hero image with optional caption */
.post-hero {
  margin: 0 0 1.8em;
}

.post-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.post-hero figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #999;
  text-align: center;
}

.post > h1 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.post h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.post h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

.post p, .post li, .post div {
  color: #444;
  line-height: 1.7;
}

.post {
  color: #444;
}

/* Links within article content should be more visible */
.post .entry a, .post p a, .post li a, .post blockquote a, .post div a {
  color: #0366d6;
  text-decoration: none;
}

.post .entry a:hover, .post p a:hover, .post li a:hover, .post blockquote a:hover, .post div a:hover {
  color: #0366d6;
  text-decoration: underline;
}

.post .entry a:visited, .post p a:visited, .post li a:visited, .post blockquote a:visited, .post div a:visited {
  color: #0366d6;
}

/* Page styling (for About page, etc.) */
.page h1, .page h2, .page h3, .page h4, .page h5, .page h6 {
  color: #333;
}

.page p, .page li, .page div, .page .entry {
  color: #444;
  line-height: 1.7;
}

.page {
  color: #444;
}

/* Links within page content should be more visible */
.page a, .page .entry a {
  color: #0366d6;
  text-decoration: none;
  font-weight: 500;
}

.page a:hover, .page .entry a:hover {
  color: #0366d6;
  text-decoration: underline;
}

.page a:visited, .page .entry a:visited {
  color: #0366d6;
}

img {
  max-width: 100%;
  height: auto;
}

/* Nicolas Gallagher's micro clearfix hack
   http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

/*********************/
/* LAYOUT / SECTIONS */
/*********************/

.wrapper-masthead {
  margin-bottom: 50px;
}

.masthead {
  padding: 20px 0 16px;
  border-bottom: 1px solid #e5e5e5;
}

.site-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-name {
  margin: 0;
  color: #111;
  cursor: pointer;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 30px;
  letter-spacing: 0.5px;
}

.site-description {
  margin: -5px 0 0 0;
  color: #666;
  font-size: 16px;
}

nav {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
}

nav a {
  margin-left: 20px;
  color: #111;
  text-align: right;
  font-weight: 300;
  letter-spacing: 0.5px;
}

nav a:visited,
nav a:hover {
  color: #111;
}

.site-name a,
.site-name a:visited,
.site-name a:hover {
  color: #111;
  text-decoration: none;
}

/* Home intro */
.home-intro {
  margin: 0 0 40px;
}

.home-kicker {
  margin: 0;
  max-width: 640px;
  color: #5f5a54;
  font-size: 20px;
  line-height: 1.6;
}

/* Post listing */
.posts > .post {
  padding: 0 0 48px;
  margin: 0 0 48px;
  border-bottom: 1px solid #e5e5e5;
}

.posts > .post:last-child {
  padding-bottom: 1em;
  margin-bottom: 0;
  border-bottom: none;
}

.post-image-link {
  display: block;
  margin-bottom: 22px;
}

.post-image {
  display: block;
  width: 100%;
  max-height: 250px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.posts .post h1 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.2;
  color: #111;
}

.posts .post h1 a,
.posts .post h1 a:visited,
.posts .post h1 a:hover {
  color: #111;
  text-decoration: none;
}

.posts .post .entry {
  color: #4e4944;
  font-size: 17px;
  line-height: 1.8;
}

.post blockquote {
  margin: 1.8em 1em;
  border-left: none;
  padding: 0.1em 0 0.1em 1em;
  color: #222;
  font-size: 17px;
  font-style: italic;
  position: relative;
}

.post blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 60%;
  background: #999;
}

.post .comments {
  margin-top: 10px;
}

.post .read-more {
  font-size: 15px;
  display: inline-block;
  margin-top: 1.25em;
  color: #333;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.wrapper-footer {
  margin-top: 50px;
  border-top: 1px solid #e5e5e5;
  padding-top: 15px;
  background-color: #fff;
}

footer {
  padding: 20px 0;
  text-align: center;
}
