:root {
    --bg-color: 250, 250, 250;
    --text-color: 17, 17, 17;
    --font-san-serif: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
    --font-serif: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
}

[data-theme="dark"] {
    --bg-color: 17, 17, 17;
    --text-color: 250, 250, 250;
}

* {
  box-sizing: border-box;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}


body {
  font-family: var(--font-san-serif);
  color: rgb(var(--text-color));
  background-color: rgb(var(--bg-color));
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  text-align: center;
}

.main-header {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 1.5rem .5rem;
    border-bottom: 1px dotted rgb(var(--text-color));
}

.post-header {
  position: absolute;
  top: 0;
  width: 100%;
  max-width: 1200px;
}

.post-header nav {
  position: absolute;
  left: .5rem;
  top: 1.5rem;
}

.post-header button{
  position: absolute;
  right: .5rem;
  top: 1.5rem;
  box-sizing: border-box;
}

.logo {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.logo svg {
    width: 100%;
    height: 100%;
    min-width: 3rem;
    min-height: 3rem;
}

.main-nav {
    margin-left: auto;
    margin-right: 1rem;
}

.main-nav a {
    text-decoration: none;
    color: inherit;
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.theme-toggle:has(.theme-disabled) {
    cursor: not-allowed;
    opacity: 0.1;
}
.theme-disabled {
}
.theme-toggle:has(.theme-disabled):hover {transform: none;}

.theme-toggle:active {transform: none;}


.icon-vibration:hover {
    transform: scale(1.05);
}

.icon-vibration:active {
    transform: scale(0.95);
}

.icon-vibration {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;

    width: 3rem;
    height: 3rem;
    padding: 0.75rem;
    min-width: 3rem;
    min-height: 3rem;
    color: inherit;
}

.icon-vibration svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-top: 2.5rem;
  flex: 1 0 auto;
  width: 100%;
}

.nav-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 600px;
}

.tag {
  padding: 0 0.5rem;
  padding-bottom: 0.15rem;
  font-style: italic;
  font-weight: 400;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: inherit;
  color: inherit;
  border: 1px solid rgb(var(--text-color));
  transition: background-color 0.2s, border-color 0.2s;
  text-wrap: nowrap;
}

.tag:hover {
  background-color: rgba(var(--text-color), 0.75);
  color: rgb(var(--bg-color));
  font-style: normal;
}

.tag.active {
  background-color: rgb(var(--text-color));
  color: rgb(var(--bg-color));
  font-style: normal;
}

.post-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 0.25rem;
}

.post {
  display: flex;
  align-items: baseline; /* ← clave: alinea por línea base */
  max-width: 800px;
  justify-content: space-between;
  width: 100%;
  border-top: 1px dotted rgb(var(--text-color));
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
}

.post a {
    color: inherit;
    font-size: 1.25rem;
    display: inline;

    position: relative;

    text-decoration: underline;
    text-decoration-color: rgba(var(--text-color), 0.1);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    color: inherit;
}

.post a:hover {
  text-decoration-color: currentColor;
}

.post h2 {
  margin: 0;
}

.post time {
  font-size: 0.85rem;
  color: rgba(var(--text-color), 0.75);
  text-align: right;
  flex: 0 0 auto;
  white-space: nowrap;
  margin-left: auto;
  margin-top: 0.25rem;
}

.mail-action {font-style: italic;}

.mail-action > a:hover {font-style: normal;}

.footer {
  margin-top: auto;
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

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

.post-main {
  max-width: 800px;
  margin: 3.5rem 1rem;
  margin-bottom: 4rem;
}

.post-main .subtitle {
  text-align: center;
  font-size: 1.125rem;
  font-style: italic;
  margin: 0.5rem 0 1.25rem 0;
  font-family: var(--font-serif);
}

.post-main h1 {
  margin-bottom: 0;
}

.post-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  margin-bottom: 4rem;
}

.post-meta p { margin: 0;}

.author {
  font-weight: 600;
}

.post-meta time {
  color: rgba(var(--text-color), 0.75);
}

blockquote {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 1px dotted rgba(var(--text-color));
  color: var(--text-color);
  font-style: italic;
}

blockquote p {
  margin: 0 0 0.75rem 0;
}

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


@media (min-width: 1024px) {
    .logo {
        width: 2.5rem;
        height: 2.5rem;
    }

    .main-nav a {
        font-size: 1rem;
    }

    .main-nav {
        margin-right: 1.5rem;
    }

    .post-header {
      position: fixed;
    }

    .icon-vibration {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.5rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
    }

  .post-main {
    margin: 1.5rem 0;
    margin-bottom: 4rem;
  }
}
