* {
  box-sizing: inherit;
}

html {
  background: #FFFAF5;
  font-size: 16px;
  box-sizing: border-box;
  line-height: 1.5rem;
}

body {
  line-height: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: .5rem 1rem 1rem;
  border: 1px solid #888;
  box-shadow: 2px 2px #ccc;
  background: #FFFFFF;
  font-family: 'Univers LT Pro', -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-family: 'JetBrains Mono', monospace;
  font-weight: normal;
  overflow-x: hidden;
  color: #000; 
  background: #fff;
  text-rendering: optimizeLegibility;
  font-size: 1rem;
}

.page-centered {
  display: block;
  float: none;
  margin-right: auto;
  margin-left: auto;
  max-width: 60rem;
}

nav {
  display: block;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.4rem;
  margin-right: -0.4rem;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: disc outside;
}

nav li {
  flex: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-right: 0.4rem;
  padding-left: 0.4rem;
  width: 25%;
  max-width: 100%;
}

nav .nav-btn {
  display: inline-block;
  width: 100%;
  color: #333;
  padding: 0.5rem 1rem;
  border: 1px solid #000;
  box-shadow: 2px 2px #bbb;
  text-align: center;
  text-decoration: none;
  line-height: 1rem;
}

nav .nav-btn:hover {
  background-color: black;
  box-shadow: 2px 2px #bbb;
}

.flex-measure-36 {
  flex: 0 0 50%;
}

/* Mobile responsive styles */
@media (max-width: 600px) {
  .content-section.columns {
    display: flex;
    flex-direction: column;
  }

  .content-section.columns .column {
    width: 100%;
    margin-bottom: 1rem;
  }

  .info-table {
    table-layout: auto;
  }

  .info-table td {
    word-break: break-word;
  }
}

.page-title {
  font-weight: bold;
  text-align: center;
  margin: 1rem 0;
}

.blog-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 1rem 0;
}

.text-box {
  width: 50%;
  padding: 1rem;
  border: 1px solid #ccc;
  box-shadow: 2px 2px #bbb;
  background-color: #fff;
}

.image-box {
  width: 50%;
  padding: 1rem;
  border: 1px solid #ccc;
  box-shadow: 2px 2px #bbb;
  background-color: #fff;
  text-align: center;
}

.image-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 0.1rem solid #ddd;
}

.info-table th {
  padding: 0.3rem 0.6rem;
  border-bottom: 0.1rem solid #ddd;
  text-align: left;
  vertical-align: top;
  background-color: #f0f0f0;
  font-weight: bold;
}

.info-table td {
  padding: 0.2rem 0.6rem;
  overflow-wrap: break-word;
}

.sm-icon {
  width: 1em;
}

.active-icon {
  display: inline-block; 
  width: 1em; 
  height: 1em; 
  border: 0.1em solid #000; 
  border-radius: 50%; 
  background: #ff4136;
  float: right;
}

.p-centered {
  display: block;
  float: none;
  margin-right: auto;
  margin-left: auto;
}

.w100 {
  width: 100%;
}

.mr2 {
  margin-right: 0.4rem;
}

