/* ============================================================
   style.css — Ari Sohandri Putra Personal Blog
   Aesthetic: Early Web / CERN 1991 — clean, classic, responsive
   ============================================================ */

/* ----- RESET & BASE ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  color: #000000;
  line-height: 1.5;
  padding: 8px 12px;
}

/* ----- OUTER WRAPPER ----- */
#outer {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 4px;
}

/* ----- HEADER ----- */
#site-header {
  border-bottom: 1px solid #000000;
  padding-bottom: 6px;
  margin-bottom: 4px;
}

#site-header h1 {
  font-size: 1.4em;
  font-weight: bold;
}

#site-header h1 a {
  color: #000000;
  text-decoration: none;
}

#site-header h1 a:hover {
  text-decoration: underline;
}

#site-header p {
  font-size: 0.85em;
  color: #333333;
  margin-top: 2px;
}

/* ----- NAVIGATION ----- */
#navbar {
  margin: 4px 0 6px 0;
  font-size: 0.9em;
}

#navbar a {
  color: #0000cc;
  text-decoration: none;
  margin-right: 12px;
}

#navbar a:hover {
  text-decoration: underline;
}

#navbar a.active {
  font-weight: bold;
  text-decoration: underline;
  color: #000000;
}

#navbar hr {
  border: none;
  border-top: 1px solid #000000;
  margin: 3px 0;
}

/* ----- BREADCRUMB ----- */
#breadcrumb {
  font-size: 0.82em;
  margin-bottom: 8px;
  color: #333333;
}

#breadcrumb a {
  color: #0000cc;
  text-decoration: none;
}

#breadcrumb a:hover {
  text-decoration: underline;
}

/* ----- TWO COLUMN LAYOUT ----- */
#layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

#sidebar {
  width: 180px;
  flex-shrink: 0;
}

#main {
  flex: 1;
  min-width: 0;
}

/* ----- SIDEBAR BOXES ----- */
.sbox {
  margin-bottom: 14px;
}

.sbox-title {
  font-weight: bold;
  font-size: 0.85em;
  border-bottom: 1px solid #000000;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sbox-content {
  font-size: 0.85em;
}

.sbox-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sbox-content ul li {
  padding: 1px 0;
  line-height: 1.6;
}

.sbox-content ul li::before {
  content: "- ";
}

.sbox-content ul li a {
  color: #0000cc;
  text-decoration: none;
}

.sbox-content ul li a:hover {
  text-decoration: underline;
}

.sbox-content p {
  margin: 3px 0;
  line-height: 1.5;
}

/* sidebar info table */
.sb-info-table {
  font-size: 0.85em;
  width: 100%;
  border-collapse: collapse;
}

.sb-info-table td {
  padding: 1px 4px 1px 0;
  vertical-align: top;
}

.sb-info-table td:first-child {
  font-weight: bold;
  white-space: nowrap;
  width: 40%;
}

/* sidebar post items */
.sb-post-item {
  padding: 3px 0;
  border-bottom: 1px dotted #aaaaaa;
  line-height: 1.4;
}

.sb-post-item:last-child {
  border-bottom: none;
}

.sb-post-item a {
  color: #0000cc;
  text-decoration: none;
  font-size: 0.82em;
  display: block;
}

.sb-post-item a:hover {
  text-decoration: underline;
}

.sb-post-date {
  font-size: 0.75em;
  color: #555555;
  font-family: "Courier New", Courier, monospace;
}

#more-posts-link {
  display: block;
  font-size: 0.82em;
  color: #0000cc;
  text-decoration: none;
  margin-top: 5px;
}

#more-posts-link:hover {
  text-decoration: underline;
}

/* ----- MAIN CONTENT AREA ----- */
.box {
  margin-bottom: 14px;
}

