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

body {
  background-color: #191919;
  color: #E5E4DF;
  font-family: "Comfortaa", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

main {
  text-align: center;
  padding: 15vh 2rem 2rem;
  width: 100%;
  max-width: 100%;
}

.credo {
  font-size: 1.4rem;
  line-height: 2;
  font-weight: 400;
  text-align: right;
  width: fit-content;
  margin: 0 auto;
}

.sefo-credo {
  position: relative;
  transition: color 0.15s ease;
}

.sefo-credo a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}

.credo:has(.sefo-credo.active) .sefo-credo:not(.active) {
  color: #91918D;
}

.credo:has(.sefo-credo.active) .sefo-credo:not(.active):hover {
  color: inherit;
}

.arrow {
  display: inline-flex;
  flex-shrink: 0;
  margin-left: calc(-1em - 0.4rem);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.2s ease;
  color: inherit;
}

.sefo-credo:hover .arrow {
  opacity: 0.7;
}

.sefo-credo:hover .arrow:hover {
  opacity: 1;
}

.arrow.active,
.sefo-credo:hover .arrow.active {
  transform: rotate(90deg);
  opacity: 1;
}

.chevron {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.commentary {
  max-width: 32rem;
  margin: 6rem auto 0;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.6;
  color: #91918D;
  view-transition-name: commentary;
}

.commentary .headline {
  margin: 0 0 0.75rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #E5E4DF;
}

.title {
  margin: 6rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.15s ease;
  view-transition-name: title;
}

.title:hover {
  opacity: 1;
}

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

.commentary + .title {
  margin-top: 1.5rem;
}

footer {
  margin-top: auto;
  padding: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

footer:hover {
  opacity: 0.8;
}

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

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
}

::view-transition-old(commentary) {
  animation: vt-fade-out 0.2s ease both;
}

::view-transition-new(commentary) {
  animation: vt-fade-in 0.35s ease both;
}

@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(0.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vt-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

@media (max-width: 600px) {
  main {
    padding: 8vh 1.25rem 1.5rem;
  }

  .credo {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 100%;
  }

  .commentary {
    margin-top: 3rem;
    font-size: 0.95rem;
  }

  .title {
    margin-top: 4rem;
  }
}