.divider {
  border-bottom: 1px solid #ddd;
  margin: 1rem 0;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.blog-post-preview {
  padding: 1.5rem;
  border: 1px solid #ccc;
  box-shadow: 2px 2px #bbb;
  background-color: #fff;
}

.blog-post-preview h3 {
  margin: 0 0 0.5rem 0;
  font-weight: bold;
}

.blog-post-preview h3 a {
  color: #333;
  text-decoration: none;
}

.blog-post-preview h3 a:hover {
  color: #000;
  text-decoration: underline;
}

.blog-post {
  max-width: 100%;
}

.post-title, .post-date {
  font-size: 0.9rem;
}

.post-date {
  color: #666;
  font-style: italic;
}

.post-taxonomies {
  padding: 0.5rem;
}

.post-taxonomies p {
  margin: 0.5rem 0;
}

.post-taxonomies a {
  color: #333;
  text-decoration: underline;
}

.post-taxonomies a:hover {
  color: #000;
}

.post-navigation {
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  margin-bottom: 1rem;
}

.content-section {
  margin: 1rem 0;
}

/* Comments section */
.comments-section {
  margin-top: 2rem;
}

.comment-form {
  padding: 1.5rem;
  border: 1px solid #ccc;
  box-shadow: 2px 2px #bbb;
  background-color: #fff;
  margin-top: 1rem;
}

.comment-form label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

.comment-form label:first-of-type {
  margin-top: 0;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  margin-bottom: 0.5rem;
}

.comment-form textarea {
  resize: none;
}

.comment-form button {
  margin-top: 0.5rem;
}

.comment {
  padding: 1rem;
  border: 1px solid #eee;
  margin-bottom: 0.5rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.comment-date {
  color: #888;
  font-size: 0.8rem;
}

.comment-body {
  margin: 0;
  white-space: pre-wrap;
}

.comment-auth {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #ccc;
  box-shadow: 2px 2px #bbb;
  text-align: center;
}

.comment-logout {
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

.no-comments {
  color: #888;
  font-style: italic;
}

/* Code block styling */
pre {
  padding: 1rem;
  overflow: auto;
  line-height: 1.2;
  border: 1px solid #ccc;
  box-shadow: 2px 2px #bbb;
  background-color: #2b303b !important;
  margin: 1rem 0;
}

/* Line numbers support */
pre[data-linenos] {
  padding: 1rem 0;
}

pre table td {
  padding: 0;
}

pre table {
  width: 100%;
  border-collapse: collapse;
}

pre table td:nth-of-type(1) {
  text-align: center;
  user-select: none;
  padding: 0 0.5rem;
}

/* Highlighted lines */
pre mark {
  display: block;
  background-color: rgba(254, 252, 232, 0.9);
}

code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.9em;
  line-height: 1.2;
}

/* Inline code */
p code, li code {
  background-color: #f0f0f0;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  color: #333;
}

/* Resume */
.resume {
  max-width: 100%;
}

.resume-header {
  border: 1px solid #000;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.resume-name {
  font-weight: bold;
  font-size: 1.2rem;
}

.resume-title {
  color: #555;
}

.resume-links {
  font-size: 0.85rem;
}

.resume-links a {
  color: #333;
}

.resume-section-title {
  margin: 1.5rem 0 0 0;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #000;
  padding-bottom: 0.3rem;
}

.resume-entry {
  margin: 1rem 0;
  padding-left: 0.5rem;
  border-left: 2px solid #ddd;
}

.resume-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.resume-date {
  color: #666;
  font-size: 0.85rem;
}

.resume-entry-sub {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.resume-entry-sub a {
  color: #333;
}

.resume-entry ul {
  margin: 0.4rem 0;
  padding-left: 1.5rem;
}

.resume-entry li {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.resume-skills {
  margin-top: 0.8rem;
}

.resume-skill-row {
  display: flex;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid #eee;
}

.resume-skill-row:last-child {
  border-bottom: none;
}

.resume-skill-label {
  font-weight: bold;
  min-width: 8rem;
  font-size: 0.85rem;
}

.resume-skill-value {
  font-size: 0.85rem;
  color: #333;
}

.resume-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #000;
  text-align: center;
  font-size: 0.9rem;
}

.resume-footer a {
  color: #333;
  font-weight: bold;
}

/* About page */
.about-grid {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.about-card {
  flex: 1;
  min-width: 14rem;
  border: 1px solid #ccc;
  box-shadow: 2px 2px #bbb;
  background-color: #fff;
  padding: 1rem;
}

.about-card-header {
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #000;
  margin-bottom: 0;
}

.about-card .info-table {
  border: none;
}

/* Now section */
.now-section {
  margin-top: 2rem;
}

.now-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #000;
  margin: 0 0 1rem 0;
}

.now-content {
  padding: 1rem;
  border: 1px solid #ccc;
  box-shadow: 2px 2px #bbb;
  background-color: #fff;
}

.now-content p {
  margin: 0.5rem 0;
}

.now-content ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0 0 0;
}

.now-content > *:last-child {
  margin-bottom: 0;
}

.now-explanation {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
}

.now-explanation a {
  color: #666;
}
