a.read-more,
a.read-more:hover,
a.read-more:active {
  display: inline-flex;
  border: none;
  background: none;
  box-shadow: none;
  padding: 0;
  max-width: 100%;
  text-decoration: none;
}
:root {
  --code-border: color-mix(in srgb, var(--foreground) 10%, transparent);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Fira Code", Monaco, Consolas, "Ubuntu Mono", monospace;
  font-size: var(--font-size);
  line-height: var(--line-height);
  background-color: var(--background);
  color: var(--foreground);
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  text-size-adjust: 100%;
}

h1 {
  font-size: 1rem * 15);
  letter-spacing: 0;
}

h2 {
  font-size: 1rem * 1.35);
  letter-spacing: 0;
}

h3 {
  font-size: 1rem * 1.15);
  letter-spacing: 0;
}

h4,
h5,
h6 {
  font-size: 1rem * 1);
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
img,
figure,
video,
table {
  margin: 25px 0;
}

a {
  color: var(--accent);
}

button {
  position: relative;
  font: inherit;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  background: transparent;
  color: var(--accent);
  padding: 5px 18px;
  border: 4px solid var(--accent);
  border-radius: var(--radius);
  transition: background 0.15s linear;
  appearance: none;
  cursor: pointer;
  outline: none;
}

button:hover {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

fieldset {
  display: inline-block;
  border: 2px solid var(--foreground);
  border-radius: calc(var(--radius) * 1.6);
  padding: 10px;
}

fieldset *:first-child {
  margin-top: 0;
}

fieldset input,
fieldset select,
fieldset textarea,
fieldset label,
fieldset button {
  margin-top: calc(var(--line-height) * 0.5);
  width: 100%;
}

label {
  display: inline-block;
}

label input {
  margin-top: 0;
}

input,
textarea,
select {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--foreground);
  border-radius: var(--radius);
  padding: 10px;
  font: inherit;
  appearance: none;
}

input[type="checkbox"] {
  width: auto;
}

input:focus-visible,
input:active,
textarea:focus-visible,
textarea:active,
select:focus-visible,
select:active {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

input:active,
textarea:active,
select:active {
  box-shadow: none;
}

select {
  background-image: linear-gradient(
    45deg,
    transparent 50%,
    var(--foreground) 50%
  ),
    linear-gradient(135deg, var(--foreground) 50%, transparent 50%);
  background-position: calc(100% - 20px), calc(100% - 1em);
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

select option {
  background: var(--background);
}

input[type="checkbox"] {
  vertical-align: middle;
  padding: 10px;
  box-shadow: inset 0 0 0 3px var(--background);
}

input[type="checkbox"]:checked {
  background: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  border: 8px solid var(--accent);
  border-radius: var(--radius);
  padding: 8px;
  overflow: hidden;
}

img.left {
  margin-right: auto;
}

img.center {
  margin-left: auto;
  margin-right: auto;
}

img.right {
  margin-left: auto;
}

figure {
  width: fit-content;
}

figure.left {
  margin-right: auto;
}

figure.center {
  margin-left: auto;
  margin-right: auto;
}

figure.right {
  margin-left: auto;
}

figure img,
figure video {
  margin-bottom: 0;
}

figure figcaption {
  background: var(--accent);
  color: var(--background);
  text-align: center;
  font-size: var(--font-size);
  font-weight: normal;
  margin-top: -8px;
  margin-left: 5%;
  padding: 0 8px;
  border-radius: 0 0 var(--radius) var(--radius);
}

figure figcaption p:first-child {
  margin-top: 0;
}

ul,
ol {
  margin-left: 4ch;
  padding: 0;
}

ul ul,
ul ol,
ol ul,
ol ol {
  margin-top: 0;
}

li::marker {
  color: var(--accent);
}

ul li,
ol li {
  position: relative;
}

code,
kbd {
  font-family:
    "Fira Code",
    Monaco,
    Consolas,
    "Ubuntu Mono",
    monospace !important;
  font-feature-settings: normal;
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  border: 1px solid var(--code-border);
  padding: 1px 6px;
  margin: 0 2px;
  font-size: calc(var(--font-size) * 0.95);
}

kbd {
  border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  border-radius: 4px;
}

code code {
  background: transparent;
  padding: 0;
  margin: 0;
}

pre {
  tab-size: 4;
  background: color-mix(in srgb, var(--foreground) 5%, transparent) !important;
  color: var(--foreground);
  padding: 20px 10px;
  font-size: calc(var(--font-size) * 0.95) !important;
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
}

pre code {
  background: none !important;
  margin: 0;
  padding: 0;
  border: none;
}

sup {
  line-height: 0;
}

abbr {
  position: relative;
  text-decoration-style: wavy;
  text-decoration-color: var(--accent);
  cursor: help;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.25em;
}

mark {
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--foreground);
}

blockquote {
  position: relative;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  margin: 0;
  padding: 25px;
}

blockquote::before {
  content: ">";
  display: block;
  position: absolute;
  left: 0;
  color: var(--accent);
}

blockquote p:first-child {
  margin-top: 0;
}

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

table {
  table-layout: auto;
  border-collapse: collapse;
}

table,
th,
td {
  border: 2px solid var(--foreground);
  padding: 10px;
}

th {
  border-style: solid;
  color: var(--foreground);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

hr {
  width: 100%;
  border: none;
  background: var(--accent);
  height: 2px;
}

/* One Heading Size */
.headings--one-size h1,
.headings--one-size h2,
.headings--one-size h3,
.headings--one-size h4,
.headings--one-size h5,
.headings--one-size h6 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 20px 0;
}

.headings--one-size ~ h1:first-child,
.headings--one-size ~ h2:first-child,
.headings--one-size ~ h3:first-child,
.headings--one-size ~ h4:first-child,
.headings--one-size ~ h5:first-child,
.headings--one-size ~ h6:first-child {
  margin-top: 20px;
}

blockquote.twitter-tweet {
  position: relative;
  background: var(--background);
  font: inherit;
  color: inherit;
  border: 1px solid var(--accent);
  padding-top: 60px;
}

blockquote.twitter-tweet a {
  color: var(--accent);
  text-decoration: underline;
}

blockquote.twitter-tweet::before {
  content: "> From X:";
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--accent);
  font-weight: bold;
}

