:root {
  color-scheme: light;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  color: #252924;
  background-color: #f8f5ef;
  background-image: url("./paper.svg");
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 6vw, 5rem);
}

.page {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 8vw, 6rem);
  border-top: 1px solid #d3d6cb;
}

h1 {
  margin: 0 0 2rem;
  max-width: 18ch;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

p {
  max-width: 62ch;
  margin: 0 0 1.25rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

h1:empty,
p:empty {
  display: none;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

html[lang="es"] [data-language="en"],
html[lang="en"] [data-language="es"] {
  display: none;
}

.language-switch:not([hidden]) {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
}

.language-switch button,
.content-filters button {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: transparent;
  color: #68665e;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.5;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"],
.content-filters button[aria-pressed="true"] {
  color: #252924;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.language-switch button:focus-visible,
.content-filters button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.timeline-icon {
  display: block;
  margin-top: 0.2rem;
  object-fit: contain;
}

.timeline-entry:not([hidden]) ~ .timeline-entry:not([hidden]) {
  margin-top: 2.5rem;
}

.timeline-entry[hidden] {
  display: none;
}

.content-filters:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
}

.timeline-role {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.timeline-date {
  margin: 0 0 0.625rem;
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #68665e;
}

.timeline-title,
.technologies-title {
  margin: 0;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.timeline-title span {
  display: block;
}

.technologies {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #d3d6cb;
}

.technologies-title {
  margin: 0 0 1.5rem;
}

.technology-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.technology-list li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.technology-list img {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

::selection {
  background: #dce4d2;
}
