/* ============================================================
   main.css — ke9v.net
   ============================================================ */


/* ── Reset ───────────────────────────────────────────────── */
body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
  margin: 0;
  padding: 0;
}


/* ── Base ────────────────────────────────────────────────── */
body {
  font-family: Ubuntu, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 1.5;
  max-width: 75%;
  padding: 1% 1% 2%;
  margin: 0 auto;
  background-color: #FFFFFF;
}

a {
  color: #417FFB;
  text-decoration: underline;
}

img {
  max-width: 100%;
  max-height: 100%;
  margin: 10px 0;
  vertical-align: middle;
}


/* ── Headings ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: Ubuntu, sans-serif;
  font-weight: 500;
}

h1, h2, h3, h4, h5,
p, blockquote, pre,
ul, ol, dl, figure {
  margin-top: 10px;
  margin-bottom: 15px;
}


/* ── Lists ───────────────────────────────────────────────── */
ul, ol {
   margin-top: 15px;  
   margin-left: 25px;
}

ul {
  list-style-type: square;
  margin-top: 20px;
}

li {
  margin-bottom: 1px;
}

li > ul,
li > ol {
  margin-bottom: 5px;
}

ul.no-bullets {
  list-style-type: none;
}


/* ── Blockquotes ─────────────────────────────────────────── */
blockquote {
  color: #828282;
  border-left: 3px solid #B90927;
  padding-left: 15px;
  font-size: 18px;
  font-style: italic;
}

blockquote > :last-child {
  margin-bottom: 0;
}


/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background-color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.header-logo img {
  display: block;
}

.site-title {
  font-family: Ubuntu, sans-serif;
  font-size: 38px;
  font-weight: 600;
  color: #52504F;
  line-height: 40px;
  letter-spacing: -1px;
  text-decoration: none;
}


/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-family: Ubuntu, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.site-nav a {
  color: #417FFB;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}


/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background-color: #FFFFFF;
  border-top: 2px dashed #C7BAB7;
  margin-top: 50px;
  font-size: 14px;
  padding: 5px;
}


/* ── Post titles & links ─────────────────────────────────── */
a.post-title {
  font-family: Ubuntu, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #01579B;
  margin-top: 10px;
  margin-bottom: 1px;
  text-decoration: underline;
}

.post-title {
  font-family: Ubuntu, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #615956;
  margin-top: 20px;
  margin-bottom: 1px;
  text-decoration: none;
}

.small-title {
  font-family: Ubuntu, sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #000;
  margin-top: 30px;
  margin-bottom: 10px;
}

.post-link {
  display: block;
  font-size: 24px;
}

.post-header {
  margin-bottom: 30px;
}

.post-meta {
  font-size: 14px;
  color: #828282;
}

.post-date {
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: 14px;
  font-style: italic;
  color: #888;
}

.post-date-index {
  margin-top: 1px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #6E6D6D;
}

.post-date-archive {
  margin-top: 2px;
  margin-bottom: 12px;
  font-size: 14px;
}


/* ── Post list ───────────────────────────────────────────── */
.post-list {
  font-size: 18px;
  margin-left: 0;
}

.post-list > li {
  margin-bottom: 10px;
}

.index-container {
  margin-top: 15px;
  margin-bottom: 25px;
}


/* ── Misc ────────────────────────────────────────────────── */
.highlight {
  color: #A11E08;
  font-style: italic;
}

.justify {
  text-align: justify;
}

.site-tag a {
  display: inline-block;
  margin-right: 12px;
}

.icon > svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.icon > svg path {
  fill: #828282;
}


/* ── Tag cloud ───────────────────────────────────────────── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem 0;
  line-height: 2;
}

.tag-cloud a {
  color: #417FFB;
  text-decoration: none;
  font-family: Ubuntu, sans-serif;
  border: 1px solid #417FFB;
  border-radius: 3px;
  padding: 0.1em 0.5em;
}

.tag-cloud a:hover {
  background-color: #417FFB;
  color: #FFFFFF;
}

.tag-heading {
  font-family: Ubuntu, sans-serif;
  font-size: 1.3em;
  font-weight: 500;
  color: #01579B;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.tag-post-list {
  margin-left: 1.5rem;
}

.tag-post-list li {
  margin-bottom: 0.3rem;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-btn {
  font-family: Ubuntu, sans-serif;
  font-size: 16px;
  color: #417FFB;
  background: none;
  border: 1px solid #417FFB;
  border-radius: 4px;
  padding: 0.3em 0.8em;
  cursor: pointer;
}

.dropdown-btn:hover {
  background-color: #417FFB;
  color: #FFFFFF;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  min-width: 120px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dropdown-menu.open {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.5em 1em;
  color: #417FFB;
  text-decoration: none;
  font-family: Ubuntu, sans-serif;
  font-size: 16px;
}

.dropdown-menu a:hover {
  background-color: #f0f4ff;
}
