@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap');

* {
  font-family: "Courier Prime", system-ui;
}

p {
  font-family: "Courier Prime", system-ui;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Courier Prime", system-ui;
}

:root {
  --color-primary: #4a7c59;
  --color-primary-hover: #365c42;
  --color-border: #a08060;
  --color-text: #3d3929;
  --color-text-muted: #6b6550;
  --color-text-meta: #8a8470;
  --color-background: #f5f0e8;
  --color-background-code: #e8e0d0;
  --color-background-pre: #e0d8c8;
  --color-background-toc: #e8e2d6;
  --color-background-draft: #e8e0d0;
  --content-max-width: 960px;
}

.tag-badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 3px;
  margin-top: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.tag-ensaio {
  background-color: #a8c5a0;
  color: #ffffff;
}

.tag-carta {
  background-color: #d4c4a0;
  color: #ffffff;
}

.list-item {
  margin-bottom: 2em;
  padding-bottom: 2em;
  border-bottom: 1px dotted var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em;
  text-decoration: none;
  color: inherit;
  border-block-end: 1px dotted var(--color-border);
  border: none;
  border-bottom: 1px dotted var(--color-border);
}

.list-item:hover {
  background-color: var(--color-background-code);
  color: inherit;
  outline: none;
}

.list-item .title,
.list-item .subtitle {
  border: none;
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item .title,
.list-item .subtitle {
  border-bottom: none;
}

.list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list-item .subtitle {
  color: var(--color-text-muted);
  margin-top: 0.8em;
  margin-bottom: 0;
  font-size: 1rem;
}

.list-item .title::before,
.title .title::before,
.body h1::before,
.body h2::before,
.body h3::before,
.body h4::before,
.body h5::before,
.body h6::before {
  content: none !important;
}

/* Syntax highlighting - Floresta theme */
.chroma {
  background-color: #e0d8c8;
  -webkit-text-size-adjust: none;
}

.chroma .lnlinks {
  outline: none;
  text-decoration: none;
  color: inherit;
}

.chroma .lntd {
  vertical-align: top;
  padding: 0;
  margin: 0;
  border: 0;
}

.chroma .lntable {
  border-spacing: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.chroma .hl {
  background-color: #d6ceb8;
}

.chroma .lnt,
.chroma .ln {
  white-space: pre;
  user-select: none;
  margin-right: 0.4em;
  padding: 0 0.4em;
  color: #6b6550;
}

.chroma .line {
  display: flex;
}

.chroma .k,
.chroma .kc,
.chroma .kd,
.chroma .kn,
.chroma .kp,
.chroma .kr,
.chroma .kt {
  color: #4a7c59;
}

.chroma .na {
  color: #3d3929;
}

.chroma .nc,
.chroma .nx {
  color: #3d3929;
}

.chroma .no,
.chroma .nd,
.chroma .nt {
  color: #6b4423;
}

.chroma .ni {
  color: #8B7355;
}

.chroma .nb,
.chroma .nf,
.chroma .fm {
  color: #5a6b3a;
}

.chroma .nl {
  color: #4a7c59;
  font-weight: bold;
}

.chroma .nn {
  color: #3d3929;
}

.chroma .s,
.chroma .sa,
.chroma .sb,
.chroma .sc,
.chroma .dl,
.chroma .sd,
.chroma .s2,
.chroma .se,
.chroma .sh,
.chroma .si,
.chroma .sx,
.chroma .sr,
.chroma .s1 {
  color: #8B7355;
}

.chroma .ss {
  color: #6b4423;
}

.chroma .m,
.chroma .mb,
.chroma .mf,
.chroma .mh,
.chroma .mi,
.chroma .il,
.chroma .mo {
  color: #6b4423;
}

.chroma .o,
.chroma .ow,
.chroma .or {
  color: #6b4423;
}

.chroma .p {
  color: #3d3929;
}

.chroma .c,
.chroma .ch,
.chroma .cm,
.chroma .c1,
.chroma .cs,
.chroma .cp,
.chroma .cpf {
  color: #6b6550;
}

.chroma .ge {
  color: #3d3929;
  font-style: italic;
}

.chroma .go {
  color: #3d3929;
}

.chroma .gl {
  text-decoration: underline;
}

.chroma .gd {
  color: #8a3a3a;
  background-color: #e8d8d8;
}

.chroma .gi {
  color: #4a7c59;
  background-color: #d8e8d8;
}

.post-hero-image {
  margin-bottom: 1.5em;
  text-align: center;
}

.post-hero-image img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
}

.post-title-wrapper {
  position: relative;
  margin-bottom: 0.5em;
}

.section-header {
  text-align: center;
  margin-bottom: 2em;
}

.section-header .page-title {
  margin-bottom: 0.3em;
}

.section-description {
  color: var(--color-text-muted);
  font-size: 1rem;
  font-style: italic;
  margin: 0;
}

.home-sections-desc {
  margin-top: 0.5em;
  margin-bottom: 0;
}

.home-sections-desc p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0.2em 0;
}

