:root {
  interpolate-size: allow-keywords;

  --color-main: #fff;
  --color-sub: #000;
  --color-secondary: #888;
  --color-tertiary: #ccc;
  --color-accent: #00f;
  
  --site-icon-bg: #fff;
  --site-icon-color: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: saitamaar;
  src: url("saitamaar.woff2") format("woff2"),
       url("saitamaar.woff") format("woff"),
       url("saitamaar.ttf") format("ttf");
  font-display: swap;
}

.saitamaar-light {
  font-family: saitamaar, sans-serif;
  white-space: pre;
  font-size: 16px;
  line-height: 18px;
}

html, body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  line-height: 14px;
  font-weight: normal;
  font-family: saitamaar, PikoA, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  letter-spacing: -0.05em;
  font-feature-settings: "palt" 1;
  word-break: auto-phrase;
  color: var(--color-sub);
  background-color: var(--color-main);
}

#wrapper {
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  border-left: 40px solid var(--color-sub);
  padding: 10px;
}

a {
  color: var(--color-sub);
  text-decoration: underline;
  transition: 0.1s linear(0, 0.45, 0.48, 0.52, 0.55, 1);
}

a:hover {
  color: var(--color-main);
  background-color: var(--color-sub);
}

::selection {
  color: var(--color-main);
  background-color: var(--color-accent);
}

img {
  padding: 0;
  image-rendering: pixelated;
}

h1 {
  line-height: 1;
  margin-block: 0 -2px;
  margin-inline: 0;
}

/* ===================
  CONTENEDOR FLEXBOX
=================== */
#flexrayout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 15px;
  width: 100%;
}

/* TÍTULO Y CORAZÓN DE ENCABEZADO */
#item1 {
  width: 100%;
  margin-bottom: 5px;
  position: relative;
}

#sitetitle {
  display: inline-block;
  position: relative;
  color: var(--color-sub);
  font-size: 2.5rem;
  margin-top: -8px;
  scale: 1 0.8;
}

#sitetitle::after {
  content: "";
  display: inline-block;
  position: absolute;
  width: 35px;
  height: 10px;
  background-image: url("heart_3.webp");
  image-rendering: pixelated;
  background-repeat: no-repeat;
  background-size: contain;
  margin-left: 4px;
  margin-top: 22px;
}

/* COLUMNA IZQUIERDA (LINKS): Con línea divisoria vertical punteada */
#item3 {
  flex: 0 0 200px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: dotted 2px var(--color-sub);
  padding-right: 12px;
}

#item3 > .section {
  padding-bottom: 8px;
  border-bottom: dotted 2px var(--color-sub);
}

#item3 > .section:last-child {
  border-bottom: none;
}

/* COLUMNA DERECHA (ABOUT + CONTENIDOS): Pegada a la línea */
#item2 {
  flex: 0 1 450px;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 5px;
}

#item2 > .section {
  padding-bottom: 8px;
  border-bottom: dotted 2px var(--color-sub);
}

#aboutcontainer {
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: dotted 2px var(--color-sub);
}

/* ===================
  ESTILOS RETRO Y ELEMENTOS
=================== */
.pixel-direct-section {
  font-family: "MS Gothic", "Courier New", monospace;
  font-size: 13px;
  color: #000;
  margin-bottom: 6px;
}

.pixel-direct-section ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
}

.pixel-direct-section li {
  margin-bottom: 3px;
  line-height: 1.2;
}

.section,
nav.section {
  padding: 0;
  display: block;
}

.highlight {
  display: inline-block;
  background-color: var(--color-sub);
  color: #fff;
  padding: 1px 4px;
  line-height: 12px;
  font-size: 1rem;
  font-weight: normal;
}

.highlight::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("icon.webp");
  background-color: var(--site-icon-bg);
  background-size: contain;
  vertical-align: -2px;
  image-rendering: pixelated;
  margin-right: 2px;
}

.section-title {
  display: inline-block;
  color: var(--color-main);
  background-color: var(--color-secondary);
  font-size: 0.9rem;
  font-weight: normal;
  padding: 0 2px;
}

.section-title::before {
  content: "<";
  margin-right: 2px;
}

.section-title::after {
  content: ">";
  margin-left: 2px;
}

a.highlight-anchor {
  color: var(--color-main);
  text-decoration: underline;
}

#social-links p::before {
  content: ">";
  margin-right: 2px;
}

/* RESPONSIVE PARA MÓVILES */
@media screen and (max-width: 600px) {
  #flexrayout {
    flex-direction: column;
  }

  #item3 {
    border-right: none;
    border-bottom: dotted 2px var(--color-sub);
    padding-right: 0;
    padding-bottom: 10px;
    max-width: 100%;
    flex: 1 1 100%;
  }

  #item2 {
    padding-left: 0;
    max-width: 100%;
    flex: 1 1 100%;
  }
}