/* Typography — matches startupnextdoor.com */
@import url('https://fonts.googleapis.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400');

body {
  background-color: #efefef;
  font-family: "Merriweather", serif;
  letter-spacing: 0.01rem;
  font-size: 1.2rem;
  line-height: 1.75em;
  color: #2e2e2e;
  text-rendering: geometricPrecision;
}

h1, h2, h3, h4, h5, h6 {
  color: #2E2E2E;
  line-height: 1.15em;
  margin: 0 0 0.4em 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  text-rendering: geometricPrecision;
}

h1 { font-size: 2.5rem; letter-spacing: -1px; }
h2 { font-size: 1.8rem; letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; letter-spacing: -0.3px; }
h4 { font-size: 1.25rem; }
h5, h6 { font-size: 1rem; }

a { color: #4A4A4A; transition: color 0.3s ease; }
a:hover { color: #111; }

p, ul, ol, dl {
  margin: 0 0 1.75em 0;
  text-rendering: geometricPrecision;
}

ol, ul { padding-left: 3rem; }
li { margin: 0.4em 0; }

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: #EFEFEF 1px solid;
  margin: 3.2em 0;
  padding: 0;
}

blockquote {
  box-sizing: border-box;
  margin: 1.75em 0 1.75em -2.2em;
  padding: 0 0 0 1.75em;
  border-left: #4A4A4A 0.4em solid;
}

blockquote p { margin: 0.8em 0; font-style: italic; }

.post-content blockquote {
  border-left-color: #ccc;
  background: #f5f5f5;
  color: #777;
  margin-left: 0.5rem;
}

.post-content blockquote p { color: #777; }

/* Code — Inconsolata, same background/border as original */
code, tt {
  padding: 1px 3px;
  font-family: Inconsolata, monospace, sans-serif;
  font-size: 0.85em;
  white-space: pre-wrap;
  border: #E3EDF3 1px solid;
  background: #F7FAFB;
  border-radius: 2px;
}

pre {
  box-sizing: border-box;
  margin: 0 0 1.75em 0;
  border: #E3EDF3 1px solid;
  width: 100%;
  padding: 10px;
  font-family: Inconsolata, monospace, sans-serif;
  font-size: 0.9em;
  white-space: pre;
  overflow: auto;
  background: #F7FAFB;
  border-radius: 3px;
}

pre code, pre tt {
  font-size: inherit;
  white-space: pre-wrap;
  background: transparent;
  border: none;
  padding: 0;
}

/* Post without hero — extra top space for navbar breathing room */
.post-no-hero-section { padding-top: 12rem; }

/* Post page header */
.post-feature-image {
  height: 40vh;
  background: #222 no-repeat center center;
  background-size: cover;
}

.post-title {
  font-family: "Open Sans", sans-serif;
  font-size: 4.1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.3em 0;
  line-height: 1.15;
}

.post-date {
  font-family: "Open Sans", sans-serif;
  font-size: 1.5rem;
  color: #888;
  margin: 0 0 0.5em 0;
}

.post-tags { margin: 0 0 0.5em 0; }

.post-header-divider {
  margin: 1.5rem 0 2rem;
  border-top-color: #e0e0e0;
}

/* Tag shape — manila folder tab */
.post-tag {
  display: inline-block;
  position: relative;
  background: #e8d5a3;
  color: #5a3e1b !important;
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.25em 0.75em 0.25em 1.3em;
  border-radius: 0 3px 3px 0;
  margin: 0.2em 0.3em 0.2em 0.9em;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.18);
  vertical-align: middle;
}

.post-tag::before {
  content: '';
  position: absolute;
  left: -0.65em;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 1.1em;
  height: 1.1em;
  background: #e8d5a3;
  border-radius: 3px 0 0 0;
}

.post-tag::after {
  content: '';
  position: absolute;
  left: 0.15em;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  z-index: 1;
}

.post-tag:hover {
  background: #d4b87a;
  color: #3a2800 !important;
}

.post-tag:hover::before { background: #d4b87a; }

/* Post content */
.post-card {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.post-card .card-content {
  padding: 2.5rem 3rem;
}

/* Post content */
.post-content strong { color: #111; }

.post-content a.auto-link { color: #1a4a8a; }
.post-content a.auto-link:hover { color: #0d2d5e; }

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 { color: #2e2e2e; }

.post-content ul,
.post-content ol { color: #2e2e2e; font-size: 1.6rem; }

.post-content li { color: #2e2e2e; font-size: 1.6rem; }

.post-content {
  font-size: 1.6rem;
  line-height: 1.75em;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
}

.post-content iframe {
  display: block;
  margin: 1.75em 0;
  max-width: 100%;
}

/* Navbar */
.navbar.is-dark .navbar-item:hover {
  background-color: rgba(255,255,255,0.1);
}

.nav-profile-wrap:hover {
  background-color: transparent !important;
}

.navbar > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.navbar-end {
  display: flex !important;
  align-items: center;
  margin-left: auto;
}

.nav-profile-img {
  width: 57px !important;
  height: 57px !important;
  max-height: 57px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
}

.nav-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 3px;
  color: #fff;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  font-family: "Open Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-menu-btn:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-menu-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-menu-lines span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
}

.nav-menu-wrapper {
  position: relative;
}

.navbar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #efefef !important;
  border: none !important;
  border-radius: 3px;
  min-width: 140px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 100;
}

.navbar-dropdown.is-open {
  display: block;
}

.navbar-dropdown .navbar-item {
  color: #333 !important;
  font-family: "Open Sans", sans-serif;
  font-size: 1.4rem;
  padding: 0.6rem 1rem;
  background: #efefef !important;
}

.navbar-dropdown .navbar-item:hover {
  background: #444 !important;
  color: #fff !important;
}

/* Transparent navbar overlaid on hero */
.navbar.navbar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%) !important;
}

/* Cards on index */
.card {
  transition: box-shadow 0.2s;
  background: #fff;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card .card-content {
  padding: 1.5rem 2rem 2rem;
}

.card .card-image figure {
  margin: 0;
}

.card .card-content time,
.card .card-content .is-size-7 { font-size: 1.5rem !important; }

.card .card-content .title.is-4 { font-size: 3.6rem !important; margin-top: 0.6rem !important; margin-bottom: 0.6rem !important; }

.card .card-content p { font-size: 1.6rem; line-height: 1.7; color: #444; }

.card .card-content .button.is-small { font-size: 1.5rem !important; font-family: "Open Sans", sans-serif; font-weight: 700; }
.card .card-content .button.is-small:hover { background-color: #2d6a4f !important; border-color: #2d6a4f !important; color: #fff !important; }

/* Homepage hero */
.home-hero {
  position: relative;
  height: 50vh;
  margin-top: -52px;   /* slide up behind the navbar */
  background: #222 no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

.home-hero-overlay {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.home-hero-title {
  font-family: "Open Sans", sans-serif;
  font-size: 6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  margin: 0 0 0.3em 0;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.home-hero-subtitle {
  font-family: "Merriweather", serif;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 300;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

@media (max-width: 640px) {
  .home-hero { height: 50vh; }
  .home-hero-title { font-size: 3rem; }
  .home-hero-subtitle { font-size: 1.2rem; }
}

/* About page */
.page-hero {
  height: 50vh;
  margin-top: -52px;
  background: #222 no-repeat center center;
  background-size: cover;
}


.about-profile-wrap {
  display: flex;
  justify-content: center;
  margin-top: -70px;
  position: relative;
  z-index: 1;
}

.about-profile-img {
  width: 140px !important;
  height: 140px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.about-name {
  font-family: "Open Sans", sans-serif;
  font-size: 5.4rem;
  font-weight: 700;
  color: #2e2e2e;
  margin: 1rem 0 0.5rem 0;
}

.about-bio {
  font-family: "Merriweather", serif;
  font-size: 2rem;
  color: #555;
  line-height: 1.3;
  margin: 0 0 1rem 0;
}

.about-post-count {
  font-family: "Open Sans", sans-serif;
  font-size: 2rem;
  color: #888;
  font-style: italic;
}

/* Disqus card */
.disqus-card {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Post author block */
.post-author-stack {
  position: relative;
  margin-top: 0;
}


.post-author-block {
  position: relative;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
  padding: 2.5rem;
  z-index: 1;
}

.post-author-avatar {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.post-author-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
}

.post-author-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.post-author-text { flex: 1; }

.post-author-name {
  font-family: "Open Sans", sans-serif;
  font-size: 1.92rem;
  font-weight: 700;
  color: #2e2e2e;
  margin: 0 0 0.4em 0;
}

.post-author-bio {
  font-family: "Merriweather", serif;
  font-size: 1.52rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

.post-author-share { text-align: right; flex-shrink: 0; }

.post-share-label {
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.6em 0;
}

.post-share-links {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

.post-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.post-share-btn svg { width: 18px; height: 18px; }
.post-share-btn:hover { opacity: 0.8; color: #fff; }

.post-share-twitter  { background: #000; }
.post-share-facebook { background: #1877f2; }
.post-share-linkedin { background: #0a66c2; }

/* Next / Previous post navigation */
.read-next {
  display: flex;
  border-top: #dfe1e3 1px solid;
}

.read-next-story {
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 315px;
  padding: 4rem;
  color: #fff;
  background: #222 no-repeat center center;
  background-size: cover;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.read-next-story::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.read-next-story.prev {
  border-left: #dfe1e3 1px solid;
}

.read-next-story section {
  position: relative;
  z-index: 1;
}

.read-next-label {
  font-family: "Open Sans", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  margin: 0 0 0.4em 0;
}

.read-next-story h2 {
  color: #fff;
  font-size: 2.7rem;
  margin: 0 0 0.4em 0;
  line-height: 1.3;
}

.read-next-story p {
  color: rgba(255,255,255,0.75);
  font-size: 2rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-next-story:hover::before {
  background: rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .read-next { flex-direction: column; }
  .read-next-story.prev { border-left: none; border-top: #dfe1e3 1px solid; }
}

/* Footer */
.footer { color: #888; }
main:has(.read-next) + footer { margin-top: 0 !important; }

/* Pagination */
.pagination-previous, .pagination-next { color: #333 !important; }

/* About page content */
.about-content p,
.about-content li,
.about-content strong,
.about-content em { font-size: 1.6rem; color: #2e2e2e; }

/* Page content */
.page-no-hero-section { padding-top: 8rem; }
.page-title { color: #2e2e2e !important; font-size: 3rem !important; }
.page-content p { font-size: 1.8rem; }
.page-content em, .page-content i, .page-content strong { color: inherit; }

/* Tag page */
.tag-page-title { color: #2e2e2e !important; }

/* GitHub Widget */
.github-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  background: #f6f8fa;
  font-family: "Open Sans", sans-serif;
}

.github-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.github-icon {
  width: 20px;
  height: 20px;
  color: #444;
  flex-shrink: 0;
}

.github-repo-link {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0969da;
  text-decoration: none;
}

.github-repo-link:hover { text-decoration: underline; }

.github-description {
  font-size: 1.2rem;
  color: #555;
  margin: 0 0 0.8rem 0;
  line-height: 1.5;
}

.github-stats {
  display: flex;
  gap: 1.2rem;
  font-size: 1.1rem;
  color: #666;
}

/* MP3 Player */
.mp3-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
}

.mp3-play-btn {
  background: #2e2e2e;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp3-play-btn:hover { background: #555; }

.mp3-progress-wrap {
  flex: 1;
  height: 6px;
  background: #ccc;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.mp3-progress-bar {
  height: 100%;
  width: 0;
  background: #2e2e2e;
  border-radius: 3px;
  pointer-events: none;
}

.mp3-time {
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
  color: #666;
  flex-shrink: 0;
  min-width: 3rem;
  text-align: right;
}

/* Make Bulma html font-size play nice with rem-based typography above */
html { font-size: 62.5%; }