.box-title {
  font-weight: bold;
  font-size: 0.9em;
  border-bottom: 1px solid #000000;
  margin-bottom: 6px;
  padding-bottom: 2px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.box-title-count {
  font-size: 0.82em;
  font-weight: normal;
  color: #555555;
}

.box-content {
  font-size: 0.9em;
}

/* ----- POST ITEMS (index) ----- */
.post-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #cccccc;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item h3 {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 2px;
}

.post-item h3 a {
  color: #0000cc;
  text-decoration: none;
}

.post-item h3 a:hover {
  text-decoration: underline;
}

.post-meta {
  font-size: 0.8em;
  color: #555555;
  margin-bottom: 4px;
  font-family: "Courier New", Courier, monospace;
}

.post-meta .date {
  color: #000000;
  font-weight: bold;
}

.post-summary {
  font-size: 0.88em;
  margin-bottom: 5px;
  line-height: 1.55;
}

.read-more {
  font-size: 0.82em;
  color: #0000cc;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* ----- TAGS ----- */
.post-tags {
  margin-bottom: 5px;
  line-height: 1.8;
}

.tag {
  display: inline;
  color: #0000cc;
  text-decoration: none;
  font-size: 0.8em;
}

.tag::before { content: "["; }
.tag::after  { content: "]"; }

.tag:hover {
  text-decoration: underline;
}

.tag.active {
  color: #000000;
  font-weight: bold;
}

.tag-more {
  font-size: 0.8em;
  color: #555555;
  cursor: pointer;
  text-decoration: underline;
}

.tag-more:hover {
  color: #000000;
}

.tag-hidden {
  display: none;
}

/* ----- PAGINATION ----- */
.pagination {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #cccccc;
  font-size: 0.85em;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin-right: 6px;
  color: #0000cc;
  text-decoration: none;
}

.pagination a:hover {
  text-decoration: underline;
}

.pagination .current {
  font-weight: bold;
  color: #000000;
  text-decoration: underline;
}

.pagination .disabled {
  color: #aaaaaa;
  cursor: default;
}

.pagination .page-info {
  color: #555555;
  margin-left: 6px;
}

/* ----- ARCHIVE ----- */
.year-section {
  margin-bottom: 16px;
}

.year-heading {
  font-weight: bold;
  font-size: 0.95em;
  border-bottom: 1px solid #000000;
  margin-bottom: 4px;
  padding-bottom: 2px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.year-heading a {
  color: #000000;
  text-decoration: none;
}

.year-heading a:hover {
  text-decoration: underline;
}

.yr-count {
  font-size: 0.82em;
  font-weight: normal;
  color: #555555;
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-list li {
  padding: 3px 0;
  border-bottom: 1px dotted #cccccc;
  font-size: 0.88em;
  line-height: 1.5;
}

.archive-list li:last-child {
  border-bottom: none;
}

.archive-list li a {
  color: #0000cc;
  text-decoration: none;
}

.archive-list li a:hover {
  text-decoration: underline;
}

.archive-date {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85em;
  color: #555555;
  margin-right: 8px;
}

.active-year {
  font-weight: bold;
  color: #000000 !important;
}

/* ----- ABOUT PAGE ----- */
.profile-block {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #cccccc;
}

.profile-name {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 2px;
}

.profile-tagline {
  font-size: 0.85em;
  color: #444444;
  margin-bottom: 6px;
}

.skill-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88em;
  margin: 8px 0;
}

.skill-table tr {
  border-bottom: 1px dotted #cccccc;
}

.skill-table tr:last-child {
  border-bottom: none;
}

.skill-table td {
  padding: 3px 6px 3px 0;
  vertical-align: top;
}

.skill-cat {
  font-weight: bold;
  width: 38%;
  color: #000000;
}

.skill-val {
  color: #222222;
}

.itag {
  display: inline;
  font-size: 0.82em;
  color: #0000cc;
}

.itag::before { content: "["; }
.itag::after  { content: "] "; }

.quote-box {
  border-left: 3px solid #000000;
  padding: 6px 12px;
  margin: 10px 0;
  font-style: italic;
  color: #333333;
  font-size: 0.9em;
}

.contact-table {
  border-collapse: collapse;
  font-size: 0.9em;
}

.contact-table td {
  padding: 3px 10px 3px 0;
  vertical-align: top;
}

.contact-table td:first-child {
  font-weight: bold;
}

/* ----- POST PAGE ----- */
#post-title {
  font-size: 1.3em;
  font-weight: bold;
  font-family: "Times New Roman", Times, serif;
  border-bottom: 1px solid #000000;
  padding-bottom: 5px;
  margin-bottom: 4px;
  line-height: 1.3;
}

#post-meta {
  font-size: 0.82em;
  color: #555555;
  margin-bottom: 8px;
  font-family: "Courier New", Courier, monospace;
}