.container {
  display: flex;
  flex-direction: column;
  padding: 40px;
  max-width: 864px;
  min-height: 100vh;
  border-right: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
}

.container.full, .container.center {
  border: none;
  margin: 0 auto;
}

.container.full {
  max-width: 100%;
}

.content {
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none;
}

.__h_video {
  position: relative;
  overflow: visible !important;
  height: auto !important;
  padding-bottom: 0 !important;
}

.__h_video a {
  position: relative;
  display: block;
  width: 100%;
}

.__h_video a img {
  width: 100%;
}

.__h_video a .play {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 60px;
  height: 60px;
}

iframe[src*="youtube.com"] {
  border: 8px solid var(--accent) !important;
  padding: 8px !important;
}

@media (max-width: 684px) {
  :root {
    --font-size: 0.95rem;
  }

  .container {
    padding: 20px;
  }
}

@media print {
  .container {
    display: initial;
  }

  .content {
    display: initial;
  }
}
.navigation-menu {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 20px 1px;
}

.navigation-menu__inner {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation-menu__inner > li {
  flex: 0 0 auto;
  margin-bottom: 10px;
  white-space: nowrap;
}

.navigation-menu__inner > li:not(:last-of-type) {
  margin-right: 20px;
}

.navigation-menu .spacer {
  flex-grow: 1 !important;
}

.menu {
  display: flex;
  flex-direction: column;
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu__trigger {
  margin-right: 0 !important;
  color: var(--accent);
  user-select: none;
  cursor: pointer;
}

.menu__dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  background: var(--background);
  box-shadow: 0 10px var(--background), -10px 10px var(--background), 10px 10px var(--background);
  color: var(--accent);
  border: 2px solid var(--accent);
  margin: 0;
  padding: 10px;
  top: 10px;
  left: 0;
  list-style: none;
  z-index: 99;
  white-space: nowrap; 
}

.open .menu__dropdown {
  display: flex;
}

.menu__dropdown > li {
  flex: 0 0 auto;
}

.menu__dropdown > li:not(:last-of-type) {
  margin-bottom: 10px;
}

.menu__dropdown > li a {
  display: flex;
  padding: 5px;
}

.menu--mobile .menu__trigger {
  color: var(--accent);
  border: 2px solid;
  margin-left: 10px;
  height: 100%;
  padding: 3px 8px;
  margin-bottom: 0 !important;
  position: relative;
  cursor: pointer;
  display: none;
}

.menu--mobile li {
  flex: 0 0 auto;
}

.menu--mobile li:not(:last-of-type) {
  margin-bottom: 10px;
}

.menu--language-selector .menu__trigger {
  color: var(--accent);
  border: 2px solid;
  margin-left: 5px;
  height: 100%;
  padding: 3px 8px;
  margin-bottom: 0 !important;
  position: relative;
  cursor: pointer;
}

.menu--language-selector .menu__dropdown {
  left: auto;
  right: 0;
}

@media (max-width: 684px) {
  .navigation-menu {
    margin: 0;
  }

  .navigation-menu__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }

  .navigation-menu__inner li {
    margin: 0;
    padding: 5px;
  }

  .menu--desktop {
    display: none;
  }

  .menu--mobile .menu__trigger {
    display: block;
  }

  .menu--mobile .menu__dropdown {
    left: auto;
    right: 0;
  }

  .menu--language-selector .menu__trigger {
    display: none;
  }
}
.pagination {
  margin-top: 50px;
}

.pagination__title {
  display: flex;
  text-align: center;
  position: relative;
  margin: 100px 0 20px;
}

.pagination__title-h {
  text-align: center;
  margin: 0 auto;
  padding: 5px 10px;
  background: var(--background);
  color: color-mix(in srgb var(--foreground) 30%, transparent);
  font-size: calc(var(--font-size) * 0.8);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.1em;
  z-index: 1;
}