.post-badge {
  position: absolute;
  left: 0;
  top: 0.3em;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15em 0.4em;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.post-badge-ensaio {
  background-color: #a8c5a0;
}

.post-badge-carta {
  background-color: #d4c4a0;
}

.post-content h1.post-title {
  font-size: 2rem !important;
  text-align: center !important;
  margin-bottom: 0.5em !important;
}

html {
  height: 100% !important;
}

body {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;

  font-family: "Courier Prime", system-ui;
  font-size: 17px;
}

.content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 0 !important;
  margin-block-end: 0 !important;
  max-width: 960px !important;
  max-inline-size: 960px !important;
  padding-inline: 1.5rem !important;
}

footer {
  margin-top: auto !important;
}

.body h1 {
  font-size: 1.8rem !important;
  text-align: center;
}

.body h2 {
  font-size: 1.5rem !important;
}

.body h3 {
  font-size: 1.3rem !important;
}

.body p {
  margin-bottom: 1.5em;
}

.body > p:first-child {
  text-align: center;
}

.body img {
  display: block;
  margin: 0 auto 1.5em;
  max-width: 100%;
  height: auto;
  border: none;
}

.post-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
}

.list-item-image {
  display: block;
  max-width: 100%;
  max-height: 170px;
  height: auto;
  border: none;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  body {
    font-size: 15px !important;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-inline: 1rem !important;
  }

  nav {
    width: 100%;
    gap: 0.25rem;
  }

  nav a {
    padding: 0.6rem 0.4rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  .content {
    padding-inline: 1rem !important;
  }

  .body {
    padding-inline: 0.5rem;
  }

  .body p {
    font-size: 1em;
    line-height: 1.7;
  }

  .list-item {
    flex-direction: column;
    align-items: center;
  }

  .list-item-content {
    text-align: center;
    width: 100%;
  }

  .list-item-image {
    max-height: 140px;
    width: 100%;
    object-fit: cover;
  }

  .post-content h1.post-title {
    font-size: 1.4rem !important;
  }

  .post-title-container {
    flex-wrap: wrap;
  }

  .post-badge {
    position: static;
    transform: none;
    display: inline-block;
    margin: 0 auto 0.3em;
  }

  .post-title-wrapper {
    text-align: center;
  }

  .tag-badge {
    display: inline-block;
    margin: 0 auto 0.3em;
  }

  .list-item-content {
    text-align: center;
  }

  .body h1 {
    font-size: 1.3rem !important;
  }

  .body h2 {
    font-size: 1.15rem !important;
  }

  .body h3 {
    font-size: 1.05rem !important;
  }

  .tags li::before {
    margin-inline-start: 0;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .post-subtitle {
    font-size: 0.95rem;
  }

  .body > p:first-child {
    font-size: 0.95em;
  }

  pre {
    font-size: 0.85em;
    padding: 0.75rem;
  }

  code {
    font-size: 0.85em;
  }

  footer {
    padding-block: 0.58rem !important;
    margin-block-start: 0.58rem !important;
    border-block-start-width: 2px !important;
    font-size: 0.86em;
  }

  footer .footer-info {
    font-size: 0.8em;
  }

  footer .soc {
    font-size: 0.92em;
  }

  footer .soc svg,
  footer .soc i {
    width: 0.8rem;
    height: 0.8rem;
  }
}