#post-meta .date {
  color: #000000;
  font-weight: bold;
}

#post-tags {
  margin-bottom: 10px;
}

#post-body {
  font-size: 0.92em;
  line-height: 1.7;
  color: #111111;
}

#post-body h2 {
  font-size: 1.1em;
  font-weight: bold;
  border-bottom: 1px solid #aaaaaa;
  margin: 16px 0 6px;
  padding-bottom: 2px;
}

#post-body h3 {
  font-size: 1em;
  font-weight: bold;
  margin: 12px 0 4px;
  text-decoration: underline;
}

#post-body h4 {
  font-size: 0.95em;
  font-weight: bold;
  margin: 10px 0 3px;
}

#post-body p {
  margin: 6px 0;
}

#post-body ul,
#post-body ol {
  margin: 6px 0 6px 24px;
}

#post-body li {
  margin: 2px 0;
  line-height: 1.6;
}

#post-body blockquote {
  border-left: 3px solid #000000;
  padding: 4px 12px;
  margin: 10px 0;
  font-style: italic;
  color: #333333;
}

#post-body pre {
  background: #f4f4f4;
  border: 1px solid #cccccc;
  padding: 10px 12px;
  overflow-x: auto;
  margin: 10px 0;
  font-size: 0.85em;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: "Courier New", Courier, monospace;
}

#post-body code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88em;
  background: #f4f4f4;
  border: 1px solid #dddddd;
  padding: 0 3px;
}

#post-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
}

#post-body strong, #post-body b { font-weight: bold; }
#post-body em, #post-body i { font-style: italic; }

#post-body a {
  color: #0000cc;
}

#post-body a:hover {
  text-decoration: none;
  color: #cc0000;
}

.post-nav {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid #cccccc;
  font-size: 0.85em;
}

.post-nav a {
  color: #0000cc;
  text-decoration: none;
}

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

/* ----- HORIZONTAL RULE ----- */
hr, .divider {
  border: none;
  border-top: 1px solid #aaaaaa;
  margin: 8px 0;
}

/* ----- MISC ----- */
.loading {
  font-size: 0.88em;
  color: #777777;
  font-style: italic;
  padding: 4px 0;
}

/* ----- FOOTER ----- */
#footer {
  margin-top: 16px;
  border-top: 1px solid #000000;
  padding-top: 6px;
  font-size: 0.78em;
  color: #333333;
  line-height: 1.7;
}

#footer a {
  color: #0000cc;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
  body {
    font-size: 15px;
    padding: 8px;
  }

  #layout {
    flex-direction: column;
    gap: 10px;
  }

  #sidebar {
    width: 100%;
    border-bottom: 1px solid #aaaaaa;
    padding-bottom: 10px;
  }

  #outer {
    padding: 0;
  }

  #site-header h1 {
    font-size: 1.2em;
  }

  #post-title {
    font-size: 1.15em;
  }

  .year-heading {
    flex-direction: column;
    gap: 0;
  }

  .box-title {
    flex-direction: column;
    gap: 0;
  }
}