.pagination__title hr {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  margin-top: 15px;
  z-index: 0;
}

.pagination__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: row wrap;
  gap: 10px;
}

.pagination__buttons a {
  display: inline-flex;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: inherit;
  padding: 0;
  appearance: none;
}

.button a {
  display: flex;
  justify-content: center;
  flex: 1;
  padding: 8px 16px;
}

.button__text {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.next .button__icon {
  margin-left: 8px;
}

.prev .button__icon {
  margin-right: 8px;
}

@media print {
  .pagination {
    display: none;
  }
}
.index-content {
  margin: 25px 0;
}

.framed {
  border: 1px solid var(--accent);
  padding: 20px;
}

.framed *:first-child {
  margin-top: 0;
}

.framed *:last-child {
  margin-bottom: 0;
}

.posts {
  width: 100%;
}

.post {
  width: 100%;
  text-align: left;
  padding: 30px 0;
}

.post:not(:last-of-type) {
  border-bottom: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
}

.post-meta {
  font-size: inherit;
  margin-bottom: 10px;
  color: color-mix(in srgb, var(--foreground) 65%, transparent);
}

.post-meta > *:not(:first-child)::before {
  content: "::";
  display: inline-block;
  margin: 0 8px;
}

.post-title {
  position: relative;
  color: var(--accent);
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  padding-bottom: 15px;
  border-bottom: 3px dotted var(--accent);
  text-decoration: none !important;
}

.post-title::after {
  content: "";
  position: absolute;
  bottom: 2px;
  display: block;
  width: 100%;
  border-bottom: 3px dotted var(--accent);
}

.post-title a {
  text-decoration: none;
}

.post-tags {
  display: block;
  margin-bottom: 20px;
  font-size: inherit;
  color: var(--accent);
}

.table-of-contents {
  margin: 40px 0;
}

.post-content {
  margin-top: 25px;
}

.post-cover {
  max-width: 90%; /* Ensures the image doesn't exceed its container's width */
  margin: 25px 0;
}


@media (max-width: 684px) {
  .post-cover {
    padding: 10px;
    border-width: 10px;
  }
}

:root {
  --first-tone: var(--accent);
  --second-tone: color-mix(in srgb, var(--accent) 70%, transparent);
  --comment: color-mix(in srgb, var(--foreground) 50%, transparent);
}

.terms h3 {
  font-size: initial;
}

.terms ul {
  list-style: none;
}

.terms ul li a {
  color: var(--accent);
}

.terms ul li:not(:empty)::before {
  content: "-";
  position: absolute;
  left: -20px;
  color: var(--accent);
}


/* NAVBAR STYLING */
.navbar {
  display: flex;
  justify-content: center;
  background: linear-gradient(to right, #141414, #1f1f1e, #141414);
  border-bottom: 1px solid #00c8ff; /* delimiter line */
}

.navbar__inner {
  padding: 0.75rem 3rem;   /* defines the horizontal gutters */
  display: flex;
  align-items: center;
  justify-content: space-between; /* left + right pinned, center stays in middle */
  background: linear-gradient(to right, #141414, #1f1f1e, #141414);
  border-bottom: 1px solid #00c8ff; /* delimiter line */

}

/* Left and right only take as much space as needed */
.navbar__left,
.navbar__right {
  flex: 0 0 auto;
}

/* Center expands, but contents stay centered */
.navbar__center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.navbar__center {
  justify-content: center;
}

.navbar__right {
  justify-content: flex-end;
}

/* NAV MENU */
.navbar__menu {
  display: flex;
  gap: 10%;              /* consistent spacing */
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;      /* prevent wrapping */
}

.navbar__menu li a {
  color: #00c8ff;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

.navbar__menu li a:hover {
  color: #fff;
}

/* Language dropdown */
.lang-select {
  background-color: #141414;
  color: #fff;
  border: 1px solid #00c8ff;
  border-radius: 4px;
  padding: 0.25rem 0.75rem; /* give some breathing room */
  display: inline-block;
  width: auto;              /* allow width to follow content */
  min-width: 130px;         /* force enough room for "Português" */
  box-sizing: border-box;   /* make padding count in width */
}


/* Dropdown hidden by default */
.navbar__menu--dropdown {
  display: none;
  background: #141414;
  color: #fff;
  border: 1px solid #00c8ff;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}

/* When screen is narrow, hide inline menu, show dropdown */
@media (max-width: 700px) {
  .navbar__menu {
    display: none;
  }
  .navbar__menu--dropdown {
    display: block;
  }
}

.footer {
  width: 100%;
  border-top: 1px solid #00c8ff;
  background: linear-gradient(to right, #141414, #1f1f1e, #141414);
  color: #d1d5db; /* equivalente ao gray-300 */
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer__container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; /* substitui space-y-4 */
}

.footer__links {
  display: flex;
  gap: 2rem; /* substitui space-x-8 */
  font-size: 1.125rem; /* text-lg */
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* substitui space-x-2 */
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: #00c8ff;
}

.footer__copy {
  font-size: 0.875rem; /* text-sm */
  color: #6b7280; /* gray-500 */
}

